这是文档:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T2A]{fontenc}
\begin{document}
This text is in Russian: проверка.
\end{document}
这是 Mac OS 上的 TeXLive 的内容:
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live/MacPorts 2009_6)
entering extended mode
(./x.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, loaded.
(/opt/local/share/texmf-texlive-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/opt/local/share/texmf-texlive-dist/tex/latex/base/size10.clo))
(/opt/local/share/texmf-texlive-dist/tex/latex/base/inputenc.sty
(/opt/local/share/texmf-texlive-dist/tex/latex/base/utf8.def
(/opt/local/share/texmf-texlive-dist/tex/latex/base/t1enc.dfu)
(/opt/local/share/texmf-texlive-dist/tex/latex/base/ot1enc.dfu)
(/opt/local/share/texmf-texlive-dist/tex/latex/base/omsenc.dfu)))
(/opt/local/share/texmf-texlive-dist/tex/latex/base/fontenc.sty
! Package fontenc Error: Encoding file `t2aenc.def' not found.
(fontenc) You might have misspelt the name of the encoding.
我究竟做错了什么?
答案1
您可以安装cyrillic
t2aenc.def
包。此包包含T2A 编码所需的缺失文件。
在 ubuntu 上,使用此命令:
sudo apt-get install texlive-lang-cyrillic