[Eine Lösung] (was: 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]> |
>>> "UB" == Uwe Brauer <[email protected]> writes: > 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. Hier eine mögliche Lösung, für Verbesserungsvorschläge bin ich dankbar Gruß Uwe Brauer ,---- | \documentclass{beamer} | \hypersetup{colorlinks=true} | \usepackage{nameref} | \newtheorem{thm}{Theorem} | \usepackage{cleveref} | \Crefname{thm}{Theorem}{Theorems} | % fix for cleverref | \let\chyperref\cref % Save the orginal command under a new name | \renewcommand{\cref}[1]{\hyperlink{#1}{\chyperref{#1}}} % Redefine the \cref command and explictely add the hyperlink. | % | \newcommand*{\fullcleveref}[1]{% | \hyperref[{#1}]{\Cref{#1} (\nameref*{#1})}% | } | \newcommand*{\hypercleveref}[1]{% | \hyperref[{#1}]{\Cref{#1}}% | } | | \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{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 and the equation} | | \hypercleveref{eq:beamer-auto-nameref:1} | \fullcleveref{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