Hi Thomas, Not sure whether it helps or not, but in regards to combinations and Lua I have had some challenges as well, but Hans' and Wolfgangs' solution with externalfigures works fine for me now: https://mailman.ntg.nl/pipermail/ntg-context/2021/103822.html https://mailman.ntg.nl/pipermail/ntg-context/2021/103827.html Adam On Mon, Mar 28, 2022 at 2:42 PM Thomas A. Schmitz via ntg-context < ntg-context@ntg.nl> wrote:
And here comes question 2, a very basic one: on A4 landscape pages, I want to place two images next to each other (like the spread pages of a book). What would be the preferred way of the really competent users to do this, again keeping in mind that I want to loop over page numbers in a pdf file and thus am coding in Lua. So far, I have tried or thought about:
1. Embedded xtable
This is what I’m using now, an xtable of two columns for every A4 page. It works, but I wonder if it’s a good method.
2. combinations
This appeared to be the most natural approach (because it’s what combinations are for), but I ran into expansion problems, added a few “function () end” in my code, but couldn’t make it compile. Combinations, combined with framed and externalfigure, are difficult to write in Lua - or am I too stupid to find the winning combination (sorry for the puns).
3. columns
Again, this would seen like a natural approach, having every A4 page set up as two columns, but maybe that’s overkill?
I’d be curious to know what you think!
All best
Thomas
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net
___________________________________________________________________________________