New answers tagged pgffor
0
votes
Accepted
Using foreach to add variable number of rows to a bytefield inside a TikZ node? (part 2)
If you just say /.list=\fields, the macro \fields will be the only element of your list. Internally, this will lead to a loop that looks like
\foreach \ELEMENT in {\fields}
You need to expand \fields ...
- 103k
1
vote
Accepted
Having the upper bound of a foreach loop be an index from an array
The parse options of PGFFor is a bit finicky, especially if the last item comes directly after .... It usally helps to add 0+ in front of it (sometimes just + is enough but not in this case).
I've ...
- 103k
Top 50 recent answers are included
Related Tags
pgffor × 102foreach × 23
tikz-pgf × 19
loops × 18
macros × 14
tables × 6
pgfplots × 6
conditionals × 5
expansion × 5
errors × 4
pgfkeys × 4
etoolbox × 4
beamer × 3
pdftex × 3
amsmath × 3
xparse × 3
pgfmath × 3
datatool × 3
comma-separated-list × 3
math-mode × 2
symbols × 2
matrices × 2
pgfplotstable × 2
compilation-error × 2
xstring × 2