pdflatex
在 ubuntu 18.04 上运行时我得到LaTeX Error: File marginnote.sty not found.
locate marginnote.sty
给出
/usr/share/texlive/texmf-dist/tex/latex/lwarp/lwarp-marginnote.sty
但他确实发现了例如 amssymb。
locate amssymb
给出
/usr/share/doc/texlive-doc/fonts/amsfonts/amssymb.pdf
/usr/share/texlive/texmf-dist/tex/generic/tex4ht/amssymb.4ht
/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amssymb.sty
/usr/share/texlive/texmf-dist/tex/plain/font-change/default-amssymbols.tex
此外
latex --version
给出
pdfTeX 3.14159265-2.6-1.40.18 (TeX Live 2017/Debian)
kpathsea version 6.2.3
Copyright 2017 Han The Thanh (pdfTeX) et al.
There is NO warranty. Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Han The Thanh (pdfTeX) et al.
Compiled with libpng 1.6.34; using libpng 1.6.34
Compiled with zlib 1.2.11; using zlib 1.2.11
Compiled with poppler version 0.62.0
我现在已经申请了sudo texhash /usr/share/texlive/texmf-dist
,但没有帮助。
原因可能是我之前用 python3 做过一些更新(到那时一切正常),例如
sudo apt autoremove python2
sudo apt autoremove python2.7
sudo apt install -y python3-pip
你能帮我让 pdflatex 再次运行吗(这对我来说比 python3 和 pip3 更重要)?
答案1
这有帮助:
安装 texlive-latex-extra
(而且正如我在安装过程中看到的,它使用了 python2.7;所以删除 python2.7 确实导致了问题。)