New answers tagged

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 ...
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 ...

Top 50 recent answers are included