2

I currently use cleveref for cross-reference. I was wondering how to turn cross-reference to blue color ? An example would be as follows :

\documentclass[12pt]{article}

%% Language and font encodings
\usepackage[english]{babel}

\usepackage[colorlinks=true, allcolors=blue,linkcolor=Blue, citecolor=blue]{hyperref}
\usepackage[capitalise]{cleveref}

\crefname{section}{\textbf{Section}}{\textbf{Sections}}

\begin{document}
    \section{A theorem}\label{section:1}
    \cref{section:1} is useful to prove theorem b. 
\end{document}

1 Answer 1

5
  • Sorry, I am about to leave my apartment.
  • I just provide some code (no time for more).
  • Is the result what you want?

\documentclass{article}

\usepackage{hyperref}
\hypersetup{
    colorlinks = true,
    linkcolor = blue
    }
    
\usepackage[
        noabbrev,
        capitalise,
        nameinlink,
    ]
    {cleveref}

\begin{document}
    \section{A theorem}\label{section:1}
    \cref{section:1} is useful to prove theorem b. 
\end{document}

enter image description here

2
  • Yes I think so ! Also, if there is any way to only turn number(1) to blue ?
    – exteral
    Dec 5, 2020 at 23:09
  • 1
    @exteral Try removing nameinlink and read the manual! :) Dec 5, 2020 at 23:20

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .