Javatpoint Logo
Javatpoint Logo

Latex Fonts Size and Styles

Latex Fonts:

Latex Paper size and font size

We usually define the paper size and the font size inside the square brackets [].

The point size can be described in the way [10pt]. The other font sizes are 8pt, 9pt, 10pt, 11pt, 12pt, 14pt, 17pt, 20pt.

The default font size for Latex is 10pt.

The paper types with their dimensions are given below:

  • letterpaper (11 x 8.5 in)
  • legalpaper (14 x 8.5 in)
  • a5paper (5.8 x 8.3 in)
  • a4paper (8.3 x 11.7 in)
  • executivepaper (10.5 x 7.25 in)
  • b5paper (25 x 17.6 cm)


The default font size or type size that Tex produces is 10pt. There are some of the declarations which are used for changing the type size. The table for all the type sizes along with commands is shown below:

Latex Fonts Size and Styles

In the above sequence, \tiny is the smallest while \Huge is the largest. To understand, let's consider an example shown below:

The output of this code is shown in the image below:

Latex Fonts Size and Styles

Similarly, you can change the font and styles according to the requirements.


The styles are categorized into family, series, and shape. The typestyle in the output is composed of these three characteristics.

The table for the styles is given below:

Style command
Roman \textrm{roman}
Typewriter \texttt{typewriter}
Sans serif \textsf{sans serif}

The table for the series is given below:

Style command
boldface \textbf{boldface}
medium \textmd{medium}

The table for the shape is given below:

Style command
italic \textit{italic}
slanted \textsl{slanted}
upright \textup{upright}
SMALL CAP \textsc{small cap]

The way or procedure to use these three categories is given below:

The output of this code will be:

Latex Fonts Size and Styles

If you want to display the above text in separate lines, \newline command is used as shown below:


Latex Fonts Size and Styles

The Latex substitutes the approximation of the type styles which are not available on your computer.

There is another command called \emph used for styling purposes. It uses the family of series and the current font.

The \emph is used to produce the italic shape when we are in the middle of the ordinary (upright) text. And if the current form is italic, then it switches it to upright shape.

The example is shown below:

The output of the above code is shown in the below image:

Latex Fonts Size and Styles

You can see the difference between the words with \emph command and the others.

In another example, we have used the boldface instead of the italic above, which is shown below:

The output of the above code is shown in the image below:

Latex Fonts Size and Styles



It includes the basic commands used at the starting and the end. It also includes the procedure to write the text. In this module, we have used TEXMAKER to write the code. The overview of the Latex is given below:

After writing this document in the Texmaker, you have to save this file in any particular document. Click on the Quick Build button on the menu bar, as shown below:

Latex Fonts Size and Styles

The output of the above document file will be:

Latex Fonts Size and Styles

Note: Without saving the file or document, you cannot compile the code. So, make sure to save your document before compiling.

The other commands commonly used are given below, which will be implemented further in this project.

  • flushright and flushleft: These commands are written as \begin{flushright} or \begin{flushleft}. These are used for aligning the text to the right and left of the document.
  • \noindent: If you want to start any paragraph without an indent or to continue the paragraph without any interruption, this command is used.


In Latex, if there is an error in the document file, then it will show all the errors in red at the bottom after the compilation. The errors are explained in detail.

The errors will look like the image shown below:

Latex Fonts Size and Styles

After this, go to a particular line and remove the errors. Save the file, and then you can compile again.

Other Font Styles

The other used font styles and the corresponding code is given below:

  • 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. The code is given below:

The output is shown below:

Latex Fonts Size and Styles

The \fontsize and \selectfont commands are used to modify the size of the text. You can set the dimensions according to the requirements.

Font Families

The common font families are listed below:

Font Families Full Form
cmm Computer Modern Italic
cmsy Computer Modern Symbols
cmex Computer Modern Extensions
cmr Computer Modern Roman
cmss Computer Modern Sans
cmtt Computer Modern Typewriter
ptm Adobe Times
phv Adobe Helvetica
pcr Adobe Courier

The standard supported for the weights and width for the font series are listed in the table below:

sb- Semi Bold

ub- Ultra Bold

b- Bold

eb- Extra Bold

ul- Ultra Light

el- Extra Light

l- Light

sl- Semi Light

m- Medium (normal)

Standard Full-form % Percentage
uc Ultra Condensed 50%
ec Extra Condensed 62.5%
c Condensed 75%
sc Semi Condensed 87.5%
x Expanded 125%
ex Extra Expanded 150%
ux Ultra Expanded 200%
m Medium 100%
sx Semi Expanded 112.5%

Next TopicLatex Colors

Help Others, Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA