1

I'm working on my thesis (I have no previous knowledge about Latex), I noticed that after inserting images, something weird is going on with the indentation. I don't know how to upload the Latex code, so here there is a screenshot of the script:

enter image description here

And the appearence of the page is the following:

enter image description here

As you can see there is a gap between the beginning of the second text, but I didn't insert it. And this error is repeated:

enter image description here

So I don't understand what is messing with the text, is it something with the image? And there is more in line 27, if I remove the \newline and insert \ the indentation is correct, but why? Is the same thing, isn't it? I have already tried to use \centering before the text, but this gives the page a bad look

bl4nk
  • 113
  • 3
    Screenshots of some code snippets are not enough to reproduce a problem. So you should always show a minimal working example starting with \documentclass and ending with \end{document}. So currently I can only guess, that the intend it the normal \parindent. BTW: You should not use \newline to make paragraph skips. Use, e.g., package parskip instead, if you always want paragraph distance instead of indent, if the class does not provide it. – cabohah Jun 23 '23 at 09:25
  • 1
    related: https://tex.stackexchange.com/q/82664/277964 https://tex.stackexchange.com/q/38829/277964 – cabohah Jun 23 '23 at 09:30
  • 2
    Welcome! It seems that you are confusing newlines and paragraphs. Please take a look at https://www.overleaf.com/learn/latex/Paragraphs_and_new_lines and maybe at https://tex.stackexchange.com/questions/82664/when-to-use-par-and-when-newline-or-blank-lines?noredirect=1&lq=1 – Rmano Jun 23 '23 at 09:40

1 Answers1

3

This is the usual paragraph indent. It makes sense for books. If you have good reasons against it, you could set in the document preamble \parindent0mm.

And do not use \newline for a linebreak. Just use either an empty line, \smallskip, \medskip, or \bigskip.

Arne
  • 1,305
  • May I ask you what's the difference between the \newline and the empty lines you have suggested? Just to understand better – bl4nk Jun 23 '23 at 11:55
  • This is explained here quite well: https://tex.stackexchange.com/questions/82664/when-to-use-par-and-when-newline-or-blank-lines – Arne Jun 23 '23 at 15:06