Page LayoutAvoid blank space after chapters

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Seanshine
Posts: 52
Joined: Sat Apr 28, 2018 9:59 pm

Avoid blank space after chapters

Post by Seanshine »

It does work perfectly in a fresh copy of the template. So something in my version is blocking it.
I didn't change anything in the class-file, so it has to be something in the preamble.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Avoid blank space after chapters

Post by Stefan Kottwitz »

Perhaps compare, to find the difference. Or post a compilable code that doesn't work as expected, otherwise it's hardly possible to tell what's going on.

Stefan
LaTeX.org admin
Seanshine
Posts: 52
Joined: Sat Apr 28, 2018 9:59 pm

Avoid blank space after chapters

Post by Seanshine »

Both are near identical, the difference is in some added packages. I am amazed by how difficult it is to remove the blank space :shock:
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Avoid blank space after chapters

Post by Stefan Kottwitz »

The explanation is usually simple.

Just that the difference is in some added packages is not enough information for me. ;-) I need to know what is different. Or what is the complete case in your code.

Stefan
LaTeX.org admin
Seanshine
Posts: 52
Joined: Sat Apr 28, 2018 9:59 pm

Avoid blank space after chapters

Post by Seanshine »

Do you mind if I post my preamble here (again)?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Avoid blank space after chapters

Post by Stefan Kottwitz »

That's fine, go ahead,

Stefan
LaTeX.org admin
Seanshine
Posts: 52
Joined: Sat Apr 28, 2018 9:59 pm

Avoid blank space after chapters

Post by Seanshine »

Code: Select all

\documentclass[
11pt,english, onehalfspacing, nolistspacing, liststotoc, headsepline,oneside, 
chapterinoneline, reqno, a4paper, toctotoc
]{MastersDoctoralThesis}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{babel, xpatch}
\usepackage[backend=bibtex,style=authoryear,natbib=true]{biblatex}
\DeclareLanguageMapping{american}{american-apa}
\usepackage[autostyle=true]{csquotes} % Required to generate language-dependent quotes in the bibliography
\addbibresource{References.bib}

\usepackage{amsthm, amsmath, amssymb, amsfonts, exscale, latexsym, float, eucal, mathtools}
\usepackage{booktabs, threeparttable, adjustbox, textcomp, mathpazo, lipsum}
%----------------------------------------------------------------------------------------
%	ADDITIONAL THESIS FORMATTING
%----------------------------------------------------------------------------------------
\AtBeginDocument{
\hypersetup{pdftitle=\ttitle} % Set the PDF's title to your title
\hypersetup{pdfauthor=\authorname} % Set the PDF's author to your name
\hypersetup{pdfkeywords=\keywordnames} % Set the PDF's keywords to your keywords
}

\renewcommand{\chapterbelowskip}{\vspace{20pt}} % spacing after chapter title
\renewcommand*\chaptermarkformat{\chapapp \thechapter\enskip}
\renewcommand{\chapterfont}{\LARGE\bfseries}
\newcommand{\E}{\mathrm{E}}
\newcommand{\Var}{\mathrm{Var}}
\renewcommand{\baselinestretch}{1.2} % in-text line spacing

\makeatletter % align list of figures and tables
 \renewcommand*\l@figure{\@dottedtocline{2}{0em}{3.2em}}
 \renewcommand*\l@table{\@dottedtocline{2}{0em}{3.2em}}
\makeatother

\makeatletter
\patchcmd{\chapter}{\if@openright\cleardoublepage\else\clearpage\fi}{}{}{}
\renewcommand{\checktoopen}{%
        \ifdef{\phantomsection}{\phantomsection}{}%
}
\makeatletter

%----------------------------------------------------------------------------------------
%	MARGIN SETTINGS
%----------------------------------------------------------------------------------------
\geometry{
	paper=a4paper, % Change to letterpaper for US letter
	inner=1.5cm, % Inner margin
	outer=2.5cm, % Outer margin
	bindingoffset=0.5cm, % Binding offset
	top=0.5cm, % Top margin
	bottom=1.0cm, % Bottom margin
	%showframe, % Uncomment to show how the type block is set on the page
}

\begin{document}
\frontmatter
\pagestyle{plain}

%----------------------------------------------------------------------------------------
%	THESIS INFORMATION
%----------------------------------------------------------------------------------------
\thesistitle{Measuring the Natural rate of Interest \\ with an emphasis on the Euro Area} % Print it elsewhere with \ttitle
\supervisor{prof. Dr. J. \textsc{Schaumburg}} % Print it elsewhere with \supname
\examiner{} % Print it elsewhere with \examname
\degree{Master of Science in Econometrics} % Print it elsewhere with \degreename
\author{Sean R.E.A. \textsc{Bagcik}} % Print it elsewhere with \authorname

\subject{} % Print it elsewhere with \subjectname
\keywords{} % Print it elsewhere with \keywordnames
\university{\href{https://www.vu.nl}{Vrije Universiteit Amsterdam}} % Print it elsewhere with \univname
\department{\href{}{Department of Econometrics and Operations Research}} % Print it elsewhere with \deptname
\faculty{\href{https://sbe.vu.nl}{School of Business and Economics}} % Print it elsewhere with \facname

%----------------------------------------------------------------------------------------
%	TITLE PAGE
%----------------------------------------------------------------------------------------
\begin{titlepage}
%----------------------------------------------------------------------------------------
%	HEADING SECTIONS
%----------------------------------------------------------------------------------------

{\centering \includegraphics[width=80mm,scale=0.8]{Figures/VU_logo.png}\\

\Small School of Business and Economics\\
\Small Master of Science in Econometrics\\[1.0cm]

%----------------------------------------------------------------------------------------
%	TITLE SECTION
%----------------------------------------------------------------------------------------

{\huge  Measuring the Natural Rate of Interest\\ \LARGE with an emphasis on the Euro Area}\\[1.0cm]

%----------------------------------------------------------------------------------------
%	AUTHOR SECTION
%----------------------------------------------------------------------------------------

by\\[0.1cm]
\large \authorname\\[0.5cm]

%----------------------------------------------------------------------------------------
%	COMMITTEE SECTION
%----------------------------------------------------------------------------------------
\begin{minipage}[t]{0.4\textwidth}
\begin{flushleft} 
    Supervisor: \\
prof. dr. J. \textsc{Schaumburg}
\end{flushleft}
\end{minipage}
~
\begin{minipage}[t]{0.4\textwidth}
\begin{flushright}
Second assessor: \\
prof. dr. \textsc{X}\\
\end{flushright}
\end{minipage}\\[1.0cm]

{\large \today}\\[1.0cm]

\vspace{1cm}\textbf{\textsc{Abstract}}\par}
    \noindent\raisebox{.5ex}{\rule{\linewidth}{.4pt}}\par
    \lipsum[2] \par
    \noindent\raisebox{.5ex}{\rule{\linewidth}{.4pt}}\par
    \noindent Keywords: Kalman filter, potential output, monetary policy 

\end{titlepage}

%----------------------------------------------------------------------------------------
%	LIST OF CONTENTS/FIGURES/TABLES PAGES
%----------------------------------------------------------------------------------------
\tableofcontents % Prints the main table of contents
\clearpage
\listoffigures % Prints the list of figures
\listoftables % Prints the list of tables

%----------------------------------------------------------------------------------------
%	THESIS CONTENT - CHAPTERS
%----------------------------------------------------------------------------------------
\mainmatter
\pagestyle{thesis}

\include{Chapters/Chapter1}
\include{Chapters/Chapter2}
\include{Chapters/Chapter3}
\include{Chapters/Chapter4}
\include{Chapters/Chapter5}
\include{Chapters/Chapter6}
\include{Chapters/Chapter7}

%----------------------------------------------------------------------------------------
%	THESIS CONTENT - APPENDICES
%----------------------------------------------------------------------------------------
\appendix
\renewcommand{\thefigure}{A\arabic{figure}}
\setcounter{figure}{0}
\include{Appendices/Appendix}

%----------------------------------------------------------------------------------------
%	BIBLIOGRAPHY
%----------------------------------------------------------------------------------------
\printbibliography[heading=bibintoc, title={References}]

%----------------------------------------------------------------------------------------
\end{document}
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Avoid blank space after chapters

Post by Johannes_B »

Ok, i gotta ask once again. Are the list of figures and list of tables on the same page? Is there a page break? There clearly is a break after the table of contents, since you explicitely asked for that.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Seanshine
Posts: 52
Joined: Sat Apr 28, 2018 9:59 pm

Avoid blank space after chapters

Post by Seanshine »

Yes, it works for the contents / lof / lot, I added a pagebreak to avoid overlap here.

After that, it didn't work anymore.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Avoid blank space after chapters

Post by Johannes_B »

You are far from specific. Please upload a pdf or log file or something that is not a description of you.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply