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:  ∫ and $\intop$ is not displayed correctly compared to $\int$.
Date: Sun, 11 Dec 2011 09:02:14 -0500 (EST)	[thread overview]
Message-ID: <alpine.LNX.2.02.1112110859060.31010@nqv-gnoyrg.pbyhoevf.yna> (raw)
In-Reply-To: <CAN8d9gnmfGg1z_1-L3Bbm6joAiNmAYBCxJxWWbNFH15Ve_QY_w@mail.gmail.com>

[-- Attachment #1: Type: TEXT/PLAIN, Size: 804 bytes --]

On Sun, 11 Dec 2011, Philipp A. wrote:

> apart from this IMHO very useful change (mapping  to \int), maybe we should
> create a unicode-math module which replaces some commands with symbols. i
> find myself always using this for chemical and mathematical documents:
>
> \catcode`→=\active
> \def→{\xrightarrow}
> \catcode`↔=\active
> \def↔{\xleftrightarrow}
> \catcode`√=\active
> \def√{\sqrt}

Have a look at char-def.lua. All the symbol mappings are defined there. 
Please feel free to complete the table (it is a boring and time consuming 
process, and I have only managed to cover about half of the table).

Regarding your mappings, IIRC -> etc are mapped to \rightarrow etc, (not 
\xrightarrow). We can talk about including style variants for the 
mappings.

Aditya

[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  parent reply	other threads:[~2011-12-11 14:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-12 13:06  " Paul Menzel
2011-06-12 21:52 ` Mojca Miklavec
2011-12-11 11:44   ` ∫ and $\intop$ " Paul Menzel
2011-12-11 12:28     ` Philipp A.
2011-12-11 12:54       ` Paul Menzel
2011-12-11 14:02       ` Aditya Mahajan [this message]
2011-12-11 16:05         ` Philipp A.

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=alpine.LNX.2.02.1112110859060.31010@nqv-gnoyrg.pbyhoevf.yna \
    --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).