7

I am writing a document in a class (elsarticle) that indents the first lines of all paragraphs, including the ones following headings. However, I would like to revert back to the default Latex behavior indenting all but the first paragraphs.

Of course I can do this manually using \noindent, but isn't there a better way?

2
  • This is a precise choice by the elsarticle class; if you're using it for submitting a paper, don't modify its behavior.
    – egreg
    Sep 9, 2013 at 11:19
  • 1
    @egreg: Not to veer too much off-topic here, but… I am sure that they will change it back to their convention if they publish the paper. But I dislike their convention and feel that I am entitled to chose my own for my preprint.
    – xebtl
    Sep 10, 2013 at 11:05

1 Answer 1

5

You can set the internally used condition \if@afterindent for this indentation permanently to "false".

\documentclass[11pt]{elsarticle}
\usepackage[T1]{fontenc}
\usepackage{blindtext}  % drop in actual document

\makeatletter
\let\@afterindenttrue\@afterindentfalse
\makeatother

\begin{document}
  \blinddocument  % drop in actual document
\end{document}

Note that the »blindtext« package is only used for creating the dummy document here, thus is not part of the solution.

1
  • Umm, that looks line it removes indentation from more places than you would expect.
    – einpoklum
    Jun 27, 2014 at 20:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .