Tuesday, August 17, 2010

Changing the font size of section headings in LaTex

You have several ways to do so:
1.- A direct redefinition of \section:
\makeatletter \renewcommand\section{\@startsection{section}{1}{\z@}%                                   {-3.5ex \@plus -1ex \@minus -.2ex}%                                   {2.3ex \@plus.2ex}%                                   {\normalfont\large\bfseries}} \makeatother

2.- By means of the titlesec package:
\usepackage{titlesec} \titleformat{\section}{\large\bfseries}{\thesection}{1em}{}

3.- By means of the sectsty package:

\usepackage{sectsty} \sectionfont{\large}
source : http://www.latex-community.org/forum/viewtopic.php?f=4&t=3245 

Now, I would explain the titlesec package a bit more (because it seems easier to me and with more options) :

To change the section fonts with this package put the following lines in the preamble -


Options available are-

a> Font size -

\normalsize \large \Large \huge \Huge
 Increasing size ->

b> Font type-

\bfseries - Bold
\itshape - Italic

c> Headers -


 For e.g. to create a subsection with large font in italics write -


No comments:

Removing audio noise from a video

The basic steps are to extract the audio, remove noise, and then re-insert the noise-free audio back into the video wrapper. Step I: Ext...