Changing Font Style in LaTeX | (2023)

The standard font we are seeing on LaTeX documents is called Computer Modern. We can change the look of this font by changing its font family, font weight or font shape. In this article, we will walk through the commands that changes the style of fonts in LaTeX.

  1. Changing Font Family
  2. Changing Font Shape
  3. Changing Font Weight
  4. Emphasizing Text
  5. Changing Letter Case
  6. Underline and Strikethrough
  7. Old Style Numbers

Changing Font Family

This font comes with three different font families: serif, which is the default setting, sans serif, and monospaced. A serif is a small line or taper regularly added to the end of a character’s stem, like we see in fonts such as Times New Roman, Garamond, etc. A sans serif font doesn’t have any serif in its characters. Famous examples of sans serif fonts are Helvetica, Futura, etc. Lastly, a monospaced font use the same fixed-width for each of their characters. They are mostly used for source code listings, or well-aligned contents. Courier and Consolas are examples of monospaced fonts.

In LaTeX, serif font families are shortened as rm (for roman font), sans serif font families are shortened as sf, and monospaced font families are shortened as tt (for teletype font family). For instance, we can change the default font family for the whole document by using the command below with \rmdefault for serif font family, \sfdefault for sans serif font family and \ttdefault for monospaced font family:

...\renewcommand{\familydefault}{<font family>}...

If we need to use a certain font family only for a part of our document, we can write it in a text command. In a similar fashion to the default font family commands, \textrm is for serif font family, \textsf is for sans serif font family, and \texttt is for monospaced for family. In the following piece of code, we demonstrated the effects of the commands.

\textrm{Serif Font Family}\textsf{Sans Serif Font Family}\texttt{Monospaced Font Family}
Changing Font Style in LaTeX | (1)

Instead of commands, we can also use text switches: \rmfamily, \sffamily and \ttfamily for serif, sans serif and monospaced font families, respectively. The same result can be achieved with switches by using the next piece of code.

(Video) Fonts in LaTeX (Latex Basic Tutorial-19)

\rmfamilySerif Font Family\sffamilySans Serif Font Family\ttfamilyMonospaced Font Family

Changing Font Shape

There are four different shape options we can use in LaTeX. The most used shape option is italic, which is a cursive font that is normally slanted slightly to the right. We can create this font shape using \textit command. We also have a slanted option, which has the similar slant to the right as an italic font, but it keeps the same lettering as the normal font family. Basically, it is a non-cursive slanted font, and we can use \textsl command to create it. Another option we can create is the small capitals form, which uses small forms of capital letters instead of lowercase letters. We can activate this form using \textsc command. The last form we have is the most common and default way of writing: it’s the upright form. If we need to use it in the scope of a different shape, we can use it with \textup command. Below, we show the effects of these commands in various font families of Computer Modern.

\textup{Upright} \textit{Italic} \textsl{Slanted}\textsf{Upright \textit{Italic} \textsl{Slanted}}\texttt{Upright \textit{Italic} \textsl{Slanted}}\textsc{Small Capitals}
Changing Font Style in LaTeX | (2)

Notice that in the sans serif font family, italic and slanted fonts are the same. Some font families don’t have a slanted or an italic form. If that is the case, these commands produce the form that is available. In this case, italic command copied the form of the slanted command. It’s the same for small capitals: If that font family doesn’t have a small caps form, it will use another font family belonging the same font that has the small caps form.

There are also text switch equivalents of these commands: \upshape for the upright shape, \itshape for italic shape, \slshape for slanted shape and \scshape for small capitals shape.

Changing Font Weight

Font families usually come in at least two weight options, and bold is the most common weight option. We can use \textbf command to produce a bold text, and if we need to go back to the normal weight, which is also known as medium weight, we can use \textmd command. (It is also the default font weight, so the text will be printed in medium weight if it’s not in the scope of another font weight changing command.) Below, we demonstrated these options on serif and sans serif font family types.

(Video) How to Change Font sizes on Overleaf | Font sizes families and styles

\textbf{Bold} \textmd{Medium}\textsf{\textbf{Bold} \textmd{Medium}}
Changing Font Style in LaTeX | (3)

There are monospaced fonts that has weight options, but the default LaTeX font doesn’t have any weight options. However, we can introduce a bold form for the monospaced font family with bold-extra packageChanging Font Style in LaTeX | (4). It also adds a bold weight option to the small capitals shape.

\usepackage{bold-extra}\begin{document}\texttt{\textbf{Bold} Monospace}\textsc{\textbf{Bold} Small Capitals}\end{document}
Changing Font Style in LaTeX | (5)

In LaTeX, we can also select a light weight font, only if it’s supported by the font family. We can use \textlf to produce a text with a light weight version of the font.

There are also text switch versions of these commands: \bfseries can be used to print bold characters, \mdseries is for medium weight characters and \lfseries is the switch for light weight characters.

(Video) How to Change the font style in LaTeX -

Emphasizing Text

Different font shapes and weights are mainly used to emphasize pieces of text. In LaTeX, there is an easy and dynamic command to add emphasis to a word or a phrase: \emph. Basically, it italicizes text when the main text is in upright form. If the main text at the moment is in italics, the command reverts the emphasized part back to the upright form. Here is an example:

...Upright text, \emph{emphasised \emph{text} within emphasized text}....
Changing Font Style in LaTeX | (6)

Changing Letter Case

LaTeX provides the option to change the letter case of a piece of text to lower or upper case: \lowercase and \uppercase are the commands for the job. However, these commands can come up short in some cases. For instance, if there is a variable involved in the scope of a case changing command, it doesn’t change the case of the variables’ content.


This piece of code should produce an uppercase word: ‘TEXT’, but it produces ‘text’ instead. Also, these commands don’t work well with letters from other Latin alphabets, such as \ae which prints the letter æ. These problems can be fixed by using \MakeLowercase and \MakeUppercase commands instead. However, it doesn’t take care of all problems. For example, when used for a tabular environment, it changes the case of tabular in \begin{tabular} and \end{tabular} commands and prevents the table from being constructed.

We can use textcase packageChanging Font Style in LaTeX | (7) to avoid these problems. It creates three new commands: \MakeTextUppercase and \MakeTextLowercase for changing the letter cases, and \NoCaseChange to protect the letter casing when necessary, which helps include LaTeX commands in the scope of case changing commands. This package also works well in math mode, and can handle the arguments of \cite, \label, and \ref commands, which are useful referencing tools.

(Video) LaTeX Tutorial 2 – Text Formatting and Lists
Changing Font Style in LaTeX | (8)

Underline and Strikethrough

Underlining a text is possible with the simple \underline command in LaTeX, but like the case changing commands, it comes with its problems. A long piece of text in the scope of \underline command will not break properly to the next line. To solve this problem, we can use the ulem packageChanging Font Style in LaTeX | (9). This package mainly changes the way \emph command works: instead of using italics, it emphasizes the text with underlining it. We can set it to not break the regular working scheme of \emph command by adding it with normalem option. This package introduces \uline command for making a text underlined. It also comes with six more different ways to differentiate a piece of text with strikes and lines: \uuline double-underlines a text, \uwave underlines a text with a wavy line, \sout creates a strikethrough text, \xout strikes the text with hatching, \dashuline underlines a text with a dashed line and \dotuline underlines a text with a dotted line. Below, the effects of these commands are shown.

\usepackage{ulem}\begin{document}\uline{Underlined}\uuline{Double-Underlined}\uwave{Wavy-Underlined}\sout{Strikethrough}\xout{Struck with Hatching}\dashuline{Dashed Underline}\dotuline{Dotted Underline}\end{document}
Changing Font Style in LaTeX | (10)

Old Style Numbers

The default LaTeX font Computer Modern, and many other fonts come with two sets of numeral characters, the regular numbers and old style numbers. These old style numerals have different heights and depths from the standard ones. They are also known as medieval or lowercase figures. We can print these numbers by using \oldstylenums command. In the next example, we print two sets of numbers together.

Changing Font Style in LaTeX | (11)
(Video) Video , How to do text allignment, Changing font style, text colouring in LaTex


  • There are three font families to choose from: Serif Font Family (\textrm), Sans Serif Font Family (\textsf) and Monospaced Font Family (\texttt)
  • We can change the shape of the font using these commands: \textit for Italic, \textsl for Slanted and \textsc for Small Capitals. Slanted is a non-cursive version of Italic.
  • We can write in Bold by using \textbf command.
  • Bold-extra package lets the usage of bold characters in Monospaced Font Family and Small Capitals shape.
  • To emphasize text we can use \emph command, which prints italic text to emphasize in upright text and upright text to emphasize in italic text.
  • Textcase package helps changing the letter case without a problem. It comes with \MakeTextUppercase and \MakeTextLowercase commands.
  • To underline a text, we can use \underline command.
  • Ulem package haves more options to underline, such as double underline (\uuline) and dashed underline (\dashuline). It also has a strikethrough option (\sout).
  • LaTeX also has an \oldstylenums command, which will print old style numerals.


How do you change the font style in LaTeX? ›

Changing default font typeface

The font can also be changed for a specific element in the document. The command \fontfamily{qcr}\selectfont will set the TeX gyre cursor font typeface, whose fontcode is qcr , for the text inside the braces.

How do you change the font of an entire document in LaTeX? ›

Set the font size of the whole document by adding an option to the \documentclass command. (10pt, 11pt, and 12pt are available on most classes.) Extsizes package makes more sizes from 8pt to 20pt available for the whole document. Moresize package adds two more size commands: \HUGE and \ssmall.

What are the different font styles in LaTeX? ›

Latex Fonts:
  • 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)

How do I change the font to Times New Roman in LaTeX? ›

Setting fonts for different LaTeX elements

\setromanfont{Times New Roman} This is the normal font used in most of the document, Times New Roman in the example. The elements that require a sans font, explicitly declared by the \ssfamily in the example, will be typeset with Arial font.

How do I change all font styles? ›

Change the font for all text using styles
  1. Click Format > Text Styles.
  2. In the Item to Change list, click All, then select the font, size, or color you want for all text in the current view. ...
  3. Repeat this process for other views.

How do I change my style of type? ›

On the Home tab, right-click any style in the Styles gallery and click Modify. In the Formatting section, make any formatting changes you want, such as font style, size, or color, alignment, line spacing, or indentation. Choose whether the style change applies to the current document or to all future documents.

How do you change the font for existing text within a document? ›

Go to Format > Font > Font. + D to open the Font dialog box. Select the font and size you want to use.

How do you change the formatting for all text in the document? ›

Find and Replace Text Formatting
  1. Click the Replace button on the Home tab.
  2. Click More to expand the dialog box.
  3. Click the Format button.
  4. Select the type of formatting you want to replace.
  5. Specify the formatting you want to replace and click OK.
  6. Click in the Replace With field.
  7. Click the Format button again.

How do I change the format of a whole document? ›

Change the default layout
  1. Open the template or a document based on the template whose default settings you want to change.
  2. On the Format menu, click Document, and then click the Layout tab.
  3. Make any changes that you want, and then click Default.

What are the 3 basic font types? ›

Fonts vary widely by shape, size, and style. Although there are innumerable fonts available today, the vast majority of them can be organized into three distinct categories. These font types include serif, sans serif, and formal script.

What are the 4 common font style examples? ›

Some of the most popular types of fonts include serif, sans serif, slab serif, script and decorative.

What is the best font in LaTeX? ›

Table of Contents
  • Sans Serif. Kepler with additional “oldstyle” ligatures. Helvetica. Avant. Berasans. Libris. Biolinum. Iwona. Paratype. Heros.
  • Serif. Latin Modern. Baskerville / Baskervald with added “oldstyle” ligatures. Charter. Bitstream Charter. TX Helvetica. Zapf Chancery. Beraserif. Century Schoolbook. New Century Schoolbook. ...
  • HowTo.
Apr 18, 2022

Should I Use Times New Roman or Arial? ›

Arial is the font most commonly recommended by our experts. Times New Roman was the go-to font for so long that some of our experts now say it appears dated, but it's still a safe choice in terms of readability.

Can I use Arial instead of Times New Roman? ›

Arial: The Safe Choice

If Times New Roman is like wearing sweatpants to a job interview, then Arial is like wearing your trusted little black dress. This tried-and-true classic is a standard for resume fonts. It's clean, neutral and easy to read, making it a safe bet for any industry.

Is Times New Roman an outdated font? ›

Now, you may be thinking to yourself, “No one even uses Times New Roman anymore,” or “Times New Roman is so outdated.” But I assure you, Times New Roman is still an important typeface to look at. I mean even after a century, nine decades it's been, it can still be found everywhere.

What is the simple rule for choosing different fonts? ›

When selecting two fonts, use decisive contrast. When you choose to use multiple typefaces, make sure the typefaces you're using have substantial contrasting differences. But remember that the contrast is not the same as conflict. The ideal combination of fonts should create harmony.

Can I change font style? ›

Open Settings. Select Display. Choose Font size and style. Select your choice of Font from the Font Style menu, and you're done.

Which option helps in changing the font style? ›

On the Home tab, click the drop-down arrow next to the Font box. A menu of font styles will appear. Select the font style you want to use.

What are the three steps in changing text font style? ›

The basic steps to change the font of a text in a document are given below;
  1. Select the text you want to modify.
  2. Select the Home tab and locate the Font group.
  3. Click the drop-down arrow next to font style box.
  4. Font style menu appears.
  5. With a left click select the desired font style.

What is the first step if you want to change the font? ›

Changing font type

Highlight the text you want to change. Click the down arrow next to the font field on the formatting bar or Ribbon. (If you want to change the font to bold, italic, or underlined, click the B, I, or U on the format bar.)

How can you change the font style and font size of any text? ›

Change display size & text
  1. On your device, open the Settings app.
  2. Search and select Font size.
  3. To change your preferred font size, move the slider left or right.

What is font and how can you change font of the text? ›

To change the font size of selected text in desktop Excel, PowerPoint, or Word:
  1. Select the text or cells with text you want to change. To select all text in a Word document, press Ctrl + A.
  2. On the Home tab, click the font size in the Font Size box. You can also type in any size you want, within the following limits:

How do you change the formatting for all text in the document to add no extra space after paragraphs? ›

Change the line spacing in an entire document
  1. Go to Design > Paragraph Spacing.
  2. Choose an option. To single space your document, select No Paragraph Space.

How do I apply formatting to all cells? ›

Copy cell formatting
  1. Select the cell with the formatting you want to copy.
  2. Select Home > Format Painter.
  3. Drag to select the cell or range you want to apply the formatting to.
  4. Release the mouse button and the formatting should now be applied.

What does clear all formatting do? ›

With Word's Clear All Formatting command, you can remove text formatting like font, size, and color to return text to its default style. It's an easy way to start with a clean slate and apply the formatting of your choice.

What are the 4 types of formatting? ›

To help understand Microsoft Word formatting, let's look at the four types of formatting:
  • Character or Font Formatting.
  • Paragraph Formatting.
  • Document or Page Formatting.
  • Section Formatting.
Apr 11, 2022

Should I quick format or full format? ›

In case you need to format a brand-new data storage device, you should perform a full format. But if your drive has been already formatted and you are absolutely sure that it doesn't have damaged nor logical bad sectors, a quick format would be enough.

How do I fix a format problem? ›

How to fix format disk error without formatting
  1. Step 1: Run Antivirus Scan. First, connect the hard drive to a Windows PC while using a reliable /malware/antivirus tool to scan the drive. ...
  2. Step 2: Run CHKDSK Scan. ...
  3. Step 3: Run SFC Scan. ...
  4. Step 4: Use a Data Recovery Tool.
Jan 24, 2021

Which is the most used font style? ›


Helvetica is one of the world's most popular fonts, due to its versatility—there are more than 100 variations! It's also one of the oldest, having been around since 1957.

What are the 5 main fonts? ›

There are five basic classifications of typefaces: serif, sans serif, script, monospaced, and display. As a general rule, serif and sans serif typefaces are used for either body copy or headlines (including titles, logos, etc.), while script and display typefaces are only used for headlines.

What is the most default font? ›

Times New Roman

This is the most common font on earth. It's a medium weight serif font.

What is standard font style? ›

The most common font used is black Times New Roman at 12 points in size. Other serif fonts, those that have tails, that work well include Cambria, Georgia, Garamond, Book Antiqua, and Didot. Sans serif fonts, those without tails, that work well include Calibri, Helvetica, Verdana, Trebuchet MS and Lato.

What font is most pleasing to the eye? ›

Best fonts for reading
  • Times New Roman. For many, Times New Roman has become the default font for print and web documents. ...
  • Verdana. ...
  • Arial. ...
  • Tahoma. ...
  • Helvetica. ...
  • Calibri. ...
  • Verdana. ...
  • Lucida Sans (PC) or Lucida Grande (Mac)

Is LaTeX easier than Word? ›

Ultimately, it depends on your needs. If you want to write a complex document like a book, the advantages of LaTeX outweigh those of Word. If you want to quickly write a few pages, Word is superior. For longer and more complex books, LaTeX takes less effort.

Why do professors use LaTeX? ›

LaTeX can create scientific documents that look professional and accurately reflect the precise equations and other graphics necessary to express the researcher's work. Some other advantages of using this to prepare a research paper are: It is used extensively in the academic/scientific community.

Which font looks more professional? ›

Recommended serif fonts include Cambria, Georgia, and Times New Roman. Sans serif fonts don't have small strokes attached to their letters, giving them a cleaner and more modern style. Some recommended sans serif fonts include Arial, Calibri, and Verdana.

Why is Times New Roman so popular? ›

Because it was used in a daily newspaper, the new font quickly became popular among printers of the day. In the decades since, typesetting devices have evolved, but Times New Roman has always been one of the first fonts available for each new device (including personal computers).

Why does everyone use Arial? ›

Arial grew in popularity both because of its selection as a Microsoft core font and its design as a sans serif. It was, quite simply, the most accessible sans serif font available to most people with computers, and sans serif fonts were growing in popularity with the increase in computer usage.

What is a better font than Times New Roman? ›

1. EB Garamond. The elegant EB Garamond is a fantastic alternative for Times New Roman. As an older and more classic serif font, EB Garamond feels even more formal and fancy than Times New Roman.

Why Arial is the best font? ›

A contemporary sans serif design, Arial contains more humanist characteristics than many of its predecessors and as such is more in tune with the mood of the last decades of the twentieth century. The overall treatment of curves is softer and fuller than in most industrial style sans serif faces.

Is Times New Roman a dyslexia friendly font? ›

While serif fonts like Times New Roman are often hard for dyslexics to read, because the ticks at the tips on each stroke obscure the shape of the letter, Boer found adding certain serifs could help.

Why did we stop using Times New Roman? ›

Department now opts for more 'accessible' sans serif fonts

Times New Roman has been outlawed by the Home Office due to it being harder for visually impaired people or those who have difficulty reading to decipher, reports say.

Why is Calibri better than Times New Roman? ›

It is a digital-first typeface, as opposed to Times New Roman, which was created in 1931 for print newspapers and then reverse-engineered into a digital font. Calibri also has a larger character set, allowing it to be used for more languages and in more use cases than Times.

How can I change sans serif font in LaTeX? ›

By using the \sffamily command, we switched to the sans-serif typeface. The \bfseries command switched the text to bold. We used the \normalfont command to return to the default LaTeX font, and then we used the \ttfamily command to switch to a typewriter font.

What is the default font style in LaTeX? ›

LaTeX's default font is Computer Modern, but the editor also supports a number of other font types. Refer to the LaTeX font catalogue to see the range of fonts offered by LaTeX and how to use them in your document. To italicize text, use the \textit{..}

How to use Helvetica font in LaTeX? ›

  1. How to change fonts from Times Roman to Helvetica in Latex:
  2. Some can ask to change the font size and font type in latex. ...
  3. Add the following after \documentclass[options]
  4. \usepackage[scaled=0.92]{helvet}
  5. Both the above statements are same except that the first one will scale the size of font by some amount.

What is fontenc in LaTeX? ›

The package allows the user to select font encodings, and for each encoding provides an interface to 'font-encoding-specific' commands for each font. Its most powerful effect is to enable hyphenation to operate on texts containing any character in the font.

What is the most popular font style? ›

12 of the Most Popular Fonts in Graphic Design
  • Helvetica.
  • Garamond.
  • Futura.
  • Bodoni.
  • Arial.
  • Times New Roman.
  • Verdana.
  • Rockwell.
Jul 28, 2022


1. How to format text, font sizes and font effects in LaTeX
2. Font Styles and Spacing in LaTeX -1
(Chandra Has)
3. Font styles and Families in latex
4. LaTeX 01: Text Formatting
(John Hammond)
5. (UPDATED) LaTeX Tutorial 5 - Text and Document Formatting
(Michelle Krummel)
6. LaTeX Programming : 019 : Text Styles Part 1 of 2
(Fluidic Colours)
Top Articles
Latest Posts
Article information

Author: Reed Wilderman

Last Updated: 01/02/2023

Views: 6644

Rating: 4.1 / 5 (52 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Reed Wilderman

Birthday: 1992-06-14

Address: 998 Estell Village, Lake Oscarberg, SD 48713-6877

Phone: +21813267449721

Job: Technology Engineer

Hobby: Swimming, Do it yourself, Beekeeping, Lapidary, Cosplaying, Hiking, Graffiti

Introduction: My name is Reed Wilderman, I am a faithful, bright, lucky, adventurous, lively, rich, vast person who loves writing and wants to share my knowledge and understanding with you.