Difference between revisions of "Verse"

From Wiki
Jump to navigation Jump to search
(Entry for the start/stoplines environment.)
 
m
Line 1: Line 1:
< [[Visuals]] | [[Verbatim text]] >
+
< [[Structurals#Basics_of_ConTeXt_text_formatting|Text formatting]] | [[Verbatim text]] >
  
 
= Verse =
 
= Verse =

Revision as of 16:46, 24 May 2020

< Text formatting | Verbatim text >

Verse

A simple example

\startlines
But chiefly, when the shadowy moon had shed
O'er woods and waters her mysterious hue,
Their passive hearts and vacant fancies fed
With thoughts and aspirations strange and new,
Till their brute souls with inward working bred
Dark hints that in the depths of instinct grew
Subjection not from Locke's associations,
Nor David Hartley's doctrine of vibrations.
\stoplines

Indenting lines

You could give the output in the lines environment a special look with indenting of odd or even lines. You could do this with the indenting key for \setuplines, the arguments are the same as you could use for \setupindenting.

\setuplines[indenting={yes,medium,odd}]

\setuplines[indenting={yes,medium,even}]

Preventing pagebreaks

Text in the lines environment is normally split at the end of the page, to prevent this you could enclose the block with a framedtext.

\setuplines
  [before={\startframedtext[frame=off]},
   after=\stopframedtext]