Text FormattingChange text of section headings

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
pooley343
Posts: 17
Joined: Mon Oct 20, 2008 2:53 pm

Change text of section headings

Post by pooley343 »

HI everyone.

I am writing a report but I want all text to be helvetica font.

Using the \usepackage{helvet} command I can change all text to helvitica font but this doesn't change the section headings as well. I have got around this by using \sffamily for each heading but there must be a better way!

Does anyone know how to change all of the test to the required font?

thanks.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Change text of section headings

Post by localghost »

A very simple solution is given with the sectsty package. More advanced formatting is possible with the titlesec package.


Best regards
Thorsten
pooley343
Posts: 17
Joined: Mon Oct 20, 2008 2:53 pm

Re: Change text of section headings

Post by pooley343 »

That has worked, thanks for your quick response!!
Post Reply