今天编译一个模板文件的时候出现了几次File `mweights.sty' not found. \renewcommand错误,来记录一下解决方法。

首先下载这个sty文件,我看了很多博客,从https://www.ctan.org/这里可以下载,我下下来是zip文件也不知道咋弄……

于是翻墙直接搜,找到sty文件,点击进去

LaTex错误解决方法——File `xx.sty‘ not found. \renewcommand

是这样的,点击右键另存为,文件名就是这个,xx.sty

LaTex错误解决方法——File `xx.sty‘ not found. \renewcommand

然后进入这个文件夹,安装目录,建立一个同名的文件夹,再把你刚才下载的sty文件放进去

LaTex错误解决方法——File `xx.sty‘ not found. \renewcommand

建好是这样的:

LaTex错误解决方法——File `xx.sty‘ not found. \renewcommand

然后就要更新包,进入WinEdt,根据TeX->MiKTeX->MiKTeX Options->General->Refresh FNDB更新包

LaTex错误解决方法——File `xx.sty‘ not found. \renewcommand

更新好了再重新进去编译就可以啦~

 

参考:

参考1

参考2

参考3

相关文章: