如何在 classicthesis 中重新定义 \d?

如何在 classicthesis 中重新定义 \d?

由于某些未知原因,以下在 classicthesis 中产生错误:

% at the beginning of classicthesis-config.tex
\renewcommand{\d}{\mathbf{d}}

\begin{document}
$\d$
\end{document}

错误说数学模式下 \d 无效,缺少 $。简单的测试用例不会出现这种情况,肯定与模板设置有关。

答案1

您可以将重新定义放在文档中,以便在 classicthesis 和/或 hyperref 定义它之后,但如果您不想这样做

\AtBeginDocument{\renewcommand{\d}{\mathbf{d}}}

可能有效(尽管未经测试,因为没有提供示例)。

相关内容