2016年1月28日星期四

Mac中解决LaTeX Error: File `lastpage.sty' not found问题

原因是在tex文件中使用了lastpage包,但是我只安装的basic版本的tex中没有这个包(link),所以需要另行安装。

在命令行中执行以下命令:
sudo tlmgr update --self
sudo tlmgr install lastpage

关于安装texlive-latex-extra,参考:link.

问题解决后,又遇到LaTeX Error: File `sectsty.sty' not found的问题,同理,在命令行中执行以下命令:
sudo tlmgr update --self  // 如果前面update过了这里不用再update
sudo tlmgr install sectsty

没有评论:

发表评论