From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Pagebreak only after stanzas
Date: Tue, 17 Apr 2007 10:40:31 +0200 [thread overview]
Message-ID: <462487FF.1030304@wxs.nl> (raw)
In-Reply-To: <alpine.WNT.0.98.0704141729080.3928@nqvgln>
Aditya Mahajan wrote:
> On Sat, 14 Apr 2007, Bert Tr�ger wrote:
>
>
>> Hi,
>>
>> i am a fresh convert to Context from Latex and deeply impressed by
>> it's ability to set multiple pages on one page, even doublesided
>> ones.
>> For setting a collection of poems I use \obeylines and \smallskip
>> to arrange them on the page. Pagebreaks should only be possible
>> between stanzas at the \smallskip-mark. Could somebody tell me, how
>> to achieve this?
>>
>
> Probably, the easiest way to do that will be to add a bit of a markup.
> Something like (untested)
>
> \setuplines[after={\blank[small]}] %or after=\smallskip
> \defineframedtext[stanza][width=\textwidth,before=\startlines,after=\stoplines]
>
> \startstanza
> .....
> .....
> \stopstanza
>
\start
\interlinepenalty\plustenthousand
stanze
\par
\stop
\keeplinestogether{4}
stanza
may also work (untested)
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
prev parent reply other threads:[~2007-04-17 8:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-14 20:13 Bert Trüger
2007-04-14 21:31 ` luigi scarso
2007-04-14 21:36 ` Aditya Mahajan
2007-04-15 13:27 ` Bert Trüger
2007-04-15 14:06 ` Wolfgang Schuster
2007-04-17 8:40 ` Hans Hagen [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=462487FF.1030304@wxs.nl \
--to=pragma@wxs.nl \
--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).