\starttext \placefigure {\type{0|}} {} \stoptext gives me ! Argument of \next has an extra }. <inserted text> \par <to be read again> } <argument> ...p {\strutdepth }\begstrut \type {0|} \endstrut \endgraf \doattributes ...sname #1#2\@EA \endcsname \fi {#4 }\dostopattributes \putcompletecaption ...trut #3\endstrut \endgraf } \fi \dostopattributes \docheckcaptioncontent ...ecaption {#4}{#2}{#3}{0} }\ifdim \wd \tempcaptionbo... ... l.4 {} Remove the 0 and it works fine. Is there a quick fix?, nikolai -- ::: name: Nikolai Weibull :: aliases: pcp / lone-star / aka ::: ::: born: Chicago, IL USA :: loc atm: Gothenburg, Sweden ::: ::: page: minimalistic.org :: fun atm: gf,lps,ruby,lisp,war3 ::: main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}
Nikolai Weibull wrote:
\starttext \placefigure {\type{0|}} {} \stoptext
gives me
! Argument of \next has an extra }. <inserted text> \par <to be read again>
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 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 -----------------------------------------------------------------
* 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 -- ::: name: Nikolai Weibull :: aliases: pcp / lone-star / aka ::: ::: born: Chicago, IL USA :: loc atm: Gothenburg, Sweden ::: ::: page: minimalistic.org :: fun atm: gf,lps,ruby,lisp,war3 ::: main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}
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 -----------------------------------------------------------------
Try this, using new (LM) ConTeXt: \starttext \type{--} L'abbaye \stoptext Taco
Taco Hoekwater wrote:
Try this, using new (LM) ConTeXt:
\starttext \type{--} L'abbaye \stoptext
oeps, i thought that that was fixed ... i'll ask jacko 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 -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Nikolai Weibull
-
Taco Hoekwater