Friday, 7 June 2013

Why does indentation immediately after a section heading not work?

Why does indentation immediately after a section heading not work?

When I start a section and attempt to indent the first paragraph with \indent, the command has no effect:
\document
class{article}


\begin{document}

\section{Section 1}

\indent Paragraph 1. % not indented

\noindent Paragraph 2.

\section{Section 2}

\leavevmode\indent Paragraph 1. % indented

\noindent Paragraph 2.

\end{document}
I found that \leavevmode solves the problem, but why is this happening in the first place?

No comments:

Post a Comment