On Tue, 7 Aug 2018 10:42:01 +0200
"Joshua Moerman" <cont...@joshuamoerman.nl> wrote:

> Hi ConTeXt mailing list,
> 
> I am using the extensible arrows and I am not really satisfied with
> the looks of it.
> 
> The most important issue I have is that the vertical spacing is too
> much. You can see this in the attached picture: the left arrow is
> using \xrightarrow{\neq a} and the right arrow is using \stackrel{\neq
> a}{\longrightarrow}. I think the right one (with stackrel) looks more
> natural. Is there a way to setup the vertical spacing?
> 
> Another thing I noticed is that the line is not very consistent. This
> might be a font issue (I am using Euler). Luckily, the inconsistent
> overlap is barely visible when printed.
> 
> Thanks again!
> 
> Groetjes,
> Joshua
> 

Hello,

You can also use MetaPost to render math stackers, rather than relying on TeX 
constructs and any particular font.

For example:


\useMPlibrary[mat]

\definemathstackers
   [mp]
   [alternative=mp]

\definemathextensible [mp] [leftarrow]          ["2190]
\definemathextensible [mp] [rightarrow]         ["2192]
\definemathextensible [mp] [leftrightarrow]     ["2194]
\definemathextensible [mp] [longleftrightarrow] ["27F7]
\definemathextensible [mp] [rightoverleftarrow] ["21C4]
\definemathextensible [mp] [underbrace]         ["FE3DF]

\setupbodyfont [dejavu-condensed,12pt]

\starttext
$\rightarrow{≠a}$
\stoptext



Furthermore, the MP arrow can be tuned

\startMPinitializations

ahlength := .5EmWidth ;
ahvariant := 1 ; % dimpled straight

\stopMPinitializations

as can line widths, etc.

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

Reply via email to