summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/biblatex-apa/biblatex-apa-test.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/biblatex-apa/biblatex-apa-test.tex')
-rw-r--r--Master/texmf-dist/doc/latex/biblatex-apa/biblatex-apa-test.tex50
1 files changed, 24 insertions, 26 deletions
diff --git a/Master/texmf-dist/doc/latex/biblatex-apa/biblatex-apa-test.tex b/Master/texmf-dist/doc/latex/biblatex-apa/biblatex-apa-test.tex
index e88f2a4243d..68c0f2ba4e9 100644
--- a/Master/texmf-dist/doc/latex/biblatex-apa/biblatex-apa-test.tex
+++ b/Master/texmf-dist/doc/latex/biblatex-apa/biblatex-apa-test.tex
@@ -22,7 +22,7 @@
% document but since we are generating the citations from a real data
% source, we have to prevent the usual uniquelist processing by making
% all of the examples MISC entrytypes and changing uniquelist
-% per-type. There is no point in just typsetting static data as this
+% per-type. There is no point in just typesetting static data as this
% wouldn't be a test of anything.
\ExecuteBibliographyOptions[misc]{uniquelist=false}
\DeclareNameFormat[misc]{labelname}{%
@@ -64,32 +64,26 @@
\makeatletter
% This solution to detokenize leaving a space after the command and
% arguments is due to Bruno Le Floch on T.SE
-\long\def\apaexi#1%
- {%
- \catcode64=11
- \begingroup
- % Ensure that every character is preserved by \lowercase.
- \count@\z@
- \loop\ifnum\count@<256
- \lccode\count@\z@
- \advance\count@\@ne
- \repeat
- % Except spaces, changed to ^^A
- \lccode32=\@ne
- \lowercase
- {%
- \endgroup
- \expandafter\test@\detokenize{#1}\relax%
- \catcode64=12
- }%
- }
+\long\def\apaexi#1{%
+ \catcode64=11
+ \begingroup
+ % Ensure that every character is preserved by \lowercase.
+ \count@\z@
+ \loop\ifnum\count@<256
+ \lccode\count@\z@
+ \advance\count@\@ne
+ \repeat
+ % Except spaces, changed to ^^A
+ \lccode32=\@ne
+ \lowercase{%
+ \endgroup
+ \expandafter\test@\detokenize{#1}\relax%
+ \catcode64=12}}
% Then map {^^A => space, space =>} onto the string.
-\def\test@#1%
- {%
- \ifx#1\relax\test@end\fi
- \ifnum`#1=\@ne\space\else#1\fi
- \test@
- }
+\def\test@#1{%
+ \ifx#1\relax\test@end\fi
+ \ifnum`#1=\@ne\space\else#1\fi
+ \test@}
\def\test@end\fi#1\test@{\fi}
\def\apaex#1{\hbox{\hspace{-4em}\texttt{\small\apaexi{#1}}}\\$\rcurvearrowse$ \textbf{#1}}
@@ -434,6 +428,10 @@ Second citation:\\
% truncation of the 2007 and 2009 names is the same
\noindent{Testing name elision in cites}\\
\apaex{\parencite{kingetal2005a,weissetal2007a,weissetal2009a}}
+
+\noindent Testing circa/BCE/uncertain era format\\
+\apaex{\nptextcite{plato}}
+
\end{refsection}
\begin{refsection}[../bibtex/bib/biblatex-apa-test-references]
\nocite{*}