[Tex/LaTex] Classicthesis – Remove blank pages

blank-pageclassicthesis

I am using ClassicThesis in LyX to write my thesis. Unfortunately, my University has a rather large number of inane formatting requirements that force me to change portions of ClassicThesis (defeating the entire point of using it in the first place, but sadly I have no choice).

Apparently my university is unaware that theses are generally published as books, as one such requirement is the removal of ALL blank pages from the document. This includes the blank pages before and after each 'Part' label and after Chapters to ensure the next chapter starts on the right.

I have attempted to search for how to do this, and found previous topics on this subject:

Removing blank pages around "Parts" in Classicthesis

remove blank pages from ClassicThesis

Using 'openany' is the most freuently suggested solution, but I have been completely unable to implement it. I have attempted to edit 'classicthesis.layout' to the following:

# predefined class options (the class is scrreprt from KOMA Script), all can be overridden
ClassOptions
  Other     "fontsize=11pt,paper=a4,oneside,openany,titlepage,numbers=noenddot,headinclude,BCOR=5mm,footinclude=true,cleardoublepage=empty"
  PageStyle ""
  FontSize  ""
End

I have changed 'twoside' to 'oneside' and specified 'openany' – however, this has no effect on the document. I have limited experience with latex; I would greatly appreciate an explanation of how to remove the blank pages, and why what I am currently doing is not working.

Thank you!

Edit

For anyone with a similar problem looking at this in the future, I was able to solve this by inserting the following code around each element that had blank pages

\begingroup
\let\clearpage\relax
\let\cleardoublepage\relax

\endgroup

This requires inserting line breaks manually, but is effective. In LyX, put the above code in an ERT block bracketing places where you want pages removed.

Despite my (somewhat gimmicky) success, I still do not understand why what I attempted in the original question did not work.

Best Answer

I was having the same issue where no other suggestions like openany, oneside, clearpage, etc. worked. At first your method did not work either, but I had to include the blank line before the last line (\endgroup) for it to work. Just thought I'd leave this comment to help anyone else in the future.

Related Question