ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Strange behavior with square brackets in formula and \rm subscripts
@ 2011-05-12 12:01 Julian Becker
  2011-05-12 12:05 ` Julian Becker
  0 siblings, 1 reply; 5+ messages in thread
From: Julian Becker @ 2011-05-12 12:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 425 bytes --]

I just found out that I cannot (with MkIV on Windows XP, ConTeXt  ver.
2011.02.09 16:42) compile the following

\starttext
This formula produces an error:
\startformula
[r_{\rm test}]=a
\stopformula
\stoptext
\starttext
However, this works:
\startformula
a=[r_{\rm test}]
\stopformula

What's going on here? Using \mathrm instead of \rm in the subscript is
compiling without complaint, but produces the wrong output.

Julian

[-- Attachment #1.2: Type: text/html, Size: 568 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Strange behavior with square brackets in formula and \rm subscripts
  2011-05-12 12:01 Strange behavior with square brackets in formula and \rm subscripts Julian Becker
@ 2011-05-12 12:05 ` Julian Becker
  2011-05-12 12:11   ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: Julian Becker @ 2011-05-12 12:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 974 bytes --]

just realized: is it perhaps that in the first case, the square brackets are
interpreted as a list of parameters to \startformula?

2011/5/12 Julian Becker <becker.julian@gmail.com>

> I just found out that I cannot (with MkIV on Windows XP, ConTeXt  ver.
> 2011.02.09 16:42) compile the following
>
> \starttext
> This formula produces an error:
> \startformula
> [r_{\rm test}]=a
> \stopformula
> \stoptext
> \starttext
> However, this works:
> \startformula
> a=[r_{\rm test}]
> \stopformula
>
> What's going on here? Using \mathrm instead of \rm in the subscript is
> compiling without complaint, but produces the wrong output.
>
> Julian
>



-- 
Julian Becker
Institut für Angewandte Physik, R.123
Westfälische Wilhelms-Universität Münster
Corrensstr. 2/4
48149 Münster / Westfalen
Tel. 0251 83-3 61 53
Mob. 0151 599 848 29
e-mail: j_beck16@uni-muenster.de

"Keep thy heart with all diligence; for it is the wellspring of life."

[-- Attachment #1.2: Type: text/html, Size: 1390 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Strange behavior with square brackets in formula and \rm subscripts
  2011-05-12 12:05 ` Julian Becker
@ 2011-05-12 12:11   ` Hans Hagen
  2011-05-12 12:13     ` luigi scarso
  0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2011-05-12 12:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 12-5-2011 2:05, Julian Becker wrote:
> just realized: is it perhaps that in the first case, the square brackets are
> interpreted as a list of parameters to \startformula?

indeed, so add \relax after \startformula

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Strange behavior with square brackets in formula and \rm subscripts
  2011-05-12 12:11   ` Hans Hagen
@ 2011-05-12 12:13     ` luigi scarso
  2011-05-12 12:26       ` Julian Becker
  0 siblings, 1 reply; 5+ messages in thread
From: luigi scarso @ 2011-05-12 12:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, May 12, 2011 at 2:11 PM, Hans Hagen <pragma@wxs.nl> wrote:
> On 12-5-2011 2:05, Julian Becker wrote:
>>
>> just realized: is it perhaps that in the first case, the square brackets
>> are
>> interpreted as a list of parameters to \startformula?
>
> indeed, so add \relax after \startformula
or use
\left[ and \right]

-- 
luigi
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Strange behavior with square brackets in formula and \rm subscripts
  2011-05-12 12:13     ` luigi scarso
@ 2011-05-12 12:26       ` Julian Becker
  0 siblings, 0 replies; 5+ messages in thread
From: Julian Becker @ 2011-05-12 12:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1303 bytes --]

thank you Hans and Luigi for the clarification


2011/5/12 luigi scarso <luigi.scarso@gmail.com>

> On Thu, May 12, 2011 at 2:11 PM, Hans Hagen <pragma@wxs.nl> wrote:
> > On 12-5-2011 2:05, Julian Becker wrote:
> >>
> >> just realized: is it perhaps that in the first case, the square brackets
> >> are
> >> interpreted as a list of parameters to \startformula?
> >
> > indeed, so add \relax after \startformula
> or use
> \left[ and \right]
>
> --
> luigi
>
> ___________________________________________________________________________________
> 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  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
>
> ___________________________________________________________________________________
>



-- 
Julian Becker
Institut für Angewandte Physik, R.123
Westfälische Wilhelms-Universität Münster
Corrensstr. 2/4
48149 Münster / Westfalen
Tel. 0251 83-3 61 53
Mob. 0151 599 848 29
e-mail: j_beck16@uni-muenster.de

"Keep thy heart with all diligence; for it is the wellspring of life."

[-- Attachment #1.2: Type: text/html, Size: 2147 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2011-05-12 12:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-12 12:01 Strange behavior with square brackets in formula and \rm subscripts Julian Becker
2011-05-12 12:05 ` Julian Becker
2011-05-12 12:11   ` Hans Hagen
2011-05-12 12:13     ` luigi scarso
2011-05-12 12:26       ` Julian Becker

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).