6
votes
4answers
63 views

Get first item of a list (in TikZ)

If I have a comma-separated list, known to be non-empty, how can I access the first element of it? My current approach is to use a TikZ foreach loop, and break out of the loop after the first ...
4
votes
1answer
43 views

Append two lists for TikZ foreach loop

How can I make a TikZ foreach loop iterate over two lists consecutively? I had hoped that in my code below, the expression \firstlist,\secondlist would evaluate to 2,3,5,7,1,4,6, but it doesn't work. ...
8
votes
2answers
97 views

Confusion regarding strings and numbers in tikz

I'm using a macro that uses \StrBetween from xstring It seems to be working great. However, when I try to use a value that it returns as a coordinate in a tikz picture, I get a confusing error. ...