我正在尝试在上标中使用粗体矢量,但由于某种原因,使用该包时不会发生这种情况cmbright
(我喜欢该字体)。有没有办法让它表现得像这样?
代码:
\documentclass[12pt]{article}
\usepackage{amsmath}
\usepackage{cmbright}
\begin{document}
This is a bold vector
\begin{equation}
\mathbf{p}
\end{equation}
This is a plane wave
\begin{equation}
\psi=Ae^{i(Et-\mathbf{p}\cdot\mathbf{x})}
\end{equation}
\end{document}
答案1
LaTeX 会警告你
LaTeX Font Warning: Font shape `OT1/cmbr/bx/n' in size <8> not available
(Font) Font shape `OT1/cmbr/m/n' tried instead on input line 9.
LaTeX Font Warning: Font shape `OT1/cmbr/bx/n' in size <6> not available
(Font) Font shape `OT1/cmbr/m/n' tried instead on input line 9.
该软件包的维护者选择这样做,在 fd 文件中定义
\DeclareFontShape{OT1}{cmbr}{bx}{n}{%
<-9>sub*cmbr/m/n%
<9->cmbrbx10%
}{}
所以如果你去
\documentclass[12pt]{article}
\usepackage{amsmath}
\usepackage{cmbright}
\DeclareFontShape{OT1}{cmbr}{bx}{n}{%
<->cmbrbx10%
}{}
\begin{document}
This is a bold vector
\begin{equation}
\mathbf{p}
\end{equation}
This is a plane wave
\begin{equation}
\psi=Ae^{i(Et-\mathbf{p}\cdot\mathbf{x})}
\end{equation}
\end{document}
你会变得大胆无论大小