0

I'm using the scrreprt package and I can't figure out how to use the "+" and the "&" symbol in the title of a subsection.

\documentclass[a4paper]{scrreprt}
\usepackage{scrpage2}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\begin{document}
    \section{Many supers}
    Text
    %Source of the problem
    \subsection{Super+ & Hyper}
    Text
\end{document}

is what I'd use ideally, but that gives an error with a "misplaced alignment tab character"

I googled a lot and tried quite a lot of variations like:

\subsection{Super\+ \& Hyper}
\subsection{Super\text{+ &} Hyper}
\subsection{Super\[+ &\] Hyper}

and more - nothing I tried works. Especially the & poses a big problem. The + actually worked with

\text{+}

Does anyone have a solution?

1 Answers1

1

The solution is:

\subsection{Super+ \& Hyper}

Thanks to @samcarter and @egreg

  • I kind of agree that this question might be a "duplicate" - but on the other hand the problem in this case came from the \section and \subsection argument, which needed several compilations due to auxiliary files. Seems relevant to me. – Zackebuh Feb 19 '17 at 18:58