无法在 Fedora 上获取德语连字模式

无法在 Fedora 上获取德语连字模式

我使用以下文件运行pdflatex

\documentclass[a4paper,11pt]{article}
\usepackage[german]{babel}

\begin{document}
Tach auch
\end{document}

并得到错误:

This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
(./x.tex
LaTeX2e <2018-04-01> patch level 5
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size11.clo))
(/usr/share/texlive/texmf-dist/tex/generic/babel/babel.sty
(/usr/share/texlive/texmf-dist/tex/generic/babel/switch.def)
(/usr/share/texlive/texmf-dist/tex/generic/babel-german/german.ldf
(/usr/share/texlive/texmf-dist/tex/generic/babel-german/germanb.ldf
(/usr/share/texlive/texmf-dist/tex/generic/babel/babel.def
(/usr/share/texlive/texmf-dist/tex/generic/babel/txtbabel.def))

Package babel Warning: No hyphenation patterns were preloaded for
(babel)                the language `German (trad. orthography)' into the forma
t.
(babel)                Please, configure your TeX system to add them and
(babel)                rebuild the format. Now I will use the patterns
(babel)                preloaded for english instead on input line 58.

)))
No file x.aux.
[1{/usr/share/texlive/texmf-dist/fonts/map/pdftex/updmap/pdftex.map}] (./x.aux)
 )</usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb>
Output written on x.pdf (1 page, 11102 bytes).
Transcript written on x.log.

我已经看到了这个问题:未加载该语言的连字模式

我已经sudo fmtutil --all -sys在我的系统上这样做了。

从我的发行版安装了以下名称中带有“德语”的软件包:

texlive-babel-german.noarch 8:svn47192-25.fc29 @updates
texlive-datetime2-german.noarch 8:svn45800-25.fc29 @updates
texlive-german.noarch 8:svn42428-25.fc29 @updates
texlive-glossaries-german.noarch 8:svn35665.1.0-25.fc29 @updates

如果我更改,ngerman我会收到更多警告/错误。但我想继续使用“旧德语”。

答案1

我在这里找到了一个解决方案:

https://bugzilla.redhat.com/show_bug.cgi?id=1595165

因此首先卸载该包: texlive-hyphen-german.noarch

然后移除rm ~/.texlive2018/ -rf

然后再次安装: sudo dnf install texlive-hyphen-german.noarch

现在它起作用了!

相关内容