[Tex/LaTex] How to print months in French with BibTeX


How can I print months in French with BibTeX?

  key =      {site},
  title =    {\textit{site}},
  month = jun,
  year = {2012},
  howpublished = {URL: \texttt{http://www. a web site.com/}}


It displays June, but I'd like Juin

Best Answer

You don't indicate which bibliography style file you use, so I'll assume that it's the "default" file, viz., plain.bst. If so, the problem you're facing is that this file contains the instruction

MACRO {jun} {"June"}

Thus, the string "jun" in your bib file will be typeset as "June" unless there's an explicit override. You can provide this override by inserting the instruction

@string{ jun = "Juin" }

at the top of your bib file.

Separately, I'd also recommend that you change the line

howpublished = {URL: \texttt{http://www.awebsite.com/}}


howpublished = {URL: \url{http://www.awebsite.com/}}

and load the url package (which provides the command \url). The advantage of taking this approach is that the url package can (almost) always choose a suitable line break for long and complicated url strings, letting you avoid massively underfull or overfull lines.

Taking these observations together, your .bib file (called, say, urlcite.bib) should contain:

@string{ jun = "Juin" }
  key          = {site},
  title        = {\textit{site}},
  month        = jun,
  year         = 2012,
  howpublished = {URL: \url{http://www.awebsite.com/}}

A full MWE might then look like this:

\usepackage{url}          % for the \url command
\bibliographystyle{plain} % or whatever style file you prefer
\bibliography{urlcite}    % if bib entries are in the file "urlcite.bib"