Re: [NTG-context] Problem with math alignment

2017-11-13 Thread Jeong Dal
Dear Otared,

Thank you for checking my code.

> The strange fact is that if one puts 
>   \startitem $\overline{A} = A$ \stopitem
> as the first item in your example (instead of the second), then ConTeXt 
> creates three columns, with the first item the result of the above line, and 
> then items 2 and 3 in the second column and finally item 4 in the third 
> column. Despite this the textwidth is divided into four…
> 

I have noticed before what you described. If there are 8 items, the outputs are 
all different depends on the location of \overline.
I couldn’t see any pattern in the output.
The only thing I can see is that the command ‘\overline’  makes a blank line,
and I just guess that it is related with the column environment.

> I hope Hans will see your message and fix the issue.

Yes, it is also my hope. And, I believe that he also solve the alignment 
problem too.

Best regards,

Dalyoung

___
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
___

Re: [NTG-context] Problem with math alignment

2017-11-13 Thread Wolfgang Schuster



Otared Kavian 
13. November 2017 um 11:08


Hi Wolfgang,

Thanks for your help. In math-ali.mkiv there are the following lines:

\setupmathmatrix
[\c!distance=\emwidth,
\c!left=,
\c!right=,
\c!align=\v!middle]

Is it here where one has to change something? I confess that I am not 
at all familiar with the source code…


No, this is only the default setup for matrices. The alignment is done 
at the begin and end of the cell content (look at the commented commands 
below):


\unexpanded\def\math_matrix_start_cell
  {\dostarttagged\t!mathtablecell\empty
   \hss
  %\math_left_of_equalign
   \startimath
   \math_matrix_set_style
   \tabskip\zeropoint
   \everycr\emptytoks}

\unexpanded\def\math_matrix_stop_cell
  {\stopimath
  %\math_right_of_eqalign
   \hss
   \dostoptagged}

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

Re: [NTG-context] Problem with math alignment

2017-11-13 Thread Otared Kavian
Dear Dalyoung,

Thank you for having tested my example.

Regarding what you are reporting in another thread about the weird behaviour of 
\overline in columns, I was traveling and could not test your file. Now I 
tested your example and I get the same result as you with the latest beta 
2017.11.08 22:45.
The strange fact is that if one puts 
\startitem $\overline{A} = A$ \stopitem
as the first item in your example (instead of the second), then ConTeXt creates 
three columns, with the first item the result of the above line, and then items 
2 and 3 in the second column and finally item 4 in the third column. Despite 
this the textwidth is divided into four…

I hope Hans will see your message and fix the issue.

Best regards: OK

> On 13 Nov 2017, at 03:12, Jeong Dal  wrote:
> 
> Dear Otared,
> 
> I run your code and found that they are not aligned properly as you want.
> But I don’t know how to do for the correct alignment.
> 
> Did you see the mail about the \overline problem in column environment which 
> I listed recently?
> It is a different problem from yours, but I’d like to know whether  you got 
> the same output as mine or not.
> Would you please check it in your computer?
> 
> Thank you.
> 
> Best regards,
> 
> Dalyoung
> ___
> 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
> ___

___
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
___

Re: [NTG-context] Problem with math alignment

2017-11-13 Thread Wolfgang Schuster



Otared Kavian 
12. November 2017 um 17:37
Hi everybody,

Does anyone have noticed that the mathalignment has changed its 
behaviour recently? I think a bug has managed to enter the environment 
which handles the mathalignment, at least since a few weeks ago. I did 
not report it earlier because I was traveling and did not have a 
stable internet access.
The align option for mathmatrix doesn’t work anymore because the 
function is disabled (commented) in the code.


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

Re: [NTG-context] Problem with math alignment

2017-11-12 Thread Jeong Dal
Dear Otared,

I run your code and found that they are not aligned properly as you want.
But I don’t know how to do for the correct alignment.

Did you see the mail about the \overline problem in column environment which I 
listed recently?
It is a different problem from yours, but I’d like to know whether  you got the 
same output as mine or not.
Would you please check it in your computer?

Thank you.

Best regards,

Dalyoung
___
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
___

Re: [NTG-context] Problem with math alignment

2017-11-12 Thread Otared Kavian
Hi Matthias,

Thanks for your answer. I think that Hans has changed the way entries of 
mathmatrix are handled, that is they are now centered and this cannot be 
changed…
However I think now that my way of using mathmatrix in order to get aligned 
cases, should be changed into the following:

\definemathalignment[alignedcases]
[n=3,
align={right,left,left},
distance=3pt,
left={\left\{},
right={\right.},
style=\displaystyle]

Once this is done, the result is as expected since the math alignment 
environment accepts changing the alignment in each column. However the big 
problem is that one loses the left brace encompassing the displayed equations… 

I hope Hans will read this and help fix the issue…

Best regards: OK

%%% begin example-aligned-cases.tex
\definemathalignment[alignedcases]
[n=3,
align={right,left,left},
distance=3pt,
left={\left\{}, % this is not honoured…
right={\right.},
style=\displaystyle]
\starttext

\startformula
\startalignedcases
\NC \partial_{tt} u - \Delta u + q(x) u \NC = 0  \NC \quad\mbox{in 
}\;(0,T)\times\Omega \NR
\NC  u(0,x) \NC = 0 \NC \quad \mbox{in }\; \Omega \NR 
\NC  \partial_{t} u(0,x) \NC = 0 \NC \quad \mbox{in }\; \Omega \NR 
\NC {\partial u \over\partial{\bf n} } \NC = g(t,\sigma) \NC \quad \mbox{on }\; 
(0,T)\times\partial\Omega. \NR
\stopalignedcases
\stopformula


\startformula
\startalign[n=3,align={right,left,left}]
\NC \partial_{tt} u - \Delta u + q(x) u \NC = 0 \NC \quad\mbox{in }\; 
(0,T)\times\Omega \NR
\NC - \Delta v  \NC = q(x) \partial_{t}u \NC \quad\mbox{in }\; \Omega \NR
\stopalign
\stopformula

\startformula
\startalignedcases
\NC \partial_{tt} u - \Delta u + q(x) u \NC = 0 \NC \quad\mbox{in }\; 
(0,T)\times\Omega \NR
\NC - \Delta v  \NC = q(x) \partial_{t}u \NC \quad\mbox{in }\; \Omega \NR
\stopalignedcases
\stopformula
\stoptext
%%% end example-aligned-cases.tex

> On 12 Nov 2017, at 17:58, Weber, Matthias  wrote:
> 
> Same here. Curiously, the Garden version is ok, while the newest beta seems 
> to make all alignments centered.
> 
> 
> Minimal  Example:
> 
> 
> \starttext
> \startformula
> A=\startmathmatrix[align={right,right}]
> \NC1\NC-1\NR
> \NC-1\NC1\NR
> \stopmathmatrix
> \stopformula
> \stoptext
> 
> Matthias
> 
>> On Nov 12, 2017, at 11:37 AM, Otared Kavian  wrote:
>> 
>> Hi everybody,
>> 
>> Does anyone have noticed that the mathalignment has changed its behaviour 
>> recently? I think a bug has managed to enter the environment which handles 
>> the mathalignment, at least since a few weeks ago. I did not report it 
>> earlier because I was traveling and did not have a stable internet access.
>> 
>> Here is a minimal example where on can see in the first displayed formula 
>> that the first and third column are centered while the first one shoud be 
>> right-aligned and the third one left-aligned. (Actually it seems that all 
>> columns are centered…)
>> %%% begin pb-math-align.tex
>> \definemathmatrix[alignedcases]
>>  [align={right,left,left},
>>  distance=3pt,
>>  left={\left\{},
>>  right={\right.},
>>  style=\displaystyle]
>> 
>> 
>> \starttext
>> 
>> \startformula
>> \startalignedcases
>> \NC \partial_{tt} u - \Delta u + q(x) u \NC = 0  \NC \quad\mbox{in 
>> }\;(0,T)\times\Omega \NR
>> \NC  u(0,x) \NC = 0 \NC \quad \mbox{in }\; \Omega \NR 
>> \NC  \partial_{t} u(0,x) \NC = 0 \NC \quad \mbox{in }\; \Omega \NR 
>> \NC {\partial u \over\partial{\bf n} } \NC = g(t,\sigma) \NC \quad \mbox{on 
>> }\; (0,T)\times\partial\Omega. \NR
>> \stopalignedcases
>> \stopformula
>> 
>> 
>> \startformula
>> \startalignedcases
>> \NC \partial_{tt} u - \Delta u + q(x) u \NC = 0 \NC \quad\mbox{in }\; 
>> (0,T)\times\Omega \NR
>> \NC - \Delta v  \NC = q(x) \partial_{t}u \NC \quad\mbox{in }\; \Omega \NR
>> \stopalignedcases
>> \stopformula
>> 
>> \stoptext
>> %%% end pb-math-align.tex
>> 
>> 
>> 
>> ___
>> 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
>> ___
> 
> ___
> 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  : 

Re: [NTG-context] Problem with math alignment

2017-11-12 Thread Weber, Matthias
Same here. Curiously, the Garden version is ok, while the newest beta seems to 
make all alignments centered.


Minimal  Example:


\starttext
\startformula
A=\startmathmatrix[align={right,right}]
\NC1\NC-1\NR
\NC-1\NC1\NR
\stopmathmatrix
\stopformula
\stoptext

Matthias

> On Nov 12, 2017, at 11:37 AM, Otared Kavian  wrote:
> 
> Hi everybody,
> 
> Does anyone have noticed that the mathalignment has changed its behaviour 
> recently? I think a bug has managed to enter the environment which handles 
> the mathalignment, at least since a few weeks ago. I did not report it 
> earlier because I was traveling and did not have a stable internet access.
> 
> Here is a minimal example where on can see in the first displayed formula 
> that the first and third column are centered while the first one shoud be 
> right-aligned and the third one left-aligned. (Actually it seems that all 
> columns are centered…)
> %%% begin pb-math-align.tex
> \definemathmatrix[alignedcases]
>   [align={right,left,left},
>   distance=3pt,
>   left={\left\{},
>   right={\right.},
>   style=\displaystyle]
> 
> 
> \starttext
> 
> \startformula
> \startalignedcases
> \NC \partial_{tt} u - \Delta u + q(x) u \NC = 0  \NC \quad\mbox{in 
> }\;(0,T)\times\Omega \NR
> \NC  u(0,x) \NC = 0 \NC \quad \mbox{in }\; \Omega \NR 
> \NC  \partial_{t} u(0,x) \NC = 0 \NC \quad \mbox{in }\; \Omega \NR 
> \NC {\partial u \over\partial{\bf n} } \NC = g(t,\sigma) \NC \quad \mbox{on 
> }\; (0,T)\times\partial\Omega. \NR
> \stopalignedcases
> \stopformula
> 
> 
> \startformula
> \startalignedcases
> \NC \partial_{tt} u - \Delta u + q(x) u \NC = 0 \NC \quad\mbox{in }\; 
> (0,T)\times\Omega \NR
> \NC - \Delta v  \NC = q(x) \partial_{t}u \NC \quad\mbox{in }\; \Omega \NR
> \stopalignedcases
> \stopformula
> 
> \stoptext
> %%% end pb-math-align.tex
> 
> 
> 
> ___
> 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
> ___

___
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
___

[NTG-context] Problem with math alignment

2017-11-12 Thread Otared Kavian
Hi everybody,

Does anyone have noticed that the mathalignment has changed its behaviour 
recently? I think a bug has managed to enter the environment which handles the 
mathalignment, at least since a few weeks ago. I did not report it earlier 
because I was traveling and did not have a stable internet access.

Here is a minimal example where on can see in the first displayed formula that 
the first and third column are centered while the first one shoud be 
right-aligned and the third one left-aligned. (Actually it seems that all 
columns are centered…)
%%% begin pb-math-align.tex
\definemathmatrix[alignedcases]
[align={right,left,left},
distance=3pt,
left={\left\{},
right={\right.},
style=\displaystyle]


\starttext

\startformula
\startalignedcases
\NC \partial_{tt} u - \Delta u + q(x) u \NC = 0  \NC \quad\mbox{in 
}\;(0,T)\times\Omega \NR
\NC  u(0,x) \NC = 0 \NC \quad \mbox{in }\; \Omega \NR 
\NC  \partial_{t} u(0,x) \NC = 0 \NC \quad \mbox{in }\; \Omega \NR 
\NC {\partial u \over\partial{\bf n} } \NC = g(t,\sigma) \NC \quad \mbox{on }\; 
(0,T)\times\partial\Omega. \NR
\stopalignedcases
\stopformula


\startformula
\startalignedcases
\NC \partial_{tt} u - \Delta u + q(x) u \NC = 0 \NC \quad\mbox{in }\; 
(0,T)\times\Omega \NR
\NC - \Delta v  \NC = q(x) \partial_{t}u \NC \quad\mbox{in }\; \Omega \NR
\stopalignedcases
\stopformula

\stoptext
%%% end pb-math-align.tex



pb-align-math.pdf
Description: Adobe PDF document


___
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
___

Re: [NTG-context] problem with math: "\left" leads to "udefined symbol" --solved (sort of)

2017-01-24 Thread Hans Hagen

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  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
___

Re: [NTG-context] problem with math: "\left" leads to "udefined symbol" --solved (sort of)

2017-01-24 Thread j. van den hoff
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  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
___

Re: [NTG-context] problem with math: "\left" leads to "udefined symbol"

2017-01-24 Thread Roger Mason
Hans Hagen  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
___

Re: [NTG-context] problem with math: "\left" leads to "udefined symbol"

2017-01-24 Thread j. van den hoff
On Tue, 24 Jan 2017 15:15:09 +0100, luigi scarso   
wrote:



On Tue, Jan 24, 2017 at 3:02 PM, Hans Hagen  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
___

Re: [NTG-context] problem with math: "\left" leads to "udefined symbol"

2017-01-24 Thread luigi scarso
On Tue, Jan 24, 2017 at 3:02 PM, Hans Hagen  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
___

Re: [NTG-context] problem with math: "\left" leads to "udefined symbol"

2017-01-24 Thread Hans Hagen

On 1/24/2017 2:33 PM, j. van den hoff wrote:

On Tue, 24 Jan 2017 14:15:08 +0100, Hans Hagen  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
___

Re: [NTG-context] problem with math: "\left" leads to "udefined symbol"

2017-01-24 Thread j. van den hoff

On Tue, 24 Jan 2017 14:15:08 +0100, Hans Hagen  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
___

Re: [NTG-context] problem with math: "\left" leads to "udefined symbol"

2017-01-24 Thread Hans Hagen

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
___

[NTG-context] problem with math: "\left" leads to "udefined symbol"

2017-01-24 Thread j. van den hoff

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
___

[NTG-context] Problem with math!

2012-02-25 Thread Verhaag, G.C.H.M.

Hi ConTeXt users,

Currently I'm experiencing problems with inline math mode in combination 
with the addff{oldstyle} command!


The attached test file doens't compile with the latest version 2012.2.18 
(MkIV), which seems to be caused by the introduction of the $\bullet$!


With older versions this worked okay!

Regards,
Gerard Verhaag
\language[nl]

\usetypescript[schola]
\setupbodyfont[schola,10pt]

\definefontfeature [oldstyle] [latn] [onum=yes]

% adding this feature set
\addff{oldstyle}

\starttext
 Math symbols like $\bullet$ NOT working any more from version 2012.2.18!
\stoptext
___
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
___

Re: [NTG-context] problem with math and TeXgyre and MKIV

2009-06-27 Thread Alan BRASLAU
Does anyone use math?  For I am surprised that nobody is complaining.
(recent minimals, since 8 June, mkiv)

The following minimal example

% mkiv
\usetypescript[postscript]
\usetypescript[pagella]

\starttext
default: $A = \pi r^2$

\switchtobodyfont[postscript]
postscript: $A = \pi r^2$

\switchtobodyfont[pagella]
pagella: $A = \pi r^2$
\stoptext

renders incorrectly.
1. no TeXGyre \pi (or other math symbols)
2. the math r is strange (outlined and unselectable under Acroread)
3. numerous error messages using libpoppler (okular, evince)

Alan

___
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
___


Re: [NTG-context] problem with math and TeXgyre and MKIV

2009-06-27 Thread Mojca Miklavec
On Sat, Jun 27, 2009 at 13:39, Alan BRASLAU wrote:
 Does anyone use math?  For I am surprised that nobody is complaining.

 (recent minimals, since 8 June, mkiv)

 The following minimal example

 % mkiv
 \usetypescript[postscript]
 \usetypescript[pagella]

 \starttext
 default: $A = \pi r^2$

 \switchtobodyfont[postscript]
 postscript: $A = \pi r^2$

 \switchtobodyfont[pagella]
 pagella: $A = \pi r^2$
 \stoptext

 renders incorrectly.
 1. no TeXGyre \pi (or other math symbols)
 2. the math r is strange (outlined and unselectable under Acroread)
 3. numerous error messages using libpoppler (okular, evince)

I have confirmed the buggy behaviour offline, but I'm afraid that only
Hans can fix it.

(my off-list response:)
 The version that breaks is apparently beta-2009.06.10 (the version
 from 8th June still worked). But there are too many changes to find a
 single simple reason for the failure. I leave it to Hans to sort it
 out ... now that he has the git repository, it should be easier for
 him to find the reason :) :) :)

Mojca
___
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
___


[NTG-context] problem with math and TeXgyre and MKIV

2009-06-15 Thread Alan BRASLAU
No math symbols? (see attached)
Alan

minimal example:

\usetypescript[postscript]
\setupbodyfont[postscript,rm,12pt]
\starttext
$A = \pi r^2$
\stoptext



goo.pdf
Description: Adobe PDF document
___
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
___


Re: [NTG-context] Problem with math item in table of contents

2003-08-14 Thread Hans Hagen
At 15:41 01/08/2003 +0200, you wrote:
Hi,

I would like to use this:

\completecontent
\chapter{$a|b$}
\bye
the problem is that the bar | causes problems in the table of contents.
Any ideas how I can still have it in the table?
either patch supp-lan:

  \def\fakecompoundhyphen
{\def\|{\mathortext\vert\dofakecompoundhyphen}}
  \def\dofakecompoundhyphen
{\def##1|%
   {\doifelsenothing{##1}{\compoundhyphen}{##1}%
\kern\compoundbreakpoint\allowbreak}}
or use $a\vert b$ instead

interesting how long it takes for such a bug to show up

Hans
-
  Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED]
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-
   information: http://www.pragma-ade.com/roadmap.pdf
documentation: http://www.pragma-ade.com/showcase.pdf
-
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Problem with math item in table of contents

2003-08-01 Thread Tobias Burnus
Hi,

I would like to use this:

\completecontent
\chapter{$a|b$}
\bye

the problem is that the bar | causes problems in the table of contents.
Any ideas how I can still have it in the table?

Tobias

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Problem with math item in table of contents

2003-08-01 Thread Sebastian Rooks
Tobias Burnus wrote:

Hi,
what about \chapter{a\vert b} ?
 Seb.

PS: Did you get any answer for this one of your previous question :

Hello all,

(repost)

I have the following problem:
Using
 \setuppagenumbering[location={footer,right}]
 \startbodymatter
 \chapter{Hi}
 \stopbodymatter
I always get 3 pages, but I want to have two: The recto with Hi and its
verso, I don't want to have an extra recto!
Tobias
I would be pleased to know how to get rid of this extra page.

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Problem with math item in table of contents

2003-08-01 Thread Tobias Burnus
Hello Sebastian,

On Fri, 1 Aug 2003, Sebastian Rooks wrote:
 what about \chapter{a\vert b} ?
Good idea, I only remembered \mid which is something like '\,|\,'.
(I need to find my texbook, someone seems to have borrowed it.)

 PS: Did you get any answer for this one of your previous question :
[startbodymatter + alternative=doublesided gives odd number of pages]

No, unfortunally not.

 I would be pleased to know how to get rid of this extra page.
So do I ;-)

Tobias

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context