* verses together
@ 2009-07-14 1:13 Ciro Soto
2009-07-14 17:00 ` Hans Hagen
0 siblings, 1 reply; 2+ messages in thread
From: Ciro Soto @ 2009-07-14 1:13 UTC (permalink / raw)
To: ntg-context
I am writing a book with poems and need to maintain four, sometimes
five, lines together
in the same page. I don't know in advance which four lines will be
split at the end of the
page. How would I implement this?
Using \testpage[n] works, only if I know in advance where the the split happens.
thank you
Ciro
-- Links of your interest:
http://www-personal.engin.umd.umich.edu/~cirosoto/
http://www.TheGuitarMakerExploration.com
http://www.myspace.com/sotoaguirre
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: verses together
2009-07-14 1:13 verses together Ciro Soto
@ 2009-07-14 17:00 ` Hans Hagen
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2009-07-14 17:00 UTC (permalink / raw)
To: ciro, mailing list for ConTeXt users
Ciro Soto wrote:
> I am writing a book with poems and need to maintain four, sometimes
> five, lines together
> in the same page. I don't know in advance which four lines will be
> split at the end of the
> page. How would I implement this?
>
> Using \testpage[n] works, only if I know in advance where the the split happens.
add this to your local cont-new.tex file (after \protect):
\def\startlines
{\@@rgbefore
\pushmacro\checkindentation
\whitespace
%\page[\v!preference]} gaat mis na koppen, nieuw: later \nobreak
\begingroup
\setupindenting[\@@rgindenting]%
\typesettinglinestrue
\setupwhitespace[\v!none]%
\obeylines
\ignorespaces
\gdef\afterfirstobeyedline % tzt two pass, net als opsomming
{\gdef\afterfirstobeyedline
{\nobreak
\doifnot\@@rgoption\v!packed{\global\let\afterfirstobeyedline\relax}}}%
\def\obeyedline
{\par
\futurelet\next\dobetweenthelines}%
\activatespacehandler\@@rgspace
\GotoPar}
\def\dobetweenthelines
{\doifmeaningelse\next\obeyedline
{\@@rginbetween}
{\afterfirstobeyedline}}
\setuplines
[\c!option=,
\c!before=\blank,
\c!after=\blank,
\c!inbetween=\blank,
\c!indenting=\v!no,
\c!space=\v!default]
-- -- -- --
test: (the packed option is new)
\setuplines[indenting={yes,medium,odd},option=packed] % no yes odd even
\starttext
\dorecurse{33}{test\par}
\startlines
first
second
third
fourth
first
second
third
fourth
first
second
third
fourth
first
second
third
fourth
\stoplines
\stoptext
-----------------------------------------------------------------
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
-----------------------------------------------------------------
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-07-14 17:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-14 1:13 verses together Ciro Soto
2009-07-14 17:00 ` Hans Hagen
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).