我正在使用文档hyperref
类report
。
要创建一个类似于摘要的致谢页面,我有
\documentclass[a4paper, 11pt]{report}
\usepackage{hyperref}
\title{My Title}
\author{Matt}
\begin{document}
\pagenumbering{Alph}
\maketitle
\phantomsection
\addcontentsline{toc}{chapter}{Abstract}
\begin{abstract}
an abstract
\end{abstract}
\newpage
\phantomsection
\addcontentsline{toc}{chapter}{Acknowledgements}
\renewcommand{\abstractname}{Acknowledgements}
\begin{abstract}
I would like to thank blablabla
\end{abstract}
\newpage\phantomsection\addcontentsline{toc}{chapter}{Contents}\tableofcontents
\end{document}
但在我的目录中,摘要和致谢页都标有相同的页码(两页i
)
我怎样才能使这些“摘要”被视为单独的页面?
答案1
将选项添加notitlepage
到文档类:
\documentclass[notitlepage]{report}
然后重写您发布的代码
\pagenumbering{Alph}
\maketitle\thispagestyle{empty}
\newpage
\setcounter{page}{1}
\phantomsection
\addcontentsline{toc}{chapter}{Abstract}
\begin{abstract}
an abstract
\end{abstract}
\newpage
\phantomsection
\addcontentsline{toc}{chapter}{Acknowledgements}
\renewcommand{\abstractname}{Acknowledgements}
\begin{abstract}
I would like to thank blablabla
\end{abstract}
编辑
使用您更正的 MWE 和您的评论,尝试以下方法:
\documentclass[a4paper,11pt,notitlepage]{report}
\usepackage{hyperref}
\title{My Title}
\author{Matt}
\begin{document}
\pagenumbering{Alph}
\maketitle\thispagestyle{empty}
\newpage
\null\vfill
\setcounter{page}{1}
\phantomsection
\addcontentsline{toc}{chapter}{Abstract}
\begin{abstract}
an abstract
\end{abstract}
\vskip4cm\vfill
\newpage
\null\vfill
\phantomsection
\addcontentsline{toc}{chapter}{Acknowledgements}
\renewcommand{\abstractname}{Acknowledgements}
\begin{abstract}
I would like to thank blablabla
\end{abstract}
\vskip4cm\vfill
\newpage
\phantomsection
\addcontentsline{toc}{chapter}{Contents}
\tableofcontents
\end{document}
请注意,我添加它\vskip4cm
是出于美观考虑,您可以减少它或将其更改为\null
。