\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不像 before 和 after 那麼好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

fontsetupNewCM-Book,預設設定的字體具有所有希臘語和拉丁語大寫和小寫襯線粗體、斜體和粗體斜體字元。你可以看一下這個文件對於所有可用的 Unicode 數學符號。

version=bold據我所知,新計算機現代數學不支援數學。但提供了您可能需要的許多字元。看這個答案查看哪些字體被boldmath覆蓋。

相關內容