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

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

Stefan Kottwitz
Site Admin
Posts: 10324
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: 10324
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: 10324
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

Code, edit and compile here:
\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}{}%
}
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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