* Problem with \type in captions
@ 2005-03-29 19:39 Nikolai Weibull
2005-03-29 23:03 ` Hans Hagen
0 siblings, 1 reply; 6+ messages in thread
From: Nikolai Weibull @ 2005-03-29 19:39 UTC (permalink / raw)
\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);}
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Problem with \type in captions
2005-03-29 19:39 Problem with \type in captions Nikolai Weibull
@ 2005-03-29 23:03 ` Hans Hagen
2005-03-30 0:28 ` Nikolai Weibull
2005-03-30 6:35 ` Another problem with \type , and a werid accent Taco Hoekwater
0 siblings, 2 replies; 6+ messages in thread
From: Hans Hagen @ 2005-03-29 23:03 UTC (permalink / raw)
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
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Problem with \type in captions
2005-03-29 23:03 ` Hans Hagen
@ 2005-03-30 0:28 ` Nikolai Weibull
2005-03-30 6:59 ` Hans Hagen
2005-03-30 6:35 ` Another problem with \type , and a werid accent Taco Hoekwater
1 sibling, 1 reply; 6+ messages in thread
From: Nikolai Weibull @ 2005-03-30 0:28 UTC (permalink / raw)
* 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);}
^ permalink raw reply [flat|nested] 6+ messages in thread
* Another problem with \type , and a werid accent
2005-03-29 23:03 ` Hans Hagen
2005-03-30 0:28 ` Nikolai Weibull
@ 2005-03-30 6:35 ` Taco Hoekwater
2005-03-30 6:52 ` Hans Hagen
1 sibling, 1 reply; 6+ messages in thread
From: Taco Hoekwater @ 2005-03-30 6:35 UTC (permalink / raw)
Try this, using new (LM) ConTeXt:
\starttext
\type{--}
L'abbaye
\stoptext
Taco
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Another problem with \type , and a werid accent
2005-03-30 6:35 ` Another problem with \type , and a werid accent Taco Hoekwater
@ 2005-03-30 6:52 ` Hans Hagen
0 siblings, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2005-03-30 6:52 UTC (permalink / raw)
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
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Problem with \type in captions
2005-03-30 0:28 ` Nikolai Weibull
@ 2005-03-30 6:59 ` Hans Hagen
0 siblings, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2005-03-30 6:59 UTC (permalink / raw)
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
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-03-30 6:59 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-29 19:39 Problem with \type in captions Nikolai Weibull
2005-03-29 23:03 ` Hans Hagen
2005-03-30 0:28 ` Nikolai Weibull
2005-03-30 6:59 ` Hans Hagen
2005-03-30 6:35 ` Another problem with \type , and a werid accent Taco Hoekwater
2005-03-30 6:52 ` Hans Hagen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).