I feel very silly for asking such a simple question but I’m trying to define a macro which can be used in a GitLab README.md which would be called like foo{1,2,3}{4,5,6}
and result in: {1 atop fbox{4}}!!{2 atop fbox{5}}!!{3 atop fbox{6}}
i.e. something like
I’ve tried looking into foreach but I can’t figure out how that works either. Would love an easy to follow explanation or to be directed to a convenient resource so I can learn this myself.
The closest I’ve been able to get to what I want is:
deffoo#1#2{!#1 atop fbox{#2}!}
Which is way more convenient than typing that whole thing out each time, but my application is focused on describing long strings of numbered cells like above. Having the ability to just specify the cell numbers and what’s in them would make the documentation I’m writing way more maintainable than defining each cell individually.