I am trying to typeset a book of poems that I wrote in ConTeXt.
Consider the following:
\definehead[PoemTitle][section]
\setuphead[PoemTitle][number=no, page=yes, style=\sc]
\starttext
\PoemTitle{A Silly Whimsy}
\startlines
Some really
poetic lines
are here
and here, these are
deeply moving
\stoplines
\stoptext
This works well for breaking the lines, but the overall positioning on the page is poor, given the short nature of the lines.
I am trying to center this text block (not the line) on the page, including the \PoemTitle
header. The centered text block needs to be able to break over pages.
I have been playing with the narrower environment (doesn't move the \PoemTitle
header with the text block), the \hbox
command (can't seem to implement anything useful), and the \defineblock
and \setupblock
commands. I haven't managed to get useful.
Any ideas?
EDIT:
@Will In LaTeX this gave me the desired result:
\documentclass{memoir}
\renewcommand{\PoemTitlefont}{%
\normalfont\scshape\flushleft% Remove centering from poem title
\hspace*{0.5\linewidth}\hspace*{-0.5\versewidth}}% Makes poem title flush left with body block.
\begin{document}
\settowidth{\versewidth}{Some really deep moving}
\PlainPoemTitle
\PoemTitle{willy nilly}
\begin{verse}[\versewidth]
Some really deep moving\\
lines of poetry\\
here.\\
It is all\\
so moving\\
\end{verse}
\end{document}
@Aditya:I would want to calculate the width of the longest line and choose an offset so that the longest line is in the middle of the text area, as in the LaTeX code above. It might be nice if the calculation of the longest line was automatic.