ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Bug with command \to in captions
@ 2008-01-21 13:13 morgan.brassel
  2008-01-21 17:11 ` Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: morgan.brassel @ 2008-01-21 13:13 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Bug with command \to in captions
  2008-01-21 13:13 Bug with command \to in captions morgan.brassel
@ 2008-01-21 17:11 ` Wolfgang Schuster
  2008-01-21 18:10   ` Aditya Mahajan
  0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2008-01-21 17:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Jan 21, 2008 2:13 PM,  <morgan.brassel@free.fr> 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

Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Bug with command \to in captions
  2008-01-21 17:11 ` Wolfgang Schuster
@ 2008-01-21 18:10   ` Aditya Mahajan
  2008-01-21 23:33     ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Aditya Mahajan @ 2008-01-21 18:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, 21 Jan 2008, Wolfgang Schuster wrote:

> On Jan 21, 2008 2:13 PM,  <morgan.brassel@free.fr> 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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Bug with command \to in captions
  2008-01-21 18:10   ` Aditya Mahajan
@ 2008-01-21 23:33     ` Hans Hagen
  0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2008-01-21 23:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-01-21 23:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-21 13:13 Bug with command \to in captions morgan.brassel
2008-01-21 17:11 ` Wolfgang Schuster
2008-01-21 18:10   ` Aditya Mahajan
2008-01-21 23:33     ` 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).