Beamer: Biblatex biber, 전 세계적으로 인용 색상 변경

Beamer: Biblatex biber, 전 세계적으로 인용 색상 변경

내 인용 색상을 전체적으로 변경하고 싶지만 나열된 해결 방법이 없습니다.여기그리고여기나한테 일 안 해줘...

지금으로서는 다음을 수행해야 합니다.

\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}

여기에 이미지 설명을 입력하세요

관련 정보