Discussion:
[beamer-class] section, (\ref{eq:splines:3})}: can't compile
Uwe Brauer
2017-01-30 12:27:41 UTC
Permalink
Hello the following minimal example fails:

\documentclass{beamer}
\begin{document}
\section{Main}
\label{sec:main}

\begin{frame}[<+->]
\frametitle{Main}
this

\begin{equation}
\label{eq:splines:3}
\int dx
\end{equation}
\end{frame}
\subsection{Test equation \protect (\ref{eq:splines:3})}
\begin{frame}[<+->]
\frametitle{Test}
this
\end{frame}
\end{document}

The error message is as follows, any help would be greatly appreciated

Uwe Brauer

LaTeX Font Warning: Font shape `OT1/cmss/m/n' in size <4> not available
(Font) size <5> substituted on input line 14.

[1{/usr/local/texlive/2016/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
./testbeamer.tex:15: Argument of \@gobble has an extra }.
<inserted text>
\par
l.15 ...t equation \protect (\ref{eq:splines:3})}

Runaway argument?
./testbeamer.tex:15: Paragraph ended before \@gobble was complete.
<to be read again>
\par
l.15 ...t equation \protect (\ref{eq:splines:3})}

./testbeamer.tex:15: Argument of \@firstofone has an extra }.
<inserted text>
\par
l.15 ...t equation \protect (\ref{eq:splines:3})}

Runaway argument?
./testbeamer.tex:15: Paragraph ended before \@firstofone was complete.
<to be read again>
\par
l.15 ...t equation \protect (\ref{eq:splines:3})}

./testbeamer.tex:15: Undefined control sequence.
\***@saveanother ->\let \***@savedif
=\***@anotherslide
l.15 ...t equation \protect (\ref{eq:splines:3})}

)
! Incomplete \iffalse; all text was ignored after line 15.
<inserted text>
\fi
<*> \input testbeamer.tex

! Emergency stop.
<*> \input testbeamer.tex

! ==> Fatal error occurred, no output PDF file produced!
Transcript written on testbeamer.log.

TeX Output exited abnormally with code 1 at Mon Jan 30 12:23:23
--
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.
Louis Stuart
2017-04-04 08:58:35 UTC
Permalink
Just use `\protect` exactly before `\ref`.

圚 2017幎1月30日星期䞀 UTC+8䞋午8:27:50Uwe Brauer写道
Post by Uwe Brauer
\documentclass{beamer}
\begin{document}
\section{Main}
\label{sec:main}
\begin{frame}[<+->]
\frametitle{Main}
this
\begin{equation}
\label{eq:splines:3}
\int dx
\end{equation}
\end{frame}
\subsection{Test equation \protect (\ref{eq:splines:3})}
\begin{frame}[<+->]
\frametitle{Test}
this
\end{frame}
\end{document}
The error message is as follows, any help would be greatly appreciated
Uwe Brauer
LaTeX Font Warning: Font shape `OT1/cmss/m/n' in size <4> not available
(Font) size <5> substituted on input line 14.
[1{/usr/local/texlive/2016/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
<inserted text>
\par
l.15 ...t equation \protect (\ref{eq:splines:3})}
Runaway argument?
<to be read again>
\par
l.15 ...t equation \protect (\ref{eq:splines:3})}
<inserted text>
\par
l.15 ...t equation \protect (\ref{eq:splines:3})}
Runaway argument?
<to be read again>
\par
l.15 ...t equation \protect (\ref{eq:splines:3})}
./testbeamer.tex:15: Undefined control sequence.
l.15 ...t equation \protect (\ref{eq:splines:3})}
)
! Incomplete \iffalse; all text was ignored after line 15.
<inserted text>
\fi
<*> \input testbeamer.tex
! Emergency stop.
<*> \input testbeamer.tex
! ==> Fatal error occurred, no output PDF file produced!
Transcript written on testbeamer.log.
TeX Output exited abnormally with code 1 at Mon Jan 30 12:23:23
--
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...