views:

3507

answers:

5

Hi, I'm new to LaTeX and I've got a

\begin{abstract}
...
\end{abstract}

section and I want to change the margins so the text looks more condensed and centred on the page. I need some code that will do this, without stuffing up the margins for the rest of the document.

A: 

By the way, if you're struggling (or can't be arsed to learn the tedious syntax), this is a rather nifty GUI:

http://www.lyx.org/

Please restrict answers to the question.
Rob Hyndman
+3  A: 

Though not very clean, this would be the easiest solution:

\begin{abstract}
    \centering
    \begin{minipage}{0.5\textwidth}
        ...
    \end{minipage}
\end{abstract}

Replace 0.5 by whatever fraction of your body text width you want your abstract to be.

Thomas
+1  A: 

Easiest thing is to create a new abstract environment with \newenvironment. This Wikibook has extensive information on messing with laTeX.

Charlie Martin
+2  A: 

The following code might do what you want (Change the numbers if need be, obviously):

\setlength\absleftindent{0.5in}
\setlength\absrightindent{0.5in}

I think this only works for the memoir document class.

Seamus
A: 

The minipage is a good idea.

Instead of centering, you can try to manually set \hspace{-40pt} as you wish.

Michael