From: "luigi.scarso" <luigi.scarso@logosrl.it>
Subject: Re: A (my) OTR problem
Date: Mon, 14 Mar 2005 08:21:34 +0100 [thread overview]
Message-ID: <42353B7E.8030301@logosrl.it> (raw)
In-Reply-To: <4234C72D.9090503@wxs.nl>
[-- Attachment #1.1: Type: text/plain, Size: 2722 bytes --]
h h extern wrote:
> luigi.scarso wrote:
>
>> I have the following code:
>>
>> \showframe
>> \setuplayout[topdistance=0mm,topspace=10mm,header=10mm,headerdistance=10mm,
>>
>> footerdistance=5mm,footer=20mm,bottomspace=2mm,
>> backspace=25mm,
>>
>> rightmargin=10mm,rightmargindistance=1mm,rightedge=0mm,rightedgedistance=0mm,
>>
>>
>> leftmargin=15mm,leftmargindistance=1mm,leftedge=9mm,leftedgedistance=0mm,
>>
>> width=fit,height=fit,
>> location=middle]
>>
>> \newdimen\RightMarginWidth \RightMarginWidth=\rightmarginwidth
>> \def\PageNumber#1{\vbox to \footerheight{\vss\hbox
>> to\RightMarginWidth{\hss #1 \hss}\vss}}
>> \setuppagenumbering[location={margin},alternative=doublesided,command={\PageNumber}]
>>
>>
>> \newbox\ContinueNextPage \setbox\ContinueNextPage=\vbox{\strut\hbox
>> to\textwidth{\hfill\mathematics{\blacktriangleright}\mathematics{\blacktriangleright}\quad}}
>>
>>
>>
>> \starttext
>> \dorecurse{20}%
>> {\framed[width=\textwidth,height=3em,align={middle,lohi}]{\hfil
>> \CONTEXT --\recurselevel \hfil}}%
>>
>> \stoptext
>>
>>
>> I would like to put \copy\ContinueNextPage after the last \framed in
>> every page
>> (in this example, after CONTEXT--18 at page 1 and CONTEXT--36 at page
>> 2).
>>
>> I don't want use tables/tabular, i try to use \vsplit.
>>
>> I try to read page-ini, i find useful things like \everyafterpagebody
>> but i'm still confused.
>
>
> This needs to happen in the normal text flow (unless you want to use
> more dirty tricks)
>
> \startsetups [continue]
> \strut\hbox to \textwidth
> {\hfill\mathematics{\blacktriangleright\blacktriangleright}\quad}
> \stopsetups
>
> \def\LetsCheckItOut
> {\dowithnextbox
> {\ifdim\dimexpr\pagetotal+\ht\nextbox+\dp\nextbox+\lineheight\relax>\pagegoal
>
> \endgraf\nobreak\setups[continue]\page
> \fi
> \box\nextbox}
> \vbox}
>
>
> \starttext
>
> \dorecurse{40}
> {\LetsCheckItOut
> {\framed
> [width=\textwidth,height=3em,align={middle,lohi}]
> {\hfil\CONTEXT--\recurselevel\hfil}}}
>
> \stoptext
>
Not only it works, it's also very nice:
thanks Hans.
(
I know that
/\newdimen\RightMarginWidth \RightMarginWidth=\rightmarginwidth
/it's strange (after all i use \footerheight at the next line...).
Some time ago i wrote something like
\/MyDimension/=0.87\/rightmarginwidth ///
During some corrections/enhancement i made a mistake and i wrote
\/rightmarginwidth =0.87/\/MyDimension///
A nightmare.
When i feel insecure (will i use this dimensions as readonly or
read/write variables ?)
i prefer a safe copy
(in this case i'm sure that i use \footerheight as a readonly var).
)
luigi
[-- Attachment #1.2: Type: text/html, Size: 4228 bytes --]
[-- Attachment #2: Type: text/plain, Size: 139 bytes --]
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
next prev parent reply other threads:[~2005-03-14 7:21 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-11 16:59 Helvetica ? Steffen Wolfrum
2005-03-11 17:29 ` Adam Lindsay
2005-03-11 17:43 ` A (my) OTR problem luigi.scarso
2005-03-13 22:56 ` h h extern
2005-03-13 23:05 ` h h extern
2005-03-14 7:21 ` luigi.scarso [this message]
2005-03-14 8:29 ` Hans Hagen
2005-03-14 8:41 ` luigi.scarso
2005-03-11 20:24 ` Helvetica ? Otared Kavian
2005-03-13 16:41 ` Patrick Gundlach
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=42353B7E.8030301@logosrl.it \
--to=luigi.scarso@logosrl.it \
--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).