[Tex/LaTex] How to change the title, abstract and headings font to Sans Serif

fontsheader-footersectioningtitles

I'm making a journal publication in LaTeX and I've been trying to change the font of all my non-main texts to a sans serif font. Meaning, all the headings, titles, section titles, abstracts and so on are in sans serif while the main text is in a serif font.

I've only been able to change the section headings using \titlesec, but not much else.

Best Answer

\usepackage{sectsty}

\begin{document}
\allsectionsfont{\sffamily}
[...]
\end{document}

This will put all your headings in a sans-serif font.

Output example:

sectsty example

Related Question