On Thu, Oct 17, 2002 at 11:27:14PM +0200, Giuseppe Bilotta wrote:
>
> Sorry for following up to myself. After a few tries, I discovered
> that it's much better without the inner grouping:
>
> \newtoks\everybeforestartpart
> \newtoks\everyafterstartpart
> \newtoks\everystoppart
> \def\startpart{\dosingleempty\dostartpart}
> \def\dostartpart[#1]#2{%
> \bgroup
> \the\everybeforestartpart
> \iffirstargument
> \part[#1]{#2}%
> \else
> \part{#2}%
> \fi
> \egroup
> \the\everyafterstartpart
> }
> \def\stoppart{\the\everystoppart}
This is without the outer grouping. I think the outer grouping is
necessary; when I use \start \stop commands I expect them to make a
group.
Could not you do without the if statement?
\def\dostartpart[#1]#2{%
\bgroup
\the\everybeforestartpart
\part[#1]{#2}%
\the\everyafterstartpart
}
\def\stoppart{\the\everystoppart\egroup}
--
Simon Pepping
email: [EMAIL PROTECTED]
_______________________________________________
ntg-context mailing list
[EMAIL PROTECTED]
http://ref.ntg.nl/mailman/listinfo/ntg-context