避免摘要垂直对齐

避免摘要垂直对齐

我的摘要是垂直对齐的。我希望它水平居中,但位于页面顶部。

这是我的代码:

\thispagestyle{plain}

\begin{abstract}
\addcontentsline{toc}{chapter}{abstract}
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
\end{abstract}

这可能是由于之前的版权造成的:

\vspace*{\fill}
\begingroup
\centering
\copyright \: Me\\
\vspace{15pt}
Lorem Ipsum

\endgroup
\vspace*{\fill}

\pagebreak

这两个部分包含在我的文档中

\documentclass{report}

\usepackage[english]{babel}

\usepackage{sectsty}
\usepackage{graphicx}
\usepackage[acronym, automake]{glossaries}

\usepackage{indentfirst}

\usepackage[backend=biber, style=apa, sorting=none]{biblatex}

\title{title}
\author{Me}
\date{}
\usepackage{fullpage}

\edef\restoreparindent{\parindent=\the\parindent\relax}
\usepackage{parskip}
\restoreparindent

\makeindex


\begin{document}


\chapterfont{\centering}

\pagebreak
\input{Copyright}

\input{Abstract}



\tableofcontents{}


\chapter{Introduction}

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.



\pagebreak


\section{State of the art}


\printbibliography

\listoffigures



\end{document}

我怎样才能防止垂直对齐的发生?

答案1

默认情况下,类abstract中的report被放在titlepage两个一阶无限可拉伸元素之间,\vfil以使其在页面上垂直居中。覆盖此问题的最快方法是在摘要末尾引入二阶粘合\vfill(两个l而不是一个)。

\documentclass{report}

\begin{document}

\begin{abstract}
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua.
\end{abstract}

\begin{abstract}
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua.\vfill % <--- THIS
\end{abstract}

\end{document}

在此处输入图片描述

答案2

A

尝试此代码

\documentclass{report}

\usepackage[english]{babel}

\usepackage{sectsty}
\usepackage{graphicx}
\usepackage[acronym, automake]{glossaries}
\makeglossaries

\usepackage{indentfirst}

\usepackage[backend=biber, style=apa, sorting=none]{biblatex}

\title{title}
\author{Me}
\date{}
\usepackage{fullpage}

\edef\restoreparindent{\parindent=\the\parindent\relax}
\usepackage{parskip}
\restoreparindent

\makeindex  
\begin{document}
    
\chapterfont{\centering}    

%% Title page
\maketitle

%% copyright page
\thispagestyle{empty}
\vspace*{\fill}
\begin{center}      
    \copyright \: Me\\
    \vspace{15pt}
    Lorem Ipsum
\end{center}
\vspace*{\fill}
\newpage

%% Abstract page    
{\centering \textbf{Abstract}\par} %centered title at the beginning of the  page or use \begin{center} ... \end{center}
\vspace{\baselineskip} %Added space below the first line
\addcontentsline{toc}{chapter}{Abstract} % add Abstract to the table of contents

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

\tableofcontents    % starts a new page

\chapter{Introduction}

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

\newpage    

\section{State of the art}
    
\printbibliography

\listoffigures
    
\end{document}

相关内容