ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: xrightarrow is not straight
Date: Tue, 7 Aug 2018 13:06:23 -0400 (EDT)	[thread overview]
Message-ID: <nycvar.YAK.7.76.44.1808071304380.10013@ervasbepr.pvz.zptvyy.pn> (raw)
In-Reply-To: <20180807090107.1890bb22@poo.hsd1.co.comcast.net>

[-- Attachment #1: Type: text/plain, Size: 1014 bytes --]

On Tue, 7 Aug 2018, Alan Braslau wrote:

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

Shouldn't we use a dedicated MP instance for stackers?

Aditya

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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	other threads:[~2018-08-07 17:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-07  8:42 Joshua Moerman
2018-08-07 15:01 ` Alan Braslau
2018-08-07 17:06   ` Aditya Mahajan [this message]
2018-08-07 17:32     ` Alan Braslau
2018-08-08 10:39   ` Joshua Moerman
2018-08-07 17:04 ` Aditya Mahajan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=nycvar.YAK.7.76.44.1808071304380.10013@ervasbepr.pvz.zptvyy.pn \
    --to=adityam@umich.edu \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).