When I use unicode-math, I found that there is no default performance of \mathcal in the 6 fonts given in texdoc unimath-symbols.
\documentclass{article}
\begin{document}
$ \mathcal{DBFT} $
\end{document}
The code above will output
I found that unicode-math gives same performance of \mathcal and \mathscr
\documentclass{article}
\usepackage{unicode-math}
\begin{document}
$ \mathcal{DBFT}, \mathscr{DBFT} $
\end{document}
I found a solution on TeX.SE:
\documentclass{article}
\usepackage{unicode-math}
\DeclareMathAlphabet{\mathcal}{OMS}{cmsy}{m}{n}
\begin{document}
$ \mathcal{DBFT}, \mathscr{DBFT} $
\end{document}
However that leads to a new problem. I can't put \tilde accent on \mathcal characters:
\documentclass{article}
\usepackage{unicode-math}
\DeclareMathAlphabet{\mathcal}{OMS}{cmsy}{m}{n}
\begin{document}
$ \tilde{\mathcal{B}} $
% $ \hat{\mathcal{B}} $
\end{document}
After compiling with XeLaTeX, it gave an error:
! Internal error: bad native font flag in `map_char_to_glyph'
Now I can use \tilde{\text{$ \mathcal{B} $}} to solve the problem, but this solution seems weird.
My requests:
I want to use the default
\mathcalstyle of Computer Modern when I useunicode-mathpackage (the first figure in this Question);I want to use
\tilde{\mathcal{B}}straight to put accent on\mathcal{B}.
Here is the same issue on GitHub (https://github.com/CTeX-org/forum/issues/179)




\mathcallike the style which the first figure displays. I don't know what font is it , I use\DeclareMathAlphabet{\mathcal}{OMS}{cmsy}{m}{n}can make the character performs what I want, but can't have accent on it. – Syvshc Jan 11 '21 at 09:36\mathcal. Both Latin Modern and New Computer Modern base theirs on Hermann Zapf’s AMS Euler. – Davislor Jan 11 '21 at 13:05