Updated the test file (incl. adaptation of formatting macros)

This commit is contained in:
Bastien Dumont
2025-08-05 12:46:54 +02:00
parent d37e4efeb4
commit cbb190a907
2 changed files with 647 additions and 10 deletions

View File

@ -56,7 +56,7 @@
\everypar={\leftskip=1em}
\raggedright Enumeration: \crfnmTypesetEnumArg#2{crfnmEnumArgEnd}
\raggedright Enumeration: \allowbreak{\tt\detokenize{#2}}
Reference type: {\tt #3}
@ -69,15 +69,6 @@
\fi
}
\def\crfnmEnumArgEnd{crfnmEnumArgEnd}
\def\crfnmTypesetEnumArg#1{%
\def\crfnmTheArg{#1}%
\ifx\crfnmTheArg\crfnmEnumArgEnd\else
\allowbreak{\tt\detokenize{{#1}}}\expandafter\crfnmTypesetEnumArg
\fi
}
\long\def\crfnmheader#1{{\crfnmsc #1}\nobreak\vglue\baselineskip}
\def\crfnmverbatim#1#2{{\tt\detokenize{#1}}#2}
@ -433,6 +424,34 @@
}
\vfill\penalty-10000
\crfnmheader{With a comma-delimited list of references instead of a list of groups}
\crfnmtestenum{One single page without an inner group}
{matthaeus-14}
{page}
{withprefix}
{p. 2}
\crfnmtestenum{Three references without spaces}
{matthaeus-14,matthaeus-025,matthaeus-0223}
{page}
{withprefix}
{pp. 2, 4 and 6}
\crfnmtestenum{Three references with spaces}
{matthaeus-14, matthaeus-025, matthaeus-0223}
{page}
{withprefix}
{pp. 2, 4 and 6}
\crfnmtestenum{With a double type}
{note-Aminadab-undecim, note-generationes-quis, note-regem-Theman}
{pagenote}
{withprefix}
{p. 1, n. 1, p. 2, n. 3 and p. 4, n. 3}
\iflatex{\end{english}}
\ifcontext{
\language[latin]