#Spacing before paragraph

1 messages · Page 1 of 1 (latest)

wise parrot
#

Hi. I`m new to LaTeX and I could not figure out how to do the spacing before paragraphs. Overleaf does it automatically, so I think it is something related to the preamble settings, but I could not find someone talking about this on the internet.

delicate drift
#

When you say before paragraphs, in context do you mean?

#

Do you mean the space between, say, section header and the following first paragraph?

wise parrot
#

No, I mean like

delicate drift
#

Overleaf doesn't do anything to the default behaviour

wise parrot
#

,tex Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum

vapid parrotBOT
#

Vilgax

delicate drift
#

That's called paragraph indentation

#

Do you want to enable it or remove it?

wise parrot
#

to enable it

#

in the bot

delicate drift
#

The reason why it's enabled for Overleaf is because they use article class, and article class enables it by default

#

The variable you're looking for is \parindent.

Explore how it behaves when you manipulate it as follows:

\setlength{\parindent}{ some length + dimension }
#

the final argument should contain both number and dimension

#

for example, 1em, 10pt, 5mm etc

wise parrot
#

got it

#

it changed

#

i put it in the body, is that right?

delicate drift
#

If you want the behaviour to be persistent, add it to your preamble.

#

Do you know how?

#

it's ,preamble --add \setlength ....

#

and I can review it for you

wise parrot
#

ok

#

what is the dimension arg?

#

i set it with 70pt just to see a notorius change and it worked

delicate drift
#

for dimensions, most common options are ex (length of an x for the current font and font size), em (same as ex but length of an m), pt for points, mm and cm (obvious)

#

ex and em scale with your font, while the others don't

wise parrot
#

got it

#

i'm gonna do the request

#

one sec

delicate drift
#

Done