如何使页面内容不垂直居中?

如何使页面内容不垂直居中?

我的页面默认垂直居中: 在此处输入图片描述

代码中没有 /vfill 或 /vspace{fill} 所以我不确定问题是什么

代码:

\documentclass{gradthesis}

\begin{document}
    \printcoverpage

    \begin{abstract}
        \vspace{1cm}
        Abstract
    \end{abstract}
    
    \tableofcontents
    \newpage
    \thesisTOF
    \newpage
    \thesisTOT
    
    \newpage
    \input{chapters/chapter1}
    
    \newpage
    \input{chapters/chapter2}
    
    \newpage
    \input{chapters/chapter3}
    
    \bibliography{references}
    \bibliographystyle{unsrt}
\end{document}

gradthesis.cls 文件:

\def\lxdef{\long\xdef}
\def\@classname {gradthesis}

\LoadClass[12pt]{report}

\usepackage[utf8]{inputenc}
\usepackage{comment}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage{fancyhdr}
\usepackage{natbib}
\RequirePackage[table,figure]{totalcount}
\RequirePackage[titletoc]{appendix}

\gdef\@templateVersion{1.0.0}
\gdef\@templateDate{06/02/2021}
\gdef\@templateAuthor{Dania Alaaeldin}

\ProvidesClass{\@classname}[\@templateDate \@templateVersion \@templateAuthor]

\graphicspath{ {./logos/} }

\lxdef \@universityname {October University for Modern Sciences and Arts}
\newcommand{\universityname}[1]{\xdef\@universityname{#1}}
\lxdef \@facultyname {Faculty of Computer Science}
\newcommand{\facultyname}[1]{\xdef\@facultyname{#1}}
\lxdef \@subtitle {Graduation Project Thesis}
\newcommand{\subtitle}[1]{\xdef\@subtitle{#1}}
\lxdef \@authorid {182967}
\newcommand{\authorid}[1]{\xdef\@authorid{#1}}
\lxdef \@supervisor {Supervised By: Dr. Ahmed Farouk}
\newcommand{\supervisor}[1]{\xdef\@supervisor{#1}}
\lxdef \@docdate {Fall 2020}
\newcommand{\docdate}[1]{\xdef\@docdate{#1}}
\lxdef \@thesistitle {3D Segmentation and Automated 2D Sketching Tutorials}
\newcommand{\thesistitle}[1]{\xdef\@thesistitle{#1}}
\lxdef \@thesisauthor {Dania Alaaeldin}
\newcommand{\thesisauthor}[1]{\xdef\@thesisauthor{#1}}

\pagestyle{empty}
\fancyhf{}
\rhead{\@thesistitle}
\rfoot{Page \thepage}

\renewcommand\thesection{\Roman{section}}
\renewcommand\thesubsection{\thesection.\Roman{subsection}}
\renewcommand\thesubsubsection{\thesubsection.\roman{subsubsection}}
\renewcommand{\bibname}{References}

\setcounter{tocdepth}{3}
\setcounter{secnumdepth}{3}

\newcommand{\thesisTOF}{
    \iftotalfigures
        \cleardoublepage
        \listoffigures
    \fi
}

\newcommand{\thesisTOT}{
    \iftotaltables
        \cleardoublepage
        \listoftables
    \fi
}

\newcommand{\@coverpage}{
    \begin{titlepage}
    
        \centering
            \includegraphics[scale=0.25]{msalogo} \hspace{0.4cm}
            \includegraphics[width=2.3in, height=0.7in]{greenwichlogo} \hspace{0.5cm}
            \includegraphics[scale=0.15]{cslogo}
            
            \vspace{3.5cm}
            {\large \@subtitle \par \vspace{1cm}}
            {\LARGE \textbf{\@thesistitle} \par}
            \vspace{1cm}
            {\Large \@thesisauthor \par}
            {\large \@authorid \par}
            \vspace{0.45cm}
            {\large \@supervisor \par}
            \vspace{3.5cm}
        
            {\@universityname \par \vspace{0.25cm} \@facultyname \par \vspace{0.25cm} \@docdate}
    
    \end{titlepage}
}

\newcommand{\printcoverpage}{
    \@coverpage
}

\renewcommand*\contentsname{Table of Contents}

答案1

该类基于标准report类,默认情况下标题页和摘要垂直居中。

报告类有一个[notitlepage]不执行此操作的选项,或者等效地,您可以\@titlepagefalse在类中使用它来禁用此行为,无论是在任何地方还是仅针对摘要。

相关内容