## LaTeX forum ⇒ Presentations and Posters ⇒ Beamer: eqref to multline

Beamer, Powerdot and KOMA-Script presentations, Conference posters (a0poster, baposter, tikzposter)
ncwerons
Posts: 1
Joined: Wed Sep 28, 2022 1:38 pm

### Beamer: eqref to multline

Hi,
I have prepared a presentation in Beamer. I want to show a long equation. In documents of class 'article', I have used multline environment to nicely split long equations into two lines. I have tried to use the environment in the document of class 'beamer' but I have a problem with referencing equations in this environment. I can use \label to label the equation and \eqref to make a link to the equation. However, clicking on the link takes me to the first frame of my presentation, not to the frame with the long equation. In equation environment everything works fine, though. I have provided a MWE below.
Is it a bug, or am I doing something wrong? I know I could use align or gather environment but it would be easier for me to copy and paste long equations from articles to beamer presentations without any modifications. I will appreciate your help.

\documentclass{beamer}
\usepackage{amsmath}

\begin{document}

\begin{frame}
This is Frame 1.
\end{frame}

\begin{frame}
This is Frame 2.
\end{frame}

\begin{frame}
This is Frame 3.

This is equation in multline environment:
\begin{multline}
C(q, N, d_s, a) = abc \times C_0(q, d_s, a) \\
= N C_0(q, d_s, a) S(q, N, d_s, a),
\label{multline}
\end{multline}

This is equation in equation environment:

C(q, N, d_s, a) = abc \times C_0(q, d_s, a) = N C_0(q, d_s, a) S(q, N, d_s, a),
\label{equation}

\end{frame}

\begin{frame}
This is Frame 4.

The link to Eq.~\eqref{multline} in Frame 3 in multline environment doesn't work.

The link to Eq.~\eqref{equation} in Frame 3 in equation environment works fine.
\end{frame}

\end{document}