ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Alan Bowen <bowenalan03@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: numbering pages included by \copypages
Date: Mon, 28 Sep 2020 18:00:40 -0400	[thread overview]
Message-ID: <CAFMOkGXzwmT9f+pukC35yX_iTPLw6UyDFkLoaK3u4MAMSMbn9A@mail.gmail.com> (raw)
In-Reply-To: <69cf7814-800c-457c-9ca6-6791b134b8be@xs4all.nl>


[-- Attachment #1.1: Type: text/plain, Size: 3180 bytes --]

After further testing guided by Hans’ suggestion, I now have

\setupexternalfigures[location=default]
\setuplayer[preset=rightbottom, method=overlay]{}
\setuppagenumbering[color=darkmagenta]
\starttext
\getfiguredimensions[HannahBW.pdf]

\dorecurse{\noffigurepages}{
\startTEXpage[pagestate=start]
\layeredtext[]
[boffset=3pc, roffset=3pc]
{\darkmagenta\subpagenumber}
{\externalfigure[HannahBW.pdf][page=#1]}
\stopTEXpage
}
\stoptext

which works, though it would arguably be better if there is a way to
prevent the subpage number on the first page of every included file.

Alan

On Fri, Sep 25, 2020 at 6:12 AM Hans Hagen <j.hagen@xs4all.nl> wrote:

> On 9/25/2020 5:53 AM, Aditya Mahajan wrote:
> > On Fri, 25 Sep 2020, Wolfgang Schuster wrote:
> >
> >> Aditya Mahajan schrieb am 24.09.2020 um 23:48:
> >>> On Thu, 24 Sep 2020, Alan Bowen wrote:
> >>>> Any suggestions or pointers will be most welcome.
> >>>
> >>> See if this gives you any ideas ....
> >>>
> >>> https://adityam.github.io/context-blog/post/include-multi-page-pdf/
> >>
> >> When both document have the same size you can replace TeXpage with a
> "page"
> >> layout.
> >>
> >> \startlayout[page]
> >> \dorecurse{\noffigurepages}{\externalfigure[...][page=\recurselevel]}
> >> \stoplayout
> >
> > Thanks for the comment (also I didn't know about \startlayout ..
> \stoplayout). Unfortunately, in my use case, the paper sizes may not be the
> same.. I am typically attaching published journal articles and some are
> published on letter paper and some on A4.
>
> \setupexternalfigures[location=default]
>
> \starttext
>
> \dorecurse {5} {Before #1\page}
>
> \getfiguredimensions[oeps.pdf]
>
> \startsetups SomeNumber
>      \vbox to \overlayheight \bgroup
>          \vss
>          \hbox to \overlaywidth \bgroup
>              \hss
>                  \bfd \red You can figure it out: \pagenumber
>              \hss
>          \egroup
>          \vss
>      \egroup
> \stopsetups
>
> \defineoverlay[SomeNumber][\setups{SomeNumber}]
>
> \dorecurse {\noffigurepages} {
>      \startTEXpage[pagestate=start]
>          \externalfigure[oeps.pdf][page=#1,background=SomeNumber]%
>      \stopTEXpage
> }
>
> \dorecurse {5} {After #1\page}
>
> \stoptext
>
> -----------------------------------------------------------------
>                                            Hans Hagen | PRAGMA ADE
>                Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>         tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -----------------------------------------------------------------
>
> ___________________________________________________________________________________
> 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
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 6547 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

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

      reply	other threads:[~2020-09-28 22:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-24 19:12 Alan Bowen
2020-09-24 21:48 ` Aditya Mahajan
2020-09-24 22:14   ` Wolfgang Schuster
2020-09-25  3:53     ` Aditya Mahajan
2020-09-25 10:11       ` Hans Hagen
2020-09-28 22:00         ` Alan Bowen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFMOkGXzwmT9f+pukC35yX_iTPLw6UyDFkLoaK3u4MAMSMbn9A@mail.gmail.com \
    --to=bowenalan03@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).