Nikolai Weibull wrote:
* Hans Hagen (Mar 30, 2005 01:10):
that's because the caption is passed as an argument and the catcode is frozen then (being active, the | expects something |...| ; try \type{0}\type{|} since the first token of type is not expanded at all
Yeah, that will work. The problem is, though, that I'd really like it to be in one \type as I am actually using something called \TypedRegex that delimits the regular expression argument with "quotes".
I guess I could fake the quotes and use the split-\type trick, nikolai
\definetype[regexp][option=RAW] \starttext \type{0|} \section{test \regexp{0|} test} \stoptext this will trigger a pretty printing filter, and in this case the | is part of the deal Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------