GeneralHow to create a header for an asbtract

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
laila_a
Posts: 2
Joined: Thu Apr 17, 2008 11:37 am

How to create a header for an asbtract

Post by laila_a »

I am using the report package. I want to insert some lines of text prior to the Abstract, but on the same page as it. I cant figure out how to do this, please help!

Thank you

Recommended reading 2024:

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

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

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

How to create a header for an asbtract

Post by Stefan Kottwitz »

Hi laila_a,

welcome to the LaTeX Community board!
I assume you do not use the notitlepage option, your abstract is set on its own page. Here is one try to change the default behaviour. I redefined the abstract environment, only inserted the \inserttext command, where you could write your lines. The example:

Code: Select all

\makeatletter
\renewenvironment{abstract}{%
      \titlepage
      \null\vfil
      \inserttext
      \@beginparpenalty\@lowpenalty
      \begin{center}%
        \bfseries \abstractname
        \@endparpenalty\@M
      \end{center}}%
     {\par\vfil\null\endtitlepage}
\makeatother
\newcommand\inserttext{\noindent some lines\vfil}
Does that fit to your document? If not, you should show your preamble, especially your options to report (concerning titlepage).

Stefan
laila_a
Posts: 2
Joined: Thu Apr 17, 2008 11:37 am

Re: How to create a header for an asbtract

Post by laila_a »

Thank you! This works a dream, it does exactly what I need it to do,

Thanks again!
Post Reply