BibTeX, biblatex and biber"Bibliography" is written in english

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
BastienBastien
Posts: 40
Joined: Mon Aug 20, 2012 2:27 pm

"Bibliography" is written in english

Post by BastienBastien »

Hello dear LaTeXers,

I am using Biblatex in a document written in French language. But, I just noticed that in the Table Of Content, "Bibliography" is written in English. It should be in French according to the settings of babel.

Here is some code:

Code: Select all

\documentclass[a4paper,10pt,openany]{report}
\usepackage[left=15mm,right=15mm,top=2cm,bottom=2cm]{geometry}
\usepackage[utf8]{inputenc}			% 
\usepackage[francais]{babel}		% 
And:

Code: Select all

\usepackage[backend=biber,firstinits=true,style=numeric,natbib=true,url=false,doi=false,isbn=true,eprint=false]{biblatex}
I have tried the parameter "french", "français" and "francais" for the babel package options, but it does not help.

Everything is well in French in the Toc, for instance "Table des matières" instead of "Table of content. Only "Bibliography" is not translated...

Do you have an idea?

Thanks!
Last edited by BastienBastien on Mon Jan 04, 2016 8:27 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: "Bibliography" is written in english

Post by Johannes_B »

Can you show us a compilable example that reproduces the issue? With the iinformation given, we don't have a clue.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
BastienBastien
Posts: 40
Joined: Mon Aug 20, 2012 2:27 pm

"Bibliography" is written in english

Post by BastienBastien »

Hello,

Thanks for your quick answer!

Yes there are some warnings during compilation.
Sorry I should have post it before:

Code: Select all

inputenc package ignored with utf8 based engines.
'babel/polyglossia' detected but 'csquotes' missing.
Add \usepackage{fontspec} to the(frenchb.ldf) preamble of your document,
I use XeLaTeX to compile the document (with TexStudio).

Thanks.
BastienBastien
Posts: 40
Joined: Mon Aug 20, 2012 2:27 pm

"Bibliography" is written in english

Post by BastienBastien »

I just added this code in the preambule but it does not help:

Code: Select all

\usepackage{csquotes}
\usepackage{fontspec}
But now there is only one warning:

Code: Select all

inputenc package ignored with utf8 based engines.
Regards.
Last edited by BastienBastien on Mon Jan 04, 2016 8:43 pm, edited 1 time in total.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

"Bibliography" is written in english

Post by Johannes_B »

The warning occurs because you are loading package inputenc, which isn't needed with xelatex/lualatex and hence ignored. But this isn't relevant to the question you are having.

Please, provide a minimal working example.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

"Bibliography" is written in english

Post by Stefan Kottwitz »

Perhaps it would work with polyglossia instead of babel, but I don't know without a compilable code.

Stefan
LaTeX.org admin
BastienBastien
Posts: 40
Joined: Mon Aug 20, 2012 2:27 pm

"Bibliography" is written in english

Post by BastienBastien »

Hi !

While preparing the MWE, I found the problem!
Below is the end of my document:

Code: Select all

\nocite{*}
\printbibliography
\addcontentsline{toc}{chapter}{Bibliographie}
\end{document}
I had to change the line:

Code: Select all

\addcontentsline{toc}{chapter}{Bibliography}
To:

Code: Select all

\addcontentsline{toc}{chapter}{Bibliographie}
Thanks guys!!!
Post Reply