\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{PrimeTeX/packages/Titles}[2025-07-16]

\RequirePackage[raggedright]{titlesec}

\ifthenelse{\NOT\boolean{doRomanNumerals}}{
	\renewcommand{\thepart}{\arabic{part}}
}{}

\titleformat{\part}[display]{
	\normalfont\sbfamily\huge
}{
	\partname{} \thepart
}{20pt}{\Huge\raggedright}

\titleformat{\chapter}[display]{
	\normalfont\sbfamily\huge\raggedright
}{
	\chaptertitlename{} \thechapter
}{20pt}{\Huge}

\titleformat*{\section}{\sbfamily\Large}
\titleformat*{\subsection}{\sbfamily\large}
\titleformat*{\subsubsection}{\sbfamily}
\titleformat*{\paragraph}{\sbfamily}
\titleformat*{\subparagraph}{\sbfamily}
