Re: [NTG-context] Problem with \overrightarrow over BC and CB

2013-10-14 Thread Mikael P. Sundqvist
On Mon, Oct 14, 2013 at 12:05 AM, Hans Hagen pra...@wxs.nl wrote:

 On 10/11/2013 9:53 AM, Mikael P. Sundqvist wrote:

 Dear all,

 with the latest beta (and older ones), the following file


 you can control this with

 \setupmathstackers
   [both]
   [hoffset=.5pt]

 granularity might improve over time (as arrows are proper extensibles now)

 (I have no time now to look into more automated threshold adaption)


  %%% start test file
 \definefontfamily [mainface] [serif] [DejaVu Serif]
 \definefontfamily [mainface] [sans]  [DejaVu Sans]
 \definefontfamily [mainface] [mono]  [DejaVu Sans Mono] [feature=none]
 \definefontfamily [mainface] [math]  [TeX Gyre Pagella Math][scale=1..12]


 \setupbodyfont[mainface]

 \starttext
 $
 \overrightarrow{AB}
 \overrightarrow{BA}
 \overrightarrow{AC}
 \overrightarrow{CA}
 \overrightarrow{AD}
 \overrightarrow{DA}
 \overrightarrow{BC}
 \overrightarrow{CB}
 \overrightarrow{BD}
 \overrightarrow{DB}
 \overrightarrow{CD}
 \overrightarrow{DC}
 $
 \stoptext
 %%% end test file

 gives a shorter arrow than expected above BC and CB (but over the other
 ones it is OK).

 Is this a bug in the Pagella math font (it looks OK if one comments out
 the \setupbodyfont[mainface] above)?

 Can it be fixed?

 Best regards, Mikael


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


Thank you Hans, now it looks much better.

I ended up with

\setupmathstackers[both][
 hoffset=.5pt,
 voffset=0pt,
]

which also reduced the vertical space. I have not seen any bad consequences
of this yet.

/Mikael
___
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 \overrightarrow over BC and CB

2013-10-13 Thread Hans Hagen

On 10/11/2013 9:53 AM, Mikael P. Sundqvist wrote:

Dear all,

with the latest beta (and older ones), the following file


you can control this with

\setupmathstackers
  [both]
  [hoffset=.5pt]

granularity might improve over time (as arrows are proper extensibles now)

(I have no time now to look into more automated threshold adaption)



%%% start test file
\definefontfamily [mainface] [serif] [DejaVu Serif]
\definefontfamily [mainface] [sans]  [DejaVu Sans]
\definefontfamily [mainface] [mono]  [DejaVu Sans Mono] [feature=none]
\definefontfamily [mainface] [math]  [TeX Gyre Pagella Math][scale=1..12]

\setupbodyfont[mainface]

\starttext
$
\overrightarrow{AB}
\overrightarrow{BA}
\overrightarrow{AC}
\overrightarrow{CA}
\overrightarrow{AD}
\overrightarrow{DA}
\overrightarrow{BC}
\overrightarrow{CB}
\overrightarrow{BD}
\overrightarrow{DB}
\overrightarrow{CD}
\overrightarrow{DC}
$
\stoptext
%%% end test file

gives a shorter arrow than expected above BC and CB (but over the other
ones it is OK).

Is this a bug in the Pagella math font (it looks OK if one comments out
the \setupbodyfont[mainface] above)?

Can it be fixed?

Best regards, Mikael


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


[NTG-context] Problem with \overrightarrow over BC and CB

2013-10-11 Thread Mikael P. Sundqvist
Dear all,

with the latest beta (and older ones), the following file

%%% start test file
\definefontfamily [mainface] [serif] [DejaVu Serif]
\definefontfamily [mainface] [sans]  [DejaVu Sans]
\definefontfamily [mainface] [mono]  [DejaVu Sans Mono] [feature=none]
\definefontfamily [mainface] [math]  [TeX Gyre Pagella Math][scale=1.12]

\setupbodyfont[mainface]

\starttext
$
\overrightarrow{AB}
\overrightarrow{BA}
\overrightarrow{AC}
\overrightarrow{CA}
\overrightarrow{AD}
\overrightarrow{DA}
\overrightarrow{BC}
\overrightarrow{CB}
\overrightarrow{BD}
\overrightarrow{DB}
\overrightarrow{CD}
\overrightarrow{DC}
$
\stoptext
%%% end test file

gives a shorter arrow than expected above BC and CB (but over the other
ones it is OK).

Is this a bug in the Pagella math font (it looks OK if one comments out the
\setupbodyfont[mainface] above)?

Can it be fixed?

Best regards, Mikael
___
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] \overrightarrow changed

2013-01-27 Thread Mikael P. Sundqvist
Dear list,

\starttext
text $\overrightarrow{OP}$ text
\stoptext

gives smaller letters since some time ago under the arrow. See the
attached pdf files for the output of different versions of context
(test.pdf is compiled with the latest beta).

I think the look in test20121210.pdf is the right one.

/Mikael


test.pdf
Description: Adobe PDF document


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

Re: [NTG-context] \overrightarrow changed

2013-01-27 Thread Hans Hagen

On 1/27/2013 5:24 PM, Mikael P. Sundqvist wrote:

Dear list,

\starttext
text $\overrightarrow{OP}$ text
\stoptext

gives smaller letters since some time ago under the arrow. See the
attached pdf files for the output of different versions of context
(test.pdf is compiled with the latest beta).

I think the look in test20121210.pdf is the right one.


fixed. some more info about the updated mkiv arrow related mechanisms 
can be found in


http://www.pragma-ade.com/general/manuals/about.pdf

(btw, one needs the latest greatest lm/gyre math fonts)

Hans


--

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


Re: [NTG-context] \overrightarrow changed

2013-01-27 Thread Otared Kavian

On 27 janv. 2013, at 21:40, Hans Hagen pra...@wxs.nl wrote:

 […]
 fixed. some more info about the updated mkiv arrow related mechanisms can be 
 found in
 
 http://www.pragma-ade.com/general/manuals/about.pdf
 
 (btw, one needs the latest greatest lm/gyre math fonts)
 
 Hans

This is an amazing progress! 
With the mechanisms you decsribe (mathextensible, leaders, fillers,…) it is 
much easier to use arrows and place them wherever it is necessay.
Thanks!

Best regards: OK
___
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] \overrightarrow{AB} gives under rightarrow

2012-11-02 Thread Jeong Dal
Dear all.

The following short sample gives a under right arrow instead of over right 
arrow.
Would you please check it?

\starttext
$\overrightarrow{AB}$
\stoptext

Thanks.

Best regards,

Dalyoung


ConTeXt ver: 2012.10.06 15:31 MKIV fmt: 2012.10.8 int: english/english

___
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] \overrightarrow{AB} gives under rightarrow

2012-11-02 Thread Rogers, Michael K
Hi,

It seems fixed with the current beta (2012.10.30 21:13) and broken with a beta 
from a week or two ago.  (I just updated after your example failed.)

-mkr

On Nov 2, 2012, at 6:09 AM, Jeong Dal hak...@me.commailto:hak...@me.com
 wrote:

Dear all.

The following short sample gives a under right arrow instead of over right 
arrow.
Would you please check it?

\starttext
$\overrightarrow{AB}$
\stoptext

Thanks.

Best regards,

Dalyoung


ConTeXt ver: 2012.10.06 15:31 MKIV fmt: 2012.10.8 int: english/english

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nlmailto: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
___




This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).
___
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] \overrightarrow{AB} gives under rightarrow

2012-11-02 Thread Jeong Dal
Dear Rogers,

It works fine after updating.

Thank you for checking.

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


Re: [NTG-context] \overrightarrow not working in mathmode in Metapost?

2009-10-30 Thread Taco Hoekwater

Matthijs Kooijman wrote:

Hi all,


I've been trying to use the \overrightarrow command within a metapost graphic,
but it doesn't work. Math mode does work, for example \vec works like
expected. Outside of metapost, \overrightarrow works as expected.

This seems to broken for extensible math arrows like \xrightarrow as well.


\let\normaloverrightarrow\overrightarrow
\unexpanded\def\overrightarrow{\normaloverrightarrow}

And this fix helps there as well. Could this perhaps be fixed in general for
all extensible arrows?


Have you tried the new current yet? There was a whole bunch of extra
\unexpanded-s  in it already.

Best wishes,
Taco
___
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] \overrightarrow not working in mathmode in Metapost?

2009-10-30 Thread Matthijs Kooijman
Hi Taco,

 Have you tried the new current yet? There was a whole bunch of extra
 \unexpanded-s  in it already.
You're right, thanks! I had built the new context but forgot to install it on
this particular machine :-)

Sorry for the noise,

Matthijs


signature.asc
Description: Digital signature
___
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] \overrightarrow not working in mathmode in Metapost?

2009-09-18 Thread Matthijs Kooijman
Hi,

I've been trying to use the \overrightarrow command within a metapost graphic,
but it doesn't work. Math mode does work, for example \vec works like
expected. Outside of metapost, \overrightarrow works as expected.

To illustrate the problem, I've created the following simple testcase:

  \starttext
  \startMPcode
  draw btex $\vec{foo}$ etex;
  draw btex $\overrightarrow{foo}$ etex;
  \stopMPcode
  \stoptext

This gives the following error output:

  ! Undefined control sequence.
  \dodosmash [#1]-\edef \@@smash 
  {#1}\futurelet \nexttoken \dododosmash
  \relbar -\mathrel {\smash 
 -}
  \mtharrowfill ...inmuskip \thickmuskip \relax #8#5
\mkern -#1mu \cleaders
  \hb...
  \dodohandlemathoverarrow ...{\ialign {##\crcr #2#3
\crcr \noalign {\kern
  #1\n...
  \mathpalette ...\mathchoice {#1\displaystyle {#2}
}{#1\textstyle
  {#2}}{#1\sc...
  argument ...ex; draw btex $\overrightarrow {foo}
$ etex;
  ...
  l.5 \stopMPcode

It seems the \overrightarrow command uses \@@smash, which isn't defined when
running from metapost?

Is this expected? Is this a bug?

Gr.

Matthijs


signature.asc
Description: Digital signature
___
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] \overrightarrow not working in mathmode in Metapost?

2009-09-18 Thread Hans Hagen

Aditya Mahajan wrote:


\let\normaloverrightarrow\overrightarrow
\unexpanded\def\overrightarrow{\normaloverrightarrow}


ok, i made them all unexpandable


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