I want to have an url colored in cyan in a beamer presentation. The following code is not working and produces a link in pink.
\documentclass[
xcolor = svgnames,
hyperref = {colorlinks = true, urlcolor = cyan},
]{beamer}
\begin{document}
\begin{frame}{Not the good color}
\url{https://tex.stackexchange.com}
\end{frame}
\end{document}
Meanwhile, passing the option through hypersetup
works:
\documentclass[
xcolor = svgnames
]{beamer}
\hypersetup{
colorlinks = true,
urlcolor = cyan,
}
\begin{document}
\begin{frame}{The good color}
\url{https://tex.stackexchange.com}
\end{frame}
\end{document}
If relevant I am using pdflatex version 3.14159265-2.6-1.40.21 (TeX Live 2020/Arch Linux).
hyperref
options:hyperref={colorlinks=true,urlcolor=cyan}
.hyperref =
. So you can usehyperref ={colorlinks = true, urlcolor = cyan}
...