-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix chapter number with \nocite (#75)
- Loading branch information
Showing
11 changed files
with
263 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
% <https://github.com/zepinglee/citeproc-lua/discussions/74> | ||
|
||
\input{regression-test} | ||
\documentclass{book} | ||
\input{csl-test} | ||
|
||
\usepackage[style=apa]{citation-style-language} | ||
\cslsetup{regression-test = true} | ||
\addbibresource{test.json} | ||
|
||
|
||
\begin{document} | ||
\START | ||
|
||
\chapter{Chapter} | ||
\section*{Section} | ||
\cite{ITEM-1} | ||
\nocite{ITEM-3} | ||
|
||
\printbibliography | ||
|
||
\OMIT | ||
\end{document} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
This is a generated file for the l3build validation system. | ||
Don't change this file in any respect. | ||
Chapter 1. | ||
> \l__csl_citation_info_tl=citationID={ITEM-1@1},citationItems={{id={ITEM-1}}},properties={noteIndex={0},chapterIndex={1}}. | ||
<recently read> } | ||
l. ...\cite{ITEM-1} | ||
> \l__csl_citation_tl=(D’Arcus, 2005). | ||
<recently read> } | ||
l. ...\cite{ITEM-1} | ||
> \l__csl_citation_info_tl=citationID={@nocite},citationItems={{id={ITEM-3}}},properties={noteIndex={0},chapterIndex={1}}. | ||
<recently read> } | ||
l. ...\nocite{ITEM-3} | ||
> \l__csl_citation_tl=. | ||
<recently read> } | ||
l. ...\nocite{ITEM-3} | ||
The sequence \l__csl_bibliography_seq contains the items (without outer braces): | ||
> {\begin {thebibliography}{index = 1, hanging-indent = true, line-spacing = 2, entry-spacing = 0}} | ||
> {\bibitem {ITEM-1} D’Arcus, B. (2005). \textit {Boundaries of dissent: Protest and state power in the media age}. Routledge.} | ||
> {\bibitem {ITEM-3} Lamport, L. (1994). \textit {LaTeX: A document preparation system: User’s guide and reference manual} (2nd ed.). Addison-Wesley.} | ||
> {\end {thebibliography}}. | ||
<recently read> } | ||
l. ... | ||
[1 | ||
] | ||
[2 | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
% <https://github.com/zepinglee/citeproc-lua/discussions/74> | ||
|
||
\input{regression-test} | ||
\documentclass{book} | ||
\input{csl-test} | ||
|
||
\usepackage[style=apa]{citation-style-language} | ||
\cslsetup{regression-test = true} | ||
\addbibresource{test.json} | ||
|
||
|
||
\begin{document} | ||
\START | ||
|
||
\chapter{Chapter} | ||
\section*{Section} | ||
\cite{ITEM-1} | ||
\nocite{ITEM-3} | ||
|
||
\printbibliography | ||
|
||
\OMIT | ||
\end{document} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
This is a generated file for the l3build validation system. | ||
Don't change this file in any respect. | ||
Chapter 1. | ||
> \l__csl_citation_info_tl=citationID={ITEM-1@1},citationItems={{id={ITEM-1}}},properties={noteIndex={0},chapterIndex={1}}. | ||
<recently read> } | ||
l. ...\cite{ITEM-1} | ||
> \l__csl_citation_tl=(D’Arcus, 2005). | ||
<recently read> } | ||
l. ...\cite{ITEM-1} | ||
> \l__csl_citation_info_tl=citationID={@nocite},citationItems={{id={ITEM-3}}},properties={noteIndex={0},chapterIndex={1}}. | ||
<recently read> } | ||
l. ...\nocite{ITEM-3} | ||
> \l__csl_citation_tl=. | ||
<recently read> } | ||
l. ...\nocite{ITEM-3} | ||
The sequence \l__csl_bibliography_seq contains the items (without outer braces): | ||
> {\begin {thebibliography}{index = 1, hanging-indent = true, line-spacing = 2, entry-spacing = 0}} | ||
> {\bibitem {ITEM-1} D’Arcus, B. (2005). \textit {Boundaries of dissent: Protest and state power in the media age}. Routledge.} | ||
> {\bibitem {ITEM-3} Lamport, L. (1994). \textit {LaTeX: A document preparation system: User’s guide and reference manual} (2nd ed.). Addison-Wesley.} | ||
> {\end {thebibliography}}. | ||
<recently read> } | ||
l. ... | ||
[1 | ||
] | ||
[2 | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
% <https://github.com/zepinglee/citeproc-lua/discussions/74> | ||
|
||
\input{regression-test} | ||
\documentclass{book} | ||
\input{csl-test} | ||
|
||
\usepackage[style=apa]{citation-style-language} | ||
\cslsetup{regression-test = true} | ||
\addbibresource{test.json} | ||
|
||
|
||
\begin{document} | ||
\START | ||
|
||
\chapter{Chapter} | ||
\section*{Section} | ||
\cite{ITEM-1} | ||
\nocite{ITEM-3} | ||
|
||
\printbibliography | ||
|
||
\OMIT | ||
\end{document} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
This is a generated file for the l3build validation system. | ||
Don't change this file in any respect. | ||
Chapter 1. | ||
> \l__csl_citation_info_tl=citationID={ITEM-1@1},citationItems={{id={ITEM-1}}},properties={noteIndex={0},chapterIndex={1}}. | ||
<recently read> } | ||
l. ...\cite{ITEM-1} | ||
LaTeX Warning: Citation `ITEM-1' on page 1 undefined on input line .... | ||
> \l__csl_citation_tl=[\textbf {ITEM-1}]. | ||
<recently read> } | ||
l. ...\cite{ITEM-1} | ||
> \l__csl_citation_info_tl=citationID={@nocite},citationItems={{id={ITEM-3}}},properties={noteIndex={0},chapterIndex={1}}. | ||
<recently read> } | ||
l. ...\nocite{ITEM-3} | ||
> \l__csl_citation_tl=. | ||
<recently read> } | ||
l. ...\nocite{ITEM-3} | ||
Package CSL Warning: The bibliography is empty. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
% <https://github.com/zepinglee/citeproc-lua/discussions/74> | ||
|
||
\input{regression-test} | ||
\documentclass{book} | ||
\input{csl-test} | ||
|
||
\usepackage[style=apa]{citation-style-language} | ||
\cslsetup{regression-test = true} | ||
\addbibresource{test.json} | ||
|
||
|
||
\begin{document} | ||
\START | ||
|
||
\chapter{Chapter} | ||
\section*{Section} | ||
\cite{ITEM-1} | ||
\nocite{ITEM-3} | ||
|
||
\printbibliography | ||
|
||
\OMIT | ||
\end{document} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
This is a generated file for the l3build validation system. | ||
Don't change this file in any respect. | ||
Chapter 1. | ||
> \l__csl_citation_info_tl=citationID={ITEM-1@1},citationItems={{id={ITEM-1}}},properties={noteIndex={0},chapterIndex={1}}. | ||
<recently read> } | ||
l. ...\cite{ITEM-1} | ||
> \l__csl_citation_tl=(D’Arcus, 2005). | ||
<recently read> } | ||
l. ...\cite{ITEM-1} | ||
> \l__csl_citation_info_tl=citationID={@nocite},citationItems={{id={ITEM-3}}},properties={noteIndex={0},chapterIndex={1}}. | ||
<recently read> } | ||
l. ...\nocite{ITEM-3} | ||
> \l__csl_citation_tl=. | ||
<recently read> } | ||
l. ...\nocite{ITEM-3} | ||
The sequence \l__csl_bibliography_seq contains the items (without outer braces): | ||
> {\begin {thebibliography}{index = 1, hanging-indent = true, line-spacing = 2, entry-spacing = 0}} | ||
> {\bibitem {ITEM-1} D’Arcus, B. (2005). \textit {Boundaries of dissent: Protest and state power in the media age}. Routledge.} | ||
> {\bibitem {ITEM-3} Lamport, L. (1994). \textit {LaTeX: A document preparation system: User’s guide and reference manual} (2nd ed.). Addison-Wesley.} | ||
> {\end {thebibliography}}. | ||
<recently read> } | ||
l. ... | ||
[1 | ||
] | ||
[2 | ||
] |