编辑:由于忘记在 Texpad 编辑器首选项中更新分布,所以出现了问题!
我刚刚使用昨天下载并安装的 Yosemite 上的完整 MacTeX-2015 发行版将 TexLive 2014 更新到 2015。使用 pdflatex 编译一个简单的新文档后
\documentclass[11pt]{article}
\begin{document}
Test
\end{document}
我收到一条错误消息:
/usr/texbin/pdflatex -file-line-error -interaction=nonstopmode -synctex=1 -output-directory=/Users/xyz/ Desktop/.texpadtmp test.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
(./test.tex
LaTeX2e <2015/01/01> patch level 2
Babel <3.9m> and hyphenation patterns for 79 languages loaded.
! LaTeX Error: File `article.cls' not found.
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: cls)
Enter file name:
./test.tex:2: Emergency stop.
<read *>
l.2 ^^M
./test.tex:2: ==> Fatal error occurred, no output PDF file produced!
Transcript written on /Users/xyz/Desktop/.texpadtmp/test.log.
不用说,文件 article.cls 位于
/usr/local/texlive/2015/texmf-dist/tex/latex/base/article.cls
我努力了
sudo -H mktexlsr
结果对我来说看起来不错:
mktexlsr: Updating /usr/local/texlive/2015/texmf-config/ls-R...
mktexlsr: Updating /usr/local/texlive/2015/texmf-dist/ls-R...
mktexlsr: Updating /usr/local/texlive/2015/texmf-var/ls-R...
mktexlsr: Updating /usr/local/texlive/texmf-local/ls-R...
mktexlsr: Done.
以及输出
kpsepath tex | sed 's/:/\n/g'
据我所知看起来也不错:
.n/Users/xyz/Library/texlive/2015/texmf-config/tex/kpsewhich//n/Users/xyz/Library/texlive/2015/texmf-var/tex/kpsewhich//n/Users/xyz/Library/texmf/tex/kpsewhich//n!!/usr/local/texlive/2015/texmf-config/tex/kpsewhich//n!!/usr/local/texlive/2015/texmf-var/tex/kpsewhich//n!!/usr/local/texlive/texmf-local/tex/kpsewhich//n!!/usr/local/texlive/2015/texmf-dist/tex/kpsewhich//n/Users/xyz/Library/texlive/2015/texmf-config/tex/generic//n/Users/xyz/Library/texlive/2015/texmf-var/tex/generic//n/Users/xyz/Library/texmf/tex/generic//n!!/usr/local/texlive/2015/texmf-config/tex/generic//n!!/usr/local/texlive/2015/texmf-var/tex/generic//n!!/usr/local/texlive/texmf-local/tex/generic//n!!/usr/local/texlive/2015/texmf-dist/tex/generic//n/Users/xyz/Library/texlive/2015/texmf-config/tex///n/Users/xyz/Library/texlive/2015/texmf-var/tex///n/Users/xyz/Library/texmf/tex///n!!/usr/local/texlive/2015/texmf-config/tex///n!!/usr/local/texlive/2015/texmf-var/tex///n!!/usr/local/texlive/texmf-local/tex///n!!/usr/local/texlive/2015/texmf-dist/tex///
当我切换回 2014 发行版时一切似乎都运行正常......
我很茫然——任何想法都将不胜感激!