* twoside layout
@ 2016-12-13 21:54 Herbert Voss
2016-12-13 23:05 ` Hans Hagen
0 siblings, 1 reply; 2+ messages in thread
From: Herbert Voss @ 2016-12-13 21:54 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
Herbert
___________________________________________________________________________________
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] 2+ messages in thread
* Re: twoside layout
2016-12-13 21:54 twoside layout Herbert Voss
@ 2016-12-13 23:05 ` Hans Hagen
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2016-12-13 23:05 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-12-13 23:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-13 21:54 twoside layout Herbert Voss
2016-12-13 23:05 ` Hans Hagen
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).