how to add indent in latex

Mastering Indentation: A Comprehensive Guide to Adding Indents in LaTeX

By Rachel White
AD

In the realm of typesetting, LaTeX offers an extensive range of functionalities, including text manipulation like adding indents. Indents, also known as margins, are crucial in adjusting text alignment and formatting. In LaTeX, you can apply indents globally or locally, using various commands. This guide will walk you through how to add indents in LaTeX, helping you master these essential formatting aspects.

Before delving into the commands, let's understand two primary types of indents. First, we have the paragraph indentation, which refers to the extra space added at the beginning of a paragraph. Second, we have the hanging indentation, with the first line being flush with the margin, and the subsequent lines having an extra space from the left.

Paragraph Indentation

LaTeX by default introduces a small indentation at the beginning of each paragraph. However, you can adjust this or remove it altogether.

AD
Learning LaTeX Templates with OverLeaf
Learning LaTeX Templates with OverLeaf
How To Insert a Space Between Items in LaTeX
How To Insert a Space Between Items in LaTeX
How I use AI in LaTeX -- my favorite workflow with Overleaf & Writefull
How I use AI in LaTeX -- my favorite workflow with Overleaf & Writefull

If you want to **remove paragraph indentation**, you can use the **`[`** command before the paragraph. Here's an example: ```latex \textbf{[} This is a paragraph with no indentation. ```

Global Paragraph Indentation

To **change the global paragraph indentation**, you can manipulate the value of the **`\parindent`** LaTeX length. The default value is **10 pt**. Here's how you can adjust it: ```latex \setlength\parindent{20pt}% 20pt paragraph indentation ```

How to use Liquid Latex for moulding
How to use Liquid Latex for moulding
Liquid Latex Tutorial for Mould Making
Liquid Latex Tutorial for Mould Making

In this command, replace **20pt** with your desired value. To remove paragraph indentation globally, set the value to **0pt**: ```latex \setlength\parindent{0pt}% No paragraph indentation ```

AD