Discussion:
[beamer-class] Error message with fix 01e2af0
tom75de
2015-09-06 20:55:19 UTC
Permalink
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{\***@section}
{\def\insertsectionhead{\hyperlink{Navigation\the\***@page}{#1}}}
{\edef\insertsectionhead{\noexpand\hyperlink{Navigation\the\***@page}{#1}}}
{}{}
\patchcmd{\***@subsection}
{\def\insertsubsectionhead{\hyperlink{Navigation\the\***@page}{#1}}}
{\edef\insertsubsectionhead{\noexpand\hyperlink{Navigation\the\***@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
--
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
2015-09-07 05:14:21 UTC
Permalink
Try asking on tex.stackexchange.com. They have wizards there.
Post by tom75de
Hello,
I use the patch 01e2af0 committed by Joseph Wright on 2015-03-13 to correct
the hyperlinks for (sub)sections.
\documentclass{beamer}
\usepackage{etoolbox}
\makeatletter
{}{}
{}{}
\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
--
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
For more options, visit https://groups.google.com/d/optout.
--
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
2015-09-07 05:53:59 UTC
Permalink
Here's a workaround though: just use \section{e-Funktion}. As far as
I can tell, it typesets the same way anyway.
Post by Mark Yagnatinsky
Try asking on tex.stackexchange.com. They have wizards there.
Post by tom75de
Hello,
I use the patch 01e2af0 committed by Joseph Wright on 2015-03-13 to correct
the hyperlinks for (sub)sections.
\documentclass{beamer}
\usepackage{etoolbox}
\makeatletter
{}{}
{}{}
\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
--
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
For more options, visit https://groups.google.com/d/optout.
--
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.
tom75de
2015-09-07 10:03:32 UTC
Permalink
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.
Post by Mark Yagnatinsky
Here's a workaround though: just use \section{e-Funktion}. As far as
I can tell, it typesets the same way anyway.
Post by Mark Yagnatinsky
Try asking on tex.stackexchange.com. They have wizards there.
Post by tom75de
Hello,
I use the patch 01e2af0 committed by Joseph Wright on 2015-03-13 to
correct
Post by Mark Yagnatinsky
Post by tom75de
the hyperlinks for (sub)sections.
extra
Post by Mark Yagnatinsky
Post by tom75de
\documentclass{beamer}
\usepackage{etoolbox}
\makeatletter
{}{}
{}{}
\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
Post by Mark Yagnatinsky
Post by tom75de
didn't work properly. Is there a solution to get my example running?
Regards,
Tom
--
You received this message because you are subscribed to the Google
Groups
Post by Mark Yagnatinsky
Post by tom75de
"LaTeX Beamer class" group.
To unsubscribe from this group and stop receiving emails from it, send
an
Post by Mark Yagnatinsky
Post by tom75de
For more options, visit https://groups.google.com/d/optout.
--
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.
tom75
2015-09-07 10:05:52 UTC
Permalink
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.
--
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.
tom75
2015-09-08 08:34:46 UTC
Permalink
I got an answer on texwelt
<http://texwelt.de/wissen/fragen/13631/links-in-kopfzeile-einer-beamer-prasentation/14165>.
Using \***@edef instead of \edef solves the problem

\usepackage{etoolbox}
\makeatletter
\patchcmd{\***@section}
{\def\insertsectionhead{\hyperlink{Navigation\the\***@page}{#1}}}
{\***@edef\insertsectionhead{\noexpand\hyperlink{Navigation\the\***@page}{#1}}}
{}{}
\patchcmd{\***@subsection}
{\def\insertsubsectionhead{\hyperlink{Navigation\the\***@page}{#1}}}
{\***@edef\insertsubsectionhead{\noexpand\hyperlink{Navigation\the\***@page}{#1}}}
{}{}
\makeatother
--
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.
Loading...