Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

LaTeX line breaks.

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
vdboor
Guru
Guru
User avatar
Posts: 592
Joined: Wed Dec 03, 2003 9:31 am
Location: The Netherlands
Contact:
Contact vdboor
Website

LaTeX line breaks.

  • Quote

Post by vdboor » Mon Mar 07, 2005 9:43 am

I've just started experimenting with LaTeX, and I was wondering:
does it matter if I use linebreaks in my paragraphs?
My tex file is stored in subversion, and using a new line for each sentense makes it easier to see the "svn diffs".
The best way to accelerate a windows server is by 9.81M/S²
Linux user #311670 and Yet Another Perl Programmer

[ screenies | Coding on KMess ]
Top
robbar
Apprentice
Apprentice
User avatar
Posts: 156
Joined: Sat Aug 21, 2004 11:05 am
Location: Saarbruecken, Germany
Contact:
Contact robbar
Website

  • Quote

Post by robbar » Mon Mar 07, 2005 10:03 am

No, a single linebreak doesn't matter in LaTeX. You only get an new line in just in case:
- you use \newline
- or you have two adjacent linebreaks
Top
TNorthover
Guru
Guru
User avatar
Posts: 434
Joined: Sun Jan 25, 2004 7:52 pm
Location: Edinburgh, UK

  • Quote

Post by TNorthover » Mon Mar 07, 2005 10:05 am

Line breaks are fine in paragraphs. A new paragraph is started if there's a blank line between two others.

You can even sort of have one of those by putting a commend character ("%") on it, so for example:

Code: Select all

S1

S2
would be 2 paragraphs, but:

Code: Select all

S1
%
S2
would only be 1.
Top
vdboor
Guru
Guru
User avatar
Posts: 592
Joined: Wed Dec 03, 2003 9:31 am
Location: The Netherlands
Contact:
Contact vdboor
Website

  • Quote

Post by vdboor » Mon Mar 07, 2005 12:31 pm

thanks a lot :)

There was one thing I'm wondering about:
robbar wrote:No, a single linebreak doesn't matter in LaTeX. You only get an new line in just in case:
- you use \newline
- or you have two adjacent linebreaks
What is the difference between \newline and \\ ? (or \\\\)
thanks in advice.
The best way to accelerate a windows server is by 9.81M/S²
Linux user #311670 and Yet Another Perl Programmer

[ screenies | Coding on KMess ]
Top
TNorthover
Guru
Guru
User avatar
Posts: 434
Joined: Sun Jan 25, 2004 7:52 pm
Location: Edinburgh, UK

  • Quote

Post by TNorthover » Mon Mar 07, 2005 3:10 pm

Well, \\\\ is 2 new lines.

None of those forms start a new paragraph (so no indentation).

As to the difference, it looks like the \\ form can accept an argument of the amount of space to put between the lines, so \\[10cm] would give a 10cm gap. The \newline form can't do that.

There's also an extra \\* form which supresses page breaks.
Top
vandorp
n00b
n00b
User avatar
Posts: 56
Joined: Sat May 08, 2004 11:11 pm

  • Quote

Post by vandorp » Tue Mar 08, 2005 7:20 am

I would take a look at this manual:

http://www.ctan.org/tex-archive/info/ls ... lshort.pdf

It's a very good read, exactly what you need to know. It's a good introduction but I use it as a reference as well. The stuff you ask is in there as well.
Top
Post Reply

6 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic