My impression is that is an already answered question. However, I am really stuck with this:
This code:
\documentclass[french]{book}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{lipsum}
\usepackage[backend=biber,
uniquename=false,
uniquelist=false,
style=apa,
doi=false,
isbn=false,
url=false,
maxcitenames=3,
uniquelist=false,
natbib]{biblatex}
%%Bibliography format
\addbibresource{allbiblio.bib}
\DeclareLanguageMapping{frenchb}{american-apa}
\AtEveryBibitem{\clearfield{labelmonth}}
\AtEveryBibitem{\clearfield{note}}
\DefineBibliographyStrings{frenchb}{bibliography = {Bibliographie}, references = {Références},}
\begin{document}
\lipsum
An example of citation \citet{Aslin1998}
\printbibliography
\end{document}
gives the following error:
! LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.515 \StartBabelCommands*{\BabelLanguages}{d
ate}
I tried some other thing in place of "french" :
- "francais" and "frenchb" give the same output
- Other language as "english", "canadian"... are ok when I delete the .aux files
And when I try to just remove the babel package :
\documentclass{book}
\usepackage[utf8]{inputenc}
\usepackage{lipsum}
\usepackage[backend=biber,
uniquename=false,
uniquelist=false,
style=apa,
doi=false,
isbn=false,
url=false,
maxcitenames=3,
uniquelist=false,
natbib]{biblatex}
%%Bibliography format
\addbibresource{allbiblio.bib}
\DeclareLanguageMapping{frenchb}{american-apa}
\AtEveryBibitem{\clearfield{labelmonth}}
\AtEveryBibitem{\clearfield{note}}
\DefineBibliographyStrings{frenchb}{bibliography = {Bibliographie}, references = {Références},}
\begin{document}
\lipsum
An example of citation \citet{Aslin1998}
\printbibliography
\end{document}
I can't get rid of this error:
! Undefined control sequence.
<argument> \mkbibdateapalongextra
{labelyear}{labelmonth}{labelday}\iffieldu...
Question:
Is there a way to create document in french (and keep the american APA formatting for the bibliography) ?
bibfile at hand, so perhaps there is something strange within yourbibfile? Otherwise the compilation works. – Mar 28 '14 at 04:09bibfile has something wrong with it; try with an empty one and then add half the entries. – bombcar Mar 28 '14 at 06:37