目录问题

目录问题

我制作了一个包含摘要的文档,我的问题是,当我单击目录中的摘要标题时,它会转到封面而不是摘要页面。这是我的代码:

\documentclass[letterpaper]{book}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{geometry}
\usepackage{xcolor}
\usepackage{amsmath}
\usepackage[some]{background}
\usepackage{lipsum}
\usepackage[english,french]{babel}
\usepackage{hyperref}
\hypersetup{colorlinks,%
    citecolor=black,%
    filecolor=black,%
    linkcolor=black,%
    urlcolor=black} 


\makeatletter
\newenvironment{resume}{%
    \cleardoublepage
    \null\vfil
    \@beginparpenalty\@lowpenalty
    \begin{center}%
        \bfseries\Large {abstract}
        \@endparpenalty\@M
\end{center}}%
{\par\vfil\null}
\makeatother
\begin{document}
\begin{titlepage}
\newgeometry{left=1cm,right=4cm}
\begin{center}
    {\Huge My Title Page}
\end{center}
\end{titlepage}
\newpage
\begin{resume} 
    \addcontentsline{toc}{chapter}{\textnormal{\textit{abstract}}}
    An abstract is a brief summary of a research article, thesis, review, conference proceeding or any in-depth analysis of a particular subject or discipline, and is often used to help the reader quickly ascertain the paper's purpose. When used, an abstract always appears at the beginning of a manuscript, acting as the point-of-entry for any given scientific paper or patent application. Abstracting and indexing services for various academic disciplines are aimed at compiling a body of literature for that particular subject.
\end{resume}
    \tableofcontents
\chapter{Chapter one}
\section{Section one}
\section{Section two}
\end{document}

答案1

我将 leandriis 的评论转化为答案,因为没有答案。

用这个:

\phantomsection
\addcontentsline{toc}{chapter}{\textnormal{\textit{abstract}}}

相关内容