Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
    
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 '13 at 11:19
    
@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 '13 at 11:05

1 Answer 1

up vote 3 down vote accepted

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.

share|improve this answer
    
Umm, that looks line it removes indentation from more places than you would expect. –  einpoklum Jun 27 at 20:18

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.