13

I have a problem with a document I'm writing and I found no suitable response to my problem:

Package babel Warning: No hyphenation patterns were preloaded for
(babel)                the language `French' into the format.
(babel)                Please, configure your TeX system to add them and
(babel)                rebuild the format. Now I will use the patterns
(babel)                preloaded for \language=nohyphenation instead on input line 56.

Here is what I put on the document:

\documentclass[final]{report}
\usepackage[frenchb]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

I use pdflatex on Fedora 23. I have correctly install texlive-lang-french and texlive-hyphen-french.

6
  • 2
    Try running (as superuser) mktexfmt --all
    – egreg
    Commented Dec 21, 2015 at 17:01
  • Thanks ! I tried mktexfmt --all but I had fmtutil: unknown option --all, try --help.. So I launched fmutil --all and fmtutil-sys --all as root but I always have the problem.
    – Lerenn
    Commented Dec 22, 2015 at 0:14
  • So when you ran sudo mktexfmt --all it complained that --all was an unknown option for fmtutil, but then you ran sudo fmtutil --all ? That doesn't make sense. I would recommend ditching Fedora's TeX Live packages and installing TeX Live from upstream. All you need is a small dummy package to keep the package manager happy, and it will all work beautifully. Distro's packagings of TeX Live are not always entirely happy ones.
    – cfr
    Commented Dec 22, 2015 at 0:34
  • Sounds really weird to mee too. I'll try to install it from source... Thanks for your response.
    – Lerenn
    Commented Dec 22, 2015 at 0:48
  • 1
    fmtutil is the local version of fmtutil-sys. For some strange reason (at least on Fedora 24). fmtutil does not accept --all as an option for rebuilding files. However, using fmtutil --missing --refresh should do virtually the same thing and fixes the hyphenation problem for me.
    – Yann
    Commented Jul 8, 2017 at 12:53

4 Answers 4

5

I had the same problem on Fedora 29. texlive-lang-french and texlive-hyphen-french were installed, but hyphenation did not work.

I found a solution on Red Hat Bugzilla: to remove the directory ~/.texlive2018.

Removing the directory ~/.texlive2018 and using the latest version of texlive solved the problem. This directory has been created by some previous execution of pdflatex (already on Fedora 29, because I installed from scratch), but maybe before the hyphenation packages had been installed. Further tests are needed to determine if the bug persists in the latest version when a user installs the hyphenation packages after ~/.texlive2018 has been created.

1
  • 1
    on Fedora 34 : $ rm -rf ~./texlive2020 worked for me Commented Jun 15, 2021 at 11:18
3

I found out what was the problem (and I'll try to explain what I understood) : On Fedora, hyphenations files are located to /usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/loadhyph/* and seems not to be the real location/name for hyphenation files.

Adding hyphsubst seems to authorize pdflatex to load hyphenation files from unusual places. So when I added it, it worked !

I'm not sure it's the real reason but if someone has a better explanation : you can contradict me with pleasure ;)

Long story, short story, I added :

\usepackage{hyphsubst}
2
  • 2
    fwiw, I'm also on Fedora (25) and have the same problem, but this didn't help in my case. Commented Apr 16, 2017 at 17:26
  • I cannot find this package on MikTex 2.9. Does it exists? Commented Jan 30, 2023 at 20:35
3

I faced the same issue on openSUSE Tumbleweed. The force reinstall of texlive-hyphen-czech helped me in my case. It looks like texlive sometimes loses files during a package update.

$ zypper in -f texlive-babel-czech texlive-hyphen-czech texlive-cs-fonts texlive-csbulletin texlive-texlive-cz texlive-cslatex-bin texlive-cs texlive-cslatex

I did full reinstall of Czech related packages in my case, so I can't tell if it's caused only by texlive-hyphen-czech.

2
  • This solution also works on Fedora 36 (with dnf of course). In my case, I used sudo dnf install texlive-hyphen-german
    – RL-S
    Commented Aug 22, 2022 at 9:24
  • I had this problem too. The above solution worked for me as well. And then for good measure rm -rf ~/.texlive* and fmtutil-sys --all. And you guessed right ... Fedora too ... bummer
    – bliako
    Commented Sep 20, 2022 at 12:12
2

To summarize, assuming that the required packages have been installed (for example with Fedora's dnf), the TeX formats are updated with

sudo fmtutil-sys --all

and fmtutil-user should not be used in general as explained here.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .