![Beamer: Biblatex biber, изменение цвета ссылок глобально](https://rvso.com/image/348601/Beamer%3A%20Biblatex%20biber%2C%20%D0%B8%D0%B7%D0%BC%D0%B5%D0%BD%D0%B5%D0%BD%D0%B8%D0%B5%20%D1%86%D0%B2%D0%B5%D1%82%D0%B0%20%D1%81%D1%81%D1%8B%D0%BB%D0%BE%D0%BA%20%D0%B3%D0%BB%D0%BE%D0%B1%D0%B0%D0%BB%D1%8C%D0%BD%D0%BE.png)
Я хочу изменить цвет моих цитат глобально, но перечисленные решенияздесьиздесьне работают для меня...
На данный момент мне нужно сделать следующее:
\textcolor{red}{\cite{Forrest2014}}
Есть какие-нибудь подсказки?
Это мой MWE:
\documentclass{beamer}
\usepackage{hyperref}
%hyperref options, no border and url colors
\hypersetup{%
%pdfborder = {0 0 0},
colorlinks=true,
urlcolor=blue,
linkcolor=
}
\usepackage[style=authoryear, defernumbers=true, sorting=none, backend=biber, dateabbrev=true, maxbibnames=7, minbibnames=7, doi=false, isbn=false, url=false]{biblatex}%
\begin{filecontents}{\jobname.bib}
@article{Forrest2014,
author = {Forrest, Alistair R. R. and Kawaji, Hideya and Rehli, Michael and {Kenneth Baillie}, J. and de Hoon, Michiel J. L. and Haberle, Vanja and Lassmann, Timo},
doi = {10.1038/nature13182},
issn = {0028-0836},
journal = {Nature},
pages = {462--470},
pmid = {24670764},
title = {{A promoter-level mammalian expression atlas}},
url = {http://dx.doi.org/10.1038/nature13182{\%}5Cnhttp://www.nature.com/doifinder/10.1038/nature13182},
volume = {507},
year = {2014}
}
\end{filecontents}
\addbibresource{\jobname.bib}
\setbeamertemplate{bibliography item}{}
\mode<presentation> {
\usetheme{Singapore}
}
\begin{document}
\section{Frame 1}
\begin{frame}
\frametitle{Frame 1}
Here I want a citation:
%\textcolor{red}{\cite{Forrest2014}}
\cite{Forrest2014}
\end{frame}
\begin{frame}[allowframebreaks]
\frametitle{References}
\printbibliography
\end{frame}
\end{document}
решение1
Вы можете переопределить команду cite:
\documentclass{beamer}
\usepackage{hyperref}
%hyperref options, no border and url colors
\hypersetup{%
%pdfborder = {0 0 0},
colorlinks=true,
urlcolor=blue,
linkcolor=,
}
\usepackage[style=authoryear, defernumbers=true, sorting=none, backend=biber, dateabbrev=true, maxbibnames=7, minbibnames=7, doi=false, isbn=false, url=false]{biblatex}%
\newcommand\mkbibcolor[2]{\textcolor{#1}{\hypersetup{citecolor=#1}#2}}
\DeclareCiteCommand{\cite}[\mkbibcolor{red}]
{\usebibmacro{prenote}}%
{\usebibmacro{citeindex}%
\usebibmacro{cite}}
{\multicitedelim}
{\usebibmacro{postnote}}
\addbibresource{biblatex-examples.bib}
\setbeamertemplate{bibliography item}{}
\mode<presentation> {
\usetheme{Singapore}
}
\begin{document}
\section{Frame 1}
\begin{frame}
\frametitle{Frame 1}
Here I want a citation:
\cite{doody}
\end{frame}
\begin{frame}[allowframebreaks]
\frametitle{References}
\printbibliography
\end{frame}
\end{document}