Take the 2-minute tour ×

The following document:


Produces the following .log file:

Running `LaTeX' on `mwe' with ``pdflatex  -interaction=nonstopmode "\input" mwe.tex''
 restricted \write18 enabled.
entering extended mode
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, ancientgreek, ibycus, basque, catalan, danish, dutch, ukenglish, usenglishmax, french, galician, monogreek, greek, italian, latin, spanish, loaded.
(./mwe.tex (/usr/local/texlive/2011/texmf-dist/tex/latex/base/article.cls
(/usr/local/texlive/2011/texmf-dist/tex/generic/babel/babel.def))) (./mwe.aux)
(./mwe.aux) )</usr/local/texlive/2011/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb>
Output written on mwe.pdf (1 page, 12356 bytes).
Transcript written on mwe.log.

LaTeX finished at Thu Jan 19 13:00:40

Note that before babel.sty is loaded (around line 9) babel has already loaded patterns for, among others, ancientgreek,ibycus,basque,catalan… It looks like somehow, babel is being loaded even before the document class is read. Note that commenting out babel doesn't actually change the behaviour in any way.

What is going on, and how do I stop babel loading all these unnecessary patterns?

share|improve this question
It's not babel: the patterns are loaded at format creation. Edit your system's language.dat file and do fmtutil-sys --all. However, these languages don't slow in an appreciable way the workings of pdflatex. –  egreg Jan 19 '12 at 13:15
add comment

1 Answer

up vote 11 down vote accepted

The message here is perhaps slightly misleading. What is actually happening is that you are using a format with those hyphenation patterns built in. Usually, this is really nothing to be concerned about.

To understand why so many hyphenation patterns are loaded, a bit of background is needed. TeX was designed such that hyphenation patterns can only be loaded when creating a format. This remains true with pdfTeX and XeTeX (but not LuaTeX: see later). It used to be the case that formats were built using only the hyphenation patterns required by a user. However, that makes using a 'new' language awkward, as you need to enable the patterns and then rebuild the formats. With increases in computer power and memory size, it is now possible to load all of the hyphenation patterns, and so have a 'universal' hyphenation format.

In terms of removing the patterns, this depends on the TeX system in use. With MiKTeX, there are a series of tick-boxes in the GUI for building formats which will alter this. TeX Live I am afraid I am not sure about. (MiKTeX moved only more recently to loading all patterns, so I know where the settings are from having to enable more patterns!)

With LuaTeX, life is different as it can dynamically load hyphenation patterns, and indeed it turns out to be better not to load all of them in a format. Thus only a minimal set (US English, no-hyphenation and a 'dummy') are built in.

share|improve this answer
add comment

Your Answer


