Ubuntu 18.04 LTS Texlive 2018!LaTeX 错误:未找到文件“ulem.sty”

Ubuntu 18.04 LTS Texlive 2018!LaTeX 错误:未找到文件“ulem.sty”

安装后泰特克斯 R包,我开始收到LaTeX有关缺少文件的错误.sty。其中一个错误是

LaTeX Error: File `ulem.sty' not found.

我使用了以下代码

检查了 Texlive 版本

$ tex -v
TeX 3.14159265 (TeX Live 2018)
kpathsea version 6.3.0
Copyright 2018 D.E. Knuth.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the TeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the TeX source.
Primary author of TeX: D.E. Knuth.

Texlive 安装在哪里

$ which latex
/home/myaseen/bin/latex

Texlive 安装在哪里

$ whereis latex
latex: /usr/bin/latex /home/myaseen/bin/latex /usr/share/man/man1/latex.1.gz

定位ulem.sty

$ locate ulem.sty
/usr/share/texlive/texmf-dist/tex/generic/ulem/ulem.sty
/usr/share/texlive/texmf-dist/tex/latex/lwarp/lwarp-ulem.sty
/usr/share/texlive/texmf-dist/tex/xelatex/zhspacing/zhulem.sty
/usr/share/texmf/tex/latex/CJK/CJKulem.sty

创建 ulem 目录

$ sudo mkdir /usr/share/texmf/tex/latex/ulem
mkdir: cannot create directory ‘/usr/share/texmf/tex/latex/ulem’: File exists

复制 ulem.sty 文件

$ sudo cp /usr/share/texlive/texmf-dist/tex/generic/ulem/ulem.sty /usr/share/texmf/tex/latex/ulem/

运行 texhash

$ sudo texhash

定位ulem.sty

$ locate ulem.sty
/usr/share/texlive/texmf-dist/tex/generic/ulem/ulem.sty
/usr/share/texlive/texmf-dist/tex/latex/lwarp/lwarp-ulem.sty
/usr/share/texlive/texmf-dist/tex/xelatex/zhspacing/zhulem.sty
/usr/share/texmf/tex/latex/CJK/CJKulem.sty

想知道如何解决这个问题吗?

答案1

就我而言,我必须安装texlive-plain-generic才能开始ulem.sty工作:

sudo apt-get install texlive-plain-generic

相关内容