\boldsymbol が fontsetup パッケージで動作しない

\boldsymbol が fontsetup パッケージで動作しない

\boldsymbolどうやって通勤すればいいですか?fontsetupパッケージ?


LuaLaTeX なし、\usepackage{fontsetup}あり\usepackage{amsmath}:

ここに画像の説明を入力してください

LuaLaTeX と\usepackage{fontsetup}:

ここに画像の説明を入力してください


次のコードを使用しています:

\documentclass{article}
\usepackage{fontsetup}

\begin{document}
    $x$ and $\boldsymbol{x}$
\end{document}

amsmath前後ともまったく読み込まない状態で試してみましたがfontsetup、何も機能しませんでした。


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)              using `TU/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 shape `TU/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)              using `TU/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 shape `TU/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.

答え1

コマンドを使用する\symbfitと、Unicode ブロックで定義されている太字斜体数式を取得できます。

\documentclass{article}

\usepackage{fontsetup}

\begin{document}
    \(x\) and \(\symbfit{x}\)
\end{document}

フォント設定_太字_斜体_x

NewCM-Bookは、デフォルトで設定されているフォントfontsetupで、ギリシャ語とラテン語の大文字と小文字のセリフ太字、斜体、太字斜体文字がすべて含まれています。このドキュメントすべての Unicode 数学記号に対応しています。

version=bold私の知る限り、New Computer Modern Mathは数学をサポートしていません。しかし、おそらく必要な多くの文字が提供されています。この答えどのフォントがboldmathカバーされているかを確認します。

関連情報