Consider this script:
\documentclass{report}
\makeatletter
\renewcommand\chapter{\if@openright\cleardoublepage\else\clearpage\fi
\thispagestyle{plain}%
\global\@topnum\z@
% \@afterindentfalse
\secdef\@chapter\@schapter}
\makeatother
\begin{document}
\chapter{firstchapter}
first paragraph
second paragraph
\section{Some section}
first section paragraph
second section paragraph
\chapter{secondchapter}
first paragraph
second paragraph
\end{document}
The first paragraph of chapter "firstchapter" gets indented if I comment the line
\@afterindentfalse
However, this behaviour gets unset in "secondhapter". Why?
The definition of \section
is more obscure:
\newcommand\section{\@startsection {section}{1}{\z@}%
{-3.5ex \@plus -1ex \@minus -.2ex}%
{2.3ex \@plus.2ex}%
{\normalfont\Large\bfseries}}
What and how do I need to redefine to automatically indent the first paragraph in a chapter and a section.
As I develop my own class I am interested in what to modify in the source code rather than import packages.
indentfirst
package – daleif Apr 2 at 8:56texdoc source2e
. – daleif Apr 2 at 9:54