Closed ouboub closed 1 year ago
Beamer automatically loads the hyperref
package. You must not load it again with conflicting options. You should find an error about the option clash in the log file.
you can use the fragile
frame option to deal with such difficult content
be careful with globally changing the styling of links in beamer - this will have many surprising consequences for footlines etc.
\documentclass{beamer}
%\usepackage{xcolor}
%\usepackage[colorlinks]{hyperref}
\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
}
\begin{document}
\begin{frame}[fragile]
\frametitle{Wikipedia}
\href{https://es.wikipedia.org/wiki/M%C3%A9todo_de_Cardano}{Método de Cardano (wikipedia)}
\end{frame}
\end{document}
thanks!
Hi I copied a link from my browser into a document in article mode:
and it works fine, however when I try to use the same link in beamer (using pdflatex/xelatex)
compilation fails (the hyperref options do no matter, even without them compilation fails with the error
any ideas?