I finished my phd a couple of months ago, compiled it then completely just fine. I opened it today to make changes and during compilation I get error messages about "missing number treated as zero". I realized it is about brackets are used when computing a value.
for instance this works :
\documentclass{article}
\usepackage{pgfplots}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\def\x{5};
\def\y{4.5};
\foreach \p in {180,160,...,20}
{
\draw (0,0) -- (\x*\p:\y*\p/100);
}
\end{tikzpicture}
\end{document}
and this does not work, whereas it worked perfectly fine 2 months ago
\documentclass{article}
\usepackage{pgfplots}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\def\x{5};
\def\y{4.5};
\foreach \p in {180,160,...,20}
{
\draw (0,0) --({\x*(\p-20)}:{\y*({1.80-\p/100})});
}
\end{tikzpicture}
\end{document}
\draw (0,0) --({\x*(\p-20)}:{\y*(1.80-\p/100});. But still the reason eludes me. – percusse Jan 23 '12 at 22:29Missing number, treated as zero.in both TeXLive2011 and the older TexLive2010. But the OP suggested that this used to work a few months ago but is not now. – Peter Grill Jan 23 '12 at 22:57