예

현재 내 문서의 형식은 다음과 같습니다.

\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. 목차, 그림, 방정식 등 링크 주변에 색상 상자가 없습니다.
  2. 점선은 TOC 항목을 페이지 오른쪽의 해당 페이지 번호에 연결합니다.

이러한 변경을 어떻게 수행할 수 있습니까?

답변1

의견에서 제안한 대로 통과 hidelinks옵션을 사용하여 hyperref상자를 비활성화하고

\makeatletter
\renewcommand*\l@section{\@dottedtocline{1}{1.5em}{2.3em}}
\makeatother

TOC에 점선을 추가합니다.

\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}

결과

결과

두 가지 개별 질문에 대한 자세한 내용을 보려면 다음 링크를 방문하세요.

  1. 클릭 가능한 상호 참조 및 하이퍼링크 주변의 보기 흉한 테두리를 제거합니다.
  2. 섹션의 목차에 점이 있는 줄을 얻는 방법은 무엇입니까?

관련 정보