latex icon indicating copy to clipboard operation
latex copied to clipboard

Looping?

Open wmoskal opened this issue 5 years ago • 2 comments

Is there a way to loop through an iterable object similar to how it is done in jinja?

wmoskal avatar Jul 08 '19 19:07 wmoskal

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

wmoskal avatar Jul 08 '19 19:07 wmoskal

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.

tom-f-oconnell avatar Nov 02 '19 00:11 tom-f-oconnell