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

Postby Eibur » Wed Sep 26, 2018 4:21 am

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:
  1. \DeclareDocumentEnvironment{abstract}{ O{} }{%
  2. \addchap*{\abstractname}%
  3. {\chapteralign\normalsize\abstractauthorfont \authorname \par}% Author name
  4. \vspace{\baselineskip}
  5. {\chapteralign\parbox{.7\linewidth}{\chapteralign\normalsize\itshape\abstracttitlefont\@title}\par}% Thesis title
  6. \bigskip\noindent\ignorespaces
  7. }

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

Thank you in advance,
Eibur

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

Postby Johannes_B » Wed Sep 26, 2018 7:34 am

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

Postby Stefan Kottwitz » Wed Sep 26, 2018 1:01 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
Site admin

Eibur
Posts: 3
Joined: Wed Sep 26, 2018 4:12 am

Postby Eibur » Thu Sep 27, 2018 10:20 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

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

Postby Johannes_B » Thu Sep 27, 2018 10:35 am

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

Postby Eibur » Fri Sep 28, 2018 9:04 am

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


Return to “Page Layout”

Who is online

Users browsing this forum: No registered users and 3 guests