I am having trouble using the physymb
and fontspec
packages together. When I compile using PDFLaTeX
, everything works, even with the lmodern
package. However, when I compile with XeLaTeX
, it does not work if I've loaded fontspec
(even if I don't use it), but it does work if I later load the package mathpazo
(which I don't really want to use, but found via debugging). My question is, where are these errors coming from and is there a workaround? Will loading only certain fonts work?
The document I'm using to test is
\documentclass[]{article}
\usepackage{ifxetex}
\ifxetex
\usepackage[cm-default]{fontspec}
%\usepackage{mathpazo} % If you commento ut this line you get many errors.
\else
\usepackage{lmodern}
\fi
\usepackage{physymb}
\begin{document}
This is sample text.
\end{document}
accents
package. You should report the issue to the package author; meanwhile, theno-math
option forfontspec
should allow compiling the document.