Re: [NTG-context] numbering pages included by \copypages
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 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 > > ___ > ___ 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 ___
Re: [NTG-context] OK, I Don't Quite Understand \definefontfamily
> On Sep 28, 2020, at 12:39 PM, Wolfgang Schuster > wrote: > > Michael Urban schrieb am 25.09.2020 um 21:12: >> I don't seem quite able to put it all together, forgive the question. >> I have a 'Bookman' font setup, pretty vanilla: >> \definetypeface [Bookman] [rm] [serif] [bonum] [sl=name:unituscndboldoblique] >> \definetypeface [Bookman] [tt] [mono] [modern] [default] >> \definetypeface [Bookman] [ss] [sans] [unitus] [default] >> \definetypeface [Bookman] [mm] [math] [modern] [default] >> (Unitus is the fontsite 500 'Univers' substitute, works fine) >> Now, the built-in gyre bonum font doesn't have a slanted/oblique variant, so >> if I have Bookman as my main body >> font, \sl produces (unsurprisingly) the same result as \it, >> TexGyreBonum-Italic. If I want \sl to summon >> Latin Modern for the variant, I have tried variations on >> \definetypeface [Bookman] [rm] [serif] [bonum] [sl=file:Latin Modern Roman >> Slanted] >> but to no avail — not helped by the fact that the \definetypeface >> contextgarden page doesn't have any pointer to just what that fifth >> argument can contain. > > https://wiki.contextgarden.net/Command/definetypeface > >> How do I accomplish this? > > Use \definefontfamily which is missing in your example. > > \definefontfamily [Bookman] [rm] [TeX Gyre Bonum] > [sl=features:{*,slanted}, > bs=features:{*,slanted}] > > \definetypeface [Bookman] [mm] [math] [modern] [default] > > \setupbodyfont [Bookman] > > \starttext > \tf upright \it italic \sl slanted \bf bold \bi bolditalic \bs boldslanted > \stoptext > > Wolfgang Except that this does not work, because, as I said, the Gyre Bonum font has no builtin slanted version. So, I want to use some other font (like Latin Modern) for a substitute for \sl . ___ 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 ___
Re: [NTG-context] OK, I Don't Quite Understand \definefontfamily
Michael Urban schrieb am 25.09.2020 um 21:12: I don't seem quite able to put it all together, forgive the question. I have a 'Bookman' font setup, pretty vanilla: \definetypeface [Bookman] [rm] [serif] [bonum] [sl=name:unituscndboldoblique] \definetypeface [Bookman] [tt] [mono] [modern] [default] \definetypeface [Bookman] [ss] [sans] [unitus] [default] \definetypeface [Bookman] [mm] [math] [modern] [default] (Unitus is the fontsite 500 'Univers' substitute, works fine) Now, the built-in gyre bonum font doesn't have a slanted/oblique variant, so if I have Bookman as my main body font, \sl produces (unsurprisingly) the same result as \it, TexGyreBonum-Italic. If I want \sl to summon Latin Modern for the variant, I have tried variations on \definetypeface [Bookman] [rm] [serif] [bonum] [sl=file:Latin Modern Roman Slanted] but to no avail — not helped by the fact that the \definetypeface contextgarden page doesn't have any pointer to just what that fifth argument can contain. https://wiki.contextgarden.net/Command/definetypeface How do I accomplish this? Use \definefontfamily which is missing in your example. \definefontfamily [Bookman] [rm] [TeX Gyre Bonum] [sl=features:{*,slanted}, bs=features:{*,slanted}] \definetypeface [Bookman] [mm] [math] [modern] [default] \setupbodyfont [Bookman] \starttext \tf upright \it italic \sl slanted \bf bold \bi bolditalic \bs boldslanted \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 ___