Page LayoutHow to remove extra contents from Abstract title?

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

How to remove extra contents from Abstract title?

Post by Ahmadnia2011 »

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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

How to remove extra contents from Abstract title?

Post by Stefan Kottwitz »

Hi Ben,

welcome to the forum!

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

Code: Select all

\DeclareDocumentEnvironment{abstract}{ O{} }{
  \checktoopen
  \tttypeout{\abstractname}
    #1%added to be able to have abstract more than one page long
  \thispagestyle{plain}
  \begin{center}
    {\huge\textit{\abstractname} \par}
  \end{center}
}
This changes the abstract. You can modify this code like you wish.

Stefan
LaTeX.org admin
Ahmadnia2011
Posts: 8
Joined: Wed Nov 01, 2017 4:02 pm

How to remove extra contents from Abstract title?

Post by Ahmadnia2011 »

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

How to remove extra contents from Abstract title?

Post by Stefan Kottwitz »

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

Code: Select all

\makeatletter
\ifbool{consistentlayout}{
	\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
	}%
	{}%end alt-abstract
}{%
	\DeclareDocumentEnvironment{abstract}{ O{\null\vfill} }{
		\checktoopen
		\tttypeout{\abstractname}
		#1%added to be able to have abstract more than one page long
		\thispagestyle{plain}
		\begin{center}
			{\normalsize \MakeUppercase{\univname} \par}% University name in capitals
			\bigskip
			{\huge\textit{\abstractname} \par}
			\bigskip
			{\normalsize \facname \par}% Faculty name
			{\normalsize \deptname \par}% Department name
			\bigskip
			{\normalsize \degreename\par}% Degree name
			\bigskip
			{\normalsize\bfseries \@title \par}% Thesis title
			\medskip
			{\normalsize \byname{} \authorname \par}% Author name
			\bigskip
		\end{center}
	}
	{
		\vfill\null
	}
}
\makeatother
Now you could start removing or changing.

Stefan
LaTeX.org admin
Post Reply