diff --git a/tests/latex/luatex-1/issue-74.lvt b/tests/latex/luatex-1/issue-74.lvt new file mode 100644 index 0000000..af93dda --- /dev/null +++ b/tests/latex/luatex-1/issue-74.lvt @@ -0,0 +1,960 @@ +% + +\input{regression-test} +\documentclass{book} +\input{csl-test} + +\begin{filecontents}[noheader, overwrite]{turabian-fullnote-bibliography.csl} + + +\end{filecontents} + +\begin{filecontents}[noheader, overwrite]{\jobname.json} +[ + { + "id": "King2008-Gramma", + "type": "thesis", + "author": [ + { + "family": "King", + "given": "John T." + } + ], + "title": "A Grammar of Dhimal", + "title-short": "Grammar of Dhimal", + "source": "PDF", + "publisher-place": "Netherlands", + "publisher": "Universiteit Leiden", + "URL": "https://scholarlypublications.universiteitleiden.nl/handle/1887/13072", + "genre": "doctoral dissertation", + "issued": { + "date-parts": [ + [ + "2008", + "9", + "3" + ] + ] + }, + "accessed": { + "date-parts": [ + [ + "2024", + "08", + "13" + ] + ] + } + } +] +\end{filecontents} + +\usepackage{tikz} + +\usepackage[style=turabian-fullnote-bibliography]{citation-style-language} +\cslsetup{regression-test = true} +\addbibresource{\jobname.json} + + +\begin{document} +\START + +See Figures \ref{exampleFig} and \ref{example_fig}, identical +figures with different labels.\footnote{Footnote reference to +Figures \ref{exampleFig} and \ref{example_fig} is fine.} + +\begin{figure}[ht] + \centering + \begin{tikzpicture} + \draw[thick] (0,0) rectangle (4,2); + \end{tikzpicture} + \caption{Example figure 1.} + \label{exampleFig} +\end{figure} +\begin{figure}[ht] + \centering + \begin{tikzpicture} + \draw[thick] (0,0) rectangle (4,2); + \end{tikzpicture} + \caption{Example figure 2.} + \label{example_fig} +\end{figure} + +There is no problem if the \texttt{cite} command has a reference +to Figure \ref{exampleFig} in the +prefix/suffix.\cite[suffix = {; see also Figure \ref{exampleFig}.}]{King2008-Gramma} + +However, if the \texttt{cite} command has a reference +to Figure \ref{example_fig} in the prefix/suffix then the \LaTeX\ file does not compile +(``Missing \textbackslash endcsname inserted''). +\cite[suffix = {; see also Figure \ref{example_fig}.}]{King2008-Gramma} + +\OMIT +\end{document} diff --git a/tests/latex/luatex-1/issue-74.tlg b/tests/latex/luatex-1/issue-74.tlg new file mode 100644 index 0000000..10604d5 --- /dev/null +++ b/tests/latex/luatex-1/issue-74.tlg @@ -0,0 +1,30 @@ +This is a generated file for the l3build validation system. +Don't change this file in any respect. +LaTeX Warning: Reference `exampleFig' on page 1 undefined on input line .... +LaTeX Warning: Reference `example_fig' on page 1 undefined on input line .... +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <7> on input line .... +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <5> on input line .... +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <8> on input line .... +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <6> on input line .... +LaTeX Warning: Reference `exampleFig' on page 1 undefined on input line .... +LaTeX Warning: Reference `example_fig' on page 1 undefined on input line .... +LaTeX Warning: Reference `exampleFig' on page 1 undefined on input line .... +> \l__csl_citation_info_tl=citationID={King2008-Gramma@1},citationItems={{id={King2008-Gramma},suffix={; see also Figure \ref {exampleFig}.}}},properties={noteIndex={2},chapterIndex={0}}. + } +l. ......Figure \ref{exampleFig}.}]{King2008-Gramma} +> \l__csl_citation_tl=John T. King, “A Grammar of Dhimal” (doctoral dissertation, Universiteit Leiden, 2008), accessed August 13, 2024, \url {https://scholarlypublications.universiteitleiden.nl/handle/1887/13072}; see also Figure \ref {exampleFig}.. + } +l. ......Figure \ref{exampleFig}.}]{King2008-Gramma} +LaTeX Warning: Reference `exampleFig' on page 1 undefined on input line .... +LaTeX Warning: Reference `example_fig' on page 1 undefined on input line .... +> \l__csl_citation_info_tl=citationID={King2008-Gramma@2},citationItems={{id={King2008-Gramma},suffix={; see also Figure \ref {example_fig}.}}},properties={noteIndex={3},chapterIndex={0}}. + } +l. ......igure \ref{example_fig}.}]{King2008-Gramma} +> \l__csl_citation_tl=Ibid.; see also Figure \ref {example_fig}.. + } +l. ......igure \ref{example_fig}.}]{King2008-Gramma} +LaTeX Warning: Reference `example_fig' on page 1 undefined on input line .... diff --git a/tests/latex/pdftex-1/issue-74.lvt b/tests/latex/pdftex-1/issue-74.lvt new file mode 100644 index 0000000..af93dda --- /dev/null +++ b/tests/latex/pdftex-1/issue-74.lvt @@ -0,0 +1,960 @@ +% + +\input{regression-test} +\documentclass{book} +\input{csl-test} + +\begin{filecontents}[noheader, overwrite]{turabian-fullnote-bibliography.csl} + + +\end{filecontents} + +\begin{filecontents}[noheader, overwrite]{\jobname.json} +[ + { + "id": "King2008-Gramma", + "type": "thesis", + "author": [ + { + "family": "King", + "given": "John T." + } + ], + "title": "A Grammar of Dhimal", + "title-short": "Grammar of Dhimal", + "source": "PDF", + "publisher-place": "Netherlands", + "publisher": "Universiteit Leiden", + "URL": "https://scholarlypublications.universiteitleiden.nl/handle/1887/13072", + "genre": "doctoral dissertation", + "issued": { + "date-parts": [ + [ + "2008", + "9", + "3" + ] + ] + }, + "accessed": { + "date-parts": [ + [ + "2024", + "08", + "13" + ] + ] + } + } +] +\end{filecontents} + +\usepackage{tikz} + +\usepackage[style=turabian-fullnote-bibliography]{citation-style-language} +\cslsetup{regression-test = true} +\addbibresource{\jobname.json} + + +\begin{document} +\START + +See Figures \ref{exampleFig} and \ref{example_fig}, identical +figures with different labels.\footnote{Footnote reference to +Figures \ref{exampleFig} and \ref{example_fig} is fine.} + +\begin{figure}[ht] + \centering + \begin{tikzpicture} + \draw[thick] (0,0) rectangle (4,2); + \end{tikzpicture} + \caption{Example figure 1.} + \label{exampleFig} +\end{figure} +\begin{figure}[ht] + \centering + \begin{tikzpicture} + \draw[thick] (0,0) rectangle (4,2); + \end{tikzpicture} + \caption{Example figure 2.} + \label{example_fig} +\end{figure} + +There is no problem if the \texttt{cite} command has a reference +to Figure \ref{exampleFig} in the +prefix/suffix.\cite[suffix = {; see also Figure \ref{exampleFig}.}]{King2008-Gramma} + +However, if the \texttt{cite} command has a reference +to Figure \ref{example_fig} in the prefix/suffix then the \LaTeX\ file does not compile +(``Missing \textbackslash endcsname inserted''). +\cite[suffix = {; see also Figure \ref{example_fig}.}]{King2008-Gramma} + +\OMIT +\end{document} diff --git a/tests/latex/pdftex-1/issue-74.tlg b/tests/latex/pdftex-1/issue-74.tlg new file mode 100644 index 0000000..5bfb9fd --- /dev/null +++ b/tests/latex/pdftex-1/issue-74.tlg @@ -0,0 +1,33 @@ +This is a generated file for the l3build validation system. +Don't change this file in any respect. +LaTeX Warning: Reference `exampleFig' on page 1 undefined on input line .... +LaTeX Warning: Reference `example_fig' on page 1 undefined on input line .... +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <7> on input line .... +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <5> on input line .... +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <8> on input line .... +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <6> on input line .... +LaTeX Warning: Reference `exampleFig' on page 1 undefined on input line .... +LaTeX Warning: Reference `example_fig' on page 1 undefined on input line .... +LaTeX Warning: Reference `exampleFig' on page 1 undefined on input line .... +> \l__csl_citation_info_tl=citationID={King2008-Gramma@1},citationItems={{id={King2008-Gramma},suffix={; see also Figure \ref {exampleFig}.}}},properties={noteIndex={2},chapterIndex={0}}. + } +l. ......gure \ref{exampleFig}.}]{King2008-Gramma} +LaTeX Warning: Citation `King2008-Gramma' on page 1 undefined on input line .... +> \l__csl_citation_tl=[\textbf {King2008-Gramma}]. + } +l. ......gure \ref{exampleFig}.}]{King2008-Gramma} +LaTeX Warning: Reference `example_fig' on page 1 undefined on input line .... +LaTeX Font Info: Trying to load font information for OMS+cmr on input line .... +LaTeX Font Info: Font shape `OMS/cmr/m/n' in size <10> not available +(Font) Font shape `OMS/cmsy/m/n' tried instead on input line .... +> \l__csl_citation_info_tl=citationID={King2008-Gramma@2},citationItems={{id={King2008-Gramma},suffix={; see also Figure \ref {example_fig}.}}},properties={noteIndex={3},chapterIndex={0}}. + } +l. ......ure \ref{example_fig}.}]{King2008-Gramma} +LaTeX Warning: Citation `King2008-Gramma' on page 1 undefined on input line .... +> \l__csl_citation_tl=[\textbf {King2008-Gramma}]. + } +l. ......ure \ref{example_fig}.}]{King2008-Gramma} diff --git a/tests/latex/pdftex-2/issue-74.lvt b/tests/latex/pdftex-2/issue-74.lvt new file mode 100644 index 0000000..af93dda --- /dev/null +++ b/tests/latex/pdftex-2/issue-74.lvt @@ -0,0 +1,960 @@ +% + +\input{regression-test} +\documentclass{book} +\input{csl-test} + +\begin{filecontents}[noheader, overwrite]{turabian-fullnote-bibliography.csl} + + +\end{filecontents} + +\begin{filecontents}[noheader, overwrite]{\jobname.json} +[ + { + "id": "King2008-Gramma", + "type": "thesis", + "author": [ + { + "family": "King", + "given": "John T." + } + ], + "title": "A Grammar of Dhimal", + "title-short": "Grammar of Dhimal", + "source": "PDF", + "publisher-place": "Netherlands", + "publisher": "Universiteit Leiden", + "URL": "https://scholarlypublications.universiteitleiden.nl/handle/1887/13072", + "genre": "doctoral dissertation", + "issued": { + "date-parts": [ + [ + "2008", + "9", + "3" + ] + ] + }, + "accessed": { + "date-parts": [ + [ + "2024", + "08", + "13" + ] + ] + } + } +] +\end{filecontents} + +\usepackage{tikz} + +\usepackage[style=turabian-fullnote-bibliography]{citation-style-language} +\cslsetup{regression-test = true} +\addbibresource{\jobname.json} + + +\begin{document} +\START + +See Figures \ref{exampleFig} and \ref{example_fig}, identical +figures with different labels.\footnote{Footnote reference to +Figures \ref{exampleFig} and \ref{example_fig} is fine.} + +\begin{figure}[ht] + \centering + \begin{tikzpicture} + \draw[thick] (0,0) rectangle (4,2); + \end{tikzpicture} + \caption{Example figure 1.} + \label{exampleFig} +\end{figure} +\begin{figure}[ht] + \centering + \begin{tikzpicture} + \draw[thick] (0,0) rectangle (4,2); + \end{tikzpicture} + \caption{Example figure 2.} + \label{example_fig} +\end{figure} + +There is no problem if the \texttt{cite} command has a reference +to Figure \ref{exampleFig} in the +prefix/suffix.\cite[suffix = {; see also Figure \ref{exampleFig}.}]{King2008-Gramma} + +However, if the \texttt{cite} command has a reference +to Figure \ref{example_fig} in the prefix/suffix then the \LaTeX\ file does not compile +(``Missing \textbackslash endcsname inserted''). +\cite[suffix = {; see also Figure \ref{example_fig}.}]{King2008-Gramma} + +\OMIT +\end{document} diff --git a/tests/latex/pdftex-2/issue-74.tlg b/tests/latex/pdftex-2/issue-74.tlg new file mode 100644 index 0000000..1e7575d --- /dev/null +++ b/tests/latex/pdftex-2/issue-74.tlg @@ -0,0 +1,25 @@ +This is a generated file for the l3build validation system. +Don't change this file in any respect. +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <7> on input line .... +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <5> on input line .... +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <8> on input line .... +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <6> on input line .... +> \l__csl_citation_info_tl=citationID={King2008-Gramma@1},citationItems={{id={King2008-Gramma},suffix={; see also Figure \ref {exampleFig}.}}},properties={noteIndex={2},chapterIndex={0}}. + } +l. ......gure \ref{exampleFig}.}]{King2008-Gramma} +> \l__csl_citation_tl=John T. King, “A Grammar of Dhimal” (doctoral dissertation, Universiteit Leiden, 2008), accessed August 13, 2024, \url {https://scholarlypublications.universiteitleiden.nl/handle/1887/13072}; see also Figure \ref {exampleFig}.. + } +l. ......gure \ref{exampleFig}.}]{King2008-Gramma} +LaTeX Font Info: Trying to load font information for OMS+cmr on input line .... +LaTeX Font Info: Font shape `OMS/cmr/m/n' in size <10> not available +(Font) Font shape `OMS/cmsy/m/n' tried instead on input line .... +> \l__csl_citation_info_tl=citationID={King2008-Gramma@2},citationItems={{id={King2008-Gramma},suffix={; see also Figure \ref {example_fig}.}}},properties={noteIndex={3},chapterIndex={0}}. + } +l. ......ure \ref{example_fig}.}]{King2008-Gramma} +> \l__csl_citation_tl=Ibid.; see also Figure \ref {example_fig}.. + } +l. ......ure \ref{example_fig}.}]{King2008-Gramma}