重新安装 TeX Live 2013 后无法使俄语连字功能正常工作

重新安装 TeX Live 2013 后无法使俄语连字功能正常工作

我刚刚在 Mac OS 上将 TeX Live 升级到 2013,并安装了所有我能想到的西里尔文软件包,但俄语连字符停止工作。以下是一个例子:

\documentclass[russian]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{babel}
\begin{document}

Польский язык (język polski, polszczyzna) — язык поляков, относящийся к лехитской подгруппе западнославянской группы славянской ветви индоевропейской языковой семьи.

\end{document}

日志输出:

This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013)
 \write18 enabled.
entering extended mode
(./hyphenation-test.tex
LaTeX2e <2011/06/27>
Babel <3.9f> and hyphenation patterns for 21 languages loaded.
(/usr/local/texlive/2013basic/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/local/texlive/2013basic/texmf-dist/tex/latex/base/size10.clo))
(/usr/local/texlive/2013basic/texmf-dist/tex/latex/base/inputenc.sty
(/usr/local/texlive/2013basic/texmf-dist/tex/latex/base/utf8.def
(/usr/local/texlive/2013basic/texmf-dist/tex/latex/base/t1enc.dfu)
(/usr/local/texlive/2013basic/texmf-dist/tex/latex/base/ot1enc.dfu)
(/usr/local/texlive/2013basic/texmf-dist/tex/latex/base/omsenc.dfu)))
(/usr/local/texlive/2013basic/texmf-dist/tex/latex/base/fontenc.sty
(/usr/local/texlive/2013basic/texmf-dist/tex/latex/base/t1enc.def))
(/usr/local/texlive/2013basic/texmf-dist/tex/generic/babel/babel.sty
(/usr/local/texlive/2013basic/texmf-dist/tex/generic/babel-russian/russianb.ldf
(/usr/local/texlive/2013basic/texmf-dist/tex/generic/babel/babel.def)

Package babel Warning: No hyphenation patterns were preloaded for
(babel)                the language `Russian' 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 english instead on input line 68.


Package babel Warning: No Cyrillic font encoding has been loaded so far.
(babel)                A font encoding should be declared before babel.
(babel)                Default `T2A' encoding will be loaded  on input line 111
.

(/usr/local/texlive/2013basic/texmf-dist/tex/latex/cyrillic/t2aenc.def
(/usr/local/texlive/2013basic/texmf-dist/tex/latex/base/t2aenc.dfu))))
(./hyphenation-test.aux
(/usr/local/texlive/2013basic/texmf-dist/tex/latex/cyrillic/t2acmr.fd))
Overfull \hbox (43.51624pt too wide) in paragraph at lines 9--10
\T2A/cmr/m/n/10 Í ÎÂıËÚÒÍÓÈ ÔÓ‰„ÛÔÔ Á‡Ô‡‰ÌÓÒ·‚ˇÌÒÍÓÈ „ÛÔÔ˚ Ò·‚ˇÌÒÍÓÈ ‚ÂÚ‚Ë
 Ë̉Ó‚ÓÔÂÈÒÍÓÈ
[1{/Volumes/Data/Users/alexey/Library/texlive/2013basic/texmf-var/fonts/map/pdf
tex/updmap/pdftex.map}] (./hyphenation-test.aux) )
(see the transcript file for additional information){/usr/local/texlive/2013bas
ic/texmf-dist/fonts/enc/dvips/cm-super/cm-super-t2a.enc}</usr/local/texlive/201
3basic/texmf-dist/fonts/type1/public/cm-super/sfrm1000.pfb>
Output written on hyphenation-test.pdf (1 page, 18449 bytes).
SyncTeX written on hyphenation-test.synctex.gz.
Transcript written on hyphenation-test.log.

您能给我提出任何建议吗,如何修复它?

答案1

如果你已经安装了hyphen-russianruhyphenTeX Live 软件包,那么这可能是格式未更新的问题。从终端窗口运行

sudo fmtutil-sys --all

并在要求时提供您的密码(假设您是自己机器的管理员)。这将重新创建所有格式文件并修复该问题。

注意:您的示例代码将无法正确运行;如果您还需要打印波兰语单词,最好也加载该语言。您还应该将 T2A 编码指定为默认值。

\documentclass[a4paper]{article}
\usepackage[T1,T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[polish,russian]{babel}

\begin{document}

Польский язык (\foreignlanguage{polish}{język polski, 
polszczyzna}) — язык поляков, относящийся к лехитской подгруппе 
западнославянской группы славянской ветви индоевропейской языковой семьи.

\end{document}

这样,带有 ogonek 的字符将是正确的字形,而不是构造的字形。

相关内容