[NTG-context] repeat a page inside a document

context at vivaldi.net context at vivaldi.net
Thu Feb 27 15:24:58 CET 2020


Hello Pablo,

although I'm not sure about what to achieve, should this be helpful for 
you?

Ctx source:

---- Pablo.mkiv
\starttext
   \setupheadertexts[][\cldcontext{"Mode = " .. (tex.modes["1"] and "1" 
or tex.modes["2"] and "2" or "??")}] % Just for debugging

   \input knuth

   \page[right]
   \startmodeset
     [1]
     {%
       \setuplayout[page] foo
     }
     [2]
     {%
       \pagefigure[\jobname_.pdf][page=1]
     }
   \stopmodeset
\stoptext
----

To be compiled in two runs, with this:

----
d:\Lukas\ConTeXt\Test>
Ctx.bat Pablo.mkiv --mode=1 & move /y Pablo.pdf Pablo_.pdf & Ctx.bat 
Pablo.mkiv --mode=2
----

Best regards,

Lukas


On 2020-02-06 16:28, Pablo Rodriguez wrote:
> Dear list,
> 
> I have the following sample:
> 
>     \starttext
>     \input knuth
>     \page[right]
>     \setuplayout[page]
>         \externalfigure[\jobname.pdf][page=1]
>     \stoptext
> 
> My question is how to get a page from the document you‘re compiling
> repeated inside the same document.
> 
> I have tried to search both i-context.pdf and the wiki, but “mirror” 
> and
> “repeat” seem to be bad options.
> 
> Many thanks in advance,
> 
> Pablo
> --
> http://www.ousia.tk
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry
> to the Wiki!
> 
> maillist : ntg-context at 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
> ___________________________________________________________________________________
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Pablo.mkiv
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20200227/658227e7/attachment.ksh>


More information about the ntg-context mailing list