This is my belated response to a self-identified dupe on TeX.SE.
Background
The list in a \foreach
loop is often long.
\foreach \pointA/\pointB in {{(1,0)}/{(2,2)},{(3,4)}/{(2,1)}} {
\draw \pointA -- \pointB;
}
Imagine having several other loop variables. The code inside the {…}
list
won’t be readable.
Problem
How can I make it looks smarter?
\foreach \pointA/\pointB in {
{(1,0)}/{(2,2)},{(3,4)}/{(2,1)}
} {
\draw \pointA -- \pointB;
}
doesn’t work.
Inspiration
Recently, I was asked the way to make two graphs to illustrate a complex function.
[Read More]