As far as I know, the following example is incorrect because I can't subtract inside the \foreach
list.
\documentclass[border=10pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{calc}
\begin{document}
\centering
\begin{tikzpicture}
\pgfmathsetmacro{\Width}{32}
\foreach \i in {1,...,\Width-1}{
% ...
}
\end{tikzpicture}
\end{document}
What would be the best approach for subtracting from \Width
? Using \pgfmathsetmacro
again like so?
\pgfmathsetmacro{\WidthMinusOne}{\Width-1}
\foreach \i in {1,...,\WidthMinusOne}{
% ...
}
Thanks.
pgf
manual section 88, especially aboutevaluate
(page 1004-5)