Theses, Books, Title pages ⇒ MastersDoctoralThesis avoid pagebreak between CHAPTERS
MastersDoctoralThesis avoid pagebreak between CHAPTERS
I am using
%Masters/Doctoral Thesis
% LaTeX Template
% Version 2.5 (27/8/17)
which I downloaded here. Actually a very nice and helpful template !!!
I have one question related to chapter change. I have a pagebreak between the chapters which I would like to avoid.
Pagebreak is OK for TOC, Nomenclature, List of Figures etc. but between e.g. Chapter 1 / Chapter 2 / Chapter 3 etc. I do not need a pagebreak.
Is there any way to control that whether in the main.tex or MastersDoctoralThesis.cls?
Thanks a lot for your feedback.
Cheers Michael
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
MastersDoctoralThesis avoid pagebreak between CHAPTERS
Code: Select all
\documentclass{book}\begin{document}\chapter{Heading on the page}Text\begingroup% no newpage\let\cleardoublepage\relax%\renewcommand{\cleardoublepage}{}\chapter{Heading one the same page}Text\endgroup\chapter{Heading after at least one page break}Text\end{document}
The source of the first approach.
MastersDoctoralThesis avoid pagebreak between CHAPTERS
Unfortunately it is mixing up my complete document:
Before: Chapter 1 -> 1.5 pages, Chapter 2 starting as a new page
With the settings proposed:
Chapter 1: First page empty, starting completely mixed up on Page 2 with big gaps between lines, no footer restrictions. Chapter 2: starting somewhere ...
MastersDoctoralThesis avoid pagebreak between CHAPTERS
the problem was, this part needs to be before the \begingroup

% Define some commands to keep the formatting separated from the content
\newcommand{\keyword}[1]{\textbf{#1}}
\newcommand{\tabhead}[1]{\textbf{#1}}
\newcommand{\code}[1]{\texttt{#1}}
\newcommand{\file}[1]{\texttt{\bfseries#1}}
\newcommand{\option}[1]{\texttt{\itshape#1}}
MastersDoctoralThesis avoid pagebreak between CHAPTERS

using the proposed code is helping perfectly for putting chapters together.
But ...
%headsepline, % Uncomment to get a line under the header
is not working anymore.
and how can I disable e.g. Chapter 5. Examples.
I just want on every "normal" page with exception of TOC, Nomenclature etc.) a line as header separator and just on the right side the page number.
BTW: You can the roman page number for TOC etc. be changed from e.g. ii to II (UPPERCASE)?
Many thanks for your help.
Cheers Michael
MastersDoctoralThesis avoid pagebreak between CHAPTERS
MastersDoctoralThesis avoid pagebreak between CHAPTERS
If I include it in the tex file, which binds the chapters together, under "% THESIS CONTENT - CHAPTERS", I would have to put the content of all the chapters into that one file too. Is there a way to keep the original chapter files separate but bind them together in a format where there is no pagebreak in between?
My supervisor asked if I could do that now, and I would prefer not to change too much before the deadline.
I just started on using latex recently, so apologies if I just did not apply Bartmans solution correctly.