![包 fontenc 错误:未找到编码文件“ot2enc.def”](https://linux22.com/image/478822/%E5%8C%85%20fontenc%20%E9%94%99%E8%AF%AF%EF%BC%9A%E6%9C%AA%E6%89%BE%E5%88%B0%E7%BC%96%E7%A0%81%E6%96%87%E4%BB%B6%E2%80%9Cot2enc.def%E2%80%9D.png)
我正在寻找解决方案。我知道可以从以下位置下载软件包加拿大运输安全局,但我从未意识到将文件放在哪里以进行安装。我正在使用 TeXmaker 5.0.2,但我不知道它究竟在哪里寻找库和运行所需的文件。
该消息的具体提示如下:
/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty >>>>
Package fontenc Error: Encoding file `ot2enc.def' not found
/usr/share/texlive/texmf-dist/tex/generic/babel/babel.sty >>>>
! Package babel Error: Unknown option `russian'. Either you misspelled it(babel) or the language definition file russian.ldf was not found.See the babel package documentation for explanation.Type H <return> for immediate help.... \ProcessOptions
答案1
textlive-full
比以下更小的安装texlive-lang-cyrillic
:
sudo apt-get install texlive-lang-cyrillic
事实上,你可以ot2enc.def
从Ubuntu 搜索包如下所述这个答案。 这立即查询该文件ot2enc.def
表示我提到的包。
答案2
正如 David 所建议的,答案可能是使用
tlmgr install cyrillic
但我厌倦了时不时地安装软件包,所以我使用了完整安装的 LaTeX。它很重(约 4 GB),但值得。
sudo apt install texlive-full