在Ubuntu中,Latex的安装目录一般在以下目录:
Tex Live:/usr/share/texmf-texlive/tex/latex
TeTeX :/usr/share/texmf-tetex/tex/latex
本人用的是Tex Live,简单四步就可以完成安装。
- 下载需要的sty文件。安装源:http://tug.ctan.org/search/或者http://www.tug.org/texmf-dist/tex/latex/
- 在上述对应的目录中创建一个存放sty的文件夹(根据个人喜好);
- 把所要安装的sty文件拷贝到新建的文件夹中;
- 最后运行
sudo mktexlsr或者
sudo texhash。搞定!
Reference:
- http://blog.irrepupavel.com/2007/02/installing-latex-style-files-sty-on.html
- http://blog.csdn.net/QIBAOYUAN/archive/2011/01/08/612435