1、引用字体变色
使用下面这条语句进行修改。 ‘citecolor’改变参考文献颜色, ‘linkcolor’改变图标公式引用的颜色, ‘urlcolor’ 文本网站超链接颜色。hyperref是实现跳转。
\usepackage[colorlinks,bookmarksopen,bookmarksnumbered,citecolor=blue, linkcolor=blue, urlcolor=blue]{hyperref}
完整例子:
\documentclass[]{article}
\usepackage{amsfonts}
\usepackage[colorlinks,bookmarksopen,bookmarksnumbered,citecolor=blue, linkcolor=blue, urlcolor=blue]{hyperref}
\begin{document}
\begin{eqnarray}
E = mc^2 \label{eq:einstein}
\end{eqnarray}
\ref{eq:einstein}
\end{document}
2、引用点击跳转
如果不修改引用颜色,可在开头导入包:\usepackage{hyperref},直接实现跳转且用方框勾选。
\usepackage{hyperref}
例子:
\documentclass[]{article}
\usepackage{hyperref}
\begin{document}
\section{Introduction} \label{introduction}
This is an introductory paragraph with some dummy text. This section will be referenced later.
\newpage % 创建新页面
You can reference images; for instance, shows the \textit{Overleaf} logo.
\vspace{0.5cm}
\paragraph{Math references} \label{mathrefs}
As mentioned in section \ref{introduction}, different elements can be referenced within a document.
\end{document}