我对 LaTeX 完全陌生——今天早上才开始使用,遇到了一个恼人的问题。不知何故,当我编译 LaTeX 代码时,第 1 章标题的垂直位置高于所有后续章节标题。下面是我正在使用的主文件的副本以及
\documentclass[12pt,a4paper]{report}
\usepackage{setspace}
%%%%%%%%%%%%%%%%
%% Document %%
%%%%%%%%%%%%%%%%
\begin{document}
%%%%%%%%%%%%%%%%%%
%% Title Page %%
%%%%%%%%%%%%%%%%%%
\begin{titlepage}
\begin{center}
\vspace*{1in}
{\LARGE Quantifying rates of landscape evolution in carbonate terrains using U-Pb dating of speleothems}
\par
\vspace{1.5in}
{\large Christopher James Martin Smith}
\par
\vfill
A dissertation submitted to the University of Bristol in accordance with the requirements for award of the degree of Doctor of Philosophy in the Faculty of Science.
\par
\vspace{0.5in}
School of Geographical Sciences
\par
\vspace{0.5in}
University of Bristol
\par
\vspace{0.5in}
September 2014
\end{center}
\end{titlepage}
%%%%%%%%%%%%%%%%%%%%%%%%%
%% Preface Numbering %%
%%%%%%%%%%%%%%%%%%%%%%%%%
\pagenumbering{roman}
%%%%%%%%%%%%%%%%%%%
%% Declaration %%
%%%%%%%%%%%%%%%%%%%
\newpage
\label{declaration}
\addcontentsline{toc}{chapter}{Declaration}
\chapter*{Declaration}
\par
I declare that the work in this dissertation was carried out in accordance with the requirements of the University's Regulations and Code of Practice for Research Degree Programmes and that it has not been submitted for any other academic award. Except where indicated by specific reference in the text, the work is the candidate's own work. Work done in collaboration with, or with the assistance of, others, is indicated as such. Any views expressed in the dissertation are those of the author.
\\
\\
\\
\\
\par
SIGNED:
\\
\\
\par
DATE:
%%%%%%%%%%%%%%%%%%%%%%%%
%% Acknowledgements %%
%%%%%%%%%%%%%%%%%%%%%%%%
\newpage
\label{acknowledgements}
\addcontentsline{toc}{chapter}{Acknowledgements}
\chapter*{Acknowledgements}
\par
Text here.
%%%%%%%%%%%%%%%%
%% Abstract %%
%%%%%%%%%%%%%%%%
\newpage
\label{abstract}
\addcontentsline{toc}{chapter}{Abstract}
\chapter*{Abstract}
\par
Text here.
%%%%%%%%%%%%%%%%%%%%%%
%% Contents Pages %%
%%%%%%%%%%%%%%%%%%%%%%
\tableofcontents
\newpage
\label{listoffigures}
\addcontentsline{toc}{chapter}{List of Figures}
\listoffigures
\newpage
\label{listoftables}
\addcontentsline{toc}{chapter}{List of Tables}
\listoftables
\newpage
\label{nomeclature}
\addcontentsline{toc}{chapter}{Nomenclature}
\chapter*{Nomenclature}
\newpage
%%%%%%%%%%%%%%%%%%%%%%%%%
%% Preface Numbering %%
%%%%%%%%%%%%%%%%%%%%%%%%%
\pagenumbering{arabic}
%%%%%%%%%%%%%%%%%
% Chapter Title %
%%%%%%%%%%%%%%%%%
\chapter{Introduction}
\label{ch:intro}
%%%%%%%%%%%
% Spacing %
%%%%%%%%%%%
\doublespacing
%%%%%%%%%%%%
% Sections %
%%%%%%%%%%%%
\section{Subsection}
\subsection{Sub-subsection}
\par
%%%%%%%%%%%%%%%%%
% Chapter Title %
%%%%%%%%%%%%%%%%%
\chapter{Literature Review}
\label{ch:litrev}
%%%%%%%%%%%
% Spacing %
%%%%%%%%%%%
\doublespacing
%%%%%%%%%%%%
% Sections %
%%%%%%%%%%%%
\section{Radioactive Decay}
\subsection{Law of radioactivity}
\par
\bibliographystyle{plain}
\bibliography{thesis}
\end{document}
如您所见,所调用章节的格式完全相同,那么为什么第 1 章在页面上的位置(编译并以 pdf 形式查看时)会比第 2 章更高?
这可能与调用章节部分之前出现的页码代码有关吗?另外,我不知道这是否相关,但我正在使用 TexMaker 来编译我的代码。
非常感谢,克里斯
答案1
问题是,有些章节标题在范围内\doubelspace
,有些不在。双倍行距很糟糕,但如果必须这样做,只需在开始时做一次即可。
\documentclass[12pt,a4paper]{report}
\usepackage{setspace}
%%%%%%%%%%%%%%%%
%% Document %%
%%%%%%%%%%%%%%%%
\begin{document}
%%%%%%%%%%%%%%%%%%
%% Title Page %%
%%%%%%%%%%%%%%%%%%
\begin{titlepage}
\begin{center}
\vspace*{1in}
{\LARGE Quantifying rates of landscape evolution in carbonate terrains using U-Pb dating of speleothems\par}%<<<<<<<<<<
\par
\vspace{1.5in}
{\large Christopher James Martin Smith}
\par
\vfill
A dissertation submitted to the University of Bristol in accordance with the requirements for award of the degree of Doctor of Philosophy in the Faculty of Science.
\par
\vspace{0.5in}
School of Geographical Sciences
\par
\vspace{0.5in}
University of Bristol
\par
\vspace{0.5in}
September 2014
\end{center}
\end{titlepage}
\doublespacing
%%%%%%%%%%%%%%%%%%%%%%%%%
%% Preface Numbering %%
%%%%%%%%%%%%%%%%%%%%%%%%%
\pagenumbering{roman}
%%%%%%%%%%%%%%%%%%%
%% Declaration %%
%%%%%%%%%%%%%%%%%%%
\newpage
\label{declaration}
\addcontentsline{toc}{chapter}{Declaration}
\chapter*{Declaration}
\par
I declare that the work in this dissertation was carried out in accordance with the requirements of the University's Regulations and Code of Practice for Research Degree Programmes and that it has not been submitted for any other academic award. Except where indicated by specific reference in the text, the work is the candidate's own work. Work done in collaboration with, or with the assistance of, others, is indicated as such. Any views expressed in the dissertation are those of the author.
\\
\\
\\
\\
\par
SIGNED:
\\
\\
\par
DATE:
%%%%%%%%%%%%%%%%%%%%%%%%
%% Acknowledgements %%
%%%%%%%%%%%%%%%%%%%%%%%%
\newpage
\label{acknowledgements}
\addcontentsline{toc}{chapter}{Acknowledgements}
\chapter*{Acknowledgements}
\par
Text here.
%%%%%%%%%%%%%%%%
%% Abstract %%
%%%%%%%%%%%%%%%%
\newpage
\label{abstract}
\addcontentsline{toc}{chapter}{Abstract}
\chapter*{Abstract}
\par
Text here.
%%%%%%%%%%%%%%%%%%%%%%
%% Contents Pages %%
%%%%%%%%%%%%%%%%%%%%%%
\tableofcontents
\newpage
\label{listoffigures}
\addcontentsline{toc}{chapter}{List of Figures}
\listoffigures
\newpage
\label{listoftables}
\addcontentsline{toc}{chapter}{List of Tables}
\listoftables
\newpage
\label{nomeclature}
\addcontentsline{toc}{chapter}{Nomenclature}
\chapter*{Nomenclature}
\newpage
%%%%%%%%%%%%%%%%%%%%%%%%%
%% Preface Numbering %%
%%%%%%%%%%%%%%%%%%%%%%%%%
\pagenumbering{arabic}
%%%%%%%%%%%%%%%%%%%%%%%%
%% Calling sections %%
%%%%%%%%%%%%%%%%%%%%%%%%
\clearpage
%%%%%%%%%%%%%%%%%
% Chapter Title %
%%%%%%%%%%%%%%%%%
\chapter{Introduction}
\label{ch:intro}
%%%%%%%%%%%
% Spacing %
%%%%%%%%%%%
%%%%%%%%%%%%
% Sections %
%%%%%%%%%%%%
\section{Subsection}
\subsection{Sub-subsection}
\par
\clearpage
% Chapter Title %
%%%%%%%%%%%%%%%%%
\chapter{Literature Review}
\label{ch:litrev}
%%%%%%%%%%%
% Spacing %
%%%%%%%%%%%
%%%%%%%%%%%%
% Sections %
%%%%%%%%%%%%
\section{Radioactive Decay}
\subsection{Law of radioactivity}
\par
\end{document}