Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
user202729 opened this issue May 10, 2024 · 4 comments
Open

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

user202729 opened this issue May 10, 2024 · 4 comments

Comments

@user202729
Copy link

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
Copy link
Collaborator

samcarter commented May 10, 2024

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
Copy link
Author

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

@samcarter
Copy link
Collaborator

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

Which unintended changes?

@user202729
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants