# How to change the section's content format?

I have written a latex file including multiple layers of sectioning. What I want to do is change the tabbing/location of each layer. And maybe also change the font or something.

But the problem I have, is that I know how to do it section by section, but not how to change this for the layers in general.

The only things I found is how to change the section headers in general, but not the text underneath (as well).

This is part of the file:

\documentclass[12pt, fleqn, a4paper]{report}
\usepackage{mathtools}
\usepackage{amsfonts}
\usepackage{graphicx}

\setcounter{secnumdepth}{2}
\setcounter{tocdepth}{2}

\setlength{\parindent}{0pt}

\title{xxx}
\date{xxx}
\author{xxx}

\begin{document}

\maketitle
\newpage

\tableofcontents
\newpage

\chapter{Geordende Verzamelingen}

\section{Definities}

\subsection{Geordende Verzamelingen}
This needs to be tabbed to the right, bold and dark blue

\subsubsection{Voorbeeld}
This needs to be double tabbed to the right, italic and light blue


Thank you for reading this and I hope you can help me out.

• Welcome, what you wants depends on the documentclass in use. Please show us a minimal working example to reproduce your current setup. – Johannes_B Jan 6 '16 at 14:31
• @Johannes_B Hee, thanks for checking in to it. I revised my question, but it doesn't really matter what kind of documentclass to use. I like book and article as well (only thing is that I have to change some minor things, but thats allright) – immaan Jan 6 '16 at 14:40
• Not relevant, but you might be interested in the \land and \lor commands (Logical AND; Logical OR). – Sean Allred Jan 6 '16 at 14:42
• As for the need for an MWE, it very much does matter what documentclass you use :) there are general ways to do this sort of thing, but some of the more advanced classes (KOMA*, memoir) have their own way of doing things. – Sean Allred Jan 6 '16 at 14:44
• If the class wouldn't be important, i wouldn't ask for it. For the generic standard classes, titlesec is the package of choice. – Johannes_B Jan 6 '16 at 14:44

For article class, the \section command (for example) is defined using
\newcommand\section{\@startsection {section}{1}{\z@}%

where \@startsection is documented in source2e (see https://www.ctan.org/pkg/source2e?lang=en). (Not intended as an answer, but too complicated for a comment.)