Introduction

Learn how to customize the font sizes, families, and styles in your documents to create a professional and consistent look. Our comprehensive guides cover everything from choosing the right fonts and adjusting their sizes, to applying bold, italic, and other formatting options. Whether you are creating a simple document or a complex layout, these tips and tricks will help you get the most out of your text.

Font sizes, families, and styles

Latex normally chooses the appropriate font and font size based on the logical structure of the document (e.g. sections). In some cases, you may want to set fonts and sizes by hand so LaTeX provides several commands for formatting text, including font styles and sizes.

Font size

By default, LaTeX uses the following standard font size for different components of a document:

Document ComponentFont Size
ordinary text12
chapter numbering and title16
section14
subsection13
subsubsection12

If you need different font sizes for regular text, the following commands can be used:

Font SizeCommandOutput
tiny size\tiny{LaTeX Document}
tiny font size
script size\scriptsize{LaTeX Document}
scriptsize font
footnote size\footnotesize{LaTeX Document}
footnote font size
small size\small{LaTeX Document}
small font size
normal size\normalsize{LaTeX Document}
normal font size
large size\large{LaTeX Document}
large font size
larger size\Large{LaTeX Document}
Large font size
largest size\LARGE{LaTeX Document}
LARGE font size
huge size\huge{LaTeX Document}
Huge font size

Font style

Font styles and effects are usually not applied in technical documents. Anyway, to change the font style, if needed, you can use the following commands:

Font StyleCommandOutput
italic\textit{texready}
italic font
bold\textbf{texready}
bold font
underline\underline{texready}
underline font
small caps\textsc{texready}
small caps font
slanted\textsl{texready}
slanted font
emphasize\emph{texready}
emphasize font
typewriter\texttt{texready}
typewriter font
san serif\textsf{texready}
san serif font
roman\textrm{texready}
roman font

if necessary, the font style commands can be embeded into each others, as shown below:

\textit{\textbf{ItalicBoldTexReady}}
\textsc{\underline{SmallcapitalsUnderlineTexReady}}

This example generates the following output:

embeded font style

Font color

By default, LaTeX uses black color for texts. To change the color of specific text, an additional package, \usepackage{color}, must be added in the preamble. The font color can be changed using the color command:

\color{color}{text}

The following table shows different color commands:

Font ColorCommandOutput
blue{\color{blue}BlueTexReady}
blue font
green{\color{green}GreenTexReady}
green font
yellow{\color{yellow}YellowTexReady}
yellow font
red{\color{red}RedTexReady}
red font

There are many standard color names available to be used in LaTeX color command, if the color you want is not available you can define it using:

\definecolor{my_violet}{rgb}{127,0,255}