ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: luigi scarso <luigi.scarso@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Constraint in line numbers
Date: Thu, 22 Dec 2011 09:32:01 +0100	[thread overview]
Message-ID: <CAG5iGsAJJ=Tc1EmoEPqkB6T8AZArUSZoUq8_qVdJqcZMvUsNgA@mail.gmail.com> (raw)
In-Reply-To: <4019F3E8-EDF5-402F-AB22-A31E9543F328@googlemail.com>

On Thu, Dec 22, 2011 at 8:57 AM, Wolfgang Schuster
<schuster.wolfgang@googlemail.com> 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 : 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
___________________________________________________________________________________


  reply	other threads:[~2011-12-22  8:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-21 17:19 Fulvio
2011-12-22  7:57 ` Wolfgang Schuster
2011-12-22  8:32   ` luigi scarso [this message]
2011-12-23  2:31     ` Fulvio Satta

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='CAG5iGsAJJ=Tc1EmoEPqkB6T8AZArUSZoUq8_qVdJqcZMvUsNgA@mail.gmail.com' \
    --to=luigi.scarso@gmail.com \
    --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).