ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: ntg-context@ntg.nl
Subject: Re: Typset Text on odd pages only
Date: Fri, 9 Sep 2016 08:10:33 +0200	[thread overview]
Message-ID: <04e808e2-deb8-43f3-6440-979245c4adf1@wxs.nl> (raw)
In-Reply-To: <165737F6-A544-4FDB-862B-1BF4A589CE75@arch.ethz.ch>

On 9/6/2016 5:48 PM, Michael Eidenbenz wrote:
> Hello,
>
> I'm looking for a way to produce a doublesided document with text on the odd pages only and floats on the even pages.
>
> Can somebody guide me in the right direction?
>
> Will something like \doifoddpageelse {typsettext} {\page} work?

\setuppagenumbering
   [alternative=doublesided]

\starttext

     \newtoks \SavedFloats

     \appendtoks
         \the\SavedFloats
         \global\SavedFloats\emptytoks
         \page
     \to \everybeforeoutput

     \page[right]

     \dorecurse{100}{
         \input tufte
         \par
         \appendtoks
             \placefigure[here]{}{}
         \to \SavedFloats
         \input ward
         \par
     }

\stoptext

better is to hook it into the otr (flush spreads) and collect floats 
differently so that the output routine can flush only as much as can be 
on one page

i can't make time now to write that (can be a quick hack but that's not 
ideal)

Hans



-----------------------------------------------------------------
                                           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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2016-09-09  6:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-06 15:48 Michael Eidenbenz
2016-09-09  6:10 ` Hans Hagen [this message]
2016-09-11 19:08   ` 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=04e808e2-deb8-43f3-6440-979245c4adf1@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).