目前,我的文档形式如下:
\documentclass[11pt,a4paper]{article}
\usepackage{hyperref}
\begin{document}
\tableofcontents
\section{Introduction to Problem}
There is the relation
\begin{equation}
R = k^2, \label{eq:myequation}
\end{equation}
which we have previously discussed.
\section{Potential Solution}
Using the relation in Equation~(\ref{eq:myequation}), we can ...
\end{document}
考虑到上述文档在使用时编译时的样子pdfTeX 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian)
,我只希望做两处更改:
- 目录、图表、公式等链接周围均无彩色框
- 虚线将目录条目与页面右侧相应的页码连接起来
我怎样才能做出这些改变?
答案1
正如评论中所建议的,您可以使用 passhidelinks
选项来hyperref
禁用框和
\makeatletter
\renewcommand*\l@section{\@dottedtocline{1}{1.5em}{2.3em}}
\makeatother
将虚线添加到目录中。
例子
\documentclass[11pt,a4paper]{article}
\usepackage[hidelinks]{hyperref}
\makeatletter \renewcommand*\l@section{\@dottedtocline{1}{1.5em}{2.3em}} \makeatother
\begin{document}
\tableofcontents
\section{Introduction to Problem}
There is the relation
\begin{equation}
R = k^2, \label{eq:myequation}
\end{equation}
which we have previously discussed.
\section{Potential Solution}
Using the relation in Equation~(\ref{eq:myequation}), we can ...
\end{document}
结果
有关这两个单独问题的详细信息,请访问以下链接: