# MS Word like template for LaTeX? [duplicate]

I need the format of the section titles to match with the default ones used in MS Word (actually with a bit different coloring), but I can't really find a way to change specificly the sections' format. What is the way of doing this?

(my LaTeX docs should look like some previously written Word docs)

What I have:

\documentclass[12pt,a4paper]{book}
\usepackage{enumerate}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage[ a4paper, top=1in, bottom=1in, left=1.25in, right=1.25in]{geometry}
\usepackage{fancyhdr}
\usepackage{color}
\usepackage[hungarian]{babel}
\usepackage{graphicx}
\usepackage{titlesec}
\usepackage{xcolor}
\usepackage{sectsty}
\usepackage{roboto}

\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{4}

\definecolor{darkblue}{RGB}{47,84,150}
\definecolor{midblue}{RGB}{0,112,192}
\definecolor{lightblue}{RGB}{0,176,240}

\allsectionsfont{\sffamily}
\chapterfont{\color{darkblue}}
\sectionfont{\color{darkblue}}
\subsectionfont{\color{midblue}}
\subsubsectionfont{\color{lightblue}}

\begin{document}

\chapter{Chap}
\section{lvl1}
\subsection{lvl2}
\subsubsection{lvl3}

\end{document}


What I want:

edit: I figured out coloring, added pictures and code, I'm using MikTex

• Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with \documentclass{...} and ending with \end{document}. Aug 3 '18 at 12:04
• To be more specific, what you are missing is the indentation of the subsection header, right? Or do you also want to reduce the spacing between the section headers?
– Dave
Aug 3 '18 at 12:25
• Off-topic: Instead of writing top=1in, bottom=1in, left=1.25in, right=1.25in, one could write more concisely vmargin=1in, hmargin=1.25in.
– Mico
Aug 3 '18 at 12:31
• Thanks for the comments! The most important points are these: font type, indentation and bold text. Aug 3 '18 at 12:39
• It has nothing to do with the distribution, but the compiler… Aug 3 '18 at 14:22