转自:http://blog.sina.com.cn/s/blog_87315ca60101d4d1.html

 

 

在Linux下用 latex 编译 ××.tex 文件有时候时会提示:
 ! LaTeX Error: File `××××.sty' not found.
    说明在你系统里没有××××.sty这个文件。其实如果只是少了这一个文件的话,可以去CTAN这个网站去搜(http://www.ctan.org/),把该文件下下来后直接放到你所编译的文件夹中再重新编译即可。但是治根不治本,如果有很多此类的sty文件缺失的话,就说明可能是少安装了一个程序包,如何找到这个程序包linux下有一个非常简单的指令:apt-file。 只需要安装好apt-file, 输入 
apt-file -x search ‘/×××.sty$’ (×××就是你所需要的sty文件名)
    例如:  
apt-file -x search '/wrapfig.sty$' 
    系统会给出
texlive-latex-extra: /usr/share/texlive/texmf-dist/tex/latex/wrapfig/wrapfig.sty
    再去下载 texlive-latex-extra 这个包即可:
sudo apt-get intall texlive-latex-extra

相关文章:

  • 2021-08-17
  • 2021-10-19
  • 2021-10-17
  • 2021-12-11
  • 2021-11-29
  • 2022-12-23
  • 2022-12-23
  • 2021-08-20
猜你喜欢
  • 2019-09-18
  • 2021-10-17
  • 2021-09-17
  • 2022-01-08
  • 2022-12-23
  • 2021-07-26
  • 2022-02-13
相关资源
相似解决方案