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: unicode integral sign
Date: Sat, 29 May 2010 11:58:07 +0200	[thread overview]
Message-ID: <4C00E52F.2080005@elvenkind.com> (raw)
In-Reply-To: <htqgm3$vbq$1@dough.gmane.org>

Yury G. Kudryashov wrote:
> Hi!
> 
> I try the following:
> 
> \starttext
> $∫_a^b \int_a^b$
> \stoptext
> 
> In the first case, the integral sign is below the text. Should I use another 
> font, or is it possible to fix with the default one?

It is possible to fix this. The reason for the odd placement is that the
'math code' of ∫ is not set up properly (and it probably isn't either
for some other bare Unicode characters). To fix the hard way, add this
at the top of your input file:

\Umathcode `∫ = 1 0 `∫ % 1 == \mathop, 0=fam0, ∫=glyph

Eventually, this definition will be added to char-def.lua and then
everything will work out of the box.

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

  reply	other threads:[~2010-05-29  9:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-29  7:45 Yury G. Kudryashov
2010-05-29  9:58 ` Taco Hoekwater [this message]
2010-05-29 15:21   ` Yury G. Kudryashov
2010-05-29 17:32     ` Aditya Mahajan
2010-05-29 18:57       ` Taco Hoekwater
2010-05-29 19:05         ` 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=4C00E52F.2080005@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).