LaTeX How do I format new lines in Latex?

  • Thread starter Thread starter andrevdh
  • Start date Start date
  • Tags Tags
    Latex Lines
AI Thread Summary
In LaTeX, the standard method for starting a new line is to use two backslashes "\\". However, users have reported mixed results with this approach. Some find it effective only when writing to a TeX file intended for PDF or PS output. An alternative method that has been noted is using the array environment, where a double backslash successfully creates a new line. Additionally, the align environment can also be used for line breaks, as shown in the example with the command \begin{align*}Line\ one\\Line\ two\end{align*}. Overall, while "\\" is the conventional method, its effectiveness can depend on the context in which it is used.
andrevdh
Messages
2,126
Reaction score
116
What is the formatters for beginning a new line in Latex? According to the notes two backshlashes "\\" should do the trick.
 
Physics news on Phys.org
Yes, but it's never worked for me either.
\mbox{I just}
\mbox{do this.}
 
It works if you put it in an array. Then a double back-slash gives a new line.

<br /> \begin{array}{l}<br /> x = y \\ <br /> a^2 = b^2 \\ <br /> \mathop {\lim }\limits_{\delta x \to 0} \frac{{\delta y}}{{\delta x}} \\ <br /> \end{array}<br />

Code:
\begin{array}{l}
 x = y \\ 
 a^2  = b^2  \\ 
 \mathop {\lim }\limits_{\delta x \to 0} \frac{{\delta y}}{{\delta x}} \\ 
 \end{array}
 
andrevdh said:
What is the formatters for beginning a new line in Latex? According to the notes two backshlashes "\\" should do the trick.
The only time that has worked for me is when I am actually writing to a TeX file (that will be made into a PS or PDF document).

Alex
 
Thank you,
I found the answer on the Latex examples page:
\begin{align*}Line\ one\\Line\ two\end{align*}
 
Last edited:

Similar threads

Replies
4
Views
2K
Replies
1
Views
2K
Replies
3
Views
3K
Replies
13
Views
3K
Replies
12
Views
2K
Replies
4
Views
3K
Replies
8
Views
3K
Back
Top