ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* hbox after \page[disable]
@ 2016-12-04 13:12 Michael Eidenbenz
  2016-12-04 17:13 ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Michael Eidenbenz @ 2016-12-04 13:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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?

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-12-06 10:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-04 13:12 hbox after \page[disable] Michael Eidenbenz
2016-12-04 17:13 ` Hans Hagen
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

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).