[NTG-context] repeat a page inside a document
Thomas Savary
compo85 at correctionpro.fr
Thu Feb 6 17:39:21 CET 2020
Hi, Pablo !
Funny, I asked the same kind of question in a LaTeX mailing list a few days
ago. The anwer I was given requires a LaTeX package, but is written in TeX as
well, so it may be easy to adapt it for ConTeXt. Sorry, I cannot do that
myself yet. I have just started to learn ConTeXt and am a very busy slow
learner.
\usepackage{atbegshi}
\newcommand{\Repeat}{<the content you need to be repeatedt>}
\AtBeginShipout{%
\ifodd\value{page}%
\else\Repeat%
\newpage%
\fi%
}
I hope it helps. But maybe you don’t need to repeat the same page every two
page, as I did…
Thomas Savary
1 le Grand-Plessis
F-85340 L’Île-d’Olonne
Tél. 06 22 82 61 34
https://correctionpro.fr/
https://compo85.fr/
jeudi 6 février 2020, à 16:28:04 CET, Pablo Rodriguez a écrit :
> 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 HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20200206/dcd95c48/attachment.htm>
More information about the ntg-context
mailing list