ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Taco Hoekwater <taco@elvenkind.com>
Subject: Re: The whole (sub)section on a single page
Date: Sun, 13 Nov 2005 14:58:38 +0100	[thread overview]
Message-ID: <4377468E.4010802@elvenkind.com> (raw)
In-Reply-To: <6faad9f00511121555x5ff6084dn26e714128030392e@mail.gmail.com>

Mojca Miklavec wrote:
> It doesn't need to automatically determine the subsection boundaries
> automatically (although this would be great), so I can write something
> like this:
> 
> \startmaterialforonepage
> \subsection{split only if too long for one page}
> \dorecurse{10}{whatever comes here \dots }
> \stopmaterialforonepage

Do you want something like this?

   \long\def\startmaterialforonepage#1\stopmaterialforonepage%
     {\setbox0\vbox{#1}\ifdim\ht0<\textheight \page\fi #1}

Taco

  reply	other threads:[~2005-11-13 13:58 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-12 23:55 Mojca Miklavec
2005-11-13 13:58 ` Taco Hoekwater [this message]
2005-11-14 18:11   ` Mojca Miklavec
2005-11-14 19:39     ` Hans Hagen
2005-11-15  8:15       ` Mojca Miklavec
2005-11-15  9:38         ` Hans Hagen
2005-12-01  8:35       ` Christopher Creutzig
2005-12-01  9:29         ` Hans Hagen
2005-12-06 22:00           ` Christopher Creutzig

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=4377468E.4010802@elvenkind.com \
    --to=taco@elvenkind.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).