Yeah, that seems like a good way to go. Now I finally understand what Wolfgang was saying last night :)
Since whitespace wasn't important to this particular poem, it did not matter (using \par worked fine). But I will update my blog with this for sure, as in the case of whitespace-sensitive poetry its a much better solution.
In general though, it is completely unnecessary, as poetry generally has no need to be defined in macros. But it's the edge cases, where I live :)
On Thu, 16 Sep 2010, Wolfgang Schuster wrote:Oh. In that case, I will do
Am 16.09.2010 um 00:38 schrieb Aditya Mahajan:
However, \startlines..\stoplines is not available when defining a macro.
What do you mean by that these macros are not available?
Doesn't the following work? (untested, but I will be really surprised if it doesn't work)
\def\startpoety
{\startlines
% All the remaining setup
}
\def\stoppoety
{%whatever setup you want
\stoplines}
He use
\def\poetry
{\startlines
line 1
line 2
...
\stoplines}
and this doesn't work.
\startbuffer[poerty]
line 1
line
\stopbuffer
\def\poetry
{\startlines
\getbuffer[poetry]
\stoplines}
or even
\def\getpoerty#1[#2]%
{\startlines
\getbuffer[#2]
\stoplines}
That should work (again untested).
Aditya
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________