dorecurse within combination
Hi, I’d like to place pages from a multipage PDF in a combination: \startcombination[3*1] \dorecurse{3}{% {\externalfigure[multipage][width=\textwidth/3,page=\recurselevel]}{} } \stopcombination That doesn’t work, because ConTeXt expects a { after \startcombination. (“A left brace was mandatory here, so I've put one in.”) I guess I need some expansion, but \expanded doesn’t help. How can I do this? Hraban
Henning Hraban Ramm via ntg-context schrieb am 07.07.2022 um 21:25:
Am 07.07.22 um 20:52 schrieb Henning Hraban Ramm via ntg-context:
How can I do this? Sorry for the noise, I solved it with Lua. The cld manual even contains a combinations example.
The Lua method is also simpler than a TeX based alternative. \starttext \startcollecting % \startcollect \startcombination[3*1] \stopcollect % \dorecurse{3} {\startcollect {\externalfigure[dummy]}{} \stopcollect} % \startcollect \stopcombination \stopcollect % \stopcollecting \stoptext Wolfgang
participants (2)
-
Henning Hraban Ramm
-
Wolfgang Schuster