
我正在使用以下模板:https://github.com/kks32/phd-thesis-template/releases/tag/v2.3.1
當我編譯並通過 Texstudio 運行時,pdf 為
Title page (1)
Blank page (2) Abstract (3)
Blank page (4) Dedication (5)
Blank page (6) Acknowlegements(7)
Blank page (8)
如何刪除這些空白頁並只有雙頁文字?
答案1
目前聲明、致謝、摘要等是使用未編號的章節排版的(其中有字體命令,我不太喜歡這樣)。在發出 \chapter* 之前,所有定義的環境都會執行 \cleardoulepage。這與書籍類別的 openany 選項發生衝突。
這可能是劍橋論文辦公室所做的設計決定。
您可以解決該行為。請注意,主要內容必須從右側頁面開始。你不能防止出現空白頁。
\documentclass[twoside,openany]{Classes/PhDThesisPSnPDF}
\let\prepareforpagenumberchange\cleardoublepage
\let\cleardoublepage\relax
\input{thesis-info}
\geometry{outer=4cm,showframe}
\begin{document}
\frontmatter
\maketitle
\include{Abstract/abstract}
\listoftables
\prepareforpagenumberchange
\mainmatter
\chapter{Wombat}
Needs to be on a right hand page, so is depending on a working
cleardoublepage
\end{document}