[Tex/LaTex] Can \cite use bold font

boldciting

Is there an option which allows me to typeset bold hyperlinks? Here's a MWE explaining my problem:

\documentclass[a4paper, 11pt]{article}

\usepackage[utf8]{inputenc}
\usepackage{filecontents}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage{hyperref}
\hypersetup{%
    colorlinks=true,
    linkcolor=black,
    citecolor=Magenta}

\begin{filecontents}{biblio.bib}

@book{borgesESP,
  author = {Borges, J. L.},
  publisher = {Emecé},
  year = {1956},
  title = {Ficciones},
  }
\end{filecontents}

\begin{document}
``Mirrors and fatherhood are abominable'' \cite{borgesESP}

\bibliography{biblio}{}
\bibliographystyle{amsalpha}
\hrulefill 
\end{document}

enter image description here

I want the "Bor56" to be in boldface. Is there a way to do this?

The naive way (modifying the \cite command) gives no result, or an error:

\newcommand{\citebf}[2][]{\cite[#1]{\bf #2}}

thinks the \bf as inside the reference label.

Best Answer

Yes, you can override the kernel \@cite macro to make it bold. But then you'd probably also like to make the label in the bibliography - \@biblabel - bold:

enter image description here

\documentclass{article}

\usepackage[utf8]{inputenc}
\usepackage{filecontents}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage{hyperref}
\hypersetup{%
    colorlinks=true,
    linkcolor=black,
    citecolor=Magenta}

\begin{filecontents}{biblio.bib}
@book{borgesESP,
  author = {Borges, J. L.},
  publisher = {Emecé},
  year = {1956},
  title = {Ficciones},
  }
\end{filecontents}

\makeatletter
\def\@cite#1#2{[\textbf{#1\if@tempswa , #2\fi}]}
\def\@biblabel#1{[\textbf{#1}]}
\makeatother

\begin{document}
``Mirrors and fatherhood are abominable'' \cite{borgesESP}

\bibliography{biblio}{}
\bibliographystyle{amsalpha}

\end{document}