This should be easy. But it's not easy to find. MWE:
% !TeX program = LuaLaTeX
% !TeX encoding = UTF-8
\documentclass{article}
\usepackage[no-math]{fontspec}
\usepackage{unicode-math}
\begin{document}
\rmdefault\par
\sfdefault\par
\ttdefault\par
% What prints the math default font(s)? Expecting lmm.
\end{document}
Above prints lmr, lmss, lmtt for the three text fonts. Good.
I would like the document to print the name(s) of the default math font. If necessary I can enter and exit math mode for the command, but I do not actually need to use the math font there. And, I'm not interested in looking in the PDF for its list of fonts. I know what the math font is. Getting its name to print in the document, is the question.
\setmathfont
command was used, without hacking the code for that command. I can do this for\setmainfont
by string comparison of\rmdefault
tolmr
.\setmathfont
isn't even defined unlessunicode-math
has been used, so clearly not been used in that case (and ifuniocde-math
is loaded then the default fonts are changed to latin modern math)