Is there any way to color the number associated to citations where the bibliography is printed? (I.e. I want to have 1 and 2 in the reference section to be in red.)
Here is a MWE:
\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@book{Aldstadt2010,
address = {Berlin, Heidelberg},
author = {Aldstadt, Jared},
doi = {10.1007/978-3-642-03647-7},
editor = {Fischer, Manfred M. and Getis, Arthur}
file = {:home/persican/.local/share/data/Mendeley Ltd./Mendeley Desktop/Downloaded/Aldstadt - 2010 - Handbook of Applied Spatial Analysis.pdf:pdf},
isbn = {978-3-642-03646-0},
pages = {279--300},
publisher = {Springer Berlin Heidelberg}
title = {{Handbook of Applied Spatial Analysis}},
url = {http://link.springer.com/10.1007/978-3-642-03647-7},
year = {2010}
}
@article{Aksnes1993,
author = {Aksnes, D and Giske, J},
doi = {10.1016/0304-3800(93)90007-F},
issn = {03043800},
journal = {Ecological Modelling},
pages = {233--250},
title = {{A theoretical model of aquatic visual feeding}},
volume = {67},
year = {1993}
}
\end{filecontents*}
\documentclass[10pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{setspace}
\usepackage{enumitem}
\usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
\definecolor{refcol}{rgb}{0.1921569 0.5098039 0.7411765}
\usepackage{hyperref}
\hypersetup{
colorlinks = true,
citecolor = BrickRed,
linkcolor = BrickRed,
urlcolor = refcol
}
\usepackage[%
autocite = superscript,
backend = bibtex,
sortcites = true,
%style = numeric,
backref = false,
url = false,
isbn = false,
doi = false,
firstinits = true,
style = science,
]{biblatex}
\addbibresource{\jobname.bib}
\defbibenvironment{bibliography}
{\noindent}
{\unspace}
{\printtext[labelnumberwidth]{%
\printfield{prefixnumber}%
\printfield{labelnumber}}
\addspace}
\renewbibmacro*{finentry}{\finentry\addspace}
\DeclareLanguageMapping{english}{english-apa}
\renewcommand*{\bibfont}{\scriptsize}
\begin{document}
\section*{Introduction}
This is a citation \autocite{Aldstadt2010, Aksnes1993}.
\begin{spacing}{.5}
\printbibliography
\end{spacing}
\end{document}