On Thu, 16 Sep 2010, Wolfgang Schuster wrote:


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.

Oh. In that case, I will do

\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
___________________________________________________________________________________

Reply via email to