I encountered the following problem with the beamerarticle package. If I use commands like \textit{} I get the following error massage:
./test.tex:7: Argument of \@sect has an extra }.
<inserted text>
\par Runaway argument?
{\normalfont \Large \bfseries }{\beamer@sortzeroread {\beamerx@\textit \ETC.
./test.tex:7: Paragraph ended before \@sect was complete.
<to be read again>
\par
l.7 \section{Test \textit{test} test}
?
l.7 \section{Test \textit{test} test}
?
Here is a minimal example:
\documentclass{article}
\usepackage{beamerarticle}
\begin{document}
\section{Test \textit{test} test}
\end{document}
Without the package or without the \textit{} the example works. Furthermore, if I use an optional argument in the section, it works as well, but if it contains any formatting commands. That is,
\section[\textit{test}]{Test \textit{test} test}
works, while
\section[test]{Test \textit{test} test}
doesn't.
Any ideas what is going on here or how to solve it?
\protect\textit– David Carlisle Apr 18 '12 at 12:47\textitis supposed to be robust:\show\textitproduces\protect \textit .Butbeamerarticlechanges it into\beamer@sortzero{\beamerx@\textit}. :( – egreg Apr 18 '12 at 12:51