LaTeX forum ⇒ Generalcatalan/babel -> hyphenation + fontenc warnings

LaTeX specific issues not fitting into one of the other forums of this category.
Posts: 55
Joined: Thu Oct 30, 2008 4:12 pm

catalan/babel -> hyphenation + fontenc warnings

Postby pandammonium » Thu Nov 06, 2008 2:54 pm


I have this code, where I tell babel I want to use Catalan and English:

  1. \documentclass{book}
  2. \usepackage[catalan,english]{babel}
  3. \usepackage[T1]{fontenc}
  5. \begin{document}
  6. blah
  7. \end{document}

which gives this output:

  1. Package babel Warning: No hyphenation patterns were loaded for
  2. (babel) the language `Catalan'
  3. (babel) I will use the patterns loaded for \language=0 instead.
  5. \l@catalan = a dialect from \language0
  6. Package babel Info: Making " an active character on input line 91.
  7. Warning: You are using encoding OT1 instead of T1.
  8. Some word breaks will not be found.

1) Hyphenation patterns: I have installed the catalan hyphenations package, so I don't see why I get the first warning; if I explicitly specify \usepackage{catalan}, I get an error (below), so it can't be that I need to do that.

  1. ! Package babel Error: You have used an old interface to call babel
  2. (babel) You may expect compatibility problems wit other packages.
  4. See the babel package documentation for explanation.
  5. Type H <return> for immediate help.
  6. ...
  7. l.73 \bblstyerror
  8. ? h
  9. You could proceed but don't complain if you run into errors

2) Font encoding: I added the lmodern package after reading Stefan_K's post in this thread, as shown below, but it makes no difference to the result.

  1. \documentclass{book}
  2. \usepackage[catalan,english]{babel}
  3. \usepackage{lmodern}
  4. \usepackage[T1]{fontenc}
  6. \begin{document}
  7. blah
  8. \end{document}

Removing the catalan option from the babel package is the only way I've found that removes this problem---this is deeply unsatisfactory!

Does anyone know what's going on with this and how it can be resolved?

Any time you spend on this is much appreciated.
Last edited by pandammonium on Thu Feb 19, 2009 4:01 pm, edited 1 time in total.

User avatar
Stefan Kottwitz
Site Admin
Posts: 8598
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany

Postby Stefan Kottwitz » Thu Nov 06, 2008 3:11 pm


just load fontenc before babel and you will not get that warning about OT1 encoding.
I don't get the warning concerning hyphenation patterns for catalan. What version of babel do you use? Perhaps consider to update it.

Site admin

Posts: 55
Joined: Thu Oct 30, 2008 4:12 pm

Postby pandammonium » Thu Nov 06, 2008 5:15 pm

The hyphenation problem seems to have gone away, now actually. Most odd---I deleted all the output files before running pdflatex to make sure it wasn't just getting confused after installing the Catalan hyphenation package. Still, I'm not complaining!

Putting the font encoding before babel as you suggested worked a treat - now no more font encoding warnings, with or without the Latin Modern fonts. Thanks, Stefan. I maybe should have thought of changing the order of packages because it does make such a difference!

Thanks again,


Return to “General”

Who is online

Users browsing this forum: No registered users and 5 guests