LaTeX forum ⇒ Page LayoutHow to remove extra contents from Abstract title? Topic is solved

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Ahmadnia2011
Posts: 8
Joined: Wed Nov 01, 2017 4:02 pm

How to remove extra contents from Abstract title?

Postby Ahmadnia2011 » Wed Nov 01, 2017 4:11 pm

Hi,
I'm using "Masters/Doctoral Thesis" template,
in the Abstract page, between Abstract title and body text, my name, title of thesis, and university name appear,
while I don't need to these information in the Abstract page and I need to remove them from this page.
(I mean that I just need the Abstract title and Abstract texts, and no more thing between them).
Would you please guide me to how remove "my name, title of thesis, and university name" from the abstract page?
Thanks,
Ben

User avatar
Stefan Kottwitz
Site Admin
Posts: 8544
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Wed Nov 01, 2017 7:57 pm

Hi Ben,

welcome to the forum!

You can simply write this before \begin{document} in your main.tex:

  1. \DeclareDocumentEnvironment{abstract}{ O{} }{
  2. \checktoopen
  3. \tttypeout{\abstractname}
  4. #1%added to be able to have abstract more than one page long
  5. \thispagestyle{plain}
  6. \begin{center}
  7. {\huge\textit{\abstractname} \par}
  8. \end{center}
  9. }


This changes the abstract. You can modify this code like you wish.

Stefan
Site admin

Ahmadnia2011
Posts: 8
Joined: Wed Nov 01, 2017 4:02 pm

Postby Ahmadnia2011 » Wed Nov 01, 2017 10:31 pm

Thanks dear Stefan,

Applying the code, the extra words have been removed, but when I uncomment "consistentlayout" to change the layout of the abstract and acknowledgements pages to match the default layout, abstract page seems not the same as acknowledgments page. Abstract page is not as normal as the rest.
Any possibility for this problem?

User avatar
Stefan Kottwitz
Site Admin
Posts: 8544
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Wed Nov 01, 2017 10:39 pm

You could instead insert the whole abstract stuff from the class before \begin{document}:

  1. \makeatletter
  2. \ifbool{consistentlayout}{
  3. \DeclareDocumentEnvironment{abstract}{ O{} }{%
  4. \addchap*{\abstractname}%
  5. {\chapteralign\normalsize\abstractauthorfont \authorname \par}% Author name
  6. \vspace{\baselineskip}
  7. {\chapteralign\parbox{.7\linewidth}{\chapteralign\normalsize\itshape\abstracttitlefont\@title}\par}% Thesis title
  8. \bigskip\noindent\ignorespaces
  9. }%
  10. {}%end alt-abstract
  11. }{%
  12. \DeclareDocumentEnvironment{abstract}{ O{\null\vfill} }{
  13. \checktoopen
  14. \tttypeout{\abstractname}
  15. #1%added to be able to have abstract more than one page long
  16. \thispagestyle{plain}
  17. \begin{center}
  18. {\normalsize \MakeUppercase{\univname} \par}% University name in capitals
  19. \bigskip
  20. {\huge\textit{\abstractname} \par}
  21. \bigskip
  22. {\normalsize \facname \par}% Faculty name
  23. {\normalsize \deptname \par}% Department name
  24. \bigskip
  25. {\normalsize \degreename\par}% Degree name
  26. \bigskip
  27. {\normalsize\bfseries \@title \par}% Thesis title
  28. \medskip
  29. {\normalsize \byname{} \authorname \par}% Author name
  30. \bigskip
  31. \end{center}
  32. }
  33. {
  34. \vfill\null
  35. }
  36. }
  37. \makeatother


Now you could start removing or changing.

Stefan
Site admin


Return to “Page Layout”

Who is online

Users browsing this forum: No registered users and 4 guests