ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* nath and \(start|stop)formula
@ 2004-11-14 18:17 Nikolai Weibull
  2004-11-15 16:15 ` Christopher Creutzig
  0 siblings, 1 reply; 11+ messages in thread
From: Nikolai Weibull @ 2004-11-14 18:17 UTC (permalink / raw)


Hi!
I just began testing the 2.99.1.20041026 release of tetex and nath is
acting up.  In the following document, the first math-formula works
fine, but the second one (display) doesn't:

\usemodule[nath]
\starttext
$A = (B, C, D, E)$
\placeformula
  \startformula
    A = (B, C, D, E)
  \stopformula
\stoptext

! Undefined control sequence.
l.6     A = (
             B, C, D, E)
	     ? X

Any ideas?  I'm guessing that the activation of ( messes something up.
If ( is changed to \{, the first , (after B) gives the same error.
If I use $$ ... $$ instead of \startformula ... \stopformula, it seems
to work fine though.
	nikolai

--
::: name: Nikolai Weibull    :: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA    :: loc atm: Gothenburg, Sweden    :::
::: page: www.pcppopper.org  :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}

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

* Re: nath and \(start|stop)formula
  2004-11-14 18:17 nath and \(start|stop)formula Nikolai Weibull
@ 2004-11-15 16:15 ` Christopher Creutzig
  2004-11-15 22:18   ` Nikolai Weibull
  0 siblings, 1 reply; 11+ messages in thread
From: Christopher Creutzig @ 2004-11-15 16:15 UTC (permalink / raw)


Nikolai Weibull wrote:

> \usemodule[nath]
> \starttext
> $A = (B, C, D, E)$
> \placeformula
>   \startformula
>     A = (B, C, D, E)
>   \stopformula
> \stoptext
> 
> ! Undefined control sequence.
> l.6     A = (
>              B, C, D, E)
> 	     ? X

  Try \startnathequation ... \stopnathequation instead.  Or patch 
t-nath.tex for the same effect, I have (but this might have side-effects):

\let\nath!startformula\startformula
\let\nath!stopformula\stopformula

\def\startnathequation{%
   \begingroup
     \curr@cr@is@wall@cr
     \nath!startformula
       \startnatheq
         \hbox\bgroup
           \dmathon@
           \wall\mathopen{}%
}

\def\stopnathequation{%
           \return
           \dmathoff@
         \egroup
       \stopnatheq
     \nath!stopformula
   \endgroup
}

\let\startformula\startnathequation
\let\stopformula\stopnathequation


regards,
	Christopher Creutzig

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

* Re: nath and \(start|stop)formula
  2004-11-15 16:15 ` Christopher Creutzig
@ 2004-11-15 22:18   ` Nikolai Weibull
  2004-11-16 18:34     ` Re[2]: " Giuseppe Bilotta
  0 siblings, 1 reply; 11+ messages in thread
From: Nikolai Weibull @ 2004-11-15 22:18 UTC (permalink / raw)


* Christopher Creutzig <christopher@creutzig.de> [Nov 15, 2004 17:20]:
> Try \startnathequation ... \stopnathequation instead.

Ah, thanks.  Is there still a way to get unnumbered equations?
	nikolai

--
::: name: Nikolai Weibull    :: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA    :: loc atm: Gothenburg, Sweden    :::
::: page: www.pcppopper.org  :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}

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

* Re[2]: nath and \(start|stop)formula
  2004-11-15 22:18   ` Nikolai Weibull
@ 2004-11-16 18:34     ` Giuseppe Bilotta
  2004-11-16 19:19       ` Tobias Burnus
  0 siblings, 1 reply; 11+ messages in thread
From: Giuseppe Bilotta @ 2004-11-16 18:34 UTC (permalink / raw)


Monday, November 15, 2004 Nikolai Weibull wrote:

> * Christopher Creutzig <christopher@creutzig.de> [Nov 15, 2004 17:20]:
>> Try \startnathequation ... \stopnathequation instead.

> Ah, thanks.  Is there still a way to get unnumbered equations?
> 	nikolai

Do not put \placeformula before the equation :)

-- 
Giuseppe "Oblomov" Bilotta

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

* Re: nath and \(start|stop)formula
  2004-11-16 18:34     ` Re[2]: " Giuseppe Bilotta
@ 2004-11-16 19:19       ` Tobias Burnus
  2004-11-16 20:29         ` "[" at beginning of formula ? Matthias Weber
  0 siblings, 1 reply; 11+ messages in thread
From: Tobias Burnus @ 2004-11-16 19:19 UTC (permalink / raw)


Hallo,

Giuseppe Bilotta wrote:

>>>Try \startnathequation ... \stopnathequation instead.
>>>      
>>>
>>Ah, thanks.  Is there still a way to get unnumbered equations?
>>    
>>
>Do not put \placeformula before the equation :)
>  
>
Well, that changes a bit the spacing, how about \placeformula[-] ?

Tobias

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

* "[" at beginning of formula ?
  2004-11-16 19:19       ` Tobias Burnus
@ 2004-11-16 20:29         ` Matthias Weber
  2004-11-16 21:26           ` h h extern
  2004-11-17 10:35           ` Otared Kavian
  0 siblings, 2 replies; 11+ messages in thread
From: Matthias Weber @ 2004-11-16 20:29 UTC (permalink / raw)


Hello,

I'd like to typeset
[\partial,B]=0

but

\starttext
\placeformula
\startformula
0=  [ A ,B ] = 0
\stopformula


gives just "=0"
(see below)
while

\stoptext

\starttext
\placeformula
\startformula
0=  [ A ,B ]
\stopformula
\stoptext


works. What is  the meaning of [ at the beginning of a formula,
and how do I get rid of it?

Matthias

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

* Re: "[" at beginning of formula ?
  2004-11-16 20:29         ` "[" at beginning of formula ? Matthias Weber
@ 2004-11-16 21:26           ` h h extern
  2004-11-16 21:33             ` Matthias Weber
  2004-11-17 10:35           ` Otared Kavian
  1 sibling, 1 reply; 11+ messages in thread
From: h h extern @ 2004-11-16 21:26 UTC (permalink / raw)


Matthias Weber wrote:
> Hello,
> 
> I'd like to typeset
> [\partial,B]=0
> 
> but
> 
> \starttext
> \placeformula
> \startformula
> 0=  [ A ,B ] = 0
> \stopformula
> 
> 
> gives just "=0"
> (see below)
> while
> 
> \stoptext
> 
> \starttext
> \placeformula
> \startformula
> 0=  [ A ,B ]
> \stopformula
> \stoptext
> 
> 
> works. What is  the meaning of [ at the beginning of a formula,
> and how do I get rid of it?

there is a forward scan for [ ] i.e. a reference

just put a \relax in front of your intentional [

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] 11+ messages in thread

* Re: "[" at beginning of formula ?
  2004-11-16 21:26           ` h h extern
@ 2004-11-16 21:33             ` Matthias Weber
  0 siblings, 0 replies; 11+ messages in thread
From: Matthias Weber @ 2004-11-16 21:33 UTC (permalink / raw)


Thanks!

Matthias
On Nov 16, 2004, at 4:26 PM, h h extern wrote:

> Matthias Weber wrote:
>> Hello,
>> I'd like to typeset
>> [\partial,B]=0
>> but
>> \starttext
>> \placeformula
>> \startformula
>> 0=  [ A ,B ] = 0
>> \stopformula
>> gives just "=0"
>> (see below)
>> while
>> \stoptext
>> \starttext
>> \placeformula
>> \startformula
>> 0=  [ A ,B ]
>> \stopformula
>> \stoptext
>> works. What is  the meaning of [ at the beginning of a formula,
>> and how do I get rid of it?
>
> there is a forward scan for [ ] i.e. a reference
>
> just put a \relax in front of your intentional [
>
> 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
> -----------------------------------------------------------------
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
>

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

* Re: "[" at beginning of formula ?
  2004-11-16 20:29         ` "[" at beginning of formula ? Matthias Weber
  2004-11-16 21:26           ` h h extern
@ 2004-11-17 10:35           ` Otared Kavian
  2004-11-17 12:57             ` Matthias Weber
  1 sibling, 1 reply; 11+ messages in thread
From: Otared Kavian @ 2004-11-17 10:35 UTC (permalink / raw)



[-- Attachment #1.1.1: Type: text/plain, Size: 375 bytes --]

At 15:29 -0500 16/11/04, Matthias Weber wrote:
>Hello,
>
>I'd like to typeset
>[\partial,B]=0

Hi Matthias,

Despite Hans' suggestion of putting \relax in front of [, in my 
installation of ConTeXt this works well:
\starttext
\startformula
0 =[\partial,B] =0.
\stopformula


Make sure there is no funny invisible characters in front of the 
square brackets.

Best regards: OK

[-- Attachment #1.1.2: Type: text/html, Size: 920 bytes --]

[-- Attachment #1.2: commutator.pdf --]
[-- Type: application/pdf, Size: 8174 bytes --]

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

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

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

* Re: "[" at beginning of formula ?
  2004-11-17 10:35           ` Otared Kavian
@ 2004-11-17 12:57             ` Matthias Weber
  2004-11-17 13:38               ` Otared Kavian
  0 siblings, 1 reply; 11+ messages in thread
From: Matthias Weber @ 2004-11-17 12:57 UTC (permalink / raw)



Hi Otared,

the actual problem arises with
\starttext
  \startformula
[A,B] =0.
  \stopformula
\stoptext

or, even worse, with

\starttext
  \startformula
[\partial,B] =0.
  \stopformula
\stoptext

Hans' solution is to use \relax whenever one has a [ at the beginning 
of a formula:

\starttext
  \startformula
\relax
[\partial,B] =0.
  \stopformula
\stoptext


Matthias

On Nov 17, 2004, at 5:35 AM, Otared Kavian wrote:

> At 15:29 -0500 16/11/04, Matthias Weber wrote:
> Hello,
>
>  I'd like to typeset
> [\partial,B]=0
>
> Hi Matthias,
>
> Despite Hans' suggestion of putting \relax in front of [, in my 
> installation of ConTeXt this works well:
> \starttext
>  \startformula
>  0 =[\partial,B] =0.
>  \stopformula
>
> <image.tiff>Make sure there is no funny invisible characters in front 
> of the square brackets.
>
> Best regards: OK
> <commutator.pdf>_______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context

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

* Re: "[" at beginning of formula ?
  2004-11-17 12:57             ` Matthias Weber
@ 2004-11-17 13:38               ` Otared Kavian
  0 siblings, 0 replies; 11+ messages in thread
From: Otared Kavian @ 2004-11-17 13:38 UTC (permalink / raw)


At 7:57 -0500 17/11/04, Matthias Weber wrote:
>Hi Otared,
>
>the actual problem arises with
>\starttext
>  \startformula
>[A,B] =0.
>  \stopformula
>\stoptext
>
>or, even worse, with
>
>\starttext
>  \startformula
>[\partial,B] =0.
>  \stopformula
>\stoptext

Hi Matthias,

Yes are right, indeed...
However I tried the following which works as well (replacing \relax 
with empty braces {}):

\starttext
\startformula
{}[\partial,B] =0.
\stopformula
and
\startformula
{}[A,B] =0.
\stopformula
\stoptext

Best regards: OK

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

end of thread, other threads:[~2004-11-17 13:38 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-14 18:17 nath and \(start|stop)formula Nikolai Weibull
2004-11-15 16:15 ` Christopher Creutzig
2004-11-15 22:18   ` Nikolai Weibull
2004-11-16 18:34     ` Re[2]: " Giuseppe Bilotta
2004-11-16 19:19       ` Tobias Burnus
2004-11-16 20:29         ` "[" at beginning of formula ? Matthias Weber
2004-11-16 21:26           ` h h extern
2004-11-16 21:33             ` Matthias Weber
2004-11-17 10:35           ` Otared Kavian
2004-11-17 12:57             ` Matthias Weber
2004-11-17 13:38               ` Otared Kavian

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