Error message with fix 01e2af0

23 views
Skip to first unread message

tom75de

unread,
Sep 6, 2015, 4:55:20 PM9/6/15
to LaTeX Beamer class
Hello,

I use the patch 01e2af0 committed by Joseph Wright on 2015-03-13 to correct the hyperlinks for (sub)sections.

In my example, I get an error message "Argument of \@gobble has an extra }.":

\documentclass{beamer}
\usepackage{etoolbox}
\makeatletter
\patchcmd{\beamer@section}
 
{\def\insertsectionhead{\hyperlink{Navigation\the\c@page}{#1}}}
 
{\edef\insertsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{#1}}}
 
{}{}
\patchcmd{\beamer@subsection}
 
{\def\insertsubsectionhead{\hyperlink{Navigation\the\c@page}{#1}}}
 
{\edef\insertsubsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{#1}}}
 
{}{}
\makeatother
\usetheme{AnnArbor}
\begin{document}
\section{\texorpdfstring{$\operatorname{e}$-Funktion}{e-Funktion}}
\begin{frame}{$\operatorname{e}$-Funktion}
  $
\operatorname{e}$-Funktion
\end{frame}
\subsection{Subsection 1}
\begin{frame}{Subsection 1}
 
Subsection 1 Frame 1
\end{frame}
\begin{frame}{Subsection 1}
 
Subsection 1 Frame 2
\end{frame}
\end{document}

With the original code, the example worked as it shoud but the navigation didn't work properly. Is there a solution to get my example running?

Regards,
Tom

Mark Yagnatinsky

unread,
Sep 7, 2015, 1:14:41 AM9/7/15
to beamer...@googlegroups.com
Try asking on tex.stackexchange.com. They have wizards there.
> --
> You received this message because you are subscribed to the Google Groups
> "LaTeX Beamer class" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to beamer-class...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Mark Yagnatinsky

unread,
Sep 7, 2015, 1:54:20 AM9/7/15
to beamer...@googlegroups.com
Here's a workaround though: just use \section{e-Funktion}. As far as
I can tell, it typesets the same way anyway.
Message has been deleted

tom75

unread,
Sep 7, 2015, 6:05:52 AM9/7/15
to LaTeX Beamer class
 Thanks for your workaround, I think that's the solution for my current presentation.

Do you know if there's a general solution for this, or does this behavior only happen with \operatorname ?

I already asked on tex.stackexchange.com but didn't get any answer.

tom75

unread,
Sep 8, 2015, 4:34:46 AM9/8/15
to LaTeX Beamer class
I got an answer on texwelt. Using \protected@edef instead of \edef solves the problem

\usepackage{etoolbox}
\makeatletter
\patchcmd{\beamer@section}
 
{\def\insertsectionhead{\hyperlink{Navigation\the\c@page}{#1}}}

 
{\protected@edef\insertsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{#1}}}

 
{}{}
\patchcmd{\beamer@subsection}
 
{\def\insertsubsectionhead{\hyperlink{Navigation\the\c@page}{#1}}}

 
{\protected@edef\insertsubsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{#1}}}
 
{}{}
\makeatother


Reply all
Reply to author
Forward
0 new messages