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. Thanks Fulvio
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
On Thu, Dec 22, 2011 at 8:57 AM, Wolfgang Schuster
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
Il giorno Thu, 22 Dec 2011 09:32:01 +0100
luigi scarso
On Thu, Dec 22, 2011 at 8:57 AM, Wolfgang Schuster
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
Very good hints, thank you! I'll investigate on them in the next few days! :) Fulvio
participants (4)
-
Fulvio
-
Fulvio Satta
-
luigi scarso
-
Wolfgang Schuster