ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Fulvio Satta <yotavga@gmail.com>
To: ntg-context@ntg.nl
Subject: Re: Constraint in line numbers
Date: Fri, 23 Dec 2011 03:31:23 +0100	[thread overview]
Message-ID: <20111223033123.4becc600@gmail.com> (raw)
In-Reply-To: <CAG5iGsAJJ=Tc1EmoEPqkB6T8AZArUSZoUq8_qVdJqcZMvUsNgA@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1404 bytes --]

Il giorno Thu, 22 Dec 2011 09:32:01 +0100
luigi scarso <luigi.scarso@gmail.com> ha scritto:

> 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
> 

Very good hints, thank you! I'll investigate on them in the next few
days! :)

Fulvio

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: 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
___________________________________________________________________________________

      reply	other threads:[~2011-12-23  2:31 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
2011-12-23  2:31     ` Fulvio Satta [this message]

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=20111223033123.4becc600@gmail.com \
    --to=yotavga@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).