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

Reply via email to