Bug with command \to in captions
Hi, The simple example: \starttext \placefigure[][]{$x \to 0$}{My figure} \stoptext does not compile, whether it's on my installation or on the live interface. It seems that there is a problem with using \to in captions... Or maybe I'm missing something... Morgan
On Jan 21, 2008 2:13 PM,
Hi,
The simple example:
\starttext \placefigure[][]{$x \to 0$}{My figure} \stoptext
does not compile, whether it's on my installation or on the live interface. It seems that there is a problem with using \to in captions... Or maybe I'm missing something...
Morgan
ConTeXt use \to as part of an internal macro and is missinterpreted in this case but you could use \rightarrow instead. \starttext \placefigure[][]{$x \rightarrow 0$}{My figure} \stoptext Wolfgang
On Mon, 21 Jan 2008, Wolfgang Schuster wrote:
On Jan 21, 2008 2:13 PM,
wrote: Hi,
The simple example:
\starttext \placefigure[][]{$x \to 0$}{My figure} \stoptext
does not compile, whether it's on my installation or on the live interface. It seems that there is a problem with using \to in captions... Or maybe I'm missing something...
Morgan
ConTeXt use \to as part of an internal macro and is missinterpreted in this case but you could use \rightarrow instead.
\starttext \placefigure[][]{$x \rightarrow 0$}{My figure} \stoptext
I thought that this bug had been removed almost a year ago, but it is still there. Hans, how about defining another macro, \!!appendtokens ... \!!to ... and changing the internal usage to this macro. The macro \appendtokens ... \to ... macro must stay (since it is present in many user docs). Would this get rid of this bug? Aditya
Aditya Mahajan wrote:
I thought that this bug had been removed almost a year ago, but it is still there.
Hans, how about defining another macro, \!!appendtokens ... \!!to ... and changing the internal usage to this macro. The macro \appendtokens ... \to .... macro must stay (since it is present in many user docs). Would this get rid of this bug?
this was not an appendtoks but a \convertargument \to i replaced most of these (plus \convertcommand) but i'm not sure that i didn't make mistakes so i uploaded an alpha ... feel free to diff the lot (maybe taco can generate me a diff of the zip that we can check) 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 (4)
-
Aditya Mahajan
-
Hans Hagen
-
morgan.brassel@free.fr
-
Wolfgang Schuster