4

For some unknown reason the following produces an error in classicthesis:

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

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

The error says \d is invalid in math mode and $ is missing. It doesn't occur with a simple test case, for sure it's related to the template settings.

juliohm
  • 3,452
  • 2
    are you using hyperref? i think hyperref redefines \d, so all bets would be off. – barbara beeton May 07 '13 at 22:30
  • 1
    Hopefully, this question helps. In particular, the point is that \d is already defined in the latex kernel. And, in this case, to make things complicated, as @barbara points out, hyperref redefines \d to be \PD1-cmd \d \PD1\d from \OT1-cmd \d \OT1\d. In particular, however, note that, just this example (together with \documentclass{...}) will compile. :-) – kan May 07 '13 at 22:33
  • 3
    I'd simply use a different name: \newcommand{\bd}{\mathbf{d}} – egreg May 08 '13 at 08:28

1 Answers1

5

You could just put the redefinition in the document so after classicthesis and/or hyperref have defined it, but if you don't want to do that

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

Probably works (although untested as no example supplied).

David Carlisle
  • 757,742