Skip to main content
Logo image

Section 27 Poetry

View Source
There is support for poems via the poem tag, which can contain a title, author and multiple stanza, each containing multiple line. See the source of the following poem for an example of the exact arrangement. Note how the first quote crosses two line elements and how this is handled in the source. There are many very flexible options for horizontal alignment and indentation. Further extensive examples, constructed by Jahrme Risner, are available in the example Humanities document.

The Charge of the Light Brigade

Half a league, half a league,
Half a league onward,
All in the valley of Death
Rode the six hundred.
“Forward, the Light Brigade!
Charge for the guns!” he said:
Into the valley of Death
Rode the six hundred.
“Forward, the Light Brigade!”
Was there a man dismay’d?
Not tho’ the soldier knew
Someone had blunder’d:
Theirs not to make reply,
Theirs not to reason why,
Theirs but to do and die:
Into the valley of Death
Rode the six hundred.
Alfred Lord Tennyson
Ken Levasseur, who teaches at UMass-Lowell, has limericks in his Applied Discrete Structures textbook. When he reported that they were unable to be the target of a cross-reference, Karl-Dieter Crisman penned the following limerick.
CS students studying in Lowell
Required their books to have soul.
Along came their teacher
Who asked for this feature:
A poem that lives in a knowl.
Karl-Dieter Crisman
And when yours truly tried to joke about poetry on GitHub CLI #182
 1 
https://github.com/PreTeXtBook/pretext-cli/issues/182
, back came:
There once was a maintainer named Rob
Who told bad jokes while on the job
While they were lame
You could say the same
Of Steven’s limericks that cause you to sob
Steven Clontz