SpectralSequences / latex

Latex package to print spectral sequence diagrams using pgf/tikz.
9 stars 4 forks source link

Counter in \DoUntilOutOfBounds #7

Open dalcde opened 5 years ago

dalcde commented 5 years ago

It would be helpful to have a counter available in DoUntilOutOfBounds that one can use to name elements produced.

hoodmane commented 4 years ago

Looking at the code, this already seems to be present: the variable \iteration contains which iteration it's on, starting with 1. The code also seems to keep track of nested iterations, so for instance \csname iteration\space1\endcsname contains how many times the outermost loop has iterated.

I'm not sure whether I failed to document this because I was feeling ambivalent about whether or not I wanted to keep this feature or because I forgot about it. I probably ought to document it now.