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?
\documentclass{scrreprt} \begin{document} \section{test + \& test} bla \end{document}– samcarter_is_at_topanswers.xyz Feb 19 '17 at 13:40\subsection{Super+ \& Hyper}– samcarter_is_at_topanswers.xyz Feb 19 '17 at 13:42\subsection{Super+ \& Hyper}will work. – egreg Feb 19 '17 at 13:43