我的合著者给我发了一个需要 tikz 的 latex 文件。我发现 LaTeX 在加载 tikz 时卡住了。我使用的是新安装的 texlive2012 安装(但我检查了 TeX Live 2011 和 2010 上也发生了同样的事情)。
测试文件:
\documentclass[11pt,reqno]{amsart}
\usepackage{tikz}
\begin{document}
blah
\end{document}
错误:
(/usr/local/texlive/2012/texmf-dist/tex/latex/amscls/amsart.cls
Document Class: amsart 2009/07/02 v2.20.1
(/usr/local/texlive/2012/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/local/texlive/2012/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/local/texlive/2012/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/local/texlive/2012/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/local/texlive/2012/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/local/texlive/2012/texmf-dist/tex/latex/amsfonts/umsa.fd)
(/usr/local/texlive/2012/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
(/usr/local/texlive/2012/texmf-dist/tex/latex/pgf/frontendlayer/tikz.sty
(/Users/fgoodman/Library/texmf/tex/latex/pgf/pgf.sty
(/usr/local/texlive/2012/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/local/texlive/2012/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2012/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/local/texlive/2012/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/local/texlive/2012/texmf-dist/tex/latex/latexconfig/graphics.cfg)
(/usr/local/texlive/2012/texmf-dist/tex/latex/pdftex-def/pdftex.def
(/usr/local/texlive/2012/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(/usr/local/texlive/2012/texmf-dist/tex/generic/oberdiek/ltxcmds.sty))))
(/usr/local/texlive/2012/texmf-dist/tex/latex/xcolor/xcolor.sty
(/usr/local/texlive/2012/texmf-dist/tex/latex/latexconfig/color.cfg)))
(/usr/local/texlive/2012/texmf-dist/tex/latex/pgf/utilities/pgffor.sty
(/usr/local/texlive/2012/texmf-dist/tex/latex/pgf/utilities/pgfrcs.sty
(/usr/local/texlive/2012/texmf-dist/tex/generic/pgf/utilities/pgfutil-common.te
x)
(/usr/local/texlive/2012/texmf-dist/tex/generic/pgf/utilities/pgfutil-latex.def
(/usr/local/texlive/2012/texmf-dist/tex/latex/ms/everyshi.sty))
(/usr/local/texlive/2012/texmf-dist/tex/generic/pgf/utilities/pgfrcs.code.tex))
(/usr/local/texlive/2012/texmf-dist/tex/latex/pgf/utilities/pgfkeys.sty
(/usr/local/texlive/2012/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex
(/usr/local/texlive/2012/texmf-dist/tex/generic/pgf/utilities/pgfkeysfiltered.c
ode.tex)))
(/usr/local/texlive/2012/texmf-dist/tex/generic/pgf/utilities/pgffor.code.tex))
(/usr/local/texlive/2012/texmf-dist/tex/generic/pgf/frontendlayer/tikz/tikz.cod
e.tex
(/usr/local/texlive/2012/texmf-dist/tex/generic/pgf/libraries/pgflibraryplothan
dlers.code.tex
/usr/local/texlive/2012/texmf-dist/tex/generic/pgf/libraries/pgflibraryplothand
lers.code.tex:104: Undefined control sequence.
\pgfsetplottension ...ttension {\pgf@sys@tonumber
\pgf@x }
l.104 \pgfsetplottension{0.5}
?
Process aborted
答案1
正如我所料,演示对我来说运行良好。您的问题由以下行显示
(/Users/fgoodman/Library/texmf/tex/latex/pgf/pgf.sty
在日志文件中。您有一个当地的的副本pgf.sty
,可能是旧副本,将优先于/usr/local/texlive/2012
(或其他年份,视情况而定)的“系统范围”副本加载。尝试将旧文件移出~/Library/texmf
:实际上,您可能还有其他旧文件,因此请仔细检查您的日志。