BibTeX, biblatex and biberReferences hyperlink color

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
asafw
Posts: 37
Joined: Sun Jun 10, 2012 12:33 pm

References hyperlink color

Post by asafw »

Hello,

I am trying to make references in my document hyperlinked (clickable) in Blue color (I saw this is a standard in many online papers). I can get everything working except from the color. Can someone help? I included a minimal code example.

Thank you!
Asaf

Code: Select all

\documentclass[11pt]{article}

\usepackage{fancyhdr}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amssymb,amsfonts}
\usepackage{threeparttable}
\usepackage[mathscr]{eucal}
\usepackage{hyperref}
\usepackage[dvips]{graphicx}
\usepackage{graphics}
\usepackage{geometry}
\usepackage{times}
\usepackage{enumerate}
\usepackage{courier}
\usepackage[round]{natbib}
%\usepackage[round]{natbib}

%\input{/Users/assafweinstein/Dropbox/Research/04-pre-am-short.tex}
%\renewcommand{\baselinestretch}{1.3}

\newtheorem{theorem}{Theorem}
\newtheorem{lemma}{Lemma}
\newtheorem{proposition}{Proposition}
\newtheorem{corollary}{Corollary}
\newtheorem{remark}{Remark}

%commands specific to current document

\begin{document}

\centerline{\sc Title Goes Here}
\medskip
\centerline{ \today}

blah blah \citet{edelman1988estimation}

\bibliographystyle{abbrvnat}
\bibliography{sample}

\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

References hyperlink color

Post by Johannes_B »

The standardcolor for citations is in fact green ;-) references to tables and the like are often seen blue.

You have to first say you want colored links instead of frames, and later can define the color.

Code: Select all

\documentclass[11pt]{article}

\usepackage{fancyhdr}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amssymb,amsfonts}
\usepackage{threeparttable}
\usepackage[mathscr]{eucal}
%\usepackage{hyperref}%JB: usually loaded lst
\usepackage[dvips]{graphicx}
\usepackage{graphics}
\usepackage{geometry}
\usepackage{times}
\usepackage{enumerate}
\usepackage{courier}
\usepackage[round]{natbib}

\newtheorem{theorem}{Theorem}
\newtheorem{lemma}{Lemma}
\newtheorem{proposition}{Proposition}
\newtheorem{corollary}{Corollary}
\newtheorem{remark}{Remark}


\usepackage{hyperref}
\hypersetup{colorlinks,
%citecolor=blue
}
\begin{document}

%JB: Please note, that this is TeX, not LaTeX
%\centerline{\sc Title Goes Here}
%\medskip
%\centerline{ \today}

blah blah \citet{gnu}

\bibliographystyle{abbrvnat}
\bibliography{sample}

\end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
asafw
Posts: 37
Joined: Sun Jun 10, 2012 12:33 pm

References hyperlink color

Post by asafw »

Thank you Johannes, this is so helpful!
May I just ask what your comment on Tex vs LaTex meant?

%JB: Please note, that this is TeX, not LaTeX

Thank you again,
Asaf
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: References hyperlink color

Post by Johannes_B »

You are using plain TeX commands in a LaTeX document. You should stick to one format and don't mix them.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply