在此tikzpicture
,我收到以下错误消息:
Missing number, treated as zero. ...$ /1,}{$-\infty$ , $0$ , $4$ , $+\infty$}
问题是什么?
\begin{tikzpicture}
\tkzTabInit[espcl=2]{$x$ /1, $|x|$ /1,$|x-4|$ /1,}
{$-\infty$ , $0$ , $4$ , $+\infty$}
\tkzTabLine{,-x,z,x,t,x,}
\tkzTabLine{,4-x,t,4-x,z,x-4,}
\end{tikzpicture}
答案1
\tkzTabInit
行描述末尾的逗号有误:
\documentclass{article}
\usepackage{tkz-tab}
\begin{document}
\begin{tikzpicture}
\tkzTabInit[espcl=2]{$x$ /1, $|x|$ /1,$|x-4|$ /1}% You have a wrong final comma here
{$-\infty$ , $0$ , $4$ , $+\infty$}
\tkzTabLine{,-x,z,x,t,x,}
\tkzTabLine{,4-x,t,4-x,z,x-4,}
\end{tikzpicture}
\end{document}