GeneralProblem with babel, french

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Leo__
Posts: 28
Joined: Thu Oct 28, 2010 4:33 pm

Problem with babel, french

Post by Leo__ »

I am having a problem with babel, french.

Code: Select all

\documentclass[12pt]{article}
\usepackage[english,french]{babel}

\frenchbsetup{
  FrenchFootnotes=false,
  AutoSpaceFootnotes=false
}



\begin{document}
Ceci est un simple essai\footnote{Et voil\`a.}.
\end{document}
In the above example, the \frenchbsetup (used here to set my preferred option regarding footnotes) is not recognized. I thought babel (with french) was enough, and indeed it worked fine before I updated it. I ran twice update packages (both for admin and all users), but it did not help.
Last edited by Stefan Kottwitz on Tue Oct 07, 2014 6:30 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.

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Problem with babel, french

Post by Stefan Kottwitz »

Perhaps post your .log file here, as attachment, there might be a useful information within.

If there's a MiKTeX issue, you could consider installing TeX Live 2014.

Stefan
LaTeX.org admin
Leo__
Posts: 28
Joined: Thu Oct 28, 2010 4:33 pm

Problem with babel, french

Post by Leo__ »

Here is the .log file.
LOG FILE :
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (MiKTeX 2.9) (preloaded format=pdflatex 2014.10.5) 7 OCT 2014 23:07
entering extended mode
**test-babel-french.tex
("C:\Documents and Settings\(...)\test-babel-french.tex"
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, afrikaans, ancientgreek, ar
abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic,
croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga
lician, german, german-x-2013-05-26, greek, gujarati, hindi, hungarian, iceland
ic, indonesian, interlingua, irish, italian, kannada, kurmanji, latin, latvian,
lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerman, n
german-x-2013-05-26, nynorsk, oriya, panjabi, pinyin, polish, portuguese, roman
ian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swissgerm
an, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, usengl
ishmax, welsh, loaded.
("C:\Program Files\MiKTeX 2.9\tex\latex\base\article.cls"
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
("C:\Program Files\MiKTeX 2.9\tex\latex\base\size12.clo"
File: size12.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
("C:\Program Files\MiKTeX 2.9\tex\latex\babel\babel.sty"
Package: babel 1997/01/23 v3.6h The Babel package
("C:\Documents and Settings\user\Application Data\MiKTeX\2.9\tex\latex\babel-en
glish\english.ldf"
Language: english 2012/08/20 v3.3p English support from the babel system
("C:\Program Files\MiKTeX 2.9\tex\latex\babel\babel.def"
File: babel.def 1997/01/23 v3.6h Babel common definitions
\babel@savecnt=\count87
\U@D=\dimen103
)
\l@canadian = a dialect from \language\l@american
\l@australian = a dialect from \language\l@british
\l@newzealand = a dialect from \language\l@british
)
("C:\Documents and Settings\user\Application Data\MiKTeX\2.9\tex\latex\frenchle
\french.ldf"
File: french.ldf 2006/09/28 v1.14 french option of babel loading the frenchle/F
renchPro package
("C:\Documents and Settings\user\Application Data\MiKTeX\2.9\tex\latex\frenchle
\frenchle.sty"
Package: frenchle 2007/06/28 The frenchle package /V5,9995/
-29- ***Warning***: TeX engine in use along with CM fonts (as in current TeX f
ormat) isn't sufficient to hyphenate words containing diacritics (like in Frenc
h).
\@FrDimen=\dimen104
-23- Extension : frenchle V5,9995 -- 20 octobre 2011 -- (eFrench)
-24- frenchle.sty utilise dans ce document le codage de fonte OT1.
-25- frenchle.sty affiche ici ses messages en 7-bits << \`a la TeX >>.
LaTeX Font Info: Redeclaring font encoding T1 on input line 457.
Package frenchle Info: Initialisation de l'option frenchle pour Babel on input
line 2071.
\c@chapter=\count88
\@FrCount=\count89
eFrench Info : <b.o.i>arabicLang commute sur langue arabic = = = =
eFrench Info : et <b.o.i>arabicTeXmods pour ses extensions = = = =
frenchle.sty : -48- Lecture du fichier de configuration de frenchle (\`a la li
gne 2072).
("C:\Documents and Settings\user\Application Data\MiKTeX\2.9\tex\latex\frenchle
\frenchle.cfg"))))
! Undefined control sequence.
l.4 \frenchbsetup
{
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Problem with babel, french

Post by Stefan Kottwitz »

At the end there's an error, which explains why \frenchbsetup doesn't work: it is not defined. It seems that the french option to babel is not working with it. frenchb as option should work.

Code: Select all

\usepackage[english,frenchb]{babel}
Stefan
LaTeX.org admin
Leo__
Posts: 28
Joined: Thu Oct 28, 2010 4:33 pm

Problem with babel, french

Post by Leo__ »

I tried. Compiling gives another error message:

LOG FILE :
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (MiKTeX 2.9) (preloaded format=pdflatex 2014.10.8) 8 OCT 2014 01:01
entering extended mode
**test-babel-french.tex
("C:\Documents and Settings\(...)\test-babel-french.tex"
LaTeX2e <2014/05/01>
Babel <3.9l> and hyphenation patterns for 68 languages loaded.
("C:\Program Files\MiKTeX 2.9\tex\latex\base\article.cls"
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
("C:\Program Files\MiKTeX 2.9\tex\latex\base\size12.clo"
File: size12.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
("C:\Program Files\MiKTeX 2.9\tex\latex\babel\babel.sty"
Package: babel 1997/01/23 v3.6h The Babel package
("C:\Documents and Settings\user\Application Data\MiKTeX\2.9\tex\latex\babel-fr
ench\frenchb.ldf"
Language: frenchb 2014/09/16 v3.1b French support from the babel system
("C:\Program Files\MiKTeX 2.9\tex\latex\babel\babel.def"
File: babel.def 1997/01/23 v3.6h Babel common definitions
\babel@savecnt=\count87
\U@D=\dimen103
)
! Package frenchb.ldf Error: frenchb requires babel v.3.9i.
(frenchb.ldf) Aborting here.
See the frenchb.ldf package documentation for explanation.
Type H <return> for immediate help.
...
l.116 {Please upgrade Babel!}
Please upgrade Babel!
))
! Undefined control sequence.
<recently read> \frenchbsetup
l.3 \frenchbsetup
{
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.4 F
renchFootnotes=false,
You're in trouble here. Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
("C:\Documents and Settings\Florian\My Documents\Textes\Halivni\Breaking the Ta
blets\test-babel-french.aux"
-34- this file and other auxiliary files require to use the following
-34- LaTeX packages: french and babel!
-34- check \usepackage or remove these files. Typesetting is aborted!
[1
{C:/Documents and Settings/user/Local Settings/Application Data/MiKTeX/2.9/pdft
ex/config/pdftex.map}] ) )
(\end occurred inside a group at level 2)
### simple group (level 2) entered at line 4 ({)
### semi simple group (level 1) entered at line 10 (\begingroup)
### bottom level
Here is how much of TeX's memory you used:
415 strings out of 493705
5305 string characters out of 3144519
57520 words of memory out of 3000000
3811 multiletter control sequences out of 15000+200000
3938 words of font info for 15 fonts, out of 3000000 for 9000
1025 hyphenation exceptions out of 8191
22i,4n,19p,192b,136s stack positions out of 5000i,500n,10000p,200000b,50000s
<C:/Program Files/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmr
12.pfb>
Output written on test-babel-french.pdf (1 page, 12073 bytes).
PDF statistics:
10 PDF objects out of 1000 (max. 8388607)
0 named destinations out of 1000 (max. 500000)
1 words of extra memory for PDF output out of 10000 (max. 10000000)
I found the same problem on
http://tex.stackexchange.com/questions/ ... -3-9i?rq=1

and followed the suggestions there (Miktex update for "all users" and "admin"), but it did not work.
Leo__
Posts: 28
Joined: Thu Oct 28, 2010 4:33 pm

Re: Problem with babel, french

Post by Leo__ »

Ok I found the solution, as follows (hopefully maybe useful for someone else). And by the way, \usepackage[french]{babel} is sufficient (as it should -- since it worked like this previously).

Once again I uninstalled babel (the basic babel) and reinstalled it, did the Miktex update. After I deleted the .aux file, the compilation ran smoothly.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Re: Problem with babel, french

Post by Stefan Kottwitz »

Ok, thanks for telling the solution! So either it was a babel version issue or a faulty aux file. The letter is possible: when an aux file is produced when babel did not have the french option yet, it would be a problem in the next run. Fixing could be either deleting the aux file or letting the compilation run through while skipping the errors until a new aux file has been generated.

Stefan
LaTeX.org admin
Post Reply