On Fri, Dec 16, 2011 at 12:00 AM, Hans Hagen
I've seen some discussion about creating a verse environment in ConTeXt that handles the alignment of long (broken) lines of text. But I can't find anything about optical centering as can be done in LaTeX using the gmverse package: http://www.ctan.org/pkg/gmverse
Is there something like this available for ConTeXt?
Can you make a PDF where we can see what do you want?
That's just a bunch of macro code ... what Wolfgang meant was output that you want to see. Writing from scratch fo rwhat you need is easier that deciphering macro code.
My apologies, this is what I meant to link to, a TUGboat article which
has both the formulae for calculating the center and visual
illustrations of the resulting centering:
www.tug.org/TUGboat/tb29-1/tb91murzynowski-text.pdf
The package provides three things, in descending order of importance for me:
* optical centering, which is a calculation of the center point for
the alignment of the box of text that is based on based on an average
of the line lengths of the work being set. gmverse provides four
different possible centering methods based on different formulae (if
it matters, method 3 and 2 are most useful.
* Alignment of broken lines, right-aligned to the length of the line
above the break
* An environment that needs no use of \\ to break lines, but does so
based on the length of the line and automatically wraps long lines (as
defined by a dimension) and uses the alignment above.
I have no idea if the way the package is written is overly complicated
for what it does... I don't really understand the code nearly well
enough, I just know that it works!
Thanks for any input. I can keep using LaTeX for this work, but when I
switch technologies, I tend to learn it by trying to move everything
to it (having recently switched from emacs to vim comes to mind :)
c
--
Chris Lott