29

I'm just getting started with LaTeX to write scientific papers. I don't want to have paragraph indentation, so I've used the parskip package to deal with that. However, that doesn't seem to deal with the indentation of the first line of the abstract. I've tried manually setting parident but that doesn't seem to work either.

Is there a special way of setting the paragraph indent within the abstract section?

\documentclass{article}
\usepackage{parskip}

\begin{document}

\title{What are the fundamental gaps in scientific knowledge?}
\author{Robin Wilson}

\maketitle

\begin{abstract}
Recent reports by the global environmental ...
\end{abstract}

\section{Introduction}
Here is the text of your introduction.

And another paragraph here.

\end{document}
lockstep
  • 250,273
robintw
  • 7,362

3 Answers3

35

The easiest way is to insert \noindent:

\begin{abstract}
\noindent Recent reports ...
\end{abstract}

The reason is, that article uses a quotation environment for the abstract, and quotation uses paragraph indentation in contrary to quote. So, you coud redefine the abstract environment to use quote, but it's easier just to insert \noindent. If needed, you could additionally set \parindent to 0pt inside the abstract.

Stefan Kottwitz
  • 231,401
  • Robin said that he'd tried manually setting \parindent so maybe that doesn't work (haven't tried it myself) because by the time the \setlength command is read within the abstract, the old \parindent has already been used to set the indentation of the abstract. – Andrew Stacey Aug 12 '10 at 12:37
  • Andrew: yes, but modifying \parindent inside the abstract could remove the indentation of subsequent paragraphs. That's why I've said, it may help in addition to \noindent: if there are several paragraphs inside the abstract. – Stefan Kottwitz Aug 12 '10 at 13:26
  • You're right. I missed the significance of the word "additionally". – Andrew Stacey Aug 12 '10 at 20:43
  • @StefanKottwitz With several paragraphs in the abstract, it could be better to add \parskip=.5\baselineskip plus 2pt for vertical separation between it (value taken from the parskip package documentation), because if we have vertical separation between paragraphs in the main text with the parskip package, it would be better to have also a vertical separation between paragraphs in the abstract. So, the complete code to add, right after the beginning of the abstract environment could be \noindent\parindent=0pt\parskip=.5\baselineskip plus 2pt. – quark67 Aug 18 '21 at 04:11
5

If you want to remove the indentation of the first line from every abstract in every LaTeX document (or more precisely, from every abstract based on the quotation environment), add the following to your personal configuration file:

\usepackage{etoolbox}
\ifundef{\abstract}{}{\patchcmd{\abstract}%
    {\quotation}{\quotation\noindent\ignorespaces}{}{}}
lockstep
  • 250,273
3

I saw a paper, written by two eminent mathematicians, that had

\def\ni{\noindent}

in the preamble, and \ni at the start of every paragraph. This seemed to do no harm to the formatting or to the mathematics (which is of the highest class).

So my advice is: by all means strive for typographic excellence and good use of TeX. But first class mathematics is both harder and more important. If you've got something important to say, don't worry that your TeX is not the best.

By the way, it's just as well that they did not need 'cancelled element of' in their paper, for its name is \ni!

  • 6
    I wrote this with my mathematical hat on. Redefining \ni in this way is of course a deplorable and sloppy practice, etc (with my TeX hat on). – Jonathan Fine Aug 12 '10 at 16:53
  • 4
    I wrote my entire thesis using \noindent at the start of every paragraph. But that was before Stack Exchange existed. There was a crusty old TeX book in the corner of the computer room. – Bathsheba Apr 01 '15 at 12:11