latex
latex copied to clipboard
Looping?
Is there a way to loop through an iterable object similar to how it is done in jinja?
The looping is to place data in a longtable, where each item is a list and each element of the list is one cell of the table
Yea. Just like the docs say "\BLOCK{...}
is substituted for {% ... %}
"
The looping syntax is just a straight translation of the usual Jinja syntax, and looks like this:
\BLOCK{ for item in items }
\VAR{item}
\BLOCK{ endfor }
Maybe an example with a loop would be useful in the documentation, but otherwise I think this issue can be closed.