Mac系统下添加.sty文件,解决File 'xxxx.sty' not found错误

Mac系统下添加.sty文件,解决File ‘xxxx.sty’ not found错误

系统

Mac OS X 10.13.6
texmaker-使用XeLaTex编译

问题背景

想要使用Google到的NIPS_2018的LaTex模板。

\usepackage{neurips_2018}

编译后提示

File 'neurips_2018.sty' not found.

解决方法

问题原因显然,即是缺少.sty文件。
首先找到对应的.sty文件,比如这个链接是NIPS 2018的.sty文件:

https://media.nips.cc/Conferences/NIPS2018/Styles/nips_2018.tex

点开链接后,右键空白地方→另存为(存储为),保存到.tex文件同一个根目录即可。

猜你喜欢

转载自blog.csdn.net/qq_39178023/article/details/86562292