Here is a MWE to illustrate a problem I encounter when I try to include an & in a label. Any ideas how to fix this?
\documentclass[14pt,a4paper]{extreport}
\usepackage[latin9]{inputenc}
\newcounter{SlideCounter}
\newcommand{\slide}[1]{%
\stepcounter{SlideCounter}%
\paragraph{\newline Slide \arabic{SlideCounter}) #1}
\paragraph{\newline}}
\begin{document}
I have a document in which I refer to numbered `slides' and I want to label
the slides to help navigate the document in TeXstudio. TeXstudio has a
document structure window which shows the labels. However, if I include
\& in the label, as in:
\begin{verbatim}
\label{Alvarado Rudy \& design and procedure}
\end{verbatim}
I get the message: \\
\begin{verbatim}
! Missing \endcsname inserted.
<to be read again>
\&
l.3 ...varado \& Rudy design and procedure}{{}{1}}
The control sequence marked <to be read again> should
not appear between \csname and \endcsname.
LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right.
\end{verbatim}
\slide{Alvarado \& Rudy design and procedure}
\label{Alvarado Rudy design and procedure}
\slide{Next Slide}
\label{Next Slide}
\end{document}