1

This question already has an answer here:

I was wondering whether it is possible to execute a command depending on the used documentclass.

\documentclass{dinbrief}
%\documentclass[a4paper]{letter}
\usepackage{ifthen}

\begin{document}
\ifthenelse{<documentclass is dinbrief>}{\setlength{\headheight}{20mm}}{}
\the\headheight
\end{document}

I think in principle this code should work. But what exactly should go in the conditional of the ifthenelse (instead of ). Via google I could not find out if there is a variable holding the documentclass so can it be requested during compilation, and if it exists, what's its name?

marked as duplicate by Andrew, Keks Dose, user13907, Werner, ChrisS Oct 9 '14 at 19:35

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.