# How to place abstract text in front of abstract key?

I want to place my abstract text behind the abstract-key(which is used in all article), and left-aligned rather than centered on the page. How do I do this in LaTeX?

I want the following format:

Abstract: some text is here.


The default abstract format (which I want to change it) is:

                           Abstract

Some text is here

-

## migrated from stackoverflow.comSep 11 '11 at 12:59

This question came from our site for professional and enthusiast programmers.

What do you mean by “abstract-key”? If you mean the text “Abstract”, then surely you want to put your abstract behind the abstract key, rather than in front of it. – Konrad Rudolph Sep 11 '11 at 12:32

You can use the abstract package to customise the abstract block as you want it by using the runin option:

\documentclass{article}
\usepackage{lipsum}
\usepackage[runin]{abstract}
\setlength{\abstitleskip}{-\parindent}
\begin{document}
\begin{abstract}
\lipsum[1]
\end{abstract}
\section{First section}
\lipsum[1-2]
\end{document}

-

Here's an example how you could redefine the abstract environment:

\documentclass{article}
\renewenvironment{abstract}{%
\noindent\bfseries\abstractname:\normalfont}{}
\begin{document}
\begin{abstract}
some text is here.
\end{abstract}
\section{First section}
\end{document}


You could also customize the end code of the new abstract for making a paragraph break etc. However, I guess a \section would follow, so it would be ok.

-