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).
Post Reply
Eibur
Posts: 3
Joined: Wed Sep 26, 2018 4:12 am

"Master/Doctoral Thesis" template abstract vertical alignment

Post by Eibur »

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:

Code: Select all

\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").

Thank you in advance,
Eibur

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

"Master/Doctoral Thesis" template abstract vertical alignment

Post by Johannes_B »

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.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

"Master/Doctoral Thesis" template abstract vertical alignment

Post by Stefan Kottwitz »

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
LaTeX.org admin
Eibur
Posts: 3
Joined: Wed Sep 26, 2018 4:12 am

"Master/Doctoral Thesis" template abstract vertical alignment

Post by Eibur »

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
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

"Master/Doctoral Thesis" template abstract vertical alignment

Post by Johannes_B »

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

"Master/Doctoral Thesis" template abstract vertical alignment

Post by Eibur »

Ah okay, thank you again. This helped me a lot.
Post Reply