On Thu, Dec 22, 2011 at 8:57 AM, Wolfgang Schuster
<[email protected]> wrote:
>
> Am 21.12.2011 um 18:19 schrieb Fulvio:
>
>> Hi, this is my first message in this ml ;)
>>
>> Well, I've a stupid constraint in a work: I must limit the number of
>> lines in a page. I have to have 32-35 lines on each page.
>>
>> Now, the task isn't too complex in principle, I can work on interline
>> sizes and glues, but this way is a little bit tricky.
>> I wonder if there is a better (and elegant) way to manage the problem.
>
> You can the number of lines on a page with the \setuplayout command.
>
> \setuplayout[lines=20]
> \starttext
> \dorecurse{100}{Line \recurselevel\par}
> \stoptext
>
> Wolfang
Of course there is a static idea of "line" that depends on the current font
and a dynamic idea of row that depends on the current document: here
is an exaggerated example
\setuplayout[lines=20]
\newdimen\T \T=1.5mm
\starttext
\dorecurse{40}{\ruledvbox{Line \recurselevel}\par}
\dorecurse{100}{\ruledvbox{Line \recurselevel\vrule width1pt height
\recurselevel\T depth \recurselevel\T}\par}
\stoptext
--
luigi
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / 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
___________________________________________________________________________________