Re: [NTG-context] Bug in placeformula with framed text

2016-07-05 Thread Otared Kavian
Hi Hans,

Thanks a lot for having fixed the issue I was reporting.

Unfortunately I found another issue related to placeformula and alignment in 
math mode. 
In the following example the use of \startalign in a \placeformula triggers a 
weird behavior in the sense that the following instance of \startformula gets 
also a number, even though one does not issue a \placeformula command. Moreover 
the number is placed incorrectly.
In the resulting PDF I am attaching, please look at the numbers (4) and (8) 
placed incorrectly (and they are not wanted neither…).
When one removes the \placeformula command, the result is correct.

Best regards: OK

%%% begin bug-placeformula-align.tex
\definemathalignment[Lgather][n=1,align=left]

\starttext

\setupformulas[location=left] 
\placeformula
\startformula
\startLgather
\NC a_{n} = O(1)\; \mbox{ and }\; u_{n} = O(1) \imply  a_{n} + \lambda u_{n} = 
O(1) \NR[eq:O-ev-1]
\NC a_{n} = O(1)\; \mbox{ and }\; u_{n} = O(1) \imply a_{n}u_{n} = O(1) 
\NR[eq:O-ev-2]
\NC a_{n} = o(u_{n})\; \mbox{ et }\; b_{n} = O(v_{n})  \imply a_{n}b_{n} = 
o(u_{n}v_{n}) \NR[+]
\stopLgather
\stopformula


\blank
\hairline
\blank

\startformula
\startalign[n=2,align=left]
\NC a_{n} := {n - 1 \over n},\qquad\qquad \NC x_{n} := {n^2 + 1 \over n^2}, \NR
\NC b_{n} := -1 , \NC y_{n} := -1. \NR
\stopalign
\stopformula 

\blank
\hairline
\blank

\setupformulas[location=right] 

\placeformula
\startformula
\startLgather
\NC a_{n} = O(1)\; \mbox{ and }\; u_{n} = O(1) \imply  a_{n} + \lambda u_{n} = 
O(1) \NR[eq:O-ev-1]
\NC a_{n} = O(1)\; \mbox{ and }\; u_{n} = O(1) \imply a_{n}u_{n} = O(1) 
\NR[eq:O-ev-2]
\NC a_{n} = o(u_{n})\; \mbox{ et }\; b_{n} = O(v_{n})  \imply a_{n}b_{n} = 
o(u_{n}v_{n}) \NR[+]
\stopLgather
\stopformula


\blank
\hairline
\blank

\startformula
\startalign[n=2,align=left]
\NC a_{n} := {n - 1 \over n},\qquad\qquad \NC x_{n} := {n^2 + 1 \over n^2}, \NR
\NC b_{n} := -1 , \NC y_{n} := -1. \NR
\stopalign
\stopformula 

\stoptext
%%% end bug-placeformula-align.tex


bug-placeformula-align.pdf
Description: Adobe PDF document


> On 05 Jul 2016, at 13:08, Hans Hagen  wrote:
> 
> On 7/4/2016 11:11 AM, Otared Kavian wrote:
> 
>> Below is an example (sorry if it is not absolutely minimal: I ran into this 
>> bug when updating a lecture notes which uses a left frame around \proclaim 
>> stuff). I attach the PDF showing the problem. I wonder whether this is 
>> related to the new features introduced recently for math frames.
> 
> fixed in next beta
> 
> 
> -
>  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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Bug in placeformula with framed text

2016-07-05 Thread Hans Hagen

On 7/4/2016 11:11 AM, Otared Kavian wrote:


Below is an example (sorry if it is not absolutely minimal: I ran into this bug 
when updating a lecture notes which uses a left frame around \proclaim stuff). 
I attach the PDF showing the problem. I wonder whether this is related to the 
new features introduced recently for math frames.


fixed in next beta


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

Re: [NTG-context] \linedir in latest beta

2016-07-05 Thread Hans Hagen

On 7/5/2016 11:06 AM, Mohammad Hossein Bateni wrote:

Hello Hans & Wolfgang,

I just updated to the recent beta: 2016.07.01 16:28
Is that the latest version or is there something wrong with the update
mechanism?


for now, put

\let\linedir\textdir

in cont-new.mkiv



In any case, most my Farsi tests are broken now and the culprit seems to
be \linedir.  Here is MWE:


\setuphead[section][numberstyle=\righttoleft]
\starttext
\section{SALAM}
\stoptext


The error looks like the following:

Undefined control sequence

\spac_directions_righttoleft_hmode ...ip \linedir
  TRT\relax \else
\scratchsk...
\righttoleft ...spac_directions_righttoleft_hmode
  \fi
\dousecurrentstyleparameter ...rentstyleparameter
  \fi \fi
\useheadstyleandcolor ...usecurrentstyleparameter
  \fi \edef
\currentcolorpar...
\strc_rendering_initialize_style_and_color_display ...
  \relax \ifconditional
\fon...
\headnumbercontent ...!numberstyle \c!numbercolor
  \ifcsname
\currentheadhash...
...
l.14 \section{SALAM}


—MHB


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




--

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

[NTG-context] \linedir in latest beta

2016-07-05 Thread Mohammad Hossein Bateni
Hello Hans & Wolfgang,

I just updated to the recent beta: 2016.07.01 16:28
Is that the latest version or is there something wrong with the update
mechanism?

In any case, most my Farsi tests are broken now and the culprit seems to be
\linedir.  Here is MWE:


\setuphead[section][numberstyle=\righttoleft]
\starttext
\section{SALAM}
\stoptext


The error looks like the following:

Undefined control sequence

\spac_directions_righttoleft_hmode ...ip \linedir
  TRT\relax \else
\scratchsk...
\righttoleft ...spac_directions_righttoleft_hmode
  \fi
\dousecurrentstyleparameter ...rentstyleparameter
  \fi \fi
\useheadstyleandcolor ...usecurrentstyleparameter
  \fi \edef
\currentcolorpar...
\strc_rendering_initialize_style_and_color_display ...
  \relax \ifconditional
\fon...
\headnumbercontent ...!numberstyle \c!numbercolor
  \ifcsname
\currentheadhash...
...
l.14 \section{SALAM}


—MHB
___
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] web site

2016-07-05 Thread Mojca Miklavec
On 5 July 2016 at 10:39, Mohammad Hossein Bateni wrote:
> is the server down?
>
> i can't connect to pragma-ade.nl or contextgarden.net or
> minimals.contextgarden.net.  all refuse my connection.

I was on holidays until today.

The admin sent me a notice about a shorter (planned) downtime of
contextgarden.net some time yesterday. After you sent me the email I
checked and it seems as if Apache wasn't running, so I restarted it
and also replaced the Pragma's .com domain names with .nl (I might
have missed some).

If you spot any other problems, please let me know.

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

Re: [NTG-context] web site

2016-07-05 Thread Christian Prim
No problem here!

Mohammad Hossein Bateni  schrieb am Di., 5. Juli 2016 um
10:40 Uhr:

> is the server down?
>
> i can't connect to pragma-ade.nl or contextgarden.net or
> minimals.contextgarden.net.  all refuse my connection.
>
> On Sun, Jul 3, 2016 at 5:25 AM, Hans Hagen  wrote:
>
>> Hi,
>>
>>
>> for those accessing the website (for updates) best use prgama-ade.nl
>> instead of pragma-ade.com
>>
>> Hans
>>
>>
>> -
>>   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://tex.aanhet.net
>> archive  : http://foundry.supelec.fr/projects/contextrev/
>> 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] web site

2016-07-05 Thread Mohammad Hossein Bateni
is the server down?

i can't connect to pragma-ade.nl or contextgarden.net or
minimals.contextgarden.net.  all refuse my connection.

On Sun, Jul 3, 2016 at 5:25 AM, Hans Hagen  wrote:

> Hi,
>
>
> for those accessing the website (for updates) best use prgama-ade.nl
> instead of pragma-ade.com
>
> Hans
>
>
> -
>   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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] TikZ node and color

2016-07-05 Thread Hans Hagen

On 7/5/2016 9:25 AM, Christoph Reller wrote:

Dear List,

I use the latest version of ConTeXt and I have the following MWE:

\usemodule[tikz]
\starttext
  \starttikzpicture
\node {\color[red]{red}};
\node[xshift=30] {\color[red]{not red}};
  \stoptikzpicture
\stoptext

Can anybody tell me why the second node is not colored red?

Aside: In LaTeX when using \color{red}{...} this tikzpicture renders
correctly. For LaTeX I use TikZ version 3.0.1a, in ConTeXt it seems to
be version 3.0.1.

Any feedback is welcome.


tikz has its own color mechanisms and they don't mix well with context 
color support so context probbably thinks it's still in red (so you need 
to force something non red in front)


\starttikzpicture
\node {\color[red]{red}};
\node[xshift=30] {\zwnj\color[red]{not red}};
\stoptikzpicture


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

[NTG-context] source of the manual "Fonts out of ConTEXt"

2016-07-05 Thread Fabrice Couvreur
Hello everyone,
Hans made a new presentation of this book, is it possible to have the source
code ?
thank you,
Fabrice
___
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
___

[NTG-context] TikZ node and color

2016-07-05 Thread Christoph Reller
Dear List,

I use the latest version of ConTeXt and I have the following MWE:

\usemodule[tikz]
\starttext
  \starttikzpicture
\node {\color[red]{red}};
\node[xshift=30] {\color[red]{not red}};
  \stoptikzpicture
\stoptext

Can anybody tell me why the second node is not colored red?

Aside: In LaTeX when using \color{red}{...} this tikzpicture renders
correctly. For LaTeX I use TikZ version 3.0.1a, in ConTeXt it seems to
be version 3.0.1.

Any feedback is welcome.

Regards,
Christoph
___
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
___