ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: hbox after \page[disable]
Date: Sun, 4 Dec 2016 18:13:27 +0100	[thread overview]
Message-ID: <647b9954-c952-b69b-7599-86f68a9150b0@wxs.nl> (raw)
In-Reply-To: <E11B38B1-C520-40B7-A73C-E42135C27C6D@arch.ethz.ch>

On 12/4/2016 2:12 PM, Michael Eidenbenz wrote:
> I have a doublesided layout.
> On the right side i place the text, figures (if i have any) go on the left side.
> the MWE below works quite nice.
>
> But if i want the figure to be full height, two pages are skipped.
> This is becaus the hbox right below of the figure.
> I think it is placed during the \page[disable] pass.
>
> What can I do to avoid this hbox?

\def\Figure#1{\placefigure[location={page,none}]{}{#1}}


> Thanks Michael
>
>
> \enabletrackers
> [visualizers.hbox]
>
> \useMPlibrary[dum]
>
> \setuppagenumbering
>  [alternative=doublesided]
>
> \definelayout[odd][width=10cm]
> \definelayout[even][width=15cm]
>
> \newtoks \EvenPage
>
> \appendtoks
> \the\EvenPage
> \global\EvenPage\emptytoks
> \page[odd]
> \to\everyafteroutput
>
> \unexpanded\def\Figure#1{%
>   \appendtoks
>   \page[even]
>   #1
>   \page[disable]
>   \to\EvenPage}
>
> \showframe
>
> \starttext
>
> \dorecurse{4}{\input{tufte}\par}\page
> \Figure{\externalfigure[dummy][factor=fit]}
> \dorecurse{4}{\input{knuth}\par}\page
> \Figure{\externalfigure[dummy][height=\textheight]}  %
> \dorecurse{8}{\input{ward}\par}
> \stoptext
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
>


-- 

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

  reply	other threads:[~2016-12-04 17:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-04 13:12 Michael Eidenbenz
2016-12-04 17:13 ` Hans Hagen [this message]
2016-12-04 20:14   ` Michael Eidenbenz
2016-12-05 20:32     ` Michael Eidenbenz
2016-12-05 21:21       ` Hans Hagen
2016-12-06 10:28         ` Michael Eidenbenz

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=647b9954-c952-b69b-7599-86f68a9150b0@wxs.nl \
    --to=pragma@wxs.nl \
    --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).