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'd like to use the Nath package together with a math font which supports Greek letters, while retaining the default font for the non-Greek letters. Is this possible?

I tried compiling the following document with xelatex.

\documentclass[a4paper,12pt]{article}
\usepackage{unicode-math}
\setmathfont[range=\mathbfsfit/{greek,Greek}]{lmmath.otf}
\RequirePackage{nath}
\begin{document}
$$\tilde{T}α$$
\end{document}

It gave me an error:

Nath as of 21 March 2003 
Implementing NAtural maTH notation
) (./test2.aux) (/usr/share/texmf/tex/latex/tipa/t3cmr.fd)
! Internal error: bad native font flag

If I remove the range option to setmathfont, or the tilde, the document compiles.

share|improve this question
    
I don't think so. If I say \setmathfont{XITS Math}, just for a try, it works. Why not simply use \setmathfont{lmmath.otf}? –  egreg Jan 4 '13 at 18:03
    
I tried that, but saw that it didn't provide some symbols I was using, so commands like notin would give blank output.Is it possible to fall back on the default font in these cases? –  Ben Jan 4 '13 at 19:09
add comment

1 Answer

up vote 4 down vote accepted

This input file works and shows \notin:

\documentclass[a4paper,12pt]{article}
\usepackage{unicode-math}
\setmathfont{Latin Modern Math}
\usepackage{nath}

\begin{document}
$$\tilde{T}α\notin X$$

\end{document}
share|improve this answer
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.