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.tex43
1 files changed, 34 insertions, 9 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 15f725144d2..4665227212c 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
@@ -26,8 +26,17 @@
% wouldn't be a test of anything.
\ExecuteBibliographyOptions[misc]{uniquelist=false}
\DeclareNameFormat[misc]{labelname}{%
+ \nameparts{#1}%
\ifthenelse{\value{listcount}=1\OR\value{listtotal}=2}
- {\usebibmacro{labelname:doname}{#1}{#2}{#3}{#4}{#5}{#6}{#7}{#8}}
+ {\usebibmacro{labelname:doname}
+ {\namepartfamily}
+ {\namepartfamilyi}
+ {\namepartgiven}
+ {\namepartgiveni}
+ {\namepartprefix}
+ {\namepartprefixi}
+ {\namepartsuffix}
+ {\namepartsuffixi}}
{\ifthenelse{\value{listtotal}>5}
{\ifnum\value{listcount}=2 \andothersdelim\bibstring{andothers}\fi
\ifnum\value{listcount}>2 \relax\fi}
@@ -36,8 +45,15 @@
\ifnum\value{listcount}=3 \relax\fi
\ifnum\value{listcount}=4 \relax\fi
\ifnum\value{listcount}=5 \relax\fi}
- {\usebibmacro{labelname:doname}{#1}{#2}{#3}{#4}{#5}{#6}{#7}{#8}}}}}
-
+ {\usebibmacro{labelname:doname}
+ {\namepartfamily}
+ {\namepartfamilyi}
+ {\namepartgiven}
+ {\namepartgiveni}
+ {\namepartprefix}
+ {\namepartprefixi}
+ {\namepartsuffix}
+ {\namepartsuffixi}}}}}
\MakeShortVerb{\|}
\newcommand\apa[2][]{\ifthenelse{\equal{#1}{}}%
@@ -142,7 +158,7 @@ which have two authors are never name-truncated after the first cite:\\
\noindent First citation of 3--5 author entry:\\
\apaex{\textcite{6.12b}}
-\noindent Subsequent first citations in a paragraph:\\
+\noindent Subsequent citations:\\
\apaex{\textcite{6.12b}}\\
Subsequent citations within a paragraph:\\
\apaex{\citeauthor{6.12b}}
@@ -152,8 +168,7 @@ citations is not automatic as there may be cases where you don't want to do
this (see APA 6.11).
\noindent Automatic list disambiguation for ambiguous truncations after
-first cite\footnote{This feature is fairly deep magic and only works when using
- biblatex 1.4+ together with biber 0.9+}. Note that «et al» is plural so
+first cite. Note that «et al» is plural so
it will only truncate two or more names. If it would truncate just one
name, we just give the name:\\
\apaex{\textcite{6.12c}}\\
@@ -390,9 +405,8 @@ these appear in references\\
\apaex{\textcite{pretest}}\\
\apaex{\textcite{nopretest}}
-% presufftest2 and nopresufftest have same year but don't have extrayear
-% because useprefix=false for MISC and this is taken account of in
-% extrayear generation
+% presufftest2 and nopresufftest are the same name and so even though
+% useprefix=false nopresufftest, hashes are the same so there is an extrayear
\noindent Testing prefices plus suffices\\
\apaex{\textcite{presufftest}}\\
\apaex{\textcite{presufftest2}}\\
@@ -410,8 +424,19 @@ these appear in references\\
% http://blog.apastyle.org/apastyle/2014/01/when-to-use-author-initials-for-text-citations.html
First citation:\\
\apaex{\parencite{first,second,third,fourth}}\\
+Second citation:\\
\apaex{\parencite{first,second,third,fourth}}
+% Testing name elision in cites
+% That is, \parencite{kingetal2005a,weissetal2007a,weissetal2009a}
+% Should give:
+% (King, Weiss, & Farmer, 2005; Weiss, King, & Hopkins, 2007; Weiss et al., 2009)
+% and not
+% (King, Weiss, & Farmer, 2005; Weiss, King, & Hopkins, 2007, 2009)
+% which happens if elision is based on namehash because the mincitenames
+% truncation of the 2007 and 2009 names is the same
+\noindent{Testing name elision in cites}\\
+\apaex{\parencite{kingetal2005a,weissetal2007a,weissetal2009a}}
\end{refsection}
\begin{refsection}[../bibtex/bib/biblatex-apa-test-references]
\nocite{*}