Am 21.06.2014 um 13:49 schrieb Werner Hintze <[email protected]>:
> I can’t figure out how to typeset poems with very long verses. I know that I
> can use the lines environment for verses, but if a verse is long, it must be
> broken and the second line must be indented. It seems that the lines
> environment doesn’t wllow this.
>
> Anayway I would prefer a solution which avoids the lines environment. This
> means I would like to define two commands: \startVerse and \stopVerse. But I
> find no solution.
You can create your own lines environment with the \definelines command. The
indentation of the second line can be achieved in two different ways, the first
is to indent the whole block on the left side with the \startnarrow command and
use a negative paragraph indentation for the first line.
\usemodule[visual]
\definelines
[verse]
[before={\startnarrow[left=1em,default=left]},
after=\stopnarrow,
indenting={yes,-1em}]
\starttext
\startverse
\fakewords{10}{20}
\fakewords{10}{20}
\fakewords{10}{20}
\stopverse
\stoptext
The second method uses a low level method (context doesn’t provide its own
interface for this) to set the \hangafter and \hangindent registers which
indents the second line of each entry.
\usemodule[visual]
\define\VerseAlignment
{\hangafter = 1 \relax
\hangindent = 1em\relax}
\definelines[verse][command=\VerseAlignment]
\starttext
\startverse
\fakewords{10}{20}
\fakewords{10}{20}
\fakewords{10}{20}
\stopverse
\stoptext
> How can this be realized in Kontext? In LaTeX with memoir it’s really easy.
It’s ConTeXt with a C.
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / 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
___________________________________________________________________________________