Debian Codegraph @

texmf-dist/doc/latex/biblatex-apa/biblatex-apa.tex

raw
1 \documentclass{ltxdockit}
2 \usepackage[british]{babel}
3 \usepackage[strict]{csquotes}
4 \usepackage{shortvrb}
5 \usepackage{ifthen}
6 \usepackage{listings}
7 \usepackage{metalogo}
8 \MakeAutoQuote{«}{»}
9 \MakeShortVerb{\|}
10
11 % Unicode
12 \usepackage{fontspec}
13 \setmainfont[Ligatures=TeX]{TeXGyrePagella}
14 \setsansfont[Ligatures=TeX]{TexGyreHeros}
15 \setmonofont[Ligatures=NoCommon]{TeXGyreCursor}
16
17 \newcommand\apa[2][]{\ifthenelse{\equal{#1}{}}%
18 {\texttt{(APA #2)}}%
19 {\texttt{(APA #2 Example #1)}}}
20
21 \titlepage{%
22 title={APA Bib\LaTeX\ style},
23 subtitle={Citation and References macros for Bib\LaTeX},
24 url={http://mirror.ctan.org/macros/latex/exptl/biblatex-contrib/biblatex-apa/},
25 author={Philip Kime},
26 email={[email protected]},
27 revision={9.20},
28 date={\today}}
29
30 \hypersetup{%
31 pdftitle={APA Bib\LaTeX\ style},
32 pdfsubject={APA 7th Edition Conformant Style for Bib\LaTeX},
33 pdfauthor={Philip Kime},
34 pdfkeywords={latex, biblatex, APA, style}}
35
36 \begin{document}
37
38 \printtitlepage
39 \tableofcontents
40
41 \section{Important Changes}\label{special}
42
43 Please see the revision history below (section \ref{rev}) for details on changes in each
44 version. This section is just for important things like incompatible
45 changes which users should be aware of.
46
47 \minisec{9.18}
48 The package now correctly uses ampersand as the name separator for
49 \cmd{textcite} when inside a table.
50
51 \minisec{9.16}
52 |biber| 2.18+ and and |biblatex| 3.18 + are \emph{required}.
53
54 \minisec{9.0}
55 Completely overhauled for APA 7th edition. APA 7th edition is a lot more
56 consistent in terms of its formatting blocks and elements, resulting in
57 much less dependence on ad-hoc entry types and fields. In general, your
58 \file{.bib} should be updated in accordance with this documentation for APA
59 7th edition compatibility.
60
61 \noindent |biber| 2.14+ and and |biblatex| 3.14 + are \emph{required}.
62
63 One effect of the normalisation of reference entries in the 7th edition is
64 that standard entrytypes can be used to cover many more cases. Indeed, the
65 set of standard entrytypes required is also smaller, for example,
66 |@COLLECTION| and |@INCOLLECTION| are not required at all (and are
67 internally remapped to |@BOOK| and |@INBOOK| respectively). Differentiation
68 between different entry subtypes (for example, songs, albums or podcasts
69 within the |AUDIO| entry type) is handled by localised strings held in the
70 |ENTRYSUBTYPE| field. As a result, many more localisation strings have been
71 added to the |.lbx| files. Please let me know if you are able to
72 translation the new strings in the |.lbx| file for your language, they are
73 generally marked with ``\texttt{\%FIXME}``.
74
75 \section{Introduction}\label{int}
76
77 \subsection{About}
78
79 This package is a Bib\LaTeX\ style for APA (American Psychological
80 Association) 7th Edition style compliant documents typeset in \latex. It
81 implements a citation style (\file{apa.cbx}), a references section style
82 (\file{apa.bbx}), some data model enhancements (\file{apa.dbx}) and string
83 localisation files (\path{<language>-apa.lbx}). The style is loaded just
84 like any other Bib\LaTeX\ styles but don't try to use the citation and
85 references styles separately as they rely on each other, macro-wise, in
86 places.
87
88 Please see the package |biblatex-apa6| on CTAN for the APA 6th edition
89 conformant version of this style.
90
91 In general, there is no attempt to generalise this style for non-APA
92 requirements--it is written for APA compliance only. Having said that,
93 there are a few options which allow users to change the APA defaults.
94
95 In this document and in the code, the specific APA requirements are
96 referred to by the section and (if appropriate) the example number of the
97 APA Style Guide (7th Edition).
98
99 \subsection{Requirements}\label{ref:req}
100
101 You will need to be using \sty{csquotes} ($\geq$ 4.3), Bib\LaTeX\ ($\geq$
102 3.14) and Biber ($\geq$ 2.14). If you want to take advantage of the
103 Bib\LaTeX\ |\DeclareQuotePunctuation| facility to enforce the APA required
104 «American» punctuation, you should normally use the \sty{babel} package
105 with the «american» option (see Bib\LaTeX\ manual section |3.9.1|). You can
106 of course use other languages but in such cases, to adhere to APA
107 «American» punctuation rules (following commas moved inside closing quotes
108 etc.), then you should set up |\DeclareQuotePunctuation| yourself as per
109 section |4.7.5| of the Bib\LaTeX\ manual.
110
111 If you are using an APA document \latex class, the class should be invoked
112 with the |noapacite| class option as per the documentation. Without this
113 class option, the APA class will automatically try to use plain Bib\TeX\
114 with the |apacite| style which is completely incompatible with Bib\LaTeX.
115
116 \subsection{License}
117
118 Permission is granted to copy, distribute and/or modify this software under
119 the terms of the \latex Project Public License, version
120 1.3c\footnote{\url{http://www.latex-project.org/lppl.txt}}. The current
121 maintainer is Philip Kime.
122
123 \subsection{History}
124
125 When I started using Bib\LaTeX, I assumed there would be an APA style. I
126 was wrong. I started to try to make one and realised why there was none.
127 The APA style manual is enormous; the citation and references
128 specifications run over many chapters and are very specific in terms of
129 formatting. They are also not entirely consistent but then again, it is
130 rare to have such a thorough specification to work from. Inconsistencies in
131 the manual and workarounds are noted in the examples document.
132
133 \subsection{Acknowledgments}
134
135 Thanks to Philipp Lehman for Bib\LaTeX\ which really has been a major
136 advance over pure Bib\TeX. Thanks to Alexander van Loon for the Dutch
137 localisation. Thanks to Paul Thompson for the suggestion to
138 parameterise the max authors setting. Thanks to George Gkotsis for the
139 Greek localisation. Thanks to Erikson Kaszubowski for the Brazilian
140 localisation. Thanks to Braulio José Solano Rojas for the Spanish
141 localisation. Thanks to Stefan Mayer for the |subtitlepunct| suggestion.
142 Thanks to Håkon Malmedal for the Norwegian localisation. Thanks to
143 Johann Gründl for the Austrian localisation. Thanks to Svante Kvarnström
144 for the Swedish localisation. Thanks to Hendrik Maryns for further Dutch
145 localisation. Thanks to Tea Tušar and Bogdan Filipič for the Slovenian
146 localisation. Thanks to Sebastian Ørsted for the Danish localisation.
147 Thanks to Jürgen Spitzmüller for the DGPs localisation hints. Thanks to
148 Sergei Golovan for the Russian localisation. Thanks to Vítor Míguez for the
149 Galacian localisation. Thanks to Abdulkerim Gok for the Turkish
150 localisation. Thanks for Robert Fodor the Hungarian localisation. Thanks to
151 Marcel Krüger for the Lua code for automating parentheses level checks. Thanks
152 to Razvan-Gabriel Geangu for the Romanian translation.
153
154 \section{Use}\label{ref:use}
155 \label{use}
156 This package is available via \TeX Live as |biblatex-apa|. You can find it
157 through the provided \TeX Live update utilities which will install it
158 automatically for you. If you need to install manually (to use a new
159 version which has not yet been published to the \TeX Live updaters, for
160 example), you can download it from CTAN and then, put the \path{.cbx},
161 \path{.bbx},\path{.dbx} and \path{.lbx} files in your texmf tree, usually:\\
162
163 \noindent\path{<texmf>/tex/latex/biblatex/cbx/apa.cbx}\\
164 \path{<texmf>/tex/latex/biblatex/bbx/apa.bbx}\\
165 \path{<texmf>/tex/latex/biblatex/dbx/apa.dbx}\\
166 \path{<texmf>/tex/latex/biblatex/lbx/<language>-apa.lbx}\\
167
168 \noindent Specify the style in the usual way when loading Bib\LaTeX. If you
169 are using \sty{babel}:
170
171 \begin{ltxcode}
172 \usepackage[american]{babel}
173 \usepackage{csquotes}
174 \usepackage[style=apa]{biblatex}
175 \end{ltxcode}
176
177 or \sty{polyglossia}:
178
179 \begin{ltxcode}
180 \usepackage{polyglossia}
181 \setdefaultlanguage[variant=american]{english}
182 \usepackage{csquotes}
183 \usepackage[style=apa]{biblatex}
184 \end{ltxcode}
185
186 \noindent Note that the APA manual requires the forcing of titles into
187 «sentence case», that is, initial cap followed by lower case for sentence
188 units, with the exception of names and material from languages which do not
189 follow English capitalisation. As of version 0.8a, Bib\LaTeX\ has a
190 |\MakeSentenceCase| macro which deals with this. So, in the traditional
191 Bib\TeX\ way, capitalise normally in the |.bib| file, protecting names etc.
192 with the usual brace pairs and the style will take care of forcing the
193 APA-style sentence case in the References section. Unlike the References
194 section, titles in citations in the APA style appear in normal case and the
195 style will ensure this too.
196
197 \subsection{Package options}\label{opts}
198
199 \begin{ltxcode}
200 apamaxprtauth=<num>
201 \end{ltxcode}
202
203 \noindent This option controls the number of author/editor names which are
204 printed in the References. APA style defaults to 20. You can change this if
205 you really want to fully print all author list references in certain
206 contexts (for example in a CV where you are an author in position 21 \ldots).
207
208 \subsection{Localisation}
209
210 Localisation is provided for APA-specific strings in the accompanying
211 |.lbx| files which are loaded automatically.
212
213 Normal use will invoke \sty{babel} with the «american» language or
214 \sty{polyglossia} with «american» variant of «english».
215
216 The \file{english-apa.lbx} is a copy of the \file{american-apa.lbx} since
217 the default is «American» English.
218
219 The APA manual does not mention nor sanction any non «American» English
220 strings but it is quite common for non-English journals to ask for APA style
221 bibliographies and so this must be supported.
222
223 If not using the \sty{babel} «american» option, it may be necessary to set up
224 the |\DeclareQuotePunctuation| option as mentioned in section \ref{ref:req}
225 above. You would only need to do this if, for some strange reason, a
226 non-american journal required the (unpleasant) american practice of moving
227 final punctuation marks inside closing quotes.
228
229 \subsubsection{Date formats}
230
231 Obviously, an American style uses month/day/year formats. European formats
232 are usually day/month/year. The APA style dictates long date formats and so
233 this is not really apparent in the bibliography. There is an APA standard
234 for long date formats which may not be correct for European journals using
235 roughly APA formatting standards (German journals tend to have a different
236 long date format, for example). The «american» babel option will give you
237 APA compliant US date formats. Default sensible date formats are included
238 for german, ngerman and french. You should redefine the |\mkbibdatelong|
239 macro in the relevant language |.lbx| file to change this if needed.
240
241 A customisable macro \cmd{urldatecomma} determines what comes between the
242 date of a URL and the URL itself. This defaults to the standard comma and
243 space as per APA style but just a space in germanic localisations.
244
245 \section{Details}
246
247 The detailed information for this style is contained in the example document and
248 accompanying \path{.bib} files:
249 \begin{description}
250 \item[\path{biblatex-apa.tex}] This document.
251 \item[\path{biblatex-apa-test.tex}]\footnote{\path{biblatex-apa-test.pdf}
252 is also provided and is the typeset version of this \latex source
253 file.} This document typesets every useful example from
254 \apa{8--10}. The examples in it aim to look as much like the APA
255 manual examples as possible. All citation examples in the document are
256 real examples using a \path{.bib} file.
257 \item[\path{biblatex-apa-test-citations.bib}] This contains the \path{.bib}
258 entries for the citations examples. You won't find anything of interest
259 in this file---it's just used to provide real data for the citation
260 examples.
261 \item[\path{biblatex-apa-test-references.bib}] This contains the
262 \path{.bib} entries for all of the examples in \apa{9--11}. This
263 file is the main documentation for the |biblatex-apa| implementation of
264 the APA References section style. To see how the style deals with a
265 particular example from \apa{9--11}, look it up in here. Every
266 example is marked with the APA example number and has explanatory notes
267 where necessary.
268 \item[\path{apa.cbx}] The |biblatex-apa| citations style. It is
269 decently structured with comments but shouldn't need to be read for
270 normal use.
271 \item[\path{apa.bbx}] The |biblatex-apa| references style. It is
272 decently structured with comments but shouldn't need to be read for
273 normal use.
274 \item[\path{apa.dbx}] The |biblatex-apa| data model additions. This allows
275 users to utilise more natural entry type and field names for certain
276 entries. See comments in the \path{biblatex-apa-test-references.bib}.
277 \item[\path{*.lbx}] The |biblatex-apa| localisation files. These files
278 override some language-specific macros for some fixed strings.
279 \end{description}
280
281 \subsection{Citations}
282
283 \apa{8.11} requires that there should be no parentheses around the year of
284 the citation when the citation itself occurs within parenthesis. This is
285 tricky to completely automate within the remit of a citation style since it
286 requires knowledge of the current typesetting state. So, the new citation
287 command
288
289 \begin{ltxsyntax}
290 \cmditem{nptextcite}[prenote][postnote]{key}<punctuation>
291 \end{ltxsyntax}
292
293 \noindent is provided for such situations. It is identical to |\textcite|
294 but does not put parentheses around the year and separates items with
295 commas. See examples using this command in \path{biblatex-apa-test.tex}.
296 There is also a multi-cite version |\nptextcites| that works in the same
297 way as |\textcites|. \textbf{NOTE}: it is not necessary to use |\nptextcite| when
298 using a \texttt{luatex} based engine. The style contains Lua code to manage
299 this situation automatically when using |\textcite|.
300
301 The |\fullcite| command uses ampersands, like the references section
302 and there is also a |\fullcitebib| command which is the same as
303 |\fullcite| but which fakes a mini references section with APA style
304 indentation and so is not intended to be used inline like
305 |\fullcite|. See examples in the test file.
306
307 \subsection{References}\label{refs}
308
309 The references style was based on the Bib\LaTeX\ default
310 |authoryear-comp| style but is heavily modified. If in doubt read the
311 example references |.bib| as it is commented and you can learn a lot from
312 the examples by picking something close to what you need from the APA
313 examples and then looking in this file to see how it was implemented. Some
314 general notes:
315
316 \subsubsection{Publication Status}
317 In addition to the standard |PUBSTATE| field publication state localisation
318 string ``in press'', the |HOWPUBLISHED| field offers also the following
319 localisation strings \apa{10.8}. There is no better way to do this as such
320 states are language dependent and need localisation strings:
321
322 \begin{description}
323 \item[manunpub] Unpublished Manuscript
324 \item[maninprep] Manuscript in preparation
325 \item[mansub] Manuscript submitted for publication
326 \end{description}
327
328 \subsubsection{Roles}
329 The main role \apa{9.10} is of course specified by the |AUTHOR| entry
330 field. You can attach specialised roles to any name in the |AUTHOR| field as
331 required by many examples in \apa{10}, using |biber|'s data annotation
332 feature. This is heavily used in the style and allows easy automation of
333 complex examples like those in \apa{10.12}. See the
334 |biblatex-apa-test-references.bib| example file used to generate the main
335 test document. Data annotations can be named and the style requires that
336 you name data annotations for various tasks correctly:
337
338 \begin{description}
339 \item[role] Data annotation to denote a specialised role for a particular
340 name in the |AUTHOR| name list or a specialised role for the entire
341 name list. Multiple roles may be specified for a name/name list.
342 \item[username] Literal data annotation to denote a username for an
343 online service associated with a name in the |AUTHOR| name list.
344 \end{description}
345 %
346 Examples of these data annotations can be found in example documentation
347 and |.bib| file. Data annotations are generally used when particular names
348 in a name list require annotating with a specialized role.
349
350 Some roles:
351
352 \begin{itemize}
353 \item Editor(s)
354 \item Translator(s)
355 \item Narrator(s)
356 \end{itemize}
357 %
358 are very common and often occur in addition to the |AUTHOR| name list and
359 so are usually specified by their own entry field. When the specialized
360 role attaches to a complete name list \apa{10.2:26} rather than
361 an individual name in a list \apa{10.12:84}, you have the choice
362 to use data annotations or a dedicated name list. The latter is preferable
363 if an appropriate name list exists (it does for all examples in \apa{10}).
364
365 There are some special cases for secondary name lists with uncommon roles
366 which are handled with the standard |biblatex| |EDITORX| fields and
367 associated |EDITORTYPE| fields \apa{10.5:63}.
368
369 \subsubsection{Article types}
370
371 Since |ARTICLE| entry types are used extensively for academic journals and
372 also newspaper articles, the |ENTRYSUBTYPE| ``nonacademic'' should be specified
373 for articles that are not academic articles in an academic journal. This is
374 because date formatting differs in the style between academic and
375 non-academic articles. This is a more general solution than introducing new
376 entry types which are not supported by other software.
377
378 \subsubsection{Legal Entry Types}
379
380 \apa{11} contains the format guidelines for legal references. This is fully
381 implemented and the |biblatex-apa-test-references.bib| demonstrates which
382 entry types and fields are used to produce the \apa{11} examples. There are
383 some custom entry types and fields used to manage this, as you will see in
384 the |.bib| file. Considerable use is made of localisation strings in legal
385 entries due to the requirements that certain strings change their
386 abbreviation status between citations and references (and even between
387 parenthetical and narrative citations).
388
389 The localisation strings for the U.S. specific elements of this section
390 (most of it) are not provided in other languages as there is not much
391 point. Feel free to copy them from |american-apa.lbx| if you really need
392 to. Localisation strings for all 50 U.S. States are provided to support
393 state constitution references.
394
395 Pay attention to the |JURISDICTION| entries in the example |.bib| which use
396 |biber|'s data annotation feature in order to match the required style
397 elements. The names of the data annotations are not optional and must match
398 the examples.
399
400 \section{Revision history}\label{rev}
401
402 \begin{changelog}
403
404 \begin{release}{9.20}{2025-08-27}
405 \item Russian localisation fix
406 \end{release}
407
408 \begin{release}{9.19}{2025-08-03}
409 \item Added Romanian translation
410 \item Many bug fixes
411 \end{release}
412
413 \begin{release}{9.17}{2023-03-20}
414 \item Fixes for German compresses date ranges.
415 \end{release}
416
417 \begin{release}{9.16}{2022-06-22}
418 \item Added Lua to automate what |\nptextcite| does when using
419 \texttt{luatex} engines.
420 \end{release}
421
422 \begin{release}{9.16}{2022-06-22}
423 \item Minor documentation and bug fixes
424 \item Added Turkish localisation
425 \item Many German localisation enhancements
426 \item Adding support for season year divisions (APA 9.14)
427 \item Corrected support for plural ``et al'' requirement using new biblatex
428 feature
429 \item Implemented citation name sorting requirement using new biblatex feature
430 \end{release}
431
432 \begin{release}{9.15}{2021-12-24}
433 \item Remove (need for) |GROUPAUTHOR| field
434 \item Added Catalan support
435 \item Added Finish support
436 \item Improved Spanish support
437 \item Added external annotation support
438 \item Various comma, formatting fixes
439 \end{release}
440
441 \begin{release}{9.14}{2020-08-28}
442 \item Bugfixes, compat with biblatex 3.15
443 \end{release}
444
445 \begin{release}{9.13}{2020-05-30}
446 \item Fixed Spanish long date format
447 \end{release}
448
449 \begin{release}{9.12}{2020-05-05}
450 \item Fixed INPROCEEDINGS/PROCEEDINGS
451 \end{release}
452
453 \begin{release}{9.11}{2020-05-02}
454 \item Introduced new PRESENTATION type
455 \end{release}
456
457 \begin{release}{9.10}{2020-04-26}
458 \item Bugfixes
459 \end{release}
460
461 \begin{release}{9.9}{2020-04-08}
462 \item More consistency in use of venue vs location and eprint fields
463 \end{release}
464
465 \begin{release}{9.8}{2020-04-06}
466 \item Bugfixes
467 \end{release}
468
469 \begin{release}{9.7}{2020-04-05}
470 \item Bugfixes
471 \end{release}
472
473 \begin{release}{9.6}{2020-02-22}
474 \item Bugfixes
475 \end{release}
476
477 \begin{release}{9.5}{2020-02-01}
478 \item Bugfixes
479 \end{release}
480
481 \begin{release}{9.4}{2019-12-22}
482 \item Bugfixes
483 \end{release}
484
485 \begin{release}{9.3}{2019-12-21}
486 \item Rationalised some entrytype usage
487 \end{release}
488
489 \begin{release}{9.2}{2019-11-29}
490 \item Bug fixes
491 \end{release}
492
493 \begin{release}{9.1}{2019-11-27}
494 \item Bug fixes, internal improvements and implementation of \apa{11}.
495 \end{release}
496
497 \begin{release}{9.0}{2019-11-23}
498 \item First release (of APA 7th edition style)
499 \end{release}
500
501 \end{changelog}
502 \end{document}
503
504 % Local Variables:
505 % TeX-engine: luatex
506 % End: