ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* problem with math: "\left" leads to "udefined symbol"
@ 2017-01-24 10:33 j. van den hoff
  2017-01-24 13:15 ` Hans Hagen
  0 siblings, 1 reply; 9+ messages in thread
From: j. van den hoff @ 2017-01-24 10:33 UTC (permalink / raw)
  To: ntg-context

hi everybody,

after a 2 year hiatus I'm just giving `context' a second try (so, really  
not much experience so far).

I updated to the latest version (0.63) before proceeding.

two observations:

1.
in a new document including assorted equations everything went fine until  
I tried something like

\startformula
x = \left 1 + 2 \right
\stopformula

which caused an error:

8<------------------------------------------------------------------
  ! Undefined control sequence


\strc_synonyms_insert_meaning ...urrentsynonymtag
                                                   {#2}\fastsetup  
{\??simplel...
\math_left ...ame \??mathleft \meaning \nexttoken
                                                   \endcsname \expandafter  
\l...
l.472 x = \left (
                 1 + 2 \right )
8<------------------------------------------------------------------

2.
an old document (not modified these 2 years) does no longer compile due to  
apparently the same problem (not understanding `\left', `\right'.

question: my understanding is, that `context' supports "everything" out of  
the box (notably equations) and there is no need for explicit loading of  
additional packages? so `\left' etc. _should be defined (and it _used_ to  
work 2 years ago)? what am I missing?

thx, joerg

-- 
Using Opera's revolutionary email client: http://www.opera.com/mail/
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: problem with math: "\left" leads to "udefined symbol"
  2017-01-24 10:33 problem with math: "\left" leads to "udefined symbol" j. van den hoff
@ 2017-01-24 13:15 ` Hans Hagen
  2017-01-24 13:33   ` j. van den hoff
  0 siblings, 1 reply; 9+ messages in thread
From: Hans Hagen @ 2017-01-24 13:15 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 1/24/2017 11:33 AM, j. van den hoff wrote:
> hi everybody,
>
> after a 2 year hiatus I'm just giving `context' a second try (so, really
> not much experience so far).
>
> I updated to the latest version (0.63) before proceeding.

0.63 what? luatex? then you need to check things as we're beyond 1.00 now

> two observations:
>
> 1.
> in a new document including assorted equations everything went fine
> until I tried something like
>
> \startformula
> x = \left 1 + 2 \right
> \stopformula

\left( ... \right)

left and right take an argument that has to be some known open or close 
operator

> which caused an error:
>
> 8<------------------------------------------------------------------
>  ! Undefined control sequence
>
>
> \strc_synonyms_insert_meaning ...urrentsynonymtag
>                                                   {#2}\fastsetup
> {\??simplel...
> \math_left ...ame \??mathleft \meaning \nexttoken
>                                                   \endcsname
> \expandafter \l...
> l.472 x = \left (
>                 1 + 2 \right )
> 8<------------------------------------------------------------------
>
> 2.
> an old document (not modified these 2 years) does no longer compile due
> to apparently the same problem (not understanding `\left', `\right'.
>
> question: my understanding is, that `context' supports "everything" out
> of the box (notably equations) and there is no need for explicit loading
> of additional packages? so `\left' etc. _should be defined (and it
> _used_ to work 2 years ago)? what am I missing?
>
> thx, joerg
>


-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: problem with math: "\left" leads to "udefined symbol"
  2017-01-24 13:15 ` Hans Hagen
@ 2017-01-24 13:33   ` j. van den hoff
  2017-01-24 14:02     ` Hans Hagen
  0 siblings, 1 reply; 9+ messages in thread
From: j. van den hoff @ 2017-01-24 13:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Hans Hagen

On Tue, 24 Jan 2017 14:15:08 +0100, Hans Hagen <pragma@wxs.nl> wrote:

thanks for the quick reply and sorry for my not being precise.  
correction/addition follows:

> On 1/24/2017 11:33 AM, j. van den hoff wrote:
>> hi everybody,
>>
>> after a 2 year hiatus I'm just giving `context' a second try (so, really
>> not much experience so far).
>>
>> I updated to the latest version (0.63) before proceeding.
>
> 0.63 what? luatex? then you need to check things as we're beyond 1.00 now

I was refering to the `context --version' output:

resolvers       | trees | analyzing 'home:texmf'
mtx-context     | ConTeXt Process Management 0.63
mtx-context     |
mtx-context     | main context file:  
path_to/context/tex/texmf-context/tex/context/base/mkiv/context.mkiv
mtx-context     | current version: 2017.01.17 17:37

I _was_ under the impression that this is current since I did an update  
and `current version' gives a date from last week. or that's what I  
believed would happen, when re-running `first-setup.sh': am I mistaken? if  
this is a stupid question I'd accept a RTFM answer ;-).

>
>> two observations:
>>
>> 1.
>> in a new document including assorted equations everything went fine
>> until I tried something like
>>
>> \startformula
>> x = \left 1 + 2 \right
>> \stopformula
>
> \left( ... \right)
>
> left and right take an argument that has to be some known open or close  
> operator

yes, I know. sorry for the glitch. I _meant_

\startformula
   x =  \left ( 1 + 2 \right )
  \stopformula

and _that_ is what's still causes the `Undefined control sequence' (both,  
in the new as well as the two year old unmodified document) -- actually it  
is thus reported in
the error message (in the previous mail, too):

"l.472 x = \left (
                 1 + 2 \right )"

>
>> which caused an error:
>>
>> 8<------------------------------------------------------------------
>>  ! Undefined control sequence
>>
>>
>> \strc_synonyms_insert_meaning ...urrentsynonymtag
>>                                                   {#2}\fastsetup
>> {\??simplel...
>> \math_left ...ame \??mathleft \meaning \nexttoken
>>                                                   \endcsname
>> \expandafter \l...
>> l.472 x = \left (
>>                 1 + 2 \right )
>> 8<------------------------------------------------------------------
>>
>> 2.
>> an old document (not modified these 2 years) does no longer compile due
>> to apparently the same problem (not understanding `\left', `\right'.
>>
>> question: my understanding is, that `context' supports "everything" out
>> of the box (notably equations) and there is no need for explicit loading
>> of additional packages? so `\left' etc. _should be defined (and it
>> _used_ to work 2 years ago)? what am I missing?
>>
>> thx, joerg
>>
>
>


-- 
Using Opera's revolutionary email client: http://www.opera.com/mail/
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: problem with math: "\left" leads to "udefined symbol"
  2017-01-24 13:33   ` j. van den hoff
@ 2017-01-24 14:02     ` Hans Hagen
  2017-01-24 14:15       ` luigi scarso
                         ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Hans Hagen @ 2017-01-24 14:02 UTC (permalink / raw)
  To: j. van den hoff, mailing list for ConTeXt users

On 1/24/2017 2:33 PM, j. van den hoff wrote:
> On Tue, 24 Jan 2017 14:15:08 +0100, Hans Hagen <pragma@wxs.nl> wrote:
>
> thanks for the quick reply and sorry for my not being precise.
> correction/addition follows:
>
>> On 1/24/2017 11:33 AM, j. van den hoff wrote:
>>> hi everybody,
>>>
>>> after a 2 year hiatus I'm just giving `context' a second try (so, really
>>> not much experience so far).
>>>
>>> I updated to the latest version (0.63) before proceeding.
>>
>> 0.63 what? luatex? then you need to check things as we're beyond 1.00 now
>
> I was refering to the `context --version' output:
>
> resolvers       | trees | analyzing 'home:texmf'
> mtx-context     | ConTeXt Process Management 0.63
> mtx-context     |
> mtx-context     | main context file:
> path_to/context/tex/texmf-context/tex/context/base/mkiv/context.mkiv
> mtx-context     | current version: 2017.01.17 17:37
>
> I _was_ under the impression that this is current since I did an update
> and `current version' gives a date from last week. or that's what I
> believed would happen, when re-running `first-setup.sh': am I mistaken?
> if this is a stupid question I'd accept a RTFM answer ;-).

the context version is: 2017.01.17 17:37

(best also mention the reported luatex version in such cases)

the 0.63 hardly changes as mtx-context hardly changes


>>
>>> two observations:
>>>
>>> 1.
>>> in a new document including assorted equations everything went fine
>>> until I tried something like
>>>
>>> \startformula
>>> x = \left 1 + 2 \right
>>> \stopformula
>>
>> \left( ... \right)
>>
>> left and right take an argument that has to be some known open or
>> close operator
>
> yes, I know. sorry for the glitch. I _meant_
>
> \startformula
>   x =  \left ( 1 + 2 \right )
>  \stopformula
>
> and _that_ is what's still causes the `Undefined control sequence'
> (both, in the new as well as the two year old unmodified document) --
> actually it is thus reported in
> the error message (in the previous mail, too):
>
> "l.472 x = \left (
>                 1 + 2 \right )"
>

this just works here ... so can others confirm it?

\starttext

\startformula
     x =  \left ( 1 + 2 \right )
\stopformula

\stoptext


>>> which caused an error:
>>>
>>> 8<------------------------------------------------------------------
>>>  ! Undefined control sequence
>>>
>>>
>>> \strc_synonyms_insert_meaning ...urrentsynonymtag
>>>                                                   {#2}\fastsetup
>>> {\??simplel...
>>> \math_left ...ame \??mathleft \meaning \nexttoken
>>>                                                   \endcsname
>>> \expandafter \l...
>>> l.472 x = \left (
>>>                 1 + 2 \right )
>>> 8<------------------------------------------------------------------
>>>
>>> 2.
>>> an old document (not modified these 2 years) does no longer compile due
>>> to apparently the same problem (not understanding `\left', `\right'.
>>>
>>> question: my understanding is, that `context' supports "everything" out
>>> of the box (notably equations) and there is no need for explicit loading
>>> of additional packages? so `\left' etc. _should be defined (and it
>>> _used_ to work 2 years ago)? what am I missing?
>>>
>>> thx, joerg
>>>
>>
>>
>
>


-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: problem with math: "\left" leads to "udefined symbol"
  2017-01-24 14:02     ` Hans Hagen
@ 2017-01-24 14:15       ` luigi scarso
  2017-01-24 14:54         ` j. van den hoff
  2017-01-24 15:02       ` Roger Mason
  2017-01-24 15:47       ` problem with math: "\left" leads to "udefined symbol" --solved (sort of) j. van den hoff
  2 siblings, 1 reply; 9+ messages in thread
From: luigi scarso @ 2017-01-24 14:15 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, Jan 24, 2017 at 3:02 PM, Hans Hagen <pragma@wxs.nl> wrote:
> this just works here ... so can others confirm it?
>
> \starttext
>
> \startformula
>     x =  \left ( 1 + 2 \right )
> \stopformula
>
> \stoptext
>
>


no problem here with

This is LuaTeX, Version 1.0.2 (TeX Live 2017/dev)
 system commands enabled.
system          > ConTeXt  ver: 2017.01.17 16:50 MKIV beta  fmt:
2017.1.23  int: english/english

-- 
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: problem with math: "\left" leads to "udefined symbol"
  2017-01-24 14:15       ` luigi scarso
@ 2017-01-24 14:54         ` j. van den hoff
  0 siblings, 0 replies; 9+ messages in thread
From: j. van den hoff @ 2017-01-24 14:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users, luigi scarso

On Tue, 24 Jan 2017 15:15:09 +0100, luigi scarso <luigi.scarso@gmail.com>  
wrote:

> On Tue, Jan 24, 2017 at 3:02 PM, Hans Hagen <pragma@wxs.nl> wrote:
>> this just works here ... so can others confirm it?
>>
>> \starttext
>>
>> \startformula
>>     x =  \left ( 1 + 2 \right )
>> \stopformula
>>
>> \stoptext
>>
>>
>
>
> no problem here with
>
> This is LuaTeX, Version 1.0.2 (TeX Live 2017/dev)
>  system commands enabled.
> system          > ConTeXt  ver: 2017.01.17 16:50 MKIV beta  fmt:
> 2017.1.23  int: english/english

in fact, this minimal example works for me too. BUT adding those three  
lines (\startformula .... \stopformula) to my actual document makes  
compilation fail. no idea what's happening here. I will now try to reduce  
my original document to a hopefully minimal example triggering the  
described behaviour.

any hints, where to look regarding possible reasons of the observed  
behavior would of course be appreciated.

>


-- 
Using Opera's revolutionary email client: http://www.opera.com/mail/
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: problem with math: "\left" leads to "udefined symbol"
  2017-01-24 14:02     ` Hans Hagen
  2017-01-24 14:15       ` luigi scarso
@ 2017-01-24 15:02       ` Roger Mason
  2017-01-24 15:47       ` problem with math: "\left" leads to "udefined symbol" --solved (sort of) j. van den hoff
  2 siblings, 0 replies; 9+ messages in thread
From: Roger Mason @ 2017-01-24 15:02 UTC (permalink / raw)
  To: Hans Hagen; +Cc: mailing list for ConTeXt users

Hans Hagen <pragma@wxs.nl> writes:

>
> this just works here ... so can others confirm it?
>
> \starttext
>
> \startformula
>     x =  \left ( 1 + 2 \right )
> \stopformula
>
> \stoptext
>
>
Here too:

resolvers       | trees | analyzing 'home:texmf'
resolvers       | globbing | confusing filename, name: 'README.txt', lower: 'readme.txt', already: 'ReadMe.txt'
mtx-context     | ConTeXt Process Management 0.63
mtx-context     |
mtx-context     | main context file: /opt/context/tex/texmf-context/tex/context/base/mkiv/context.mkiv
mtx-context     | current version: 2016.10.14 17:19

Roger
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: problem with math: "\left" leads to "udefined symbol" --solved (sort of)
  2017-01-24 14:02     ` Hans Hagen
  2017-01-24 14:15       ` luigi scarso
  2017-01-24 15:02       ` Roger Mason
@ 2017-01-24 15:47       ` j. van den hoff
  2017-01-24 16:34         ` Hans Hagen
  2 siblings, 1 reply; 9+ messages in thread
From: j. van den hoff @ 2017-01-24 15:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Hans Hagen

well after incrementally deleting most everything from my document I now  
seem to have a reproducible example:

8<--------------------------------------------
\definesynonyms[MySymbol][MySymbols][\meaning]
    \MySymbol [whaever] {this} {  means }

\starttext
\startformula
x = \left ( 1 + 2 \right )
\stopformula
\stoptext
8<--------------------------------------------

the apparent "culprit" is the presence of the `\definesynonyms' stuff.  
without it the rest (identical to your minimal example) compiles. with it  
it does not... remember that I am really unexperienced with `context': at  
the time (2 years ago), when I first tried this, it worked. I now realize  
(after reading up on the `definesynonyms' syntax again ...) that
in the definition a _command_ has to go into the third bracket. seemingly  
at the time I was just putting a placeholder `\meaning' there (never  
attempting to use it as a command acting on the explanatory text for that  
symbol definition but only wanting a glossary.

the strange thing (for me) is that this worked just fine two years ago,  
now it does produce a very strange error as described. question is why.

but replacing `\meaning' by `\infull' suffices to restore sane behaviour.


while I understand, that I did something stupid (putting a non-existent  
command `\meaning' in the definition), I would have presumed that this  
might trigger an error at that place rather than making `\left (' suddenly  
an undefined control sequence. any explanation what is going on here would  
be greatly appreciated.



On Tue, 24 Jan 2017 15:02:38 +0100, Hans Hagen <pragma@wxs.nl> wrote:

>  this just works here ... so can others confirm it?
>  \starttext
>  \startformula
>     x =  \left ( 1 + 2 \right )
> \stopformula
>  \stoptext


-- 
Using Opera's revolutionary email client: http://www.opera.com/mail/
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: problem with math: "\left" leads to "udefined symbol" --solved (sort of)
  2017-01-24 15:47       ` problem with math: "\left" leads to "udefined symbol" --solved (sort of) j. van den hoff
@ 2017-01-24 16:34         ` Hans Hagen
  0 siblings, 0 replies; 9+ messages in thread
From: Hans Hagen @ 2017-01-24 16:34 UTC (permalink / raw)
  To: j. van den hoff, mailing list for ConTeXt users

On 1/24/2017 4:47 PM, j. van den hoff wrote:
> well after incrementally deleting most everything from my document I now
> seem to have a reproducible example:
>
> 8<--------------------------------------------
> \definesynonyms[MySymbol][MySymbols][\meaning]
>    \MySymbol [whaever] {this} {  means }
>
> \starttext
> \startformula
> x = \left ( 1 + 2 \right )
> \stopformula
> \stoptext
> 8<--------------------------------------------
>
> the apparent "culprit" is the presence of the `\definesynonyms' stuff.
> without it the rest (identical to your minimal example) compiles. with
> it it does not... remember that I am really unexperienced with
> `context': at the time (2 years ago), when I first tried this, it
> worked. I now realize (after reading up on the `definesynonyms' syntax
> again ...) that
> in the definition a _command_ has to go into the third bracket.
> seemingly at the time I was just putting a placeholder `\meaning' there
> (never attempting to use it as a command acting on the explanatory text
> for that symbol definition but only wanting a glossary.
>
> the strange thing (for me) is that this worked just fine two years ago,
> now it does produce a very strange error as described. question is why.
>
> but replacing `\meaning' by `\infull' suffices to restore sane behaviour.
>
> while I understand, that I did something stupid (putting a non-existent
> command `\meaning' in the definition), I would have presumed that this
> might trigger an error at that place rather than making `\left ('
> suddenly an undefined control sequence. any explanation what is going on
> here would be greatly appreciated.

\meaning is a primitive ... best use \UpperCase names for such commands 
... imagine that you overload \relax or \hbox or ...

>
>
> On Tue, 24 Jan 2017 15:02:38 +0100, Hans Hagen <pragma@wxs.nl> wrote:
>
>>  this just works here ... so can others confirm it?
>>  \starttext
>>  \startformula
>>     x =  \left ( 1 + 2 \right )
>> \stopformula
>>  \stoptext
>
>


-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2017-01-24 16:34 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-24 10:33 problem with math: "\left" leads to "udefined symbol" j. van den hoff
2017-01-24 13:15 ` Hans Hagen
2017-01-24 13:33   ` j. van den hoff
2017-01-24 14:02     ` Hans Hagen
2017-01-24 14:15       ` luigi scarso
2017-01-24 14:54         ` j. van den hoff
2017-01-24 15:02       ` Roger Mason
2017-01-24 15:47       ` problem with math: "\left" leads to "udefined symbol" --solved (sort of) j. van den hoff
2017-01-24 16:34         ` 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).