Generalcatalan/babel -> hyphenation + fontenc warnings

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

catalan/babel -> hyphenation + fontenc warnings

Post by pandammonium »

Hi,

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

Code: Select all

\documentclass{book}
\usepackage[catalan,english]{babel}
\usepackage[T1]{fontenc}

\begin{document}
blah
\end{document}
which gives this output:

Code: Select all

Package babel Warning: No hyphenation patterns were loaded for
(babel)                the language `Catalan'
(babel)                I will use the patterns loaded for \language=0 instead.

\l@catalan = a dialect from \language0
Package babel Info: Making " an active character on input line 91.
Warning: You are using encoding OT1 instead of T1.
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.

Code: Select all

! Package babel Error: You have used an old interface to call babel
(babel)                You may expect compatibility problems wit other packages.

See the babel package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              
l.73     \bblstyerror
? h
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.

Code: Select all

\documentclass{book}
\usepackage[catalan,english]{babel}
\usepackage{lmodern}
\usepackage[T1]{fontenc}

\begin{document}
blah
\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.

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

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

Re: catalan/babel -> hyphenation + fontenc warnings

Post by Stefan Kottwitz »

Hi,

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.

Stefan
LaTeX.org admin
pandammonium
Posts: 55
Joined: Thu Oct 30, 2008 4:12 pm

Re: catalan/babel -> hyphenation + fontenc warnings

Post by pandammonium »

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,

pandammonium
Post Reply