I would like to increase the size of pretty much every headlines, so that it is more prominent than the normal text.
I read about the titlesec
package, but can't seem to find good example how to use the package.
Using Gonzalo Medina does in fact change the font size, however, it changes the default font as well.
Before:
After:
Best Answer
Standard classes
Here's an example using
titlesec
:I used the simplified version of
\titleformat
(i.e.,\titleformat*
) since the only desired change was in size, but you can use the extended version if "bigger" changes are required. These are the default definitions for the standard classes (taken from the documentation):so you can make bigger changes. The following image shows both the standard sizes and the ones obtained with the above modifications:
And here's an exampe using the
sectsty
:According to an edit to the original question, the OP wanted also a sans serif font:
KOMA classes
The above approaches are to be used mostly with the default document classes (
book
,report
,article
); if the document class used is one of the classes of the KOMA-Script bundle, then it's not advisable to usetitlesec
(See Incompatibilities between KOMA-Script and titlesec) but to use the features provided by the KOMA classes:memoir
For the
memoir
document class, the situation is analogous: is also not advisable to usetitlesec
(See About memoir and titlesec incompatibility) but to use the features provided by the class; in the case of the lower sectional units, the class provides the family of commands\setXheadstyle
: