[XeTeX] Accessing mathmatics symbols

Hendrik Fuß fuss-h at ulster.ac.uk
Fri Jun 22 16:32:31 CEST 2007


On 22/06/07, R (Chandra) Chandrasekhar <chandra at ee.uwa.edu.au> wrote:
> I am having problems getting maths symbols to appear in the output PDF files.
>
> A minimal example is given below:
> -------------
> \documentclass[a4paper,10pt]{article}
> %
> \usepackage{fontspec}
> \usepackage{xunicode}
> \usepackage{xltxtra}
> \usepackage[EU1]{fontenc}% Unsure if this is correct
> \usepackage{textcomp}
> %
> \setmainfont{FreeSerif}
> \setmathrm{LMRoman10 Regular} % is this really needed?
> \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
> %
> \begin{document}
> $\sqrt{2}$ is an irrational number.
> \[
> \sum_{i = 1}^{10}i = 55
> \]
> %
> \end{document}
> -------------
>
> When I process this file with
>
> xelatex -output-driver="xdvipdfmx -q -E" <filename>
>
> I do not get a square root or capital sigma summation sign.

Does xdvipdfmx produce any error messages if you remove the -q flag?

The square root sign is not taken from the mathrm font, but from
LaTeX's legacy math fonts (ie lmodern). My guess is you might have to
run updmap to update the font database for xdvipdfmx.

cheers
Hendrik


More information about the XeTeX mailing list