我正在尝试将 tex
文档转换为 pdf。
但是当我做 pdflatex doc.tex
时,我得到了
This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015/Debian) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
(./doc.tex
LaTeX2e <2016/02/01>
Babel <3.9q> and hyphenation patterns for 3 language(s) loaded.
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo))
! LaTeX Error: File `cmap.sty' not found.
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)
Enter file name: X
来自 here我知道我需要做 apt-get install texlive-fonts-recommended texlive-latex-recommended texlive-latex-extra
。但这表示它将下载 656 MB 的存档。
由于我的 ubuntu
分区空间不足,有没有办法只安装 cmap.sty
最佳答案
在 Ubuntu 18.04 上,apt install texlive-latex-extra
有效。
关于latex - 如何在我的机器上只安装 cmap.sty 所需的包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50431961/