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


\documentclass{...}and ending with\end{document}. – albert Aug 03 '18 at 12:04top=1in, bottom=1in, left=1.25in, right=1.25in, one could write more conciselyvmargin=1in, hmargin=1.25in. – Mico Aug 03 '18 at 12:31