TeX - LaTeX Asked on July 21, 2021
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?
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.
setlengthparindent{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.
Correct answer by Frank Mittelbach on July 21, 2021
I think you need:
indent Here comes your text
Answered by Paul Hiemstra on July 21, 2021
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.
Answered by Sergio Parreiras on July 21, 2021
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.
Answered by Trevor on July 21, 2021
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.
Answered by stack-delay on July 21, 2021
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.
Answered by David Crosswell on July 21, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP