![背景](https://rvso.com/image/475711/%E8%83%8C%E6%99%AF.png)
有沒有辦法在數學模式下保持文字的「粗體」:例如:
\documentclass{standalone}
\newcommand{\mathkeepboldness}[1]{\ensuremath{#1}} % this should keep the text formating
\begin{document}
\begin{tabular}{l}
Here \mathkeepboldness{a^b} should not be bold\\
\textbf{Here: \mathkeepboldness{a^b} should be bold}\\
\end{tabular}
\end{document}
\newcommand{\keepbold}[1] \ifbold {\ensuremath{\mathbf{#1}}} {\ensuremath{#1}}
我希望它能夠在任何 LaTeX 發行版上正常運作。
先致謝
背景
我正在使用 acronym 套件將我的變數映射到它的含義。例如:
\acro{v} [\ensuremath{v}] {velocity}
...
這允許我在文本和方程式中使用縮寫詞:例如:
\ac{v} is defined as:
\begin{equation}
\ac{v}=\frac{\ac{d}}{\ac{t}}
\end{equation}
我希望這在粗體文字中也能起作用。