Hello here,
I think, subject describes the problem. I mean - it all together and automatically.
Thank you!
General ⇒ How to automatically indent section + all corresponding txt?
NEW: TikZ book now 40% off at Amazon.com for a short time.

How to automatically indent section + all corresponding txt?
One possibility, using some features from the titlesec package:
Notice that the argument of the myindentpar environment equals the value of the first argument of the \titlespacing command.
Code: Select all
\documentclass{article}
\usepackage{titlesec}
\usepackage{lipsum}
\newenvironment{myindentpar}[1]%
{\begin{list}{}%
{\setlength{\leftmargin}{#1}}%
\item[]%
}
{\end{list}}
\titlespacing{\section}{1cm}{*4}{*1.5}
\begin{document}
\section{First section}
\begin{myindentpar}{1cm}
\lipsum[1]
\end{myindentpar}
text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text
\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...