I've changed my caption font color to gray as seen in the screenshot below. My problem is that references is black (which I've chosen in the hypersetup
), how do I change this to be gray as the rest of the caption text, while in all other places than the caption the links are black?
I've tried with linkcolor
and urlcolor
, but it seems like the caption package does not support these options.
Here is my preamble:
\documentclass[11pt, twoside]{report}
\usepackage{hyperref} % clickable references
\hypersetup{
colorlinks,
citecolor=black,
filecolor=black,
linkcolor=black,
urlcolor=black
}
% ------- Images ------- %
\usepackage{graphicx}
\usepackage{caption}
\usepackage{subcaption}
\DeclareCaptionFont{gray}{\color{gray}}
\captionsetup{
textfont={footnotesize,sc,gray},
font={footnotesize,sc,gray},
%linkcolor={footnotesize,sc,gray},
}
% ------- Colors ------- %
\usepackage{color}
\definecolor{dkgreen}{rgb}{0,0.6,0}
\definecolor{gray}{rgb}{0.5,0.5,0.5}
\definecolor{mauve}{rgb}{0.58,0,0.82}
And the code for the table and equation is here:
\begin{equation}
1+K_1K_2\frac{(s+2)^2}{(s+10)(s+100)(s^2+3.535s+6.25)}=0
\label{eq:part_b_characteristic_eq}
\end{equation}
\begin{table}[h!]
\begin{center}
\begin{tabular}{c|l}
$s_n$ & pole\\\hline
$s_1$ & $-100 + 0i$\\
$s_2$ & $-10 + 0i$\\
$s_3$ & $-1.77 + 1.77i$\\
$s_4$ & $-1.77 - 1.77i$\\
\end{tabular}
\end{center}
\caption{Pole values of the system from equation \eqref{eq:part_b_characteristic_eq}}
\label{tab:poles_from_characteristic_eq_partb}
\end{table}