Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

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
\textfont1=\x\textfont2=\x\textfont3=\x
\def\sqrt{\XeTeXradical 3 "0221A}
$$
\sqrt{1\over 2}
$$
\bye
share|improve this answer
    
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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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