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 just want to cancel the first line indentation in every section paragraph (include the Abstract). Thank you for any kind help.

\documentclass[a4paper]{article}
\usepackage{titling}
\newcommand{\subtitle}[1]{%
  \posttitle{%
    \par\end{center}
    \vskip5em
    \begin{center}\LARGE#1\end{center}
    \vskip5em}%
}

\usepackage{palatino}
\usepackage[top=1in,bottom=1in,left=1in,right=1in]{geometry}
\usepackage{lipsum}
\usepackage{graphicx}
\usepackage{booktabs,multirow}
\usepackage{amsmath,amssymb}
\usepackage{xcolor}
\usepackage{cite}

\renewenvironment{abstract}
  {\small\quotation
  {\bfseries\noindent{\large\abstractname}\par\nobreak\smallskip}}
  {\endquotation}

\begin{document}

\begin{abstract}
Here goes the abstract.
\end{abstract}
\clearpage

\tableofcontents
\clearpage
\setlength{\parskip} {0.8em}

\section{Test section}
\subsection{Test section}
\subsubsection{Test section}
\paragraph{Test section\\}
This document is for testing.

\end{document} 
share|improve this question

marked as duplicate by lockstep, doncherry, mafp, John Wickerson, Claudio Fiandrino Jun 21 '13 at 10:39

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
Short tip: select text and click the button marked {} above the textfield to highlight it as code. –  Torbjørn T. Jun 21 '13 at 9:40
    
@TorbjørnT. I'm sorry to forget edit it first. Thank you for your tip! –  周明暘 Jun 21 '13 at 9:41

2 Answers 2

up vote 2 down vote accepted

Put this line into your preamble in order to set \parindent (the indent length) to zero:

\setlength{\parindent}{0pt}

If you want to prevent indentation in a given paragraph, put \noindent at the beginning of this paragraph.

share|improve this answer

Having no indentation and no increased lineskip between paragraphs makes it difficult to see where a paragraph ends. To "reverse" LaTeX' standard behaviour, you can use \usepackage{parskip}.

share|improve this answer
2  
however, parskip.sty is also a post-hoc solution; you really want a class with this arrangement built-in. artikel3 from the ntgclass bundle can do it; koma-script or memoir might help, but their aim is typographic excellence, rather than word-processor hacks like this. –  wasteofspace Jun 21 '13 at 10:04
    
Very true. KOMA-Script takes a bit of configuring until it's back to the "default look", so it may or may not work as a drop-in replacement. –  Ulrich Schwarz Jun 21 '13 at 10:15

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