Difference between revisions of "Verse"

From Wiki
Jump to navigation Jump to search
m
m
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
< [[Structurals#Basics_of_ConTeXt_text_formatting|Text formatting]] | [[Verbatim text]] >
 
 
 
= Verse =
 
= Verse =
  
Line 82: Line 80:
 
   after=\stopframedtext]
 
   after=\stopframedtext]
 
</texcode>
 
</texcode>
 +
 +
[[Category:Basics]]

Revision as of 15:58, 8 June 2020

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]