![包 fontenc 错误:未找到编码文件“eu2enc.def”](https://linux22.com/image/477339/%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%9Ceu2enc.def%E2%80%9D.png)
我在 中运行 tex 文件时出现此错误XeLaTeX
。
为了恢复此,我通过运行以下代码来安装字体:
sudo apt-get install texlive-full
sudo apt-get install texlive-fonts-recommended
但安装后还是同样的错误。
错误信息是:
! Package fontenc Error: Encoding file `eu2enc.def' not found.
(fontenc) You might have misspelt the name of the encoding.
See the fontenc package documentation for explanation.
Type H <return> for immediate help.
Using App : TeXMaker
OS : Ubuntu 14.04 LTS
答案1
确保软件包eu2enc.def
已安装。在 Ubuntu 中,它是软件包的一部分texlive-xetex
。否则,您可以使用 texlive 管理器安装它:
tlmgr install euenc
你也可以尝试手动安装该软件包,但我不建议这样做。可以找到以下来源这里。