LaTeX forum ⇒ 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

Postby Seanshine » Sun Jul 08, 2018 5:00 pm

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.

Tags:

User avatar
Stefan Kottwitz
Site Admin
Posts: 9104
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Sun Jul 08, 2018 6:14 pm

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
Site admin

Seanshine
Posts: 52
Joined: Sat Apr 28, 2018 9:59 pm

Postby Seanshine » Sun Jul 08, 2018 8:49 pm

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: 9104
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Sun Jul 08, 2018 9:31 pm

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
Site admin

Seanshine
Posts: 52
Joined: Sat Apr 28, 2018 9:59 pm

Postby Seanshine » Sun Jul 08, 2018 9:58 pm

Do you mind if I post my preamble here (again)?

User avatar
Stefan Kottwitz
Site Admin
Posts: 9104
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Sun Jul 08, 2018 10:29 pm

That's fine, go ahead,

Stefan
Site admin

Seanshine
Posts: 52
Joined: Sat Apr 28, 2018 9:59 pm

Postby Seanshine » Sun Jul 08, 2018 11:15 pm

  1. \documentclass[
  2. 11pt,english, onehalfspacing, nolistspacing, liststotoc, headsepline,oneside,
  3. chapterinoneline, reqno, a4paper, toctotoc
  4. ]{MastersDoctoralThesis}
  5.  
  6. \usepackage[utf8]{inputenc}
  7. \usepackage[T1]{fontenc}
  8. \usepackage{babel, xpatch}
  9. \usepackage[backend=bibtex,style=authoryear,natbib=true]{biblatex}
  10. \DeclareLanguageMapping{american}{american-apa}
  11. \usepackage[autostyle=true]{csquotes} % Required to generate language-dependent quotes in the bibliography
  12. \addbibresource{References.bib}
  13.  
  14. \usepackage{amsthm, amsmath, amssymb, amsfonts, exscale, latexsym, float, eucal, mathtools}
  15. \usepackage{booktabs, threeparttable, adjustbox, textcomp, mathpazo, lipsum}
  16. %----------------------------------------------------------------------------------------
  17. % ADDITIONAL THESIS FORMATTING
  18. %----------------------------------------------------------------------------------------
  19. \AtBeginDocument{
  20. \hypersetup{pdftitle=\ttitle} % Set the PDF's title to your title
  21. \hypersetup{pdfauthor=\authorname} % Set the PDF's author to your name
  22. \hypersetup{pdfkeywords=\keywordnames} % Set the PDF's keywords to your keywords
  23. }
  24.  
  25. \renewcommand{\chapterbelowskip}{\vspace{20pt}} % spacing after chapter title
  26. \renewcommand*\chaptermarkformat{\chapapp \thechapter\enskip}
  27. \renewcommand{\chapterfont}{\LARGE\bfseries}
  28. \newcommand{\E}{\mathrm{E}}
  29. \newcommand{\Var}{\mathrm{Var}}
  30. \renewcommand{\baselinestretch}{1.2} % in-text line spacing
  31.  
  32. \makeatletter % align list of figures and tables
  33. \renewcommand*\l@figure{\@dottedtocline{2}{0em}{3.2em}}
  34. \renewcommand*\l@table{\@dottedtocline{2}{0em}{3.2em}}
  35. \makeatother
  36.  
  37. \makeatletter
  38. \patchcmd{\chapter}{\if@openright\cleardoublepage\else\clearpage\fi}{}{}{}
  39. \renewcommand{\checktoopen}{%
  40. \ifdef{\phantomsection}{\phantomsection}{}%
  41. }
  42. \makeatletter
  43.  
  44. %----------------------------------------------------------------------------------------
  45. % MARGIN SETTINGS
  46. %----------------------------------------------------------------------------------------
  47. \geometry{
  48. paper=a4paper, % Change to letterpaper for US letter
  49. inner=1.5cm, % Inner margin
  50. outer=2.5cm, % Outer margin
  51. bindingoffset=0.5cm, % Binding offset
  52. top=0.5cm, % Top margin
  53. bottom=1.0cm, % Bottom margin
  54. %showframe, % Uncomment to show how the type block is set on the page
  55. }
  56.  
  57. \begin{document}
  58. \frontmatter
  59. \pagestyle{plain}
  60.  
  61. %----------------------------------------------------------------------------------------
  62. % THESIS INFORMATION
  63. %----------------------------------------------------------------------------------------
  64. \thesistitle{Measuring the Natural rate of Interest \\ with an emphasis on the Euro Area} % Print it elsewhere with \ttitle
  65. \supervisor{prof. Dr. J. \textsc{Schaumburg}} % Print it elsewhere with \supname
  66. \examiner{} % Print it elsewhere with \examname
  67. \degree{Master of Science in Econometrics} % Print it elsewhere with \degreename
  68. \author{Sean R.E.A. \textsc{Bagcik}} % Print it elsewhere with \authorname
  69.  
  70. \subject{} % Print it elsewhere with \subjectname
  71. \keywords{} % Print it elsewhere with \keywordnames
  72. \university{\href{https://www.vu.nl}{Vrije Universiteit Amsterdam}} % Print it elsewhere with \univname
  73. \department{\href{}{Department of Econometrics and Operations Research}} % Print it elsewhere with \deptname
  74. \faculty{\href{https://sbe.vu.nl}{School of Business and Economics}} % Print it elsewhere with \facname
  75.  
  76. %----------------------------------------------------------------------------------------
  77. % TITLE PAGE
  78. %----------------------------------------------------------------------------------------
  79. \begin{titlepage}
  80. %----------------------------------------------------------------------------------------
  81. % HEADING SECTIONS
  82. %----------------------------------------------------------------------------------------
  83.  
  84. {\centering \includegraphics[width=80mm,scale=0.8]{Figures/VU_logo.png}\\
  85.  
  86. \Small School of Business and Economics\\
  87. \Small Master of Science in Econometrics\\[1.0cm]
  88.  
  89. %----------------------------------------------------------------------------------------
  90. % TITLE SECTION
  91. %----------------------------------------------------------------------------------------
  92.  
  93. {\huge Measuring the Natural Rate of Interest\\ \LARGE with an emphasis on the Euro Area}\\[1.0cm]
  94.  
  95. %----------------------------------------------------------------------------------------
  96. % AUTHOR SECTION
  97. %----------------------------------------------------------------------------------------
  98.  
  99. by\\[0.1cm]
  100. \large \authorname\\[0.5cm]
  101.  
  102. %----------------------------------------------------------------------------------------
  103. % COMMITTEE SECTION
  104. %----------------------------------------------------------------------------------------
  105. \begin{minipage}[t]{0.4\textwidth}
  106. \begin{flushleft}
  107. Supervisor: \\
  108. prof. dr. J. \textsc{Schaumburg}
  109. \end{flushleft}
  110. \end{minipage}
  111. ~
  112. \begin{minipage}[t]{0.4\textwidth}
  113. \begin{flushright}
  114. Second assessor: \\
  115. prof. dr. \textsc{X}\\
  116. \end{flushright}
  117. \end{minipage}\\[1.0cm]
  118.  
  119. {\large \today}\\[1.0cm]
  120.  
  121. \vspace{1cm}\textbf{\textsc{Abstract}}\par}
  122. \noindent\raisebox{.5ex}{\rule{\linewidth}{.4pt}}\par
  123. \lipsum[2] \par
  124. \noindent\raisebox{.5ex}{\rule{\linewidth}{.4pt}}\par
  125. \noindent Keywords: Kalman filter, potential output, monetary policy
  126.  
  127. \end{titlepage}
  128.  
  129. %----------------------------------------------------------------------------------------
  130. % LIST OF CONTENTS/FIGURES/TABLES PAGES
  131. %----------------------------------------------------------------------------------------
  132. \tableofcontents % Prints the main table of contents
  133. \clearpage
  134. \listoffigures % Prints the list of figures
  135. \listoftables % Prints the list of tables
  136.  
  137. %----------------------------------------------------------------------------------------
  138. % THESIS CONTENT - CHAPTERS
  139. %----------------------------------------------------------------------------------------
  140. \mainmatter
  141. \pagestyle{thesis}
  142.  
  143. \include{Chapters/Chapter1}
  144. \include{Chapters/Chapter2}
  145. \include{Chapters/Chapter3}
  146. \include{Chapters/Chapter4}
  147. \include{Chapters/Chapter5}
  148. \include{Chapters/Chapter6}
  149. \include{Chapters/Chapter7}
  150.  
  151. %----------------------------------------------------------------------------------------
  152. % THESIS CONTENT - APPENDICES
  153. %----------------------------------------------------------------------------------------
  154. \appendix
  155. \renewcommand{\thefigure}{A\arabic{figure}}
  156. \setcounter{figure}{0}
  157. \include{Appendices/Appendix}
  158.  
  159. %----------------------------------------------------------------------------------------
  160. % BIBLIOGRAPHY
  161. %----------------------------------------------------------------------------------------
  162. \printbibliography[heading=bibintoc, title={References}]
  163.  
  164. %----------------------------------------------------------------------------------------
  165. \end{document}

User avatar
Johannes_B
Site Moderator
Posts: 3854
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Mon Jul 09, 2018 7:12 am

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

Postby Seanshine » Mon Jul 09, 2018 9:39 am

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: 3854
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Mon Jul 09, 2018 10:45 am

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.


Return to “Page Layout”

Who is online

Users browsing this forum: No registered users and 4 guests