ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* dorecurse within combination
@ 2022-07-07 18:52 Henning Hraban Ramm via ntg-context
  2022-07-07 19:25 ` Henning Hraban Ramm via ntg-context
  0 siblings, 1 reply; 3+ messages in thread
From: Henning Hraban Ramm via ntg-context @ 2022-07-07 18:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Henning Hraban Ramm

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
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: dorecurse within combination
  2022-07-07 18:52 dorecurse within combination Henning Hraban Ramm via ntg-context
@ 2022-07-07 19:25 ` Henning Hraban Ramm via ntg-context
  2022-07-07 21:20   ` Wolfgang Schuster via ntg-context
  0 siblings, 1 reply; 3+ messages in thread
From: Henning Hraban Ramm via ntg-context @ 2022-07-07 19:25 UTC (permalink / raw)
  To: ntg-context; +Cc: Henning Hraban Ramm

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.

Hraban

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: dorecurse within combination
  2022-07-07 19:25 ` Henning Hraban Ramm via ntg-context
@ 2022-07-07 21:20   ` Wolfgang Schuster via ntg-context
  0 siblings, 0 replies; 3+ messages in thread
From: Wolfgang Schuster via ntg-context @ 2022-07-07 21:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Wolfgang Schuster

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

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-07-07 21:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-07 18:52 dorecurse within combination Henning Hraban Ramm via ntg-context
2022-07-07 19:25 ` Henning Hraban Ramm via ntg-context
2022-07-07 21:20   ` Wolfgang Schuster via ntg-context

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).