## LaTeX forum ⇒ Page Layout ⇒ "Master/Doctoral Thesis" template abstract vertical alignment

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Eibur
Posts: 3
Joined: Wed Sep 26, 2018 4:12 am

### "Master/Doctoral Thesis" template abstract vertical alignment

Hi,
I am using the "Masters/Doctoral Thesis" template and I have an abstract that ist longer than on page. What happens in the pdf is that the header moves to the bottom of one page and then on the next page the abstract begins which looks quite weird. I guess this is some vertical alignment? Could someone help me to change it so the header is at the top of the page and the abstract follows? The Code for the environment is:
\DeclareDocumentEnvironment{abstract}{ O{} }{%		\addchap*{\abstractname}%		{\chapteralign\normalsize\abstractauthorfont \authorname \par}% Author name		\vspace{\baselineskip}		{\chapteralign\parbox{.7\linewidth}{\chapteralign\normalsize\itshape\abstracttitlefont\@title}\par}% Thesis title		\bigskip\noindent\ignorespaces	}

(Or just have a look for the template "Masters/Doctoral Thesis").

Eibur

Johannes_B
Site Moderator
Posts: 3966
Joined: Thu Nov 01, 2012 4:08 pm
https://github.com/johannesbottcher/MDT ... -next-page

By the way, the code you are showing is completely useless. It has nothing to do with the problem.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Stefan Kottwitz
Posts: 9323
Joined: Mon Mar 10, 2008 9:44 pm
To cite the relevant part (in case the external link changes):

The title of the abstract is at the bottom and the content on the next page

The abstract is flushed to the bottom om the page. If you don't want that, you can use \begin{abstract}[] (note the empty pair of brackets).

Note: This will not happen with the consistentlayout option.

Hint: Abstracts should be reasonably short.

Stefan

Eibur
Posts: 3
Joined: Wed Sep 26, 2018 4:12 am
Thank you both for your quick response! It works well now. I am still quite unexperienced with Latex so I did not know where my problem was in the code. If it is not too much, could you explain why that solves it? Or point me to the right documentation?

Thanks again,
Eibur

Johannes_B
Site Moderator
Posts: 3966
Joined: Thu Nov 01, 2012 4:08 pm
The original template has the abstract centered vertically on the page, which leads to the problem you encountered when the abstract is too long.

Adding the optional argument (even if left empty) keeps avoiding the vertical centering.

There is no official documentation, just the quick guide on github.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Eibur
Posts: 3
Joined: Wed Sep 26, 2018 4:12 am
Ah okay, thank you again. This helped me a lot.