ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "śrīrāma via ntg-context" <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Michael Urban <urban.m@ca.rr.com>
Cc: śrīrāma <citturs@gmail.com>
Subject: Re: Full-page Figure?
Date: Tue, 29 Mar 2022 07:07:26 +0530	[thread overview]
Message-ID: <2625161.mvXUDI8C0e@sreeramtplt> (raw)
In-Reply-To: <5EC9E6EE-5471-49A4-8961-E7829D5738DE@ca.rr.com>

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@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:[~2022-03-29  1:37 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-28 22:48 Michael Urban via ntg-context
2022-03-29  1:37 ` śrīrāma via ntg-context [this message]
2022-03-30 21:41   ` Michael Urban via ntg-context
2022-03-31  1:13     ` śrīrāma via ntg-context
2022-03-31  6:38     ` Hans Hagen via ntg-context
2022-03-31 23:40       ` Michael Urban via ntg-context
2022-03-31  1:46 ` śrīrāma via ntg-context

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=2625161.mvXUDI8C0e@sreeramtplt \
    --to=ntg-context@ntg.nl \
    --cc=citturs@gmail.com \
    --cc=urban.m@ca.rr.com \
    /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).