Page Layout ⇒ How to remove extra contents from Abstract title?
-
Ahmadnia2011
- Posts: 8
- Joined: Wed Nov 01, 2017 4:02 pm
How to remove extra contents from Abstract title?
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
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10397
- Joined: Mon Mar 10, 2008 9:44 pm
How to remove extra contents from Abstract title?
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}
}Stefan
-
Ahmadnia2011
- Posts: 8
- Joined: Wed Nov 01, 2017 4:02 pm
How to remove extra contents from Abstract title?
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?
- Stefan Kottwitz
- Site Admin
- Posts: 10397
- Joined: Mon Mar 10, 2008 9:44 pm
How to remove extra contents from Abstract title?
\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
}
}
\makeatotherStefan