我有一个非常大的文档(书,超过 400 页,十几个章节,有很多 tikz 图片),以前编译时没问题。但上次 TeXlive 更新时,出现了问题。现在编译时,我的一些图片(如果不是全部的话)出现了错误。
问题是,我没有更改类文件中的任何内容,而且我似乎无法在代码(曾经编译过)中发现任何错误。
我想知道如何才能找到问题(在我看来,这是 tikz 和另一个包(可能是 tkz-euclide 或其他包)之间的某种冲突,可以通过按正确的顺序加载包来解决,或类似的事情)。
我知道我的问题很模糊,但也许有人习惯于这种问题(大文档,不可能在此网站上提供最少的示例......)。
谢谢你的帮助 :-)
编辑:这是我收到的错误消息:
Chapitre VII.
(./geometrie.mtc7) [177] [178]
Missing character: There is no = in font nullfont!
Missing character: There is no @ in font nullfont!
Missing character: There is no @ in font nullfont!
Runaway argument?
-5:-0.1,samples=200] plot ({fx1(\x )},{fy1(\x )}); \draw [thick,blue,\ETC.
./courbesaff.tex:209: Paragraph ended before \pgfmath@local@@functions was complete.
<to be read again>
\par
l.209
Missing character: There is no L in font nullfont!
Missing character: There is no a in font nullfont!
Missing character: There is no t in font nullfont!
Missing character: There is no a in font nullfont!
Missing character: There is no n in font nullfont!
Missing character: There is no g in font nullfont!
Missing character: There is no e in font nullfont!
Missing character: There is no n in font nullfont!
Missing character: There is no t in font nullfont!
Missing character: There is no e in font nullfont!
Missing character: There is no a in font nullfont!
Missing character: There is no u in font nullfont!
Missing character: There is no p in font nullfont!
Missing character: There is no o in font nullfont!
Missing character: There is no i in font nullfont!
Missing character: There is no n in font nullfont!
Missing character: There is no t in font nullfont!
Missing character: There is no d in font nullfont!
Missing character: There is no e in font nullfont!
Missing character: There is no p in font nullfont!
Missing character: There is no a in font nullfont!
Missing character: There is no r in font nullfont!
Missing character: There is no a in font nullfont!
Missing character: There is no m in font nullfont!
Missing character: There is no in font nullfont!
Missing character: There is no t in font nullfont!
Missing character: There is no r in font nullfont!
Missing character: There is no e in font nullfont!
Missing character: There is no e in font nullfont!
Missing character: There is no s in font nullfont!
Missing character: There is no t in font nullfont!
Missing character: There is no d in font nullfont!
Missing character: There is no i in font nullfont!
Missing character: There is no r in font nullfont!
Missing character: There is no i in font nullfont!
Missing character: There is no g in font nullfont!
Missing character: There is no in font nullfont!
Missing character: There is no e in font nullfont!
Missing character: There is no p in font nullfont!
Missing character: There is no a in font nullfont!
Missing character: There is no r in font nullfont!
Missing character: There is no l in font nullfont!
Missing character: There is no e in font nullfont!
Missing character: There is no v in font nullfont!
Missing character: There is no e in font nullfont!
Missing character: There is no c in font nullfont!
Missing character: There is no t in font nullfont!
Missing character: There is no e in font nullfont!
Missing character: There is no u in font nullfont!
Missing character: There is no r in font nullfont!
Missing character: There is no e in font nullfont!
Missing character: There is no t in font nullfont!
Missing character: There is no a in font nullfont!
Missing character: There is no p in font nullfont!
Missing character: There is no o in font nullfont!
Missing character: There is no u in font nullfont!
Missing character: There is no r in font nullfont!
Missing character: There is no in font nullfont!
Missing character: There is no q in font nullfont!
Missing character: There is no u in font nullfont!
Missing character: There is no a in font nullfont!
Missing character: There is no t in font nullfont!
Missing character: There is no i in font nullfont!
Missing character: There is no o in font nullfont!
Missing character: There is no n in font nullfont!
Missing character: There is no 3 in font nullfont!
Missing character: There is no t in font nullfont!
./courbesaff.tex:213: Missing $ inserted.
<inserted text>
$
l.213 3t^
2(x-a t^2)-2t(y-a t^3)=0\iff 3tx-2y-a t^3=0
./courbesaff.tex:214: Missing $ inserted.
<inserted text>
$
l.214 \end{equation*}
“错误代码:
\begin{figure}[htbp]
\centering
\begin{tikzpicture}[declare function = {
fx1(\t) = 2/\t;
fy1(\t) = 2*\t*\t;
fx2(\t) = 3*\t/(\t*\t+pow(4,-1/3));
fy2(\t) = 6*pow(4,-2/3)/(\t*\t+pow(4,-1/3));
}]
\tikzdrawaxislabelclip{-5.2}{5.2}{-0.5}{7.2};
\draw[thin] (1,-0.05) node[below]{$\spt1$} -- (1,0.05)
(-0.05,1) node[left]{$\spt1$} -- (0.05,1) (0,0) node[below
left]{$\spt O$} (0-0.05,{3*pow(4,-1/3)}) node[left]{$\spt A$} --
(0+0.05,{3*pow(4,-1/3)});
\draw[thick,blue,domain=-5:-0.1,samples=200] plot
({fx1(\x)},{fy1(\x)});
\draw[thick,blue,domain=0.1:5,samples=200] plot
({fx1(\x)},{fy1(\x)});
\draw[thick,violet,domain=-100:-10,samples=200] plot
({fx2(\x)},{fy2(\x)});
\draw[thick,violet,domain=-10:-1,samples=200] plot
({fx2(\x)},{fy2(\x)});
\draw[thick,violet,domain=-1:1,samples=200] plot
({fx2(\x)},{fy2(\x)});
\draw[thick,violet,domain=1:10,samples=200] plot
({fx2(\x)},{fy2(\x)});
\draw[thick,violet,domain=10:100,samples=200] plot
({fx2(\x)},{fy2(\x)});
\draw[thin,red,domain=-5.2:5.2] plot (\x,6-2*\x);
\draw[thin,red,domain=-5.2:5.2] plot (\x,{\x/2+6*pow(4,-2/3)});
\end{tikzpicture}
% \includegraphics[scale=0.75]{courbesaff.101}
\caption{Orthoptique de l'arc paramétré $x=\frac{a}{t}$, $y=at^2$}
\end{figure}
\item \fbox{$f(t)=(a t^2,a t^3)$}
La tangente au point de paramètre $t$ est dirigée par le vecteur
$(2,3t)$ et a pour équation
\begin{equation*}
3t^2(x-a t^2)-2t(y-a t^3)=0\iff 3tx-2y-a t^3=0
\end{equation*}
以前编译得很好。最近我收到很多这样的“字体 nullfont 中缺少字符”,我也想知道为什么。
另一张图片中的另一个错误:我画了一些三角形的欧拉线。我定义了所有点,并在第一条线上画了一些内容:
\tkzDrawLine[add= 1 and 1](A,B)
我收到此错误信息:
./enveloppes.tex:143: Package tikz Error: + or - expected.
See the tikz package documentation for explanation.
Type H <return> for immediate help.
...
l.143 \tkzDrawLine[add= 1 and 1](A,B)
./enveloppes.tex:143: Package tikz Error: Giving up on this path. Did you forget a semicolon?.
如果有人有想法(我知道,这可能是没希望的......),我会很高兴:-)
答案1
我终于找到了问题所在:这是 tikz 和 babel 之间的错误。将 babel 库添加到 tikz 库中解决了这个问题。
抱歉造成了噪音。