How can I get \boldsymbol to work when using the fontsetup package?
LuaLaTeX without \usepackage{fontsetup} but with \usepackage{amsmath}:
LuaLaTeX with \usepackage{fontsetup}:
I'm using the following code:
\documentclass{article}
\usepackage{fontsetup}
\begin{document}
$x$ and $\boldsymbol{x}$
\end{document}
I've tried loading amsmath not at all as well as before an after fontsetup, but nothing worked.
LaTeX Font Warning: Font shape `TU/NewCMMath-Book.otf(1)/b/n' undefined
(Font) using `TU/NewCMMath-Book.otf(1)/m/n' instead on input line 5.
LaTeX Font Warning: Font shape TU/NewCMMath-Book.otf(2)/b/n' undefined (Font) usingTU/NewCMMath-Book.otf(2)/m/n' instead on input line 5.
LaTeX Font Info: Font shape TU/NewCMMath-Book.otf(2)/b/n' will be (Font) scaled to size 7.00075pt on input line 5. LaTeX Font Info: Font shapeTU/NewCMMath-Book.otf(2)/b/n' will be
(Font) scaled to size 5.00053pt on input line 5.
LaTeX Font Warning: Font shape TU/NewCMMath-Book.otf(3)/b/n' undefined (Font) usingTU/NewCMMath-Book.otf(3)/m/n' instead on input line 5.
LaTeX Font Info: Font shape TU/NewCMMath-Book.otf(3)/b/n' will be (Font) scaled to size 6.99925pt on input line 5. LaTeX Font Info: Font shapeTU/NewCMMath-Book.otf(3)/b/n' will be
(Font) scaled to size 4.99947pt on input line 5.
[1
{/usr/local/texlive/2022/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] (./output.aux)
LaTeX Font Warning: Some font shapes were not available, defaults substituted.



TeX.SE. – MadyYuvi Mar 02 '23 at 15:08