3

Consider the following TeX (which I compile with XeLaTeX).

\documentclass[a4paper,12pt]{scrbook}
\usepackage[beramono,eulermath]{classicthesis}

\title{On Something}
\author{Someone}

\begin{document}
\maketitle

% I'm used to define categories with a boldface
\newcommand{\ABCD}{\mathbf{ABCD}}

\chapter{Theory of $\ABCD$}
\section{Main theorem on $\ABCD$}
It is wel known that ...

\end{document}

It compiles and gives the following output:

Weird output in section heading

As you can see, the 'abcd' in the section heading is lower case. How can I fix this (to be upper case)?

3
  • Hi and welcome, this is set in small caps, there are no bold small caps.
    – Johannes_B
    Nov 25, 2014 at 15:20
  • 2
    \DeclareRobustCommand{\ABCD}{\mathbf{ABCD}}
    – egreg
    Nov 25, 2014 at 15:23
  • @egreg: thanks that did the job! Why not post it as an answer?
    – Jaxan
    Nov 25, 2014 at 15:33

1 Answer 1

3

The problem is similar to the one in Latex Confused with Word in heading

You solve it by doing

\DeclareRobustCommand{\ABCD}{\mathbf{ABCD}}

so LaTeX won't see ABCD and try to lowercase it. However, you should think whether the style you're using is compatible with having math in titles. It isn't, in my opinion.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .