I wanted all in-text citations in a different color to make them stand out from the text. I used a solution provided by following link.
Color citation using biblatex : in-text + references (issue with postnote + bibliography)
In particular, I used \AtEveryCite command. The closing parenthesis is also colored blue. However, the period mark when the references are at the end of a sentence should be black, but above commands makes them blue. Any way to fix this minor glitch? Thanks. Jay
MWE
\documentclass[a4paper, oneside, 12pt]{memoir}
\usepackage[backend=bibtex, %bibtex worked well
style=authoryear-comp, %nature for numbered style
sorting=nyt, % cite according to author's last name,year and title.
maxbibnames=3]{biblatex}
\addbibresource{biblatex-examples.bib}
\usepackage[table,xcdraw,dvipsnames]{xcolor} % colouring of raws and also for R code grey background
\definecolor{bleu_cite}{RGB}{34,111,212} % pure blue: {0,0,128}, light blue:{80,135,208}
\usepackage[
colorlinks=true,
allcolors = black,
citecolor=bleu_cite,
]{hyperref}
\AtEveryCite{\color{bleu_cite}}
\begin{document}
This is a borrowed fact \parencite{aristotle:physics}.
\end{document}
12 ptshould probably be12pt(no space). – Johannes_B Aug 13 '17 at 05:40\AtEveryCiteKeyis commented in moewe's code and\mkbibbracketscolis introduced. The example given by moewe does not have coloured periods. Please test his example to confirm. – Johannes_B Aug 13 '17 at 05:54\DeclareCiteCommandyou will have to adapt those inauthoryear-comp. – moewe Aug 13 '17 at 12:18autopunct=falsemight be enough forAtEveryCite{\color{bleu_cite}}, but then you turn off that feature entirely. – moewe Aug 13 '17 at 13:18