josephwright / beamer

A LaTeX class for producing presentations and slides
Other
1.35k stars 139 forks source link

Setting `\hypersetup{citecolor=...}` has no effect on `\cite{...}`? #894

Open user202729 opened 1 month ago

user202729 commented 1 month ago

MWE (originally reported in https://tex.stackexchange.com/q/104290/250119 ):

\documentclass{beamer}

\hypersetup{
  colorlinks = true,
  citecolor = green
}

\begin{document}

\begin{frame}
This is a great result~\cite{Paper}.
But this is a link to slide~\ref{Bib}.
\end{frame}

\begin{frame}{Bibliography}\label{Bib}
\begin{thebibliography}{}
  \bibitem[Author, 1942]{Paper}
    Author. B.
    \newblock The great result.
\end{thebibliography}
\end{frame}

\end{document}

Result: both are red.

Expected: the cite is green, the ref is red.

samcarter commented 1 month ago

I'd be very careful with colorlinks in beamer. Beamer uses links in a lot of places and switching on link colours can destroy carefully set up themes.

Instead I'd locally switch the text colour to colour the citations.

user202729 commented 1 month ago

How problematic. Is there no automated tests to detect such unintended changes (I thought there is /testfiles ?)

samcarter commented 1 month ago

How problematic. Is there no automated tests to detect such unintended changes (I thought there is /testfiles ?)

Which unintended changes?

user202729 commented 1 month ago

Anyway, it looks easy enough to avoid changing color of anything except citecolor by allcolors=..

Other than that this should still be a fixable bug?