Latex help needed, about indentation

  • Context: LaTeX 
  • Thread starter Thread starter fluidistic
  • Start date Start date
  • Tags Tags
    Latex
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
5 replies · 4K views
fluidistic
Gold Member
Messages
3,934
Reaction score
286
Latex "help" needed, about indentation

Hello guys,
I am writing a document in latex. When I want to end a paragraph I use
Code:
\\
. However when I enter text after the "\\" as to start a new paragraph, there is no indentation.

I do not know how to make such indentations automatic.

I have found a manual way to do this for one line at a time, but this is very time-consuming so I would like to know an automatic way to do this.
I have used google but could not find a possible answer.

Thank you!
 
Physics news on Phys.org
Code:
\\

Does not end a paragraph. It forces a line break in the middle of a paragraph, and allows the line to stop before the right hand margin.

If you really want to end a paragraph without having a blank line in your input (e.g. when writing a macro definition) you can use
Code:
\par

But as Fredrik said, normally you just leave a blank line between paragraphs in your document.

This sort of question should be covered in any introduction to LaTeX. This is one of the better ones. You may already have it as part of your LaTeX installation - look for lshort.pdf. If not, download it here: http://www.ctan.org/tex-archive/info/lshort/english/
 
Thank you very much guys.

However it seems that the first paragraph of a section does not get indented. And this, regardless if I put 1, 2 or more blank lines prior to writing the text.
I had to use \hspace*{6 mm} for these first paragraphs.
 
yeah...that's on purpose. I can't readily find references, right now; but do some research on Writing Styles or Standards and you will see.
 
fluidistic said:
However it seems that the first paragraph of a section does not get indented. And this, regardless if I put 1, 2 or more blank lines prior to writing the text.
I had to use \hspace*{6 mm} for these first paragraphs.

As gsal said, that is intentional, because it is the standard convention for typesetting documents in English (but not in some other languages, e.g. Greek)

You can change it globally with
Code:
\usepackage{indentfirst}

If you want to do it on a case-by-case basis,
Code:
\hspace{\parindent}
is better than your "6mm" solution, because it is guaranteed to match the size of the other paragraph indentation if you change the document style, font size, etc.