I would like to set my chapter/section/subsection headings to use a sans-serif font, but keep the serif font for the body text. How can this be done?
By default, LaTeX typesets documents using the \text{Computer Modern} typeface family but you can use LaTeX packages to use different fonts according to your needs or preferences.
Font styles Part of this text is written \textsl{in a different font style} to highlight it. If you want to go back to "normal" font style (default for the LaTeX class you are using), this can be done by using the \textnormal{...} command or the \normalfont switch command.
If you want a different size for your document, you can use extsizes packages. The command used are \documentclass[10pt]{extarticle} and \documentclass[14pt]{extreport}. You can also style the text differently.
You can use the sectsty
LaTeX package.
Put this in the preamble:
\usepackage{sectsty}
\allsectionsfont{\sffamily}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With