kks32 / phd-thesis-template

A LaTeX / XeLaTeX / LuaLaTeX PhD thesis template for Cambridge University Engineering Department (CUED)
http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/ThesisStyle/
MIT License
834 stars 399 forks source link

Openany #125

Open johannesbottcher opened 7 years ago

johannesbottcher commented 7 years ago

Hi @kks32,

at the moment declaration, acknowledgements, abstract etc are typeset using an unnumbered chapter (with font commands in it, i am not very fond of that). Before \chapter* is issued, all those defined environment carry out a \cleardoulepage. That clashes with the openany option of the book class. Is this intentional?

If not, is there a chance you can remove the extra \cleardoublepage? I didn't check which influence this would have on the also issued \setsinglecolumn.

\documentclass[twoside,openany]{Classes/PhDThesisPSnPDF}
%\let\cleardoublepage\relax
\input{thesis-info}

\geometry{outer=4cm,showframe}
\begin{document}

\frontmatter
\maketitle
\include{Abstract/abstract}
\listoftables

\mainmatter

\chapter{Wombat}
Needs to be on a right hand page, so is depending on a working
cleardoublepage
\end{document}

Reference link to TeX.SX

kks32 commented 7 years ago

Thanks @johannesbottcher! I have removed the \cleardoublepage. I guess it is a lot more flexible to be able to run openany. Please have a look at: https://github.com/kks32/phd-thesis-template/commit/880e7050f189465a16fbeb014f03bb27b0ae5136 and if you are happy, I will merge it to the master branch.

johannesbottcher commented 7 years ago

Right before \pagenumbering it is ecessary, i added comments.

kks32 commented 7 years ago

Thanks, I do have \cleardoublepage but I'm checking for openany to do a \cleardoublepage or a \clearpage.

johannesbottcher commented 7 years ago

Yes, i know. But openany is not influenced by \mainmatter. Check the original book.cls for \mainmatter.

LaTeX starts counting from 1 again, and page one is a right handed page. clearing to a right handed page is needed, or else page layout is fucked up screwed.

kks32 commented 7 years ago

Yes, sorry. I have reverted back \cleardoublepage for mainmatter and frontmatter