From: Peter Schorsch <tralalas@freenet.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: inner/outer margin: confused width
Date: Thu, 14 Jul 2011 14:48:48 +0200 [thread overview]
Message-ID: <20110714144848.76be71b4@freenet.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 544 bytes --]
Hi,
the width of my inner and outer margin are different and the pagelayout
is double sided.
When I use \ininner and \inouter directly, always the correct width is
used. But as soon I put it into a function the wrong margin width is
often used.
I attached two files:
- simple example tex file
- the pdf output of that example file
In the example pdf you can see starting from page five the mixed up
result.
Is there something I do wrong with the double sided mode? Or is this an
issue how the function is written?
Thanks in advance!
P.
[-- Attachment #2: pararef-test5.tex --]
[-- Type: text/x-tex, Size: 3337 bytes --]
%Test of margins and margins width
%Define paragraph command
\definenumber[ParagraphNumber][way=bysection,prefixsegments=100]
\unexpanded\def\startParagraph
{\dosingleempty\dostartParagraph}
\def\dostartParagraph[#1]%
{\getrawparameters[Paragraph][heading=,mark=,#1]%
\incrementnumber[ParagraphNumber]%
\ininner{\tfx\getnumber[ParagraphNumber]}%
\doifsomething\Paragraphheading{\inouter{\Paragraphheading}}%
\doifsomething\Paragraphmark{\expanded{\textreference[\Paragraphmark]{\fullheadnumber/\rawnumber[ParagraphNumber]}}}%
\ignorespaces}
\unexpanded\def\stopParagraph
{\blank[medium]}
% Setup margins and double sided
\definelayout[WithMarginnotes][location={duplex},grid=no,topspace=3cm,height=24cm,backspace=3cm,cutspace=0cm,leftmargin=1cm,leftmargindistance=0.4cm,width=12.1cm,rightmargindistance=0.4cm,rightmargin=3.5cm]
\setuplayout[WithMarginnotes]
\setuppagenumbering[alternative=doublesided,location=]
\showframe
% Test content
\starttext
\ininner{X X X X X X X X X X X X}\inouter{M M M M M M M M M M M M }\input tufte
\ininner{X X X X X X X X X X X X}\inouter{M M M M M M M M M M M M }\input tufte
\ininner{X X X X X X X X X X X X}\inouter{M M M M M M M M M M M M }\input tufte
\ininner{X X X X X X X X X X X X}\inouter{M M M M M M M M M M M M }\input tufte
\ininner{X X X X X X X X X X X X}\inouter{M M M M M M M M M M M M }\input tufte
\ininner{X X X X X X X X X X X X}\inouter{M M M M M M M M M M M M }\input tufte
\ininner{X X X X X X X X X X X X}\inouter{M M M M M M M M M M M M }\input tufte
\ininner{X X X X X X X X X X X X}\inouter{M M M M M M M M M M M M }\input tufte
\ininner{X X X X X X X X X X X X}\inouter{M M M M M M M M M M M M }\input tufte
\ininner{X X X X X X X X X X X X}\inouter{M M M M M M M M M M M M }\input tufte
\ininner{X X X X X X X X X X X X}\inouter{M M M M M M M M M M M M }\input tufte
\ininner{X X X X X X X X X X X X}\inouter{M M M M M M M M M M M M }\input tufte
\ininner{X X X X X X X X X X X X}\inouter{M M M M M M M M M M M M }\input tufte
\ininner{X X X X X X X X X X X X}\inouter{M M M M M M M M M M M M }\input tufte
\ininner{X X X X X X X X X X X X}\inouter{M M M M M M M M M M M M }\input tufte
\ininner{X X X X X X X X X X X X}\inouter{M M M M M M M M M M M M }\input tufte
\startParagraph[heading={M M M M M M M M M M M M }]
\input tufte
\stopParagraph
\startParagraph[heading={M M M M M M M M M M M M }]
\input tufte
\stopParagraph
\startParagraph[heading={M M M M M M M M M M M M }]
\input tufte
\stopParagraph
\startParagraph[heading={M M M M M M M M M M M M }]
\input tufte
\stopParagraph
\startParagraph[heading={M M M M M M M M M M M M }]
\input tufte
\stopParagraph
\startParagraph[heading={M M M M M M M M M M M M }]
\input tufte
\stopParagraph
\startParagraph[heading={M M M M M M M M M M M M }]
\input tufte
\stopParagraph
\startParagraph[heading={M M M M M M M M M M M M }]
\input tufte
\stopParagraph
\startParagraph[heading={M M M M M M M M M M M M }]
\input tufte
\stopParagraph
\startParagraph[heading={M M M M M M M M M M M M }]
\input tufte
\stopParagraph
\startParagraph[heading={M M M M M M M M M M M M }]
\input tufte
\stopParagraph
\startParagraph[heading={M M M M M M M M M M M M }]
\input tufte
\stopParagraph
\startParagraph[heading={M M M M M M M M M M M M }]
\input tufte
\stopParagraph
\stoptext
[-- Attachment #3: pararef-test5.pdf --]
[-- Type: application/pdf, Size: 36339 bytes --]
[-- Attachment #4: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
next reply other threads:[~2011-07-14 12:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-14 12:48 Peter Schorsch [this message]
2011-07-17 18:08 ` inner/outer margin: wrong width at double sided Peter Schorsch
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=20110714144848.76be71b4@freenet.de \
--to=tralalas@freenet.de \
--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).