2

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.

2
  • 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, 2013 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, 2013 at 19:09

1 Answer 1

4

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}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .