autoref+nameref in beamer funktioniert nicht wie erwartet (nicht in Artikel)

"Uwe Brauer" (via tex-d-l Mailing List) <[email protected]>
Newsgroups gmane.comp.tex.german
Message-ID <[email protected]>
Hallo

Vielleicht weiß zufällig jemand wie man nameref+autoref in beamer zum
funktionieren bringt, soll heißen, daß es sich so verhält wie zb in
Artikel. Ich habe schon auf github in der Beamer-Seite nachgefragt, aber
vielleicht weiß das hier jemand.


Gruß

Uwe Brauer 


Hier ist ein Minimalbeispiel

\documentclass{beamer}
\makeatletter
\Hy@AtBeginDocument{%
  \def\@pdfborder{0 0 1}% Overrides border definition set with colorlinks=true
  \def\@pdfborderstyle{/S/U/W 1}% Overrides border style set with colorlinks=true
                                % Hyperlink border style will be underline of width 1pt
}
\makeatother

\hypersetup{%
  colorlinks=true,% hyperlinks will be coloured
%  linkcolor=blue,% hyperlink text will be blue
  urlcolor=blue,% hyperlink text will be blue
%  linkbordercolor=red,% hyperlink border will be red
  urlbordercolor=red,% hyperlink border will be red
}
\usepackage{nameref}
\usepackage{thmtools}
\newtheorem{thm}{Theorem}
\begin{document}
\begin{frame}
  \frametitle{Equations are here}
  this is important
  \begin{equation}
    \label{eq:beamer-auto-nameref:1}
    \int f dx =0
  \end{equation}
\end{frame}


\begin{frame}
  \frametitle{Reference with autoref}
this is   \autoref{eq:beamer-auto-nameref:1}

But using eqref \eqref{eq:beamer-auto-nameref:1}
\end{frame}
\begin{frame}
  \frametitle{Now a theorem}
  \begin{thm}[Riemann's Hypothesis]
\label{thr:beamer-auto-nameref:1}
    Let 
  \end{thm}
\end{frame}


\begin{frame}
  \frametitle{Reference to the theorem}
\ref{thr:beamer-auto-nameref:1}
  Consider \autoref{thr:beamer-auto-nameref:1}
And \nameref{thr:beamer-auto-nameref:1}
\end{frame}
\end{document}


-- 
I strongly condemn Hamas heinous atrocities on Israel, especially the despicable pogroms.
I strongly condemn Putin's war of aggression against Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the NATO membership of Ukraine.
I support the EU membership of Ukraine. 
https://addons.thunderbird.net/en-US/thunderbird/addon/gmail-conversation-view/
smime.p7s (application/pkcs7-signature, 5.5 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.