[NTG-context] Full-page Figure?
Michael Urban
urban.m at ca.rr.com
Wed Mar 30 23:41:57 CEST 2022
Almost there. But if I add \setuppagenumbering [alternative=doublesided]
to the example, there is a blank page before the makeup page, and an unnumbered blank page after. If I add doublesided=no to the
\setupmakeup options, the unnumbered blank page is not there, but there is still a blank page before. It is seemingly forcing
a right-hand page for some reason I do not understand.
Mike
> On Mar 28, 2022, at 6:37 PM, śrīrāma via ntg-context <ntg-context at ntg.nl> wrote:
>
> On Tuesday, March 29, 2022 4:18 AM Michael Urban via ntg-context wrote:
>> Is there a simple way to accomplish this?
>
> I suppose you need 'postponing'. See
> https://wiki.contextgarden.net/Command/startpostponing
> [One can specify a page explicitly, or, more conveniently, an offset]
>
> First, we define a makeup and enable header, footer and page for it. Then we can put the float inside the makeup and wrap it with \start...\stoppostponing. Here is a MWE:
>
> %%% start example
> \setupexternalfigures[location=default]
> \definemakeup
> [FloatPage]
> \setupmakeup
> [FloatPage]
> [headerstate=normal,
> pagestate=start,
> align=middle,
> footerstate=normal]
>
> \setupheadertexts[]
> \setupheadertexts[chapter][\date]
> \setupfootertexts[pagenumber]
>
> \starttext
> \startchapter [title={Chapter title}]
> \startpostponing[+1]
> \startFloatPagemakeup
> \placefigure{a floating cow}{\externalfigure[cow]}
> \stopFloatPagemakeup
> \stoppostponing
> \dorecurse{6}{\samplefile{knuth}}
> \blank
>
> \dorecurse{2}{\samplefile{tufte}}
> \stopchapter
> \stoptext
> %%% stop example
>
> Of course, I think some manual hand-tuning is required (in the final stages of the document) in deciding the right place to put the postponing block and in deciding what offset is best.
>
> Sreeram
>
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
More information about the ntg-context
mailing list