
\ref{}
當我們使用(或\autoref{}
) 來引用一個定理時,是否可以為定理著色,例如藍色?例如。看文章:https://www.cse.iitk.ac.in/users/nitin/papers/border-depth3.pdf
在文章中,當引用定理/引理/定義時,其顏色為藍色(例如,請參閱第3 頁--> 第1.1 節--> 第一段最後一行;「定義A.4」和「引理A.21”顏色為藍色)。先致謝!
答案1
指令在 kaorefs.sty 中實作:
\newcommand{\refch}[1]{\hyperref[ch:#1]{\xspace\chaptername\ref{ch:#1}}}
直接修改這些命令:
\newcommand{\refch}[1]{\textcolor{blue}{\hyperref[ch:#1]{\xspace\chaptername\ref{ch:#1}}}}
或像這樣在你的 tex 中更新它們:
\renewcommand{\refch}[1]{\textcolor{blue}{\hyperref[ch:#1]{\xspace\chaptername\ref{ch:#1}}}}