考虑:
\documentclass[12pt,a4paper,oneside]{book}
\usepackage[a4paper,width=150mm,top=30mm,bottom=30mm,bindingoffset=6mm]{geometry}
\usepackage[nottoc]{tocbibind}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{bm}
\usepackage{nccmath}
\usepackage{amsfonts, graphicx, verbatim, mathtools,amssymb, amsthm, mathrsfs,amsmath}
\usepackage{color}
\usepackage{array}
\usepackage{setspace}
\usepackage{fancyhdr}
\usepackage{rsfso}
\usepackage{enumitem}
\usepackage{tikz}
\usetikzlibrary{babel, arrows.meta, positioning, quotes}
\usepackage{parskip}
\usepackage{lipsum}
\usepackage{upgreek}
\usepackage{floatrow}
\usepackage{epstopdf}
\usepackage[colorlinks,linkcolor=blue,anchorcolor=black,citecolor=black,filecolor=black,urlcolor=blue]{hyperref}
\usepackage[all]{hypcap}
\usepackage[capitalise]{cleveref}
\usepackage{siunitx}
\usepackage{tocloft}
\usepackage{listings}
\usepackage{booktabs}
\usepackage{nicematrix}
\usepackage{subcaption}
\usepackage{multicol}
\usepackage{geometry}
\usepackage{tabularray}
\UseTblrLibrary{booktabs, siunitx}
\usepackage[thinc]{esdiff}
\usepackage{ae}
\usepackage [english]{babel}
\usepackage [autostyle, english = american]{csquotes}
\usepackage[style=numeric,maxbibnames=200,sortcites=true,backend=bibtex]{biblatex}
\allowdisplaybreaks
\begin{document}
\frontmatter
\newpage
\pagestyle{fancy}
\fancyhf{}
\fancyhead[ER]{\nouppercase\leftmark}
\fancyhead[OL]{\nouppercase\rightmark}
\fancyhead[EL,OR]{\thepage}
\begin{titlepage}
\begin{center}
%\begin{figure}
%\centering
%\includegraphics[width=9cm]{UoLLogo.png}
%\end{figure}
\rule[0.5cm]{15cm}{0.1cm}
\Huge
{blabla bla}
\rule{15cm}{0.1cm}
\\\vspace{3cm}
{\normalsize \it{Thesis submitted for the degree of}} \\
{\normalsize \it{Doctor of blabla}} \\
{\normalsize \it{at the}} \\
{\normalsize \it{blablabla}}\\
\vfill
\vspace{5cm}
{\normalsize by} \\
{\normalsize bla}\\
{\normalsize bla}\\
{\normalsize University of bla}\\
{\normalsize bla}\\
\rule{15cm}{0.1cm}
\end{center}
\end{titlepage}
\clearpage
\begin{center}
\thispagestyle{empty}
\vspace*{\fill}
\textit{bla}
\vspace*{\fill}
\end{center}
\clearpage
\setcounter{page}{1}
\chapter{Abstract}
\clearpage
\tableofcontents
\clearpage
\phantomsection%<---
\listoffigures
\clearpage
\phantomsection%<---
\listoftables
\clearpage
\mainmatter
\section{intro}
\begin{equation}\label{a1}
2+2=4
\end{equation}
observe \eqref{a1} is beautfiul.
\section{bla}
\end{document}
我们怎样才能使方程式一保持蓝色但目录保持黑色?
答案1
我建议采用这种方式。
- 使用该
xcolor
包。 \usepackage{hyperref}
与选项一起使用colorlinks
。- 使用
\hypersetup
命令和linkcolor
具有所需值的参数。
要了解其工作原理,请尝试以下步骤。
\documentclass{article}
\usepackage{xcolor}
\usepackage[colorlinks]{hyperref}
\begin{document}
\hypersetup{linkcolor=black}
\tableofcontents
\bigskip
\hypersetup{linkcolor=blue}
Look at section no.~\ref{mylab}.
\section{foo}
\label{mylab}
\end{document}