plk / biblatex-apa Goto Github PK
View Code? Open in Web Editor NEWAPA style for BibLaTeX
APA style for BibLaTeX
Permission is granted to copy, distribute and/or modify this software under the terms of the LaTeX Project Public License, version 1.3c (http://www.latex-project.org/lppl.txt). The current maintainer is Philip Kime (© 2023). This package is a biblatex style for APA (American Psychological Association) style compliant documents typeset in LaTeX. It implements a citation style (apa.cbx) and a references section style (apa.bbx). The styles are loaded just like any other biblatex styles but I wouldn't try to use the citation and references styles separately as they rely on each other, macro-wise, in places. In this document and in the code, the specific APA requirements are referred to by the section and (if appropriate) the example number of the APA Style Guide 7th Edition). You will need to be using csquotes >= 4.3 and biblatex >= 3.4 The biber backend for biblatex >= 2.5 is also required. This style will not work correctly if using bibtex as the backend for biblatex. If you want to take advantage of the biblatex \DeclareQuotePunctuation facility to enforce the APA required "American punctuation", you should use the babel package with the "american" option (see biblatex manual section |3.9.1|). You can of course use other languages but in such cases, to adhere to APA "American" punctuation rules (following commas moved inside closing quotes etc.), then you should set up \DeclareQuotePunctuation yourself as per section 4.7.5 of the biblatex manual. You can also use this with apa.cls version 1.3.4 or greater by using the "noapacite" class option to that class package (which prevents it from trying to use plain bibtex with the apacite package). Please refer first to biblatex-apa.pdf for the main documentation.
Hello,
thanks for providing the apa style in biblatex! Recently I discovered that this style is always printing the journal issue number after the volume number. According to APA v6 this should only be done if the journal is paginated seperately by issue (see page 199 of the manual as well):
So I created some little workaround:
\renewbibmacro*{journal+issuetitle}{%
\usebibmacro{journal}%
\setunit*{\addcomma\addspace}%
\iffieldundef{series}
{}
{\newunit
\printfield{series}
\setunit{\addcomma\space}}%
\printfield{volume}%
\ifboolexpr{ test{\iffieldequalstr{journaltitle}{The Academy of Management Executive}} or
test{\iffieldequalstr{journaltitle}{Another Journal}}}
{\printfield{number}}%
{}%
\setunit{\addspace}\newblock
\usebibmacro{issuename}%
\newunit}
It is only checking for journals that have issues paginated seperately by issue. Before doing a real pull request I wanted to ask what do you think about this extension? I see following issues right now:
journaltitle
is checked and not journal
Thanks!
I am using the most recent version of the biblatex-apa package (from 2015-01-24) and there is an issue with the bibliography for references of the "@online" style. In the bibliography I get author, year, title, accessed date, and URL, but there is no period following the URL. Is there some other bit of information I should be providing in the reference, or is that period just missing?
This MWE featuring protected letters in the title of the reference outputs the letter ‘b’ of ‘beauties’ in lowercase. This shouldn't be the case AFAIK.
I compiled it with:
It seems to me that protection with braces worked as expected with the current versions of pdfTeX and biber as of mid-October 2017.
\documentclass{article}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{vanRaan2004,
author={van Raan, Anthony F. J.},
title="{S}leeping {B}eauties in science",
volume={59},
DOI={10.1023/b:scie.0000018543.82441.f1},
number={3},
journal={Scientometrics},
year={2004},
pages={467--472}
}
\end{filecontents}
\usepackage[style=apa]{biblatex}
\addbibresource{\jobname.bib}
\begin{document}
\cite{vanRaan2004}
\printbibliography
\end{document}
Am I missing something here?
Thank you.
I have the following database entry (from https://inspirehep.net/record/1315584/export/hx):
@article{Agashe:2014kda,
title = {Review of {{Particle Physics}}},
volume = {C38},
doi = {10.1088/1674-1137/38/9/090001},
timestamp = {2016-04-13T16:16:07Z},
journaltitle = {Chin. Phys.},
author = {Olive, K. A. and {others}},
date = {2014},
pages = {090001},
collaboration = {Particle Data Group},
slaccitation = {%%CITATION = CHPHD,C38,090001;%%}
}
when I insert a citation using \cite{Agashe:2014kda}
I would expect to get Olive et al., 2014
but I get Olive, 2014
. Is Olive, 2014
correct or is that a bug?
An example (assuming the bib file is named test.bib) to reproduce the problem:
\documentclass[a4paper,10pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{csquotes}
\usepackage[american]{babel}
\usepackage[style=apa,backend=biber]{biblatex}
\DeclareLanguageMapping{american}{american-apa}
\addbibresource{test.bib}
\begin{document}
\cite{Agashe:2014kda}
\end{document}
When citing articles in special or supplementary issues, for which the biblatex
manual suggests to use the issue
field (implied on p. 20), the issue number appears in the text citation, but not in the references (I expected the reverse outcome).
It works when using the number
field instead, but Zotero BetterBiblatex will not let me export non-numeric issues to the number
field. In any case, given the biblatex
recommendation, the correct field should be issue
.
As per the APA-style blog, articles from supplementary issues should be cited and referenced as any other journal article, although necessarily tagged with the correct issue ("Suppl. 1" below). Hence, in the MWE below, I expect the reference entry to be
Caselli, F. & Coleman II, W. J. (2013). On the Theory of Ethnic Conflict. Journal of the European Economic Association, 11(Suppl. 1).
,
but I get
Caselli, F. & Coleman II, W. J. (2013). On the Theory of Ethnic Conflict. Journal of the European Economic Association, 11.
,
and I expect the citation
(Caselli & Coleman II, 2013)
,
but I get
Caselli & Coleman II, 2013, Suppl. 1
Compiled with XeLaTeX, biblatex-apa 7.5, biblatex 3.9, biber 2.9
\documentclass{article}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{Caselli2013,
title = {On the {{Theory}} of {{Ethnic Conflict}}},
volume = {11},
doi = {10.1111/j.1542-4774.2012.01103.x},
issue = {Suppl. 1},
journaltitle = {Journal of the European Economic Association},
author = {Caselli, Francesco and Coleman II, Wilbur John},
date = {2013},
}
\end{filecontents}
% Setup that I use, although not all options necessary here
\usepackage[
backend=biber,
apamaxprtauth=30,
style=apa,
natbib=true,
doi=false,
eprint=false,
labeldate=year]{biblatex}
\addbibresource{\jobname.bib}
\begin{document}
\citep{Caselli2013}
\printbibliography
\end{document}
The english-apa.lbx uses \DefineBibliographyExtras
instead of \DeclareBibliographyExtras
. As the first is an "only preamble" command this leads to errors if the files are loaded after \begin{document}
.
For an example see this question:
If there are more than 7 editors, there is no space after the ellipsis. There is no example in "Publication
Manual of the American Psychological Association" (Sixth Edition, 2010) though. If there are more than 7 autors, there is indeed a space after the ellipsis. Information on editors should be treated like information on authors. Note the following MWE:
\begin{filecontents*}{\jobname.bib}
@INCOLLECTION{Reimann2005,
author = {Reimann, G.},
title = {Rechtliche Rahmenbedingungen},
booktitle = {Grundwissen für die berufsbezogene Eignungsbeurteilung nach DIN 33430},
publisher = {Pabst},
date = {2005},
editor = {Westhoff, K. and Hellfritsch, L. J. and Hornke, L. F. and Kubinger, K. D. and Lang, F. and
Moosbrugger, H. and Püschel, A. and Reimann, G.},
pages = {17-24},
location= {Lengerich},
edition = {2},
}
\end{filecontents*}
\listfiles
\documentclass{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\usepackage[
style=apa,
]{biblatex}
\addbibresource{\jobname.bib}
\begin{document}
\cite{Reimann2005}
\printbibliography
\end{document}
see also (in german): https://www.texwelt.de/wissen/fragen/24005/leerzeichen-nach-auslassungspunkten
See https://tex.stackexchange.com/q/329859/2388.
I can reproduce the problem in miktex which has already biblatex 3.5 / biber 2.6.
The code for reviews and peer commentaries needs some fixing.
% Note how this is handled by the biblatex/biber "related entries" functionality
% We have included the year in the reviewed item for consistency, as per 7.06:46
% The comma after the reviewed title is ommited for consistency, as per 7.06:48
Including the year is fine. But ommiting the comma for consistency turns things upside down. The model notation on p. 208 is:
... [Review of the book Title of book, by A. A. Author]. ...
Also all the examples except for 48, that is 45 to 47, have the comma. Thus, for consistency the comma should be kept and added in 48.
Wolf, K. S. (2005). The future for Deaf individuals is not that bleak [Peer commentary on the paper "Decrease of Deaf potential in a mainstreamed environment" by K. S. Wolf). Retrieved from http://www.personalityresearch.org/papers/hall.html#wolf
However, looking up that website, the original paper the comment is on is by W. C. Hall. Here is a fix for biblatex-apa-test-references.bib
@ARTICLE{deaf,
AUTHOR = {W. C. Hall},
TITLE = {``{D}ecrease of {D}eaf potential in a mainstreamed environment''},
JOURNALTITLE = {Some Journal},
VOLUME = {2},
NUMBER = {1},
PAGES = {1--10},
DATE = {2003},
}
I don't agree. "produced by" is not redundant because it has a distinguishing function. For example, "BioShock" in example 47 is produced by 2K Games, whereas the games' authors are Ken Levine, Scott Sinclair and Paul Hellquist. Possibly, this can be added. The entry "apavid2" already uses the field "producer", the entry "bioshock" uses "author".
I am not sure whether this is a biblatex-apa or a csquotes issue. Anyway, it you use \enquote*
(only the starred version) in an entry title, LaTeX bails out with an error:
! Argument of \csq@qclose@ii has an extra }.
<inserted text>
\par
l.26
I've run across a `}' that doesn't seem to match anything.
For example, `\def\a#1{...}' and `\a}' would produce
this error. If you simply proceed now, the `\par' that
I've just inserted will cause me to report a runaway
argument that might be the root of the problem. But if
your `}' was spurious, just type `2' and it will go away.
Runaway argument?
! Paragraph ended before \csq@qclose@ii was complete.
<to be read again>
\par
l.26
I suspect you've forgotten a `}', causing me to apply this
control sequence to too much text. How can we recover?
My plan is to forget the whole thing and hope for the best.
! Missing } inserted
Minimal example:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{csquotes}
\usepackage{filecontents}
\begin{filecontents}{enquoting.bib}
@article{test,
title = {\enquote*{Enquoted Title}},
journal = {A Journal},
author = {John Doe},
year = {2017},
pages = {1--116},
}
\end{filecontents}
\usepackage[english]{babel}
\usepackage[style=apa]{biblatex}
\DeclareLanguageMapping{english}{english-apa}
\addbibresource{enquoting.bib}
\begin{document}
\cite{test}
\printbibliography
\end{document}
When citing multiple authors using \textcites
or \parencites
ther is a space too much at the end or the beginning of a line, when the line breaks between two citations.
I tested this using this code:
\documentclass[a4paper]{article}
\usepackage{filecontents}
\begin{filecontents}{bibliography.bib}
% (APA 7.01 Example 1)
% Note that the URL is suppressed if there is a DOI
@ARTICLE{7.01:1,
AUTHOR = {K. L. Herbst-Damm and J. A. Kulik},
TITLE = {Volunteer Support, Marital Status, and the Survival Times of Terminally Ill Patients},
JOURNALTITLE = {Health Psychology},
VOLUME = {24},
PAGES = {225--229},
DATE = {2005},
DOI = {10.1037/0278-6133.24.2.225},
URL = {http://some.url}
}
% (APA 7.01 Example 2)
@ARTICLE{7.01:2,
AUTHOR = {D. G. Gilbert and J. F. McClernon and N. E. Rabinovich and C. Sugai and L. C. Plath and G. Asgaard and D. Dickinson and N. Botros},
TITLE = {Effects of Quitting Smoking and {EEG} Activation and Attention Last for More Than 31 Days and are More Severe With Stress, Dependence, {DRD2 A1} Allele, and Depressive Traits},
JOURNALTITLE = {Nicotine and Tobacco Research},
VOLUME = {6},
PAGES = {249--267},
DATE = {2004},
DOI = {10.1080/14622200410001676305}
}
% (APA 7.01 Example 3)
@ARTICLE{7.01:3a,
AUTHOR = {T. J. Sillick and N. S. Schutte},
TITLE = {Emotional Intelligence and Self-esteem Mediate Between Perceived Early Parental Love and Adult Happiness},
JOURNALTITLE = {E-Journal of Applied Psychology},
VOLUME = {2},
NUMBER = {2},
PAGES = {38--48},
DATE = {2006},
URL = {http://ojs.lib.swin.edu.au/index.php/ejap}
}
\end{filecontents}
\usepackage{polyglossia}
\setmainlanguage{english}
\usepackage[backend=biber,style=apa]{biblatex}
\bibliography{bibliography.bib}
\usepackage{showframe}
\begin{document}
\hspace{3.5cm}\parencites{7.01:1}{7.01:2}{7.01:3a}
\hspace{3.7cm}\parencites{7.01:1}{7.01:2}{7.01:3a}
\hspace{3.0cm}\textcites{7.01:1}{7.01:2}{7.01:3a}
\hspace{3.3cm}\textcites{7.01:1}{7.01:2}{7.01:3a}
\end{document}
Consider
\documentclass[paper=a4]{article}
\usepackage[american]{babel}
\usepackage{csquotes}
\usepackage[style=apa]{biblatex}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@ARTICLE{ao1,
AUTHOR = {Boker, S. and Neale, M. and Maes, H. and Wilde, M. and
Spiegel, M. and Brick, T. and Spies, J. and Estabrook,
R. and Kenny, S. and Bates, T. and others},
TITLE = {Open{M}x: {A}n open source extended structural
equation modeling framework},
JOURNAL = {Psychometrika},
VOLUME = {76},
NUMBER = {2},
PAGES = {306--317},
DATE = {2011}
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\cite{ao1}
\printbibliography
\end{document}
gives
Brick, T., … Bates, T.
for me with biblatex
3.10.
reference.pdf
has
Brick, T., …, Bates, T.
at that point.
Note that with pdfLaTeX the undesired behaviour was present even before 3.10. This is due to the harmonisation of the ellipsis in plk/biblatex@5de1c77 following plk/biblatex#514.
PS: Should 'United States' and 'United Kingdom' not be protected against case changes in the .bib
files?
I found several typos in the mentioned .bibs, which I have corrected in accordance with the APA Manual. Typos and corrections are:
6.14:
SUBTITLE = {Networks, Markets, and regulation in Los Angeles}, ->
SUBTITLE = {Networks, Markets, and regulation in {L}os {A}ngeles},
7.01:5:
JOURNALTITLE = {Knowledge Management Research and Practice}, ->
JOURNALTITLE = {Knowledge Management Research \& Practice},
7.01:12a and 12c:
JOURNALTITLE = {Psychology, Public Policy and Law}, ->
JOURNALTITLE = {Psychology, Public Policy, and Law},
7.01:12b:
Missing doi, which is there in APA Manual: DOI = {10.1037/0012-1649.42.3.391}
7.02:18:
TITLE = {Computer Addiction? A Study of Computer Dependency}, ->
TITLE = {Computer Addiction? {A} Study of Computer Dependency},
7.03:31:
AUTHOR = {{U.S. Department of Health and Human Services, National Institute of Mental Health, National Heart, Lung and Blood Institute}}, ->
AUTHOR = {{U.S. Department of Health and Human Services, National Institutes of Health, National Heart, Lung and Blood Institute}},
7.03:33:
URLDESCRIPTION = {Poverty Alleviation website}, ->
URLDESCRIPTION = {Research on Poverty Alleviation website},
7.04:36:
AUTHOR = {J. Muelbauer}, ->
AUTHOR = {J. Muellbauer},
7.04:39:
MAINTITLE = {Lecture Notes in Computer Science}, ->
MAINTITLE = {Lecture {N}otes in {C}omputer {S}cience},
BOOKTITLE = {Advanced Concepts for Intelligent Vision Systems}, ->
BOOKTITLE = {Advanced {C}oncepts for {I}ntelligent {V}ision {S}ystems},
7.05:42:
TITLE = {{MOOSE} Crossing}, ->
TITLE = {{MOOSE Crossing}},
bioshock as part of 7.06:47:
TITLE = {BioShock}, ->
TITLE = {Bio{S}hock},
7.07:50:
ENTRYSUBTYPE = {Audio Podcast}, ->
ENTRYSUBTYPE = {Audio podcast},
7.07:52:
AUTHOR = {{lang}, {k.} {d.}}, ->
AUTHOR = {{lang}, {k.}{d.}},
7.09:60:
ENTRYSUBTYPE = {Auditory Response Latencies in Rat Auditory Cortex}, ->
ENTRYSUBTYPE = {Auditory response latencies in rat auditory cortex},
7.10:64:
DATE = {1935-08-15}, ->
DATE = {1953-08-15},
7.10:68:
HOWPUBLISHED = {David Chakow Papers (M1360)}, ->
HOWPUBLISHED = {David Shakow Papers (M1360)},
7.10:69:
ENTRYSUBTYPE = {Tape Recording}, ->
ENTRYSUBTYPE = {Tape recording},
7.10:72:
HOWPUBLISHED = {Cambridge, MA: Author. A. A. Roback Papers (HUGFP 104.50, Box2, Folder ``Miscellaneous Psychological Materials'')}, ->
HOWPUBLISHED = {Cambridge, MA: Author. A. A. Roback Papers (HUGFP 104.50, Box 2, Folder ``Miscellaneous Psychological Materials'')},
The corrected .bibs are attached.
I'm using TeXLive 2018 (updated to the latest packages) with biblatex-apa
, and I'm trying to reference a journal article reprint found in a book chapter. The best output I can get is:
Wertheimer, M. (1935). Laws of organization in perceptual forms. In W. D. Ellis (Ed. & Trans.), A source book of Gestalt psychology (pp. 71–88). London, England: Routledge & Kegan Paul. (Reprinted from Untersuchungen zur lehre von Gestalt, 301–350, by M. Wertheimer)
For some reason the "Reprinted from" part is ignoring the reprint reference's date, journaltitle, and volume. Here's the bib entry for the primary source:
@InBook{Wertheimer1935,
author = {Max Wertheimer},
title = {Laws of Organization in Perceptual Forms},
booktitle = {A source book of {Gestalt} psychology},
date = {1935},
editor = {Willis D. Ellis},
translator = {Willis D. Ellis},
publisher = {Routledge \& Kegan Paul},
location = {London, England},
pages = {71--88},
related = {wgestalt},
relatedtype = {reprintfrom},
}
and the reprint entry:
@Article{wgestalt,
author = {Max Wertheimer},
title = {Untersuchungen zur Lehre von {Gestalt}},
journaltitle = {Psychologische Forschung},
date = {1923},
volume = {4},
pages = {301--350},
}
In ngerman-apa.lbx
the bibstring for nodate
is not defined; keeping in line with biblatex
's german.lbx
one would probably want (I added a missing space)
nodate = {{ohne\space Datum}{{}o\adddot\addabbrvspace D\adddot}},
(this translates to "without/no date") or even ("no year")
nodate = {{ohne\space Jahr}{{}o\adddot\addabbrvspace J\adddot}},
Using this together with ngerman-apa.lbx
though, one will find that in the bibliography the D in "o. D." is converted to lowercase.
This seems to be rooted in \mkbibdateapalongmdy
and friends using \biblcstring
when calling bibstrings, changing it to \bibstring
indeed solves the problem.
One might add though that this alone would cause the "O" to be capitalised in the parentheses as well (which is undesirable as far as I can see) if there was not an empty group before it in the bibstring. One could probably also get rid of this problem by injecting a \midsentence
somewhere.
The following example is unable to access a string defined with \NewBibliographyStrings
for redefinition.
Feature, or bug?
For further reference: TeX.SX chat transcript
\documentclass{article}
\usepackage[american]{babel}
\usepackage[style=apa]{biblatex}
\DeclareLanguageMapping{american}{american-apa}
%\NewBibliographyString{retrieved}
%defined in american-apa.lbx and hence loaded at this point
%shoudln't that be available for definition below?
\DefineBibliographyStrings{american}{
retrieved={some string}
}
\addbibresource{biblatex-examples.bib}
\begin{document}
\fullcite{ctan}
\end{document}
MWE, using slighty modified examples from biblatex-apa-test-references.bib:
\documentclass{article}
\usepackage[american]{babel}
\usepackage[backend=biber, style=apa]{biblatex}
\DeclareLanguageMapping{american}{american-apa}
\usepackage{fontspec}
\setmainfont{Linux Libertine}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@REVIEW{7.06:45-mod,
AUTHOR = {B. R. Schatz},
TITLE = {Learning By Text or Context?},
REVIEWTEXT = {the book},
RELATED = {brdu,7.02:18},
RELATEDTYPE = {reviewof},
RELATEDSTRING = {Review of the books},
JOURNALTITLE = {Science},
VOLUME = {290},
PAGES = {1304},
DATE = {2000-11-17},
DOI = {10.1126/science.290.5495.1304},
}
@BOOK{brdu,
AUTHOR = {John Seely Brown and Paul Duguid},
TITLE = {The Social Life of Information},
DATE = {2000},
PUBLISHER = {Harvard Business School Press}
}
@BOOK{7.02:18,
EDITOR = {M. A. Shotton},
TITLE = {Computer Addiction? A Study of Computer Dependency},
LOCATION = {London, England},
PUBLISHER = {Taylor \& Francis},
DATE = {1989}
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\cite{7.06:45-mod}
\printbibliography
\end{document}
Actual output:
Expected output:
… [Review of the books The social life of information by J. S. Brown & P. Duguid, 2000 and Computer addiction? a study of computer dependency, edited by M. A. Shotton, 1989] …
Hello,
I encountered a problem using biblatex-apa. The uri field is not set in verbatim mode, at least in conjunction with lualatex and polyglossia set to german.
Minimal working example:
\documentclass{scrartcl}
\usepackage{polyglossia}
\usepackage{fontspec}
\usepackage{microtype}
\usepackage{hyperref}
\usepackage{csquotes}
\usepackage[backend=biber,style=apa]{biblatex}
% Polyglossia language options
\setdefaultlanguage{german}
% Biblatex options
\DeclareLanguageMapping{german}{german-apa}
\addbibresource{quellen.bib}
\nocite{*}
\begin{filecontents}{quellen.bib}
@Manual{R-base,
title = {R: A Language and Environment for Statistical Computing},
author = {{ R Development Core Team}},
organization = {R Foundation for Statistical Computing},
address = {Vienna, Austria},
year = {2008},
isbn = {3-900051-07-0},
url = {http://www.R-project.org},
}
\end{filecontents}
\begin{document}
\printbibliography
\end{document}
Thanks for your help!
Consider
\documentclass[paper=a4]{article}
\usepackage[american]{babel}
\usepackage{csquotes}
\usepackage[style=apa]{biblatex}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
% (APA 7.09 Example 58)
@UNPUBLISHED{7.09:58,
AUTHOR = {E. Blackwell and P. J. Conrod},
TITLE = {A Five-Dimensional Measure of Drinking Motives},
HOWPUBLISHED = {Unpublished manuscript},
INSTITUTION = {Department of Psychology, University of British Columbia},
LOCATION = {Vancouver, Canada},
DATE = {2003},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\cite{7.09:58}
\printbibliography
\end{document}
gives
... University of British Columbia. Vancouver, Canada.
with biblatex-apa 7.6, biblatex 3.11 and biber 2.11. But according to the APA Manual it should give
... University of British Columbia, Vancouver, Canada.
7.04.36 is a similar case. The APA Manual reads
... Symposium conducted at the meeting of the Federal Reserve Bank of Kansas City, Jackson Hole, WY.
However, the biblatex-apa-test-references.bib has a comment
Note this renders with a period before the LOCATION which is more consistent with other entries
I'm not convinced, it think it may actually be the other way round. The pattern seems to be
place/building/event, city, country.
Compare also to 7.05:44 and 7.10:65-70. Only 7.10:69 has a period. That is, however, in the way
Project, organization. Archive, city, country.
Thus, there is still a comma and not a period before city.
So in need of correction may be the code handling 7.04:36, 7.09:58, and 7.10:70.
Hi,
there seems to be a problem with the handling of multiple dates for one entry.
biblatex-apa v. 7.2:
When I use \textcite{Engelbart1984}
in my text, I get: ...
...solutions in Engelbart (1984–March1).
And in the reference list:
Engelbart, D. C. (1984, February 27–March1). Authorship provisions in augment.
Note the missing space after March.
I also have an entry with a single year-month-day date field, there the space after month is correctly set.
The biblatex date is right according to the manual:
@InProceedings{Engelbart1984,
author = {Douglas C. Engelbart},
title = {Authorship Provisions in Augment},
booktitle = {COMPCON'84, Digest of Papers, Twenty-Eighth IEEE Computer Society International Conference},
date = {1984-02-27/1984-03-01},
publisher = {IEEE Computer Society},
location = {San Francisco, California, USA,},
pages = {465--472},
}
Following MWE fails with "Missing number, treated as zero." for \TeX
in the title
field. The entry is modified from biblatex-examples.bib
.
\documentclass[american]{article}
\usepackage{babel}
\usepackage[style=apa
]{biblatex}
\DeclareLanguageMapping{american}{american-apa}
%\addbibresource{biblatex-examples.bib}
\addbibresource{\jobname.bib}
%\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@book{knuth:ct:b,
author = {Knuth,\TeX Donald E.},
title = {\TeX: The Program},
date = 1986,
}
\end{filecontents}
\begin{document}
\cite{knuth:ct:b}
\printbibliography
\end{document}
The workaround is pretty simple, enclose in an extra pair of braces, or \protect
the macro.
There is no problem with numeric
, it seems to be specific to apa
. Is that on purpose and the user should take care of correct input?
PS: the macro in the author field does not throw an error, but the output is quite unexpected :-)
As you are very likely aware, biblatex-apa does not accommodate for in-text citation of personal communications (APA manual section 6.20). I have come across two possible solutions, but they do not integrate well into the biblatex-apa style specifically. So my actual workaround has been manually typing in these types of citations.
If a personal communication is added to a list of other in-text citations, there is no way to allow for automated alphabetical sorting, especially if the author's last name is between the letters of two other citations.
I am already using misc type in my bib for citing statutes.
Are there plans to include the personal communication as part of biblatex-apa?
I have added/replaced 5 bibliography strings in ngerman-apa.lbx, following the latest manual from the DGP 4th ed. from 2016.
[...]
on = {{auf}{auf}}, % <== CHANGED (not according to the DGP manual but German grammar)
retrieved = {{verfügbar}{verfügbar}}, % <== CHANGED
inpress = {{im Druck}{im Druck}}, % <== NEW, probably not needed because the identical string can also be found in biblatex's german.lbx
nodate = {{nicht\space datiert}{{}n\adddot\addabthinspace d\adddot}}, % <== NEW
abstract = {{Abstract}{Abstract}}, % <== NEW, used according to the first example on p. 124. On p. 129 Zusammenfassung and Auszug is alternatively suggested, but let's keep it simple.
[...]
These work fine when placing the ngerman-apa.lbx in my texmf directory, see the following MWE:
\documentclass[paper=a4]{article}
\usepackage[ngerman]{babel}
\usepackage{csquotes}
\usepackage[style=apa]{biblatex}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
% (APA 7.01 Example 6)
@ARTICLE{7.01:6,
AUTHOR = {R. Briscoe},
PUBSTATE = {inpress},
TITLE = {Egocentric Spatial Representation in Action and Perception},
JOURNALTITLE = {Philosophy and Phenomenological Research},
URL = {http://cogprints.org/5780/1/ECSRAP.F07.pdf},
}
% Note use of ABSTRACTURL field value to specify that the URL is for the abstract
% and so the entry gets "Abstract retrieved from" instead of just "retrieved from"
@ARTICLE{7.01:16b,
AUTHOR = {S. R. Lassen and M. M. Steele and W. Sailor},
TITLE = {The Relationship of School-wide Positive Behavour Support to Academic Achievement in an Urban Middle School},
JOURNALTITLE = {Psychology in the Schools},
VOLUME = {43},
PAGES = {701--712},
DATE = {2006},
ABSTRACTURL = {http://www.interscience.wiley.com},
}
@ARTICLE{7.01:17,
AUTHOR = {L. R. Hare and K. O'Neill},
TITLE = {Effectiveness and Efficiency in Small Academic Peer Groups},
JOURNALTITLE = {Small Group Research},
VOLUME = {31},
PAGES = {24--53},
DATE = {2000},
ABSTRACTLOC = {{S}ociological {A}bstracts database. (Accession No. 200010185)},
}
% (APA 7.02 Example 20)
@BOOK{7.02:20,
AUTHOR = {E. O'Keefe},
TITLE = {Egoism \& the Crisis in {W}estern Values},
URL = {http://www.onlineoriginals.com/showitem.asp?itemID=135},
}
% (APA 7.03 Example 33)
% Use URLDESCRIPTION to introduce website address; defaults to just "Retreived from"
% if not present
@REPORT{7.03:33,
AUTHOR = {S. S. A. Kessy and F. M. Urio},
TITLE = {The Contribution of Microfinance Institutions to Poverty Reduction in {T}anzania},
TYPE = {Research Report},
NUMBER = {06.3},
DATE = {2006},
URLDESCRIPTION = {Research on Poverty Alleviation website},
URL = {http://www.repoa.or.tz/documents_storage/Publications/Reports/06.3_Kessey_and_Urio.pdf},
}
% (APA 7.07 Example 52)
% Note use of SORTKEY to make sorting ignore the lower case AUTHOR
@MUSIC{7.07:52,
SORTKEY = {Lang, K. D.},
ENTRYSUBTYPE = {{CD}},
AUTHOR = {{lang}, {k.}{d.}},
TITLE = {Shadow and the Frame},
MAINTITLE = {Watershed},
MAINTITLEADDON = {{CD}},
LOCATION = {New York, NY},
PUBLISHER = {Nonesuch Records},
DATE = {2008},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\cite{7.01:6} for im Druck and Verfügbar unter
\cite{7.01:16b} for Abstract
\cite{7.01:17} for Verfügbar über ... Datenbank
\cite{7.02:20} for n. d.
\cite{7.03:33} for Verfügbar auf ... Website
\cite{7.07:52} for Auf
\printbibliography
\end{document}
There are 4 issues remaining:
(im Druck).
(preposition in lowercase), but it gets printed as
(Im Druck).
Verfügbar unter ..., e.g., Sociological-Abstracts-Datenbank:
However, the German term for database needs a different preposition:
Verfügbar über ...
See also 7.09:62.
Verfügbar unter ..., e.g., Research-on-Poverty-Alleviation-Website:
However, the German term "Website" needs a different preposition:
Verfügbar über ...
[Edit: Changed from "auf" to "über" as this works as well and is also compatible with "Abgerufen" in case someone prefers a direct translation of "Retrieved"] See also 7.03:34.
lang, k. d.
is missing. What is going on?
Where are the bibstrings typechair
and typechairs
supposed to be used? The German translations are definitely wrong ("Konferenzstuhl" literally translates "chair" as a seating furniture), but I'd need the context in order to decide on an appropriate translation (I suppose it should be something such as "Konferenzleitung" or "Konferenzmoderation", referring to a person who chairs a conference or session).
I am also not sure whether producer
, execproducer
, director
and writer
are really translated properly. Again, this depends on the context where they are supposed to be used.
The latest manual from the DGP 4th ed. from 2016 (and also the former 3rd ed.) handles entries of foreign language publications a little different than the APA manual. Not only the year of the original publication is given (as in APA 7.02:21) but also title and/or author when these are not identical with the translated edition. Two examples are given, on p. 119 and p. 155:
Lindsay, P. H. & Norman, D. A. (1981). Einführung in die Psychologie (H.-D. Dumpert, F. Schmidt, M. Schuster & M. Steeger, Übers.). Berlin: Springer. (Original erschienen 1977: Human information processing)
Zimbardo, P. G. & Gerrig, R. J. (2014). Psychologie (20. Aufl.). München: Pearson Studium. (Original erschienen 2002 als Gerrig, R. J. & Zimbardo, P. G., Psychology and life)
I already attempted to rebuild these some time ago, see here: https://tex.stackexchange.com/questions/78247/german-apa-reference-origyear-field-is-incomplete-needs-reprinttitle
Here is a MWE:
\documentclass[paper=a4]{article}
\usepackage[american,ngerman]{babel}
\usepackage{csquotes}
\usepackage[style=apa]{biblatex}
\DeclareFieldFormat{origyear}{%
\mkbibparens{\bibcpstring{origyear}~\thefield{origyear}%
\ifnameundef{origauthor}
{}
{\addspace als \printnames[author]{origauthor}}%
\iffieldundef{reprinttitle}
{}%
{\ifnameundef{origauthor}
{\setunit{\addcolon\addspace}}
{\setunit{\addcomma\addspace}}%
\printfield{reprinttitle}}}%
}
\renewbibmacro*{origyear}{%
\ifthenelse{
\NOT\iffieldsequal{labelyear}{origdateyear}
\OR
\NOT\iffieldsequal{title}{reprinttitle}
\OR
\NOT\ifnamesequal{author}{origauthor}
}
{\printfield{origyear}}
{}%
}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@BOOK{testentry1,
author = {P. H. Lindsay and D. A. Norman},
translator = {H.-D. Dumpert and F. Schmidt and M. Schuster and M. Steeger},
title = {Introduction to psychology},
subtitle = {Test subtitle},
origtitle = {Einführung in die Psychologie},
location = {Berlin},
publisher = {Springer},
date = {1981},
origdate = {1977},
origauthor = {P. H. Lindsay and D. A. Norman},
titleaddon = {Test title addon},
reprinttitle = {Human information processing},
}
@BOOK{testentry2,
author = {P. G. Zimbardo and R. J. Gerrig},
title = {Psychology},
subtitle = {Test subtitle},
origtitle = {Psychologie},
edition = {20},
location = {München},
publisher = {Pearson Studium},
date = {2014},
origdate = {2002},
origauthor = {R. J. Gerrig and P. G. Zimbardo},
titleaddon = {Test title addon},
reprinttitle = {Psychology and life},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\cite{testentry1}
\cite{testentry2}
\printbibliography
\end{document}
This doesn't work entirely anymore. Testentry 1 works fine, but testentry2 gives
... (Original erschienen 2002: Psychology and life)
when it should give
... (Original erschienen 2002 als Gerrig, R. J. & Zimbardo, P. G., Psychology and life)
Section 4.1 of the manual seems to imply that sortcites=false
, but this is no longer true. The manual currently states:
Please note that APA style does not have multiple citation lists sorted—they appear in the order cited. Since
\fullcitebib
is a citation command, the citations will not be sorted which might appear odd since this «citation» style looks like a references section excerpt. There is no way around this since thesortcites
biblatex option is a package-level option. If you want to customise such a fake references section «citation», you should probably be using\printbibliography
with a filter.
According to the style guide:
When referring to books, chapters, articles, or Web pages, capitalize only the first letter of the first word of a title and subtitle, the first word after a colon or a dash in the title, and proper nouns. Do not capitalize the first letter of the second word in a hyphenated compound word.
https://owl.english.purdue.edu/owl/resource/560/05/
http://blog.apastyle.org/apastyle/2011/06/capitalization-after-colons.html
For a fix, I found a reference to the IEEE biblatex style, which has the same guidance.
I'm able of producing a bibliography with biblatex and the apa style, but without getting the warning below.
Package biblatex Warning: File 'portuges-apa.lbx' not found!
Ignoring mapping 'portuges' -> 'portuges-apa'
I think that this problem exists because biblatex-apa
is correctly naming its file to portuguese-apa.lbx
but because of an ancient orthographic error, from the 80s, the babel and now polyglossia packages are calling the portuges
files.
Not sure if this is an upstream bug (I had to do the same in one of my own style files), but with biblatex 3.5, you need to add \field{year}
to the \DeclareLabeldate
definition in biblatex-apa
in order to get a proper year (rather than "nodate").
\DeclareLabeldate{%
\field{pubstate}
\field{date}
\field{year}% <-- added this one
\literal{nodate}
}
Many users assume that either bibtex or biber can be used as the backend with biblatex. However, bibtex is not anymore supported with the apa style. When a user tries backend=bibtex
, the error message is
! Undefined control sequence.
l.231 \DeclareStyleSourcemap
{
which is very opaque. Eventually, I found the relevant piece of information in the biblatex-apa documentation but it cost me a fair bit of time.
It think it would he helpful if biblatex-apa could emit a warning message when the user attempts to use bibtex.
By the way, thank you for biblatex, biblatex-apa, and biber. It's a great pleasure to work with them.
Via https://tex.stackexchange.com/q/417648/35864
Example 7.01:1
should come out as
Herbst-Damm, K. L., & Kulik, J. A. (2005). ...
with biblatex-apa
v7.5 it comes out as
Herbst-Damm, K. L. & Kulik, J. A. (2005). ...
The comma before the "&" is missing. I had this checked with the printed APA manual, and http://blog.apastyle.org/apastyle/2017/03/how-to-create-references-when-words-in-the-title-are-italicized.html also suggests that there should be a comma before the "&" even if there are only two authors.
One cant simply change finalnamedelim
since names in 'given family' order should follow the 'normal' rules for Oxford commas. Cf. 7.02:25
where "M. Eid & R. J. Larsen" without comma is correct.
\documentclass{article}
\usepackage[american]{babel}
\usepackage{csquotes}
\begin{filecontents*}{\jobname.bib}
@ARTICLE{7.01:1,
AUTHOR = {K. L. Herbst-Damm and J. A. Kulik},
TITLE = {Volunteer Support, Marital Status, and the Survival Times of Terminally Ill Patients},
JOURNALTITLE = {Health Psychology},
VOLUME = {24},
PAGES = {225--229},
DATE = {2005},
DOI = {10.1037/0278-6133.24.2.225},
URL = {http://some.url},
}
@INBOOK{7.02:25,
AUTHOR = {D. M. Haybron},
EDITOR = {M. Eid and R. J. Larsen},
TITLE = {Philosophy and the Science of Subjective Well-Being},
BOOKTITLE = {The Science of Subjective Well-Being},
LOCATION = {New York, NY},
PUBLISHER = {Guildford Press},
PAGES = {17-43},
DATE = {2008},
}
\end{filecontents*}
\usepackage[backend=biber,style=apa]{biblatex}
\DeclareLanguageMapping{american}{american-apa}
\addbibresource{\jobname.bib}
\begin{document}
\textcite{7.01:1}
\textcite{7.02:25}
\parencite{7.01:1}
\parencite{7.02:25}
\printbibliography
\end{document}
I have an idea for a fix and could submit a pull request if you like.
The comment in biblatex-apa-test-references.bib on example 7.07:49, that is,
American Psychological Association (Producer). (2000). Responding therapeutically to patient expressions of sexual attraction [DVD]. Retrieved from http://www.apa.org/videos/
reads
We render this with "retrieved from" instead of "available from" as this is arbitrary and ugly to parameterise. Forcing this means we can use a localisable string for "retrieved"
However, I'm not convinced by this argument. Consider you buy access to an online video via http://www.apa.org/videos/ - I think in this case "Retrieved from" would actually be fine. However, in the case of the source cited, it's a DVD. You do not retrieve a DVD from http://www.apa.org/videos/, you order it via this link. It's actually available via http://www.apa.org/videos/. Shouldn't there be the option to have "Available from" for such cases?
Since biblatex
3.5 has arrived on CTAN, are there any plans to release version 7.0 soon?
Version 6.9 will throw errors when run on biblatex
3.5, this has already caused some grievance on TeX.SX style=apa causes bibliography to fail.
Hi,
first of all thanks for the awesome work.
I just updated my MikTex installation and now I have got biber 2.2 with biblatex3.1 and I use TexStudio 2.10.4 on Win 7 x64
The biblatex-apa package is still version 6.7
When I try to compile, I get the following error. I also tried it several times and also cleared auto-generated files in my work dir, but still getting the error.
With biber 1.9 it worked fine. Any help appreciated.
EDIT// Addtional log info:
Use of uninitialized value $name in string eq at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber/SortLists.pm line 77.
Use of uninitialized value $pre in regexp compilation at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber/Internals.pm line 986.
Use of uninitialized value $pre in regexp compilation at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber/Internals.pm line 986.
Use of uninitialized value $pre in regexp compilation at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber/Internals.pm line 986.
Use of uninitialized value $pre in regexp compilation at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber/Internals.pm line 986.
Use of uninitialized value $pre in regexp compilation at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber/Internals.pm line 986.
Use of uninitialized value $pre in regexp compilation at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber/Internals.pm line 986.
Use of uninitialized value $pre in regexp compilation at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber/Internals.pm line 986.
Use of uninitialized value $pre in regexp compilation at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber/Internals.pm line 986.
Use of uninitialized value $pre in regexp compilation at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber/Internals.pm line 986.
Use of uninitialized value $pre in regexp compilation at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber/Internals.pm line 986.
Use of uninitialized value $pre in regexp compilation at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber/Internals.pm line 986.
Use of uninitialized value $pre in regexp compilation at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber/Internals.pm line 986.
Use of uninitialized value $pre in regexp compilation at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber/Internals.pm line 986.
Use of uninitialized value $pre in regexp compilation at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber/Internals.pm line 986.
Use of uninitialized value $pre in regexp compilation at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber/Internals.pm line 986.
Use of uninitialized value $pre in regexp compilation at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber/Internals.pm line 986.
Use of uninitialized value $pre in regexp compilation at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber/Internals.pm line 986.
Use of uninitialized value $pre in regexp compilation at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber/Internals.pm line 986.
Use of uninitialized value $pre in regexp compilation at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber/Internals.pm line 986.
Use of uninitialized value $pre in regexp compilation at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber/Internals.pm line 986.
Use of uninitialized value $pre in regexp compilation at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber/Internals.pm line 986.
Use of uninitialized value $pre in regexp compilation at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber/Internals.pm line 986.
Use of uninitialized value $pre in regexp compilation at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber/Internals.pm line 986.
Use of uninitialized value $pre in regexp compilation at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber/Internals.pm line 986.
Use of uninitialized value $pre in regexp compilation at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber/Internals.pm line 986.
Use of uninitialized value $pre in regexp compilation at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber/Internals.pm line 986.
Use of uninitialized value $pre in regexp compilation at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber/Internals.pm line 986.
Use of uninitialized value $pre in regexp compilation at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber/Internals.pm line 986.
Use of uninitialized value $pre in regexp compilation at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber/Internals.pm line 986.
Use of uninitialized value $pre in regexp compilation at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber/Internals.pm line 986.
Use of uninitialized value $pre in regexp compilation at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber/Internals.pm line 986.
Use of uninitialized value $pre in regexp compilation at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber/Internals.pm line 986.
Use of uninitialized value $pre in regexp compilation at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber/Internals.pm line 986.
Use of uninitialized value $pre in regexp compilation at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber/Internals.pm line 986.
Use of uninitialized value $pre in regexp compilation at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber/Internals.pm line 986.
Use of uninitialized value $pre in regexp compilation at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber/Internals.pm line 986.
Use of uninitialized value $pre in regexp compilation at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber/Internals.pm line 986.
Use of uninitialized value $pre in regexp compilation at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber/Internals.pm line 986.
Use of uninitialized value $pre in regexp compilation at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber/Internals.pm line 986.
Use of uninitialized value $pre in regexp compilation at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber/Internals.pm line 986.
Use of uninitialized value $pre in regexp compilation at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber/Internals.pm line 986.
Use of uninitialized value $pre in regexp compilation at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber/Internals.pm line 986.
Use of uninitialized value $pre in regexp compilation at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber/Internals.pm line 986.
Use of uninitialized value $pre in regexp compilation at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber/Internals.pm line 986.
Use of uninitialized value $thislocale in concatenation (.) or string at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber.pm line 2844.
Use of uninitialized value $thislocale in concatenation (.) or string at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber.pm line 2931.
Use of uninitialized value $thislocale in concatenation (.) or string at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber.pm line 2936.
Use of uninitialized value $lname in concatenation (.) or string at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber.pm line 1967.
Use of uninitialized value $lssn in concatenation (.) or string at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber.pm line 1967. Use of uninitialized value $lssn in concatenation (.) or string at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber.pm line 1981.
Use of uninitialized value $lssn in concatenation (.) or string at X:\TEMP\par-4368726973746f70682053636877656e746b6572\cache-c35805b2066c48f7e049902e2c35ce42442bae88\inc\lib/Biber.pm line 1996.
INFO - This is Biber 2.2
INFO - Logfile is 'Bachelorarbeit.blg'
INFO - Reading 'Bachelorarbeit.bcf'
WARN - Warning: Found biblatex control file version 2.6, expected version 2.8
INFO - Found 44 citekeys in bib section 0
INFO - Processing section 0
INFO - Looking for bibtex format file 'Literaturverzeichnis.bib' for section 0
INFO - Decoding LaTeX character macros into UTF-8
INFO - Found BibTeX data source 'Literaturverzeichnis.bib'
INFO - Overriding locale '' defaults 'variable = shifted' with 'variable = non-ignorable'
INFO - Overriding locale '' defaults 'normalization = NFD' with 'normalization = prenormalized'
INFO - Sorting list 'apa' of type 'entry' with scheme 'apa' and locale ''
INFO - No sort tailoring available for locale ''
Setup:
\usepackage[american]{babel}
\usepackage[style=apa,backend=biber]{biblatex}
\DeclareLanguageMapping{american}{american-apa} %Literaturverzeichnis american-apa style
\addbibresource{Literaturverzeichnis.bib} % Literaturverzeichnis
\usepackage[babel,threshold=2]{csquotes}
\MakeOuterQuote{"}
\SetCiteCommand{\autocite}
The url+urldate
bibmacro inserts a hardcoded comma between urldate
and the from
bibstring. This conforms to the English APA guidelines (as in: "retrieved [date], from"), but is not correct in some localisations (at least in German, there should not be a comma: "Zugriff [date] unter").
I suggest to add a macro \urldatecomma
(or somesuch) that can be modified in the lbx.
It would be great if the repository has the same directory structure as biblatex. :)
Consider the following MWE
\documentclass[british]{article}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[backend=biber, style=apa, natbib=true, defernumbers=true]{biblatex}
\DeclareLanguageMapping{british}{british-apa}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@book{OECD2009,
title = {P{ISA} {D}ata {A}nalysis {M}anual: {SPSS}, {S}econd {E}dition},
publisher = {OECD Publishing},
year = {2009},
author = {{Organisation for Economic Co-operation and Development}},
address = {Paris},
shortauthor = {{OECD}},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\addbibresource{biblatex-examples.bib}
\begin{document}
\cite{OECD2009,sigfridsson}
\cite{OECD2009,sigfridsson}
\citereset\citeresetapa
\cite{OECD2009}
\cite{OECD2009}
\end{document}
You will find that in the first block the subsequent citation to the OECD source still triggers the full author (interestingly without the brackets - though that seems intentional with sabrackets
?), while the second block correctly shows the shortauthor
.
This seems to have to do with the placement of cite:post
, if it is moved to the loopcode, every work triggers its use. With
\DeclareCiteCommand{\cite}
{\usebibmacro{cite:init}%
\usebibmacro{prenote}}
{\usebibmacro{citeindex}%
\usebibmacro{cite}%
\usebibmacro{cite:post}}
{}
{\usebibmacro{postnote}}
the citations look as expected.
When using any localisation file other than english-apa.lbx or american-apa.lbx, the entries with no date make a "nodate" bibstring literal appear in the reference list, instead of n.d. or s.f. (latter if using Spanish).
More details to reproduce the issue. I initialize the package as shown in the instructions:
\usepackage[babel]{csquotes}
\usepackage[backend=biber,style=apa, sortlocale=auto]{biblatex}
\DeclareLanguageMapping{spanish}{spanish-apa}
\addbibresource{Bibliography.bib}
And then, in the document I write the usual \printbibliography
to make the reference list appear. Citations inside the text are processed ok (n.d. or s.f. or whatever) but in the reference list you'll see a nodate string which indicates that the thing isn't being processed at all.
I've managed to handle this issue adding to my preamble the following:
\DeclareLabeldate{%
\field{pubstate}
\field{date}
\literal{s.f.} %n.d., o.d. or whatever acronym your language requires...
}
Regards
Consider
\documentclass[paper=a4]{article}
\usepackage[american]{babel}
\usepackage{csquotes}
\usepackage[style=apa]{biblatex}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
% (APA 7.04 Example 39)
@INPROCEEDINGS{7.04:39,
AUTHOR = {I. Katz and K. Gabayan and H. Aghajan},
TITLE = {A Multi-touch Surface Using Multiple Cameras},
EDITOR = {J. Blanc-Talon and W. Philips and D. Popescu and P. Scheunders},
MAINTITLE = {Lecture {N}otes in {C}omputer {S}cience},
VOLUME = {4678},
BOOKTITLE = {Advanced {C}oncepts for {I}ntelligent {V}ision {S}ystems},
PAGES = {97--108},
LOCATION = {Berlin, Germany},
PUBLISHER = {Springer-Verlag},
DATE = {2007},
DOI = {10.1007/978-3-540-74607-2_9}
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\cite{7.04:39}
\printbibliography
\end{document}
gives
... (pp. 97–108). Berlin, Germany: Springer-Verlag. doi:10.1007/978-3-540-74607-2_9
with biblatex-apa 7.6, biblatex 3.11 and biber 2.11. However, according to the APA Manual there shouldn't be a location and publisher mentioned when there is a doi. So this should actually give
... (pp. 97–108). doi:10.1007/978-3-540-74607-2_9
Tested with TeXlive 2018 pretest.
As I have done in the biblatex repo, I would like to submit the slovene-apa.lbx here too.
Consider the following example:
\documentclass[american]{article}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[backend=biber, style=apa, sortcites]{biblatex}
\DeclareLanguageMapping{american}{american-apa}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@Book{standards,
title = {{Standards for Educational and Psychological Testing}},
author = {{American Educational Research Association} and {American Psychological Association} and {National Council on Measurement in Education}},
shortauthor = {{AERA} and {APA} and {NCME}},
publisher = {American Educational Research Association},
address = {Washington, DC},
year = {2014}
}\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\autocite{standards}
\autocite{standards}
\printbibliography
\end{document}
This renders as:
(American Educational Research Association, American Psychological As-
sociation, & National Council on Measurement in Education [AERA et al.],
2014)
(AERA, 2014)
I would have expected
(American Educational Research Association [AERA], American Psychological As-
sociation [APA], & National Council on Measurement in Education [NCME],
2014)
(AERA et al., 2014)
Or at least:
(American Educational Research Association, American Psychological As-
sociation, & National Council on Measurement in Education [AERA et al.],
2014)
(AERA et al., 2014)
I am using
2017/01/06 v7.4 APA biblatex citation style
This issue is motivated by https://stackoverflow.com/questions/48303890/using-short-author-citations-in-bookdown-rmarkdown.
The line in the examples tex file
\apaex{\parencite[as cited in][]{6.17}}
outputs something like
\parencite[ascitedin][]{6.17}
in the the PDF, which is confusing as it is supposed to be the documentation. I originally thought that the ascitedin
was a special token that was translated to as cited in
.
Consider
\documentclass[paper=a4]{article}
\usepackage[american]{babel}
\usepackage{csquotes}
\usepackage[style=apa]{biblatex}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@BOOK{testentry1,
author = {William James},
title = {Psychology},
date = {2014},
origdate = {1920},
url = {https://archive.org/details/00311290R.nlm.nih.gov},
}
@BOOK{testentry2,
author = {William James},
title = {Psychology},
date = {2014},
origdate = {1920},
doi = {10.1000/182},
}
% (APA 7.02 Example 21)
% NOTE is automatically generated from ORIGDATE
@INBOOK{7.02:21,
AUTHOR = {S. Freud},
EDITOR = {J. Strachey},
TRANSLATOR = {J. Strachey},
TITLE = {The Method of Interpreting Dreams},
BOOKTITLE = {The Standard Edition of the Complete Psychological Works of {S}igmund {F}reud},
VOLUME = {4},
PAGES = {96--121},
SUBTITLE = {An Analysis of a Specimen Dream},
DATE = {1953},
ORIGDATE = {1900},
URL = {http://books.google.com/books},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\cite{testentry1}
\cite{testentry2}
\cite{7.02:21}
\printbibliography
\end{document}
Testentry1 is based on APA examples 7.02:19 (Electronic version of print book) and 7.02:21 (Electronic version of republished book). 7.02:21 is actually a reprint of a book published as part of a larger book and thus as a chapter, which is why it is using entry type INBOOK.
INBOOK works fine. Testentry1 and testentry2, however, being entry type BOOK, erroneously have a period after the url and doi, respectively. They give
James, W. (2014a). Psychology. Retrieved from https://archive.org/details/00311290R.nlm.nih.gov. (Original work published 1920)
James, W. (2014b). Psychology. doi:10.1000/182. (Original work published 1920)
when they should give
James, W. (2014a). Psychology. Retrieved from https://archive.org/details/00311290R.nlm.nih.gov (Original work published 1920)
James, W. (2014b). Psychology. doi:10.1000/182 (Original work published 1920)
I haven't checked the other entry types. Surely, there shouldn't be a period after url or doi in any of them when followed by "(Original work ...)".
I guess this is part of very general stuff that has to be done. There is an example for 7.02:24 in the test-file, and the bib item is:
@INBOOK{7.02:24,
AUTHOR = {Strong, Jr., E. K. and R. S. Uhrbrock},
EDITORA = {L. Outhwaite},
EDITORATYPE = {series},
TITLE = {Bibliography in Job Analysis},
BOOKTITLE = {Personnel {R}esearch {S}eries},
BOOKSUBTITLE = {Vol. 1. {J}ob Analysis and the Curriculum},
PAGES = {140--146},
DATE = {1923},
DOI = {10.1037/10762-000}
}
But supporting the full modern biblatex fields (isn't that expected by biblatex-apa?) this should be:
@INBOOK{7.02:24,
AUTHOR = {Strong, Jr., E. K. and R. S. Uhrbrock},
EDITORA = {L. Outhwaite},
EDITORATYPE = {series},
TITLE = {Bibliography in Job Analysis},
BOOKTITLE = {{J}ob Analysis and the Curriculum},
SERIES = {Personnel {R}esearch {S}eries},
NUMBER = {1},
PAGES = {140--146},
DATE = {1923},
DOI = {10.1037/10762-000}
}
and give the same results. I suppose this may mean a lot of new processing has to be added and I'm definitely not going to write a patch today. I'll fake it for now (sending in thesis tomorrow!).
BTW @plk, someone seems to think you are not with us anymore: https://www.ctan.org/author/kime. Did that really happen the last two weeks? A great loss in that case.
Consider
\documentclass[paper=a4]{article}
\usepackage[american]{babel}
\usepackage{csquotes}
\usepackage[style=apa]{biblatex}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
% (APA 7.07 Example 49)
% We render this with "retrieved from" instead of "available from" as this is arbitrary
% and ugly to parameterise. Forcing this means we can use a localisable string for "retrieved"
@VIDEO{7.07:49,
ENTRYSUBTYPE = {{DVD}},
PRODUCER = {{American Psychological Association}},
TITLE = {Responding Therapeutically to Patient Expressions of Sexual Attraction},
DATE = {2000},
URL = {http://www.apa.org/videos/}
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\cite{7.07:49}
\printbibliography
\end{document}
gives
American Psychological Association. (Producer). ...
with biblatex-apa 7.6, biblatex 3.11 and biber 2.11. But according to the APA Manual it should give
American Psychological Association (Producer). ...
Compare also to 7.07:53. Tested with TeXlive 2018 pretest.
I don't know if the APA itself has something to say about how to treat localizations. If not, I would suggest to follow the rules of the German Psychological Association (DGPs), which include slight modifications to the APA for German. See
http://homepage.univie.ac.at/harald.werneck/Richtlinien_zur_Manuskriptgestaltung.pdf
This would require the following changes in the Germanic localization:
andothers = {et al\adddot}% instead of "u.\,a."
\def\finalandcomma{}% no comma after final and in German
\renewcommand{\apashortdash}{~}% "im Druck a", not "im Druck-a"
This came up in https://tex.stackexchange.com/q/471395/35864
biblatex-apa
enables backref
explicitly in
but then does not always use it. The backrefs are only shown if the option apabackref
is activated
biblatex-apa/tex/latex/biblatex-apa/bbx/apa.bbx
Lines 298 to 309 in 88754e8
biblatex-apa/tex/latex/biblatex-apa/bbx/apa.bbx
Lines 2202 to 2209 in 88754e8
Unless I'm missing something and the backref information is used for other purposes as well, apa.bbx
would not have to say backref=true
and could delegate the decision about whether or not backrefs ought to be shown to the user via the standard option and could drop apabackref
.
\documentclass[british]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[style=apa, backref=false, apabackref=false, backend=biber]{biblatex}
\addbibresource{biblatex-examples.bib}
\begin{document}
\cite{sigfridsson}
\printbibliography
\end{document}
7.04.38 and 7.04.39 do not seem to render the conference title in line with my digital edition of the APA Publication Manual, 6th ed.
MWE:
\documentclass{article}
\usepackage[british]{babel}
\usepackage[backend=biber, style=apa]{biblatex}
\DeclareLanguageMapping{british}{british-apa}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@PROCEEDINGS{7.04:38,
AUTHOR = {S. Herculano-Houzel and C. E. Collins and P. Wong and J. H. Kaas and R. Lent},
TITLE = {The Basic Nonuniformity of the Cerebral Cortex},
BOOKTITLE = {Proceedings of the National Academy of Sciences, {USA}},
VOLUME = {105},
PAGES = {12593--12598},
DATE = {2008},
DOI = {10.1073/pnas.0805417105}
}
@INPROCEEDINGS{7.04:39,
AUTHOR = {I. Katz and K. Gabayan and H. Aghajan},
TITLE = {A Multi-touch Surface Using Multiple Cameras},
EDITOR = {J. Blanc-Talon and W. Philips and D. Popescu and P. Scheunders},
MAINTITLE = {Lecture Notes in Computer Science},
VOLUME = {4678},
BOOKTITLE = {Advanced Concepts for Intelligent Vision Systems},
PAGES = {97--108},
LOCATION = {Berlin, Germany},
PUBLISHER = {Springer-Verlag},
DATE = {2007},
DOI = {10.1007/978-3-540-74607-2_9}
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\cite{7.04:38}
\cite{7.04:39}
\printbibliography
\end{document}
Whereas the example provided in APA 6th is
FWIW, I have been able to alter this behaviour in apa.bbx, but I haven't tested my changes thoroughly and am not too sure I understand how the code is structured. If it's helpful, though, I can provide details.
Line 2: \InheritBibliographyExtras{dansih}
should be \InheritBibliographyExtras{danish}
.
Consider
\documentclass[paper=a4]{article}
\usepackage[american]{babel}
\usepackage{csquotes}
\usepackage[style=apa]{biblatex}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
% (APA 7.02 Example 26)
@INBOOK{7.02:26,
AUTHOR = {J. Piaget},
EDITOR = {K. Richardson and S. Sheldon},
TRANSLATOR = {G. Gellerier and J. Langer},
TITLE = {Extracts From {P}iaget's Theory},
BOOKTITLE = {Cognitive Development to Adolescence},
BOOKSUBTITLE = {A Reader},
PAGES = {3--18},
LOCATION = {Hillsdale, NJ},
PUBLISHER = {Erlbaum},
DATE = {1988},
RELATED = {mcppiaget},
RELATEDTYPE = {reprintfrom}
}
@INCOLLECTION{mcppiaget,
EDITOR = {P. H. Mussen},
TITLE = {Manual of Child Psychology},
DATE = {1970},
LOCATION = {New York, NY},
PUBLISHER = {Wiley},
PAGES = {703--732}
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\cite{7.02:26}
\printbibliography
\end{document}
gives
... Mussen, New York ...
with biblatex-apa 7.6, biblatex 3.11 and biber 2.11. But according to the APA Manual it should give
... Mussen, Ed., 1970, New York ...
Tested with TeXlive 2018 pretest.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.