Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

BibLaTeX, APA and French: still american date display

30 views
Skip to first unread message

Astor

unread,
Nov 15, 2024, 8:07:09 AM11/15/24
to LaTeX Users Group
Hello

I'm having an issue with using BibLaTeX and the APA bibliographic format in French, and I can't find the necessary information to fix it: when I insert a reference to a website (@online) in the bibliography, the access date is ordered month day, year (as in English), whereas in French it should be day month year.

I have configured the French language with polyglossia (but I've also tried with babel), and I've done the mapping for french-apa.

Here is a bibliographic reference I'm using:

@online{enssib_index_,
  title = {Index thématique | Enssib},
  author = {{Enssib}},
  url = {https://www.enssib.fr/bibliotheque-numerique/index-thematique},
  urldate = {2024-11-15},
  langid = {french},
  organization = {Enssib | École nationale supérieure des sciences de l'information et des bibliothèques},
  file = {/home/bjacquemin/Zotero/storage/MWA7IL6G/index-thematique.html}
}


And here is my MWE:

\documentclass[a4paper,10pt]{article}

\usepackage{fontspec}
\usepackage{polyglossia}
\setmainlanguage{french}
\usepackage{csquotes}

\usepackage[%
backend=biber,
style=apa,
natbib=true,
sorting=nyt,
]{biblatex}
\addbibresource{essai.bib}
\DeclareLanguageMapping{french}{french-apa}

\begin{document}

\cite{enssib_index_}

\printbibliography

\end{document}


The resulting output is (see "novembre 15, 2024" instead of "15 novembre 2024"):

Enssib. (s. d.). Index thématique | Enssib. Enssib | École nationale supérieure des
sciences de l’information et des bibliothèques. Récupérée novembre 15,
2024, à partir de https://www.enssib.fr/bibliotheque-numerique/index-
thematique

Does anyone have an idea of what's not working? Any help would be appreciated!
Astor

Peter Flynn

unread,
Nov 15, 2024, 10:26:25 AM11/15/24
to latexus...@googlegroups.com
Have a look at datetime2 package. 

Peter

--
You received this message because you are subscribed to the Google Groups "LaTeX Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to latexusersgro...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/latexusersgroup/05af127b-ac6f-4592-91a3-eff410444cacn%40googlegroups.com.

Astor

unread,
Nov 15, 2024, 2:30:58 PM11/15/24
to LaTeX Users Group

Dear Peter,

Thank you for your response and the suggestion of the datetime2 package. I can see how this package allows for the formatting of time-related information according to the language and regional norms.

However, I'm unsure of how I should use datetime2 to impact the display of the bibliography. In the following MWE, there is no effect on the display of the bibliographic reference, even though the datetime2 documentation (and using the \Today command in the MWE) suggests it should work:

\documentclass[a4paper,10pt]{article}

\usepackage{filecontents}
\begin{filecontents}{biblio.bib}


@online{enssib_index_,
  title = {Index thématique | Enssib},
  author = {{Enssib}},
  url = {https://www.enssib.fr/bibliotheque-numerique/index-thematique},
  urldate = {2024-11-15},
  langid = {french},
  organization = {Enssib | École nationale supérieure des sciences de l'information et des bibliothèques},
}

\end{filecontents}



\usepackage{fontspec}
\usepackage{polyglossia}
\setmainlanguage{french}
\usepackage{csquotes}

\usepackage[useregional]{datetime2}



\usepackage[%
backend=biber,
style=apa,
natbib=true,
sorting=nyt,
]{biblatex}

\DeclareLanguageMapping{french}{french-apa}
\addbibresource{biblio.bib}

\begin{document}

\Today{} \cite{enssib_index_}

\printbibliography

\end{document}

The display of the bibliographic reference remains the same (with novembre in French still):

Enssib. (s. d.). Index thématique | Enssib. Enssib | École nationale supérieure des sciences de l’information et des bibliothèques. Récupérée novembre 15, 2024, à partir de https://www.enssib.fr/bibliotheque-numerique/index-thematique

It seems there is something beyond my LaTeX skills that I need to do.

Thank you again.

Astor

Peter Flynn

unread,
Nov 15, 2024, 5:23:55 PM11/15/24
to latexus...@googlegroups.com
On 15/11/2024 19:30, Astor wrote:
> Dear Peter,
>
> Thank you for your response and the suggestion of the datetime2 package.
> I can see how this package allows for the formatting of time-related
> information according to the language and regional norms.
>
> However, I'm unsure of how I should use datetime2 to impact the display
> of the bibliography.

It was just a thought.

> It seems there is something beyond my LaTeX skills that I need to do.

Mine too.

>> The resulting output is (see "novembre 15, 2024" instead of "15
>> novembre 2024"):

I think this is something for the authors of french-apa

Peter
Reply all
Reply to author
Forward
0 new messages