I'd like to use the fdsymbol package together with the fedra serif b Opentype font. I'm having some problems with the following code
\documentclass{article}
\usepackage{fdsymbol}
\usepackage{fontspec}
%\setmainfont{fedraserifpro-b-book.otf}[
%BoldFont = fedraserifpro-b-medium.otf,
%ItalicFont = fedraserifpro-b-bookitalic.otf,
%BoldItalicFont = fedraserifpro-b-mediumita.otf]
\begin{document}
\begin{equation}
\sigma(w | xv)
\end{equation}
\end{document}
Compiling with XeLaTeX, I get the following error
LaTeX error: Command '\mathdollar' already defined.
I'm not sure wether the problem is machine-specific or not. Any ideas?
EDIT: After using \let\mathdollar\undefined the code compiles, but the result is
Instead of



\let\mathdollar\undefinedjust before\begin{document}... Possiblyfdsymbolpackage is trying to define it at the beginning of the document... but finds it already defined... Un-define it just before get there and let it redefine it then... But I am not sure if you should use this package withXeLaTeX... – koleygr Mar 09 '19 at 01:00\let\mathdollar\undefinedthe code compiles, but I'm still not getting the right font. I've updated the post to show what I mean – noibe Mar 09 '19 at 01:05fdsymbolinside of\setmathfont. – noibe Mar 09 '19 at 01:10LaTeXandpdfLaTeX... Not withXeLaTeXthat is created to use system fonts... I suppose that the error means that the creator of the package has not created it to be compatible withXeLaTeX... Try to useFedorafont family that is the equivalent real font to this package's font – koleygr Mar 09 '19 at 01:16Fedoraas the main math font inXeLaTeX? – noibe Mar 09 '19 at 01:38