Text FormattingDifference between "\\" and "\par"

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
ytyyutianyun
Posts: 5
Joined: Thu May 10, 2012 5:00 am

Difference between "\\" and "\par"

Post by ytyyutianyun »

What's the difference between "\\" and "\par"?
Thanks

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Difference between "\\" and "\par"

Post by Stefan Kottwitz »

  • \\ ends a line, the following text starts at the beginning of a new line. The next line belongs to the same (logical) paragraph.
  • \par ends the paragraph (so implicitly also the line). But because the paragraph is ended, a paragraph indentation or a paragraph skip may be added, in addition to the line skip, depending on the settings.
Stefan
LaTeX.org admin
ytyyutianyun
Posts: 5
Joined: Thu May 10, 2012 5:00 am

Re: Difference between "\\" and "\par"

Post by ytyyutianyun »

Thanks, I don't know how I can possibly thank you enough.
Post Reply