I'm trying to add indentation to my documentation. Every time I wanted to indent a paragraph I put a \hspace*{1cm} command before it. I want to write a command into the preamble.
I found \setlength{\parindent}{1cm} but it doesn't work as I want.
The difference is the blue section line is indented too in the first code, while in the second code it isn't.
\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvtheme[blue]{classic}
\usepackage[top=2.0cm, bottom=3.8cm, left=2cm, right=2cm]{geometry}
\AtBeginDocument{\setlength{\headsep}{1.5cm}}
\usepackage{fancyhdr}
\pagestyle{fancy}
\setlength{\hintscolumnwidth}{4.0cm}
\firstname{Homework}
\familyname{}
\title{Samyfarha}
\makeatother
\setlength{\parindent}{1cm}
\cfoot{Samyfarha}
\rfoot{\thepage}
\begin{document}
\maketitle
\begin{center}
\textbf{Dokumentation}
\end{center}
\section{Section}
In 1900, his paper "Folgerungen aus den Capillaritätserscheinungen ("Conclusions from the Capillarity Phenomena") was published in the prestigious Annalen der Physik On 30 April 1905, Einstein completed his thesis, with Alfred Kleiner, Professor of Experimental Physics, serving as pro-forma advisor.
\end{document}
You will need these style files:
collection, moderncv, moderncvcolorblue, moderncvcompatibility, moderncviconsmarvosym, moderncvstyleclassic
And I want my documentation looks like this:
\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvtheme[blue]{classic}
\usepackage[top=2.0cm, bottom=3.8cm, left=2cm, right=2cm]{geometry}
\AtBeginDocument{\setlength{\headsep}{1.5cm}}
\usepackage{fancyhdr}
\pagestyle{fancy}
\setlength{\hintscolumnwidth}{4.0cm}
\firstname{Homework}
\familyname{}
\title{Samyfarha}
\makeatother
%\setlength{\parindent}{1cm}
\cfoot{Samyfarha}
\rfoot{\thepage}
\begin{document}
\maketitle
\begin{center}
\textbf{Dokumentation}
\end{center}
\section{Section}
\hspace*{1cm}In 1900, his paper "Folgerungen aus den Capillaritätserscheinungen ("Conclusions from the Capillarity Phenomena") was published in the prestigious Annalen der Physik On 30 April 1905, Einstein completed his thesis, with Alfred Kleiner, Professor of Experimental Physics, serving as pro-forma advisor.
\end{document}
Please, help me.

\hspacein the document. By default the first paragraph of a section is not indented, you can change that by adding\usepackage{indentfirst}– David Carlisle Dec 02 '15 at 11:00