[XeTeX] Using the Unicode prime character (Was re. Single glyphs from a font)
Joel C. Salomon
joelcsalomon at gmail.com
Wed Jun 10 00:13:05 CEST 2009
Ross Moore wrote:
> There is a discussion of these "pseudo-script" characters also
> taking place on a MathML-related list.
>
> Some software uses the Unicode character directly, while
> other software (such as TeX) has a character that is required
> to be superscripted; e.g., as $...^\prime ...$.
> With these it is not normal to use the oversized character by itself.
> It is only included in the font for the convenience of encoding,
> and when it might be needed at \Large (etc.) sizes.
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.
\documentclass{minimal}
\usepackage{fontspec, xunicode, xltxtra,unicode-math}
\setmainfont[Mapping=tex-text]{Cambria}
\setmathfont{Cambria Math}
\makeatletter
\let\UnicodeMathSymbol\um at mathsymbol@noparse
\UnicodeMathSymbol{"02032}{\prime}{\mathord}{prime}%
\let\prime ′
\makeatother
\begin{document}
$x'\prime$, $x\prime'$, $x\prime{}'$
\end{document}
—Joel Salomon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: x prime.png
Type: image/png
Size: 5286 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20090609/443b84e2/attachment.png>
More information about the XeTeX
mailing list