[XeTeX] unicode-math package and \UnicodeMathSymbol command
Nicolas Vaughan
nivaca at gmail.com
Mon Jun 22 01:07:40 CEST 2009
Well, I don't get error messages, but I don't get the expected result.
And I neither get the "→" glyphs!!!
Nicolas
On Sun, Jun 21, 2009 at 5:43 PM, Ed Morehouse <emorehouse at wesleyan.edu>wrote:
> Nicolas Vaughan <nivaca at ...> writes:
>
> >
> >
> > Can you send a minimal example/Nicolas
>
> here you go:
>
> \documentclass{article}
>
> \usepackage{xltxtra}
> \defaultfontfeatures{Mapping=tex-text, Scale=MatchLowercase}
> \setromanfont{Latin Modern Roman}
>
> \usepackage[math-style=TeX]{unicode-math}
> \setmathfont{Cambria Math}
>
> \UnicodeMathSymbol{"0003A}{\colon}{\mathrel}{colon}% default:\mathpunct
> \UnicodeMathSymbol{"0007C}{\vert}{\mathrel}{vertical bar}% default:
> \mathord
>
> \begin{document}
>
> the colon and vertical bar below should have relation spacing,
> which is fairly wide and symmetrical.
> \\
> for comparison, vertical ellipsis ("022EE) is also a very narrow
> glyph
> but is declared a relation by default,
> so should have the same spacing:
> $$
> f : X → Y \quad ⟹ \quad f ^{-1} : 2 ^Y → 2 ^X = B ⟼ \{x ∈ X
> | f (x) ∈ B\}
> $$
> $$
> f ⋮ X → Y \quad ⟹ \quad f ^{-1} ⋮ 2 ^Y → 2 ^X = B ⟼ \{x ∈ X
> ⋮ f (x) ∈ B\}
> $$
> \end{document}
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20090621/8a54aebe/attachment-0001.html>
More information about the XeTeX
mailing list