考虑一下这篇论文:https://www.sciencedirect.com/science/article/pii/S0960077922011948
我们如何实现链接的浅蓝色?
从这个问题的答案来看:将超链接扩展至图 a、b、c:
\documentclass[10pt,a4paper]{book}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{todonotes}
\usepackage[colorlinks,linkcolor=black,anchorcolor=black,citecolor=black,filecolor=black,urlcolor=blue]{hyperref}
\newcommand*{\figref}[2][]{%
\hyperref[{fig:#2}]{%
Figure~\ref*{fig:#2}%
\ifx\\#1\\%
\else
\,#1%
\fi
}%
}
\begin{document}
\hypersetup{linkcolor=blue}
\chapter{one}
\begin{figure}[t]
\missingfigure[figwidth=6cm]{- << Ciel, mon mari >> dit-elle !}
\caption{a: Missing figure, and b: still missing figure.}
\label{fig:missing Figure}
\end{figure}
The figure \figref{missing Figure} contains two subfigures.
Something in \figref[a]{missing Figure} and some other thing in
Figure \figref[b]{missing Figure}.
\end{document}
答案1
所以,显然你自己解决了你的问题,把你的代码和最后的评论放在一起......可以通过使用一些粉红色来轻松验证:
\hypersetup{linkcolor=[rgb]{1,0.5,0.73}}% ;-)
\documentclass[10pt,a4paper]{book}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{todonotes}
\usepackage[colorlinks,linkcolor=black,anchorcolor=black,
citecolor=black,filecolor=black,urlcolor=blue]{hyperref}
\newcommand*{\figref}[2][]{%
\hyperref[{fig:#2}]{%
Figure~\ref*{fig:#2}%
\ifx\\#1\\%
\else
\,#1%
\fi
}%
}
\begin{document}
%\hypersetup{linkcolor=blue}
\hypersetup{linkcolor=[rgb]{0,0.5,0.73}}% <<<<<<<<<<<<<<
\chapter{one}
\begin{figure}[t]
\missingfigure[figwidth=6cm]{- << Ciel, mon mari >> dit-elle !}
\caption{a: Missing figure, and b: still missing figure.}
\label{fig:missing Figure}
\end{figure}
The figure \figref{missing Figure} contains two subfigures.
Something in \figref[a]{missing Figure} and some other thing in
Figure \figref[b]{missing Figure}.
\end{document}