5

It seems like relative to the paragraph text, the chapter and section titles have a default indentation that I'd like to manually set. Is there a way to do this using

\setlength{\...}{}

? I'd rather not mess with \titlesec since I've got multiple files and using titlesec previously messed up with my formatting.

2
6

There isn't a predefined length for this in the standard classes but it is easy to copy the definitions from report.cls and add some leftskip:

enter image description here

\documentclass{report}

\begin{document}

\section{aaaaa}

aaaa

\makeatletter


\renewcommand\section{\@startsection {section}{1}{\z@}%
                                   {-3.5ex \@plus -1ex \@minus -.2ex}%
                                   {2.3ex \@plus.2ex}%
                                   {\leftskip1in \normalfont\Large\bfseries}}

\makeatother

\section{aaaaa}

aaaa

\end{document}

Note as shown in the section 0.1 example the default indentation is zero.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.