我正在完成我的论文,我写了摘要,并将所有内容压缩到一页上。现在我意识到我的摘要在左侧页面上,但它需要放在右侧页面上,所以我添加了一条\cleardoublepage
说明。
然而,这样做之后,我的摘要就无法再放在一页纸上了。它现在是一个完整的段落,延伸到了下一页。
\documentclass[a4paper,12pt]{book}
\usepackage{pdfpages}
\usepackage{verbatim}
\usepackage{stmaryrd}
\usepackage{array}
\usepackage{vub}
\usepackage[T1]{fontenc}
\usepackage[scaled]{uarial}
\usepackage{tocloft}
\usepackage{blindtext}
\usepackage{fancyhdr}
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\setlength{\marginparwidth}{0pt}
\makeatletter
\makeatother
\geometry{textwidth=390pt}
\geometry{bindingoffset=2cm}
\begin{document}
\maketitle
% I want a blank page in between title page and abstract
% I tried the following two commands, both show the same issue
\cleardoublepage
\newpage\null\thispagestyle{empty}\newpage
\cleardoublepage
\setcounter{page}{1}
\pagenumbering{roman}
\input{sections/abstract}
% ...
\end{document}
\newpage\null\thispagestyle{empty}\newpage
即使我用而不是添加空白的左侧页面\cleardoublepage
,问题仍然存在。似乎右侧页面比左侧页面短。这可能吗?
这是vub
包裹:
\ProvidesPackage{vub}
\RequirePackage{color}
\RequirePackage{ifxetex}
\RequirePackage{tikz}
\RequirePackage{adjustbox}
% VUB is in Belgium, we use A4
% Additionally, we use `geometry` to play with margins on the title page
\RequirePackage[a4paper]{geometry}
%\RequirePackage[T1]{fontenc}
\RequirePackage{kvoptions}
\DeclareBoolOption[false]{spotcolors}
\DeclareComplementaryOption{nospotcolors}{spotcolors}
\ProcessKeyvalOptions*{}
\ifvub@spotcolors
\RequirePackage[spotcolors]{vubprivate}
\else
\RequirePackage{vubprivate}
\fi
\newcommand\@faculty{Set a faculty using \textbackslash faculty\{\textit{Engineering Sciences}\}}
\newcommand\@subtitle{}
\newcommand\pretitle[1]{%
\makeatletter%
\newcommand\@pretitle{#1}%
\makeatother%
}
\newcommand\promotors[1]{%
\makeatletter%
\newcommand\@promotors{#1}%
\makeatother%
}
\@ifundefined{faculty}{%
\newcommand{\faculty}[1]{%
\makeatletter%
\renewcommand\@faculty{#1}%
\makeatother%
}%
}
\@ifundefined{subtitle}{%
\newcommand{\subtitle}[1]{%
\makeatletter%
\renewcommand\@subtitle{#1}%
\makeatother%
}%
}
\renewcommand\maketitle{
\begin{titlepage}
\newgeometry{left=18mm,top=20mm,right=10mm}
\begin{minipage}{\dimexpr\textwidth}
\raisebox{\dimexpr \triangleH-\height\relax}{\includegraphics[width=5.66cm]{vub_logo_cmyk}}%
\hfill%
\vubtriangle
\end{minipage}
\vfill
\hspace{25mm}\begin{minipage}{\dimexpr\textwidth-58mm}
\ifdefined\@pretitle%
\vubfont\small\color{vuboranje}\@pretitle
\fi
\vubfontbf{\color{vubbleu}\flushleft{\Huge\expandafter\uppercase\expandafter{\@title}}}
\vspace{5mm}
{\color{vubbleu} \LARGE\vubfont\@subtitle}
\vspace{3cm}
{\color{vuboranje} \large\vubfont\@author}
\vspace{5mm}
{\color{vubbleu} \large\vubfont\@date}
\end{minipage}
\vfill
% \hspace{25mm}\begin{minipage}{\dimexpr\textwidth-58mm}
% \ifdefined\@promotors%
% \vubfont{\color{vubbleu}\@promotors}
%
% \vspace{2mm}
% \fi
%
% \vubfontbf{\color{vubbleu}\fontsize{10pt}{10pt}\selectfont \@faculty}
% \end{minipage}
\hspace{25mm}\begin{minipage}{\dimexpr\textwidth-58mm}
\ifdefined\@promotors%
\vubfont{\color{vuboranje}Promotor:\\}
%\vspace{1mm}
\vubfont{\color{vubbleu}\@promotors}
\vspace{2mm}
\fi
\vubfontbf{\color{vubbleu} \@faculty}
\end{minipage}
\restoregeometry
\end{titlepage}
}
\endinput
感谢您的帮助!
编辑:摘要结构如下:
\section*{Abstract}
% ... large text that should fit one page ...
有 6 行内容延伸到了下一页。
为了让您直观地了解正在发生的事情以及为什么我认为右侧页面较短,这是没有白页的(因此这是左侧页面):
带有白页(这是右页):
请注意,我保留了两个版本共同的短语。
答案1
您的问题是您正在更改组内的页面几何形状,即 titlepage 环境。这是错误的。在文档中间更改页面几何形状并不容易,并且\newgeometry
应\restoregeometry
始终在文档级别使用。在组内使用时会导致不一致的 \textheight:
\documentclass{book}
\usepackage{geometry,lipsum}
\begin{document}
\begingroup
\newgeometry{left=18mm,top=20mm,right=10mm}
blub
\restoregeometry
\endgroup
\lipsum \lipsum \lipsum
\end{document}
\enlargethispage
如果您更正了标题页代码,当前摘要页面将会变短。因此,如果您希望将所有内容保留在一页上,则必须缩短摘要文本或使用。