例

現在、私の文書は次の形式になっています:

\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)、2 つの変更のみを加えたいと思います。

  1. 目次、図、方程式などのリンクを囲む色付きのボックスはありません
  2. 点線は、ページの右側にある対応するページ番号と目次エントリを結び付けています。

これらの変更を行うにはどうすればいいですか?

答え1

コメントで提案されているように、パスhidelinksオプションを使用して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}

結果

結果

2 つの個別の質問の詳細については、次のリンクをご覧ください。

  1. クリック可能な相互参照とハイパーリンクの周りの醜い境界線を削除します
  2. セクションの目次に点付きの線を表示するにはどうすればよいですか?

関連情報