TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

For a presentation using the beamer class (MiKTeX 2.8 with TeXnicCenter on Windows Vista) I need to have the italicized title of a book in a section heading. When I use \textit{...} or \emph{...} within \section{...}, my document fails to compile. The first (of 8) error messages is, in the case of \section{\textit{...}...}, Argument of \@gobble has an extra }.

If I remove the \textit{...} command from the \section{} command, then the document complies without errors.

I found an exchange about this problem in French at http://fr.narkive.com/2010/7/23/2275621-juste-par-curiosite.html, but can't seem to find the answer to the problem in the exchange. Maybe it's my poor French reading skills.

Can someone suggest a way of getting the beamer class to put/allow italics in a section heading?

Here is my TeX file:


\title[\textit{LTLYM}]{Title of Talk with \textit{Name of Book in Italics}}
\author[name]{my full name}
\institute{my university}
\date{October 21, 2011}









\section{Title of A Book Which Should Be in Italics (2002--2009)}

\begin{frame}{Assignments: Overview}

    \item Arts and crafts projects
    \item Public outreach projects
    \item Revelatory self-description


share|improve this question
this answer tex.stackexchange.com/a/47302/11434 is also of interest – tflutre Mar 29 '12 at 16:30

This depends on the fact that beamer makes multiple passes over the argument of \section, thus defeating the LaTeX protection mechanism:

\section{\protect\textit{Title of the book}}


share|improve this answer
That did the trick! Thank you for your help. – Daniel Balestrini Oct 16 '11 at 12:48

From the link you sent, the person was asking why

\section{\itshape My title}

worked but

\section{\textit{My title}}

didn't. So Basically, doing the first method will solve the problem.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.