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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am having an issue where the first paragraph is being indented after a section heading. For instance

\section{My Section}\label{sec:my-section}
This is my section, and I have no idea why it's being indented

I am using the article class:


I have narrowed the issue down to this snippet of code:

\renewcommand\section{\@startsection {section}{1}{0mm} % name, level, indent
                               {3pt} % before skip
                               {3pt} % after skip

These are the packages being imported:

\usepackage{wrapfig}            % wrap figures/tables in text
\usepackage{subfigure}          % subcaptions for subfigures
\usepackage{threeparttable}     % tables with footnotes
\usepackage{dcolumn,multirow}   % decimal-aligned tabular math columns
\usepackage{nomencl}            % nomenclature package
\usepackage[colorlinks=true, linkcolor=DarkBlue, citecolor=DarkBlue, urlcolor=DarkBlue]{hyperref}
\usepackage{enumitem} % Better control over lists
share|improve this question
to indent or not to indent is usually set in the document class. which class is being used? – barbara beeton May 30 '12 at 22:24
@Marco this isn't a duplicate: Ed wants to get rid of the behaviour. The linked question ask for how to get the effect. – Alan Munn May 30 '12 at 22:26
The article class is being used. I did search for a similar question. However, my understanding was that not-indenting was the standard behavior unless set otherwise. Since I did not (knowingly) set this behavior, I was wondering where it might come from. – Emily May 30 '12 at 22:26
I don't get the asserted behavior. Are you doing some settings with \titlespacing? – egreg May 30 '12 at 22:29
@AlanMunn: You are right. Sorry for confusing – Marco Daniel May 30 '12 at 22:31
up vote 9 down vote accepted

With this code you are precisely telling TeX to indent after section titles.

\renewcommand\section{\@startsection {section}{1}{0mm} % name, level, indent
                               {3pt} % before skip
                               {3pt} % after skip

The parameter "before skip" should be negative for having no indentation:

\renewcommand\section{\@startsection {section}{1}{0mm} % name, level, indent
                               {-3pt} % before skip
                               {3pt} % after skip

However, it's not a good idea to have fixed spacing around section titles, which don't leave flexibility to the page. Probably

\renewcommand\section{\@startsection {section}{1}{0mm} % name, level, indent
                               {-3pt plus -2pt minus -1pt} % before skip
                               {3pt plus 1pt} % after skip

would be a better choice (albeit too tight, in my opinion).

Notice that LaTeX will "change sign" to the specified glue, so it's not a negative vertical spacing.

You would get a very similar result without tampering with low level commands with


so my advice is to remove the \@startsection code, as the one provided by titlesec is safer.

share|improve this answer
Thanks, that worked! I'm trying to update some old templates that have a whole lot of \vspace thrown around. It's a long process... – Emily May 30 '12 at 23:00
@EdGorcenski You should also trim the list of packages. For example epsfig is obsolete and should not be used in new documents; also subfigure is and its new version is called subfig. hyperref should come last of those packages. I've added a comment that will be of interest to you. – egreg May 30 '12 at 23:01
Yes, I agree. That is the next step in the process :) I am already using the titlesec package, but for various reasons, I do need the ability to finely control section heading spacing. So the manual code will have to remain, although at least now I can change it once and have it translate across the document. – Emily May 30 '12 at 23:05

You have

    {3pt} % before skip

ltsect.dtx says

 \item[beforeskip:] Absolute value = skip to leave above the heading.
                If negative, then paragraph indent of text following
                heading is suppressed.

So if you want to suppress indentation it has to be {-3pt} not {3pt}

share|improve this answer
Thanks, this explanation is also very clear. – Emily May 30 '12 at 23:01

Your Answer


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.