I would like to use Cambria Math font in mathematical equation, and I have a simple problem here. plain TeX uses many symbols for the root sign, so it can use the proper one depending on context, however the Unicode have only one (or maybe two) that is capable to replace big roots:
If the 3. family is set to Cambria Math, the line \def\sqrt{\XeTeXradical 3 `\⎷} does not produces the root sign at the proper place for example $\sqrt{a\over b}$.
How can I do this properly?


I think the `\⎷ is causing you trouble. Use the Unicode code point for the sqrt radical instead:

\font\x="Cambria Math:script=MATH" at 10pt
\def\sqrt{\XeTeXradical 3 "0221A}
\sqrt{1\over 2}
  • You're right, thanks! Why is that happens though? – Adam L. S. Sep 20 '10 at 7:22
  • The symbol you used is U+23B7 "RADICAL SYMBOL BOTTOM", but you want U+221A "SQUARE ROOT". You could use ``\√` if you wished. – Will Robertson Sep 20 '10 at 8:16
  • OpenType math fonts map internally the bigger glyphs to the regular one that has a Unicode code, the engine would then select the appropriately sized glyph according to context. The symbol you used exits for different use models and not directly utilized by OpenType math fonts (it is used usually for plain text mathematics). – Khaled Hosny Sep 20 '10 at 13:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.