1

I know 2 options to break the line.

Option 1:

Abcdef\\
Ghijkl

Result:

Abcdef
Ghijkl

Option 2:

Abcdef

Ghijkl

Result:

Abcdef
  Ghijkl

Are there any rules when to use which?

PS: I'm using scrreprt as my document class.

14
  • There's also \newline and \linebreak by the way. See What is the difference between \newline and \\? and also this page: Line breaks and blank spaces and the related Reference guide
    – Alenanno
    Jun 18, 2015 at 23:08
  • 1
    Short answer: never use Option 1 in the regular body of your document. Use it to end the row in a tabular or align environment, for example, but not to start a new line in the main text.
    – cfr
    Jun 18, 2015 at 23:11
  • \\ fills the rest of the current line with white space, so LaTeX cannot fit anything else there. An blank line in your source tells LaTeX to start a new paragraph.
    – onewhaleid
    Jun 18, 2015 at 23:17
  • For option 2, you should add \noindent \ unless you do want some indentation.
    – Bernard
    Jun 19, 2015 at 0:04
  • This is surely a duplicate? @Bernard Usually, you shouldn't need to. If you are doing that at all often, there is something wrong with your mark up. (There is often something wrong with mine, but that just confirms the point. :()
    – cfr
    Jun 19, 2015 at 0:12

0

Browse other questions tagged .