ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Taco Hoekwater <taco@elvenkind.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: LuaTeX and Unicode Math
Date: Sat, 20 Oct 2007 09:17:56 +0200	[thread overview]
Message-ID: <4719ABA4.3090406@elvenkind.com> (raw)
In-Reply-To: <6faad9f00710191648u451c65dm490f964128ae9f31@mail.gmail.com>

Mojca Miklavec wrote:
> 
> What about \neq and \[l]dots? How can I get those working in "unicode
> math input"?

In general, it is better not to do that, (because it is slower
and needs lots of control sequences), but if the font does not contain
what you need, you have no choice, of course.

> \definemathcharacter [≠] {\neq}
> is probably not adapted to such definitions.

You are right, it is not. But the currently ignored command

 \definemathcharacter [≠] [\neq]

could be made to work easily enough. Here is an example of such
an approach (the implementation is very ugly, I am just trying to
demonstrate:


\let\mydodefinemathcharacter\dodefinemathcharacter
\def\dodefinemathcharacter[#1][#2][#3][#4][#5][#6]%
 {\iffourthargument
   \mydodefinemathcharacter[#1][#2][#3][#4][#5][#6]%
  \else
   \begingroup
   \catcode`#1=\active
   \uccode`~=`#1
   \uppercase{\gdef~{#2}}%
   \endgroup
   \mathcode`#1="8000
  \fi}


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


  reply	other threads:[~2007-10-20  7:17 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-02 23:16 Mojca Miklavec
2007-10-03  0:26 ` Aditya Mahajan
2007-10-03  8:45   ` Hans Hagen
2007-10-03 13:19     ` Joel C. Salomon
2007-10-03  6:25 ` Taco Hoekwater
2007-10-03  8:11   ` Mojca Miklavec
2007-10-03  9:40     ` Taco Hoekwater
2007-10-03 10:11       ` Mojca Miklavec
2007-10-03 14:38     ` Arthur Reutenauer
2007-10-03 18:34     ` Joel C. Salomon
2007-10-19 23:48   ` Mojca Miklavec
2007-10-20  7:17     ` Taco Hoekwater [this message]
2007-10-03  8:25 ` Hans Hagen

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=4719ABA4.3090406@elvenkind.com \
    --to=taco@elvenkind.com \
    --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).