I want to change the style of the crossed reference (chapter, section, figure, equation, ...) generated by using cleveref
package, for example, put parentheses around the referenced item and use boldface for the numbers.
\documentclass[14pt,a4paper]{extreport}
\usepackage[left=2.00cm, right=1.50cm]{geometry}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{xcolor}
\usepackage{lipsum}
\usepackage{hyperref}
\hypersetup{colorlinks=true,citecolor=red, linkcolor=blue}
\usepackage{cleveref}
\usepackage{tcolorbox}
\begin{document}
\chapter{First Chapter}\label{ch:chapter 1}
\section{Section One}\label{sec:section one}
\lipsum[1]
\section{Section Two}\label{sec:section two}
\begin{align}
r =& \sqrt{x^2 + y^2}\label{eq:equation 1}\\[2ex]
z =& \sqrt[3]{1 - 2r^2}\label{eq:equation 2}
\end{align}
see \cref{sec:section one} in \cref{ch:chapter 1}\\
\Cref{eq:equation 1} is the governing equations, \cref{eq:equation 2} is the second equation.
\end{document}
\bfseries
has no effect. I compiled with and without it and I saw no difference in the format.\crefdefaultlabelformat{({#2\bfseries#1#3})}
, I used the other comment above from memory, not by copy and paste.#2
and#3
belong tohyperref
parts and disable the\bfseries
then.