I am writing a thesis report using LaTeX and I need to add indentations because every new paragraph starts from the initial position on the left.
How do I add indentations?
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityI am writing a thesis report using LaTeX and I need to add indentations because every new paragraph starts from the initial position on the left.
How do I add indentations?
Paragraph indention is controled by the parameter \parindent
. In most document classes it is set to a positive value so you should see indentations. If this is not the case you can set this parameter in the document preamble to whatever value you wish, e.g.
\setlength\parindent{24pt}
Of course, a requirement is that you mark up your paragraphs: a paragraph ends by either a blank line or by the command \par
. If you instead just used \\
you have directed LaTeX to start a new line but not a new paragraph.
\parindent
in terms of the type size. That way the indentation will scale if you change the size of the type. Bringhurst recommends indenting the paragraph by the same size as the type or the leading. So if you set the size using \fontsize{11pt}{13pt}\selectfont
, you should use 11 or 13 pt.
1 em
is another common length to use. Although I have noticed that a lot of american english texts seem to have a bigger indentation. It all varies... :)
I think you need:
\indent Here comes your text
\indent
will add zero indentation too
Feb 23, 2012 at 11:11
\indent
except in very special circumstances. There is the possibility that some environment explicitly does something like \noindent
but from the little information above my guess it is a more general problem of not having any indentation.
Feb 23, 2012 at 11:29
\indent
has no effect at the start of a paragraph. Are you sure that this answer worked for you?
Mar 3, 2014 at 15:47
To forcibly insert a space that is the same length as an indentation you can use the following:
\hspace{\parindent}
This can be useful if you start a new section with a framed theorem, etc., and latex does not recognize it as a paragraph.
\hspace{\parindent}
is larger than an automatic indentation. Do you know why and how to fix it?
Jan 29, 2019 at 12:23
I assume you want to add indentation after the section or subsection title as LaTeX does indentation of the other paragraphs first. The solution I used was to use a package, \usepackage{indentfirst}
. You can download indentfirst.sty
from the web. But there are reasons concerning proper style of why the first paragraph should not be indented.
`
to mark your inline code as I did in my edit. 2.) The package indentfirst
is already part of all important TeX distributions or at least can be installed with the package managers, so there’s no need for downloading.
\vspace*{6mm}
will work by default.
Similarly, \hspace*{10mm}
will add a line spacing, but you have to reuse it every time you need the space.
It sounds like you have forgotten you have \usepackage{parskip}
in your preamble.
Remove it.
I keep trying to post this, but keep getting an inane message saying it won't be, because it looks suspicious. Let's see if this additional note helps it slip through.