TransWikia.com

How can I change all of my section titles formatting in LaTeX?

TeX - LaTeX Asked on March 11, 2021

I am looking to change all of my titles to look like the ones below (created in word), does anybody know how to do this?

enter image description here

One Answer

Something like this?

documentclass[a4paper, 12pt, fleqn]{article}
usepackage{titlesec}
usepackage{xcolor}
renewcommand{familydefault}{sfdefault}
titleformat{section}[display]{centeringLargebfseries}{}{0pt}{underline}
titleformat{subsection}{largebfseriescolor{darkgray}}{}{0pt}{underline}
titleformat{subsubsection}{bfseriescolor{gray}}{}{0pt}{}
setcounter{secnumdepth}{0}
begin{document}
section{Section Title}
subsection{Subsection Title}
subsubsection{Subsubsection Title}
Text
end{document}

Correct answer by Vincent on March 11, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP