0

is there a way to indent all text over the full document but not the section, subsection and subsubsection titles? i tried \setlength\parindent{20pt} but that does not take care of the text that is not in a box or minipage. Is there a name for text thats writen to the plane editor? like in:

\section{sectionone}
writen text direct to the editor...
\subsection{subsectionone}
novski
  • 1,039

1 Answers1

1

I really don't recommend the following, but just posting it to give you an idea of what goes on.

To the underlying TeX typesetting engine, the page is (to a rough approximation) a bunch of paragraphs, each broken into lines according to a line-breaking algorithm (even the section header is in some sense a "paragraph"). TeX has a parameter called \leftskip which is a space ("glue") that it inserts at the beginning of each line. So you could set this to some positive parameter globally, and set it back to zero for section headers.

\documentclass{article}
\usepackage{lipsum}
\begin{document}
\leftskip=15em

\lipsum[1]

\section{\leftskip=0pt First section}
\lipsum[6-7]

\subsection{\leftskip=0pt First subsection}
\lipsum[11-12]

\end{document}

Screenshot

Again, I don't recommend doing the above in a real document (at minimum you probably want to change the actual definition of \section and \subsection (etc.) instead of typing \leftskip=0pt in each of them, change the margins of the document so that not so much space is wasted, etc).

ShreevatsaR
  • 45,428
  • 10
  • 117
  • 149