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: twoside layout
Date: Wed, 14 Dec 2016 00:05:57 +0100	[thread overview]
Message-ID: <4ed5e423-e74a-7560-0090-818d6992ff17@wxs.nl> (raw)
In-Reply-To: <28d24f60-7c5d-ed99-77ef-0370c883600c@FU-Berlin.DE>

On 12/13/2016 10:54 PM, Herbert Voss wrote:
> Is it possible to set only the textwidth and the inner margin
> for a twosided layout?
>
> As far as I can see, backspace sets only the _left_ margin
> of odd _and_ even pages.
>
>
> \definepapersize[new][height=240mm,width=165mm]
> \setuppapersize[new]
>
> \definelayout[odd][
>   topspace=14pt, header=14pt, headerdistance=22pt, height=20.2cm,
>   backspace=1.9cm, width=12.4cm]
> \definelayout[even][
>   topspace=14pt, header=14pt, headerdistance=22pt, height=20.2cm,
>   backspace=2.2cm, width=12.4cm]
> \setuplayout
>
> \starttext
> \showframe
> \dorecurse{10} {\input knuth \endgraf \input tufte \endgraf}
> \showlayout[1,pt,cm]
> \dorecurse{10} {\input knuth \endgraf \input tufte \endgraf}
> \stoptext

\setuppagenumbering[alternative=singlesided]
\setuppagenumbering[alternative=doublesided]
\setuppagenumbering[alternative={singlesided,doublesided}]

the last one will not swap dimensions

-----------------------------------------------------------------
                                           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-13 23:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-13 21:54 Herbert Voss
2016-12-13 23:05 ` Hans Hagen [this message]

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=4ed5e423-e74a-7560-0090-818d6992ff17@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).