
現在、私の文書は次の形式になっています:
\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
コメントで提案されているように、パス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 つの個別の質問の詳細については、次のリンクをご覧ください。