![배경](https://rvso.com/image/475711/%EB%B0%B0%EA%B2%BD.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 배포판에서 이상적으로 작동하기를 원합니다.
미리 감사드립니다
배경
나는 내 변수를 그것의 의미에 매핑하기 위해 약어 패키지를 사용하고 있습니다. 예:
\acro{v} [\ensuremath{v}] {velocity}
...
이를 통해 텍스트와 방정식에서 약어를 사용할 수 있습니다. 예:
\ac{v} is defined as:
\begin{equation}
\ac{v}=\frac{\ac{d}}{\ac{t}}
\end{equation}
그리고 굵은 텍스트에서도 작동하길 원합니다.