如何更改 Overleaf 模板中的页面布局?

如何更改 Overleaf 模板中的页面布局?

我正在使用 Overleaf 的模板在此处输入链接描述

但是我不知道在哪里可以更改页面布局。我想在我的Abstract页面上写更多内容,而其他页面保持与模板相同。

如果我使用这个:

\usepackage[top=2cm,left=1.2cm,right=1.2cm, bottom=1cm]{geometry}

它会改变所有页面。我只想要Abstract页面。

下图中,我想将文字Abstract稍微移到顶部,以便我可以写更多内容。但是其他标题仍与模板相同,我可以这样做吗?

例如:

\include{structure/abstract}  %-> page size larger

\include{structure/acknowledgements}  %--> page remain in original size

在此处输入图片描述

  \documentclass[12pt,oneside]{book}  % Remove draft option to show figures (for final draft), otherwise keep for faster production

\usepackage{uorthesis}  % Loads the LaTeX style package
\usepackage[backend=biber, style=authoryear, dashed=false]{biblatex}
\addbibresource{references.bib}


\usepackage{titlesec}
% \titleformat{\chapter}[block]
%   {\normalfont\sffamily\LARGE\bfseries\filcenter}
%   {\filcenter\chaptertitlename\ \thechapter\filcenter\\}{20pt}{\huge}
  
  
\titleformat{\chapter}[block]   {\normalfont\sffamily\LARGE\bfseries\filcenter}   {\filcenter\chaptertitlename\ \thechapter\filcenter\\}{20pt}{\huge}[{\titlerule[1pt]}]
  
  
  
 
% Put custom packages to be loaded here
% \usepackage{linguex}  % For linguistic examples
% \usepackage{tikz}     % For drawing

\begin{document}

% Title page


% All subsequent pages must be numbered, title page is considered page i,
% front matter is numbered in lowercase Roman numerals
\pagestyle{fancy}
\pagenumbering{roman}
\setcounter{page}{2}
\doublespacing

%%%%%%%%%%%%%%%%%%%% DISSERTATION CONTENT %%%%%%%%%%%%%%%%%%%%

% Regular numbering starts now, first page of first chapter is page 1
\clearpage
\setcounter{page}{0}
\pagenumbering{arabic}

% Body


\include{structure/abstract}

\include{structure/acknowledgements}



% References
\clearpage
\addcontentsline{toc}{chapter}{Bibliography}
\markboth{\MakeUppercase{Bibliography}}{}
\singlespacing
\printbibliography


\end{document}

uorthesis.sty 文件:

% This defines everything necessary for a thesis
% Master's/PhD at UoR (or anywhere else).
%
% Do what you will with this package
% 
\NeedsTeXFormat{LaTeX2e}[1994/06/01]
\ProvidesPackage{uorthesis}
  [2018/01/18 v0.01 LaTeX package for UOR thesis]

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{microtype}
\usepackage[english]{babel}
\usepackage{graphicx}
\usepackage{enumitem}
\setlist{nosep} % Removes too much vertical spacing in lists
\usepackage{booktabs}           % makes tables look good
\usepackage{fancyhdr}           % For page number in the upper right (required) and other running headers(optional)
\usepackage{setspace}           % For double-spacing (required)
\usepackage{titlesec}           % For keeping chapter/chapter titles single-spaced
\usepackage{etoolbox}           % For the flag determining if front matter goes into the TOC
\usepackage{float}              % Helps float images to the top
\RequirePackage{xcolor}
% Define custom colors
\definecolor{darkblue}{rgb}{0, 0, 0.5}
\usepackage[colorlinks=true, allcolors=darkblue]{hyperref}           % Adds hyperlinks in the pdf
\usepackage{csquotes}           % Makes quotes look good
\usepackage[font=small,labelfont={bf,sf}, textfont={sf}, justification=centering]{caption}

%% Font setup
\usepackage{mathptmx}
% \usepackage{lmodern}
\usepackage{helvet}

% Header height (to avoid fancyhdr error)
\setlength{\headheight}{13.6pt}

% Header formatting for regular pages
\fancyhf{}
\fancyhead[L]{\it\small\leftmark}
\fancyhead[R]{\small\thepage}

% Header formatting for chapter title pages
\fancypagestyle{plain}{%
  \fancyhf{}
  \fancyhead[R]{\small\thepage}
  \renewcommand{\headrulewidth}{0pt}
}

% Formatting of chapter and chapter titles: keep them single-spaced in the midst of double-spaced text

\usepackage{sectsty}
\titleformat{\chapter}[hang]{\Huge\sffamily\bfseries}{\thechapter{. }}{0pt}{\Huge}
\allsectionsfont{\normalfont\sffamily\bfseries}
\usepackage{subfigure}
\usepackage[subfigure]{tocloft} % subfigure option only if using subfigure package
\renewcommand{\cfttoctitlefont}{\Huge \bfseries \sffamily} % ToC title
\addto\captionsenglish{
\renewcommand{\listfigurename}{\textsf{List of Figures}}
\renewcommand{\listtablename}{\textsf{List of Tables}}
}

% Flag for whether to add front matter to TOC
\newtoggle{fulltoc}
\toggletrue{fulltoc}  % Change to \togglefalse{fulltoc} to remove front matter
\renewcommand{\contentsname}{Table of Contents}

\endinput
%%
%% End of file `uorthesis.sty'.

相关内容