[XeTeX] Using the Unicode prime character (Was re. Single glyphs from a font)

Ross Moore ross at ics.mq.edu.au
Wed Jun 10 01:24:40 CEST 2009

Hi Joel,

On 10/06/2009, at 8:13 AM, Joel C. Salomon wrote:

> Ross Moore wrote:
>> There is a discussion of these "pseudo-script" characters also
>> taking place on a MathML-related list.

> Can you point me to that discussion?


>>> The Unicode prime character is already at the correct size and  
>>> position.
>>> Try $\prime{}'$ and you’ll see that the second one is shifted up  
>>> by some
>>> amount.  (With $\prime'$ it’s even worse.)
>> I don't see a difference in the placement. (see attached image)
> Here’s my code; picture is attached.

OK. I made the image as it would be without rebinding  \prime
(hence with CM fonts for the prime symbol).
Here is the corresponding thing, using that rebinding.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Picture 10.png
Type: image/png
Size: 93649 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20090610/6e4e8401/attachment-0001.png>
-------------- next part --------------

Not that multiple primes work using $f''''$
or (equivalently) $f^{\prime\prime\prime\prime}$.
But maybe these primes are a bit small.
With my Unicode patch $f\prime\prime\prime\prime$ looks good too.

That is the effect that you want?
Then try the following extension to my previous patch, which
simply removes the ^ from the expansion of ' when active:

  \let\prime ?
  {\catcode`\' \active
    \gdef '{\bgroup\prim at s}}

There's in fact no need for any changes to  \prim at s , etc.

> —Joel Salomon



Ross Moore                                       ross at maths.mq.edu.au
Mathematics Department                           office: E7A-419
Macquarie University                             tel: +61 (0)2 9850 8955
Sydney, Australia  2109                          fax: +61 (0)2 9850 8114

More information about the XeTeX mailing list