How do I format new lines in Latex?

  • LaTeX
  • Thread starter andrevdh
  • Start date
  • Tags
    Latex Lines
In summary, the proper formatter for beginning a new line in Latex is using two backslashes "\\". However, this method may not always work for some individuals. Another alternative is to use an array or align environment, which can be found in the Latex examples page.
  • #1
andrevdh
Homework Helper
2,127
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
  • #2
Yes, but it's never worked for me either.
[tex]\mbox{I just}[/tex]
[tex]\mbox{do this.}[/tex]
 
  • #3
It works if you put it in an array. Then a double back-slash gives a new line.

[tex]
\begin{array}{l}
x = y \\
a^2 = b^2 \\
\mathop {\lim }\limits_{\delta x \to 0} \frac{{\delta y}}{{\delta x}} \\
\end{array}
[/tex]

Code:
\begin{array}{l}
 x = y \\ 
 a^2  = b^2  \\ 
 \mathop {\lim }\limits_{\delta x \to 0} \frac{{\delta y}}{{\delta x}} \\ 
 \end{array}
 
  • #4
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
 
  • #5
Thank you,
I found the answer on the Latex examples page:
[tex]\begin{align*}Line\ one\\Line\ two\end{align*}[/tex]
 
Last edited:

Related to How do I format new lines in Latex?

1. What is the syntax for creating a new line in LaTeX?

The syntax for creating a new line in LaTeX is the double backslash "\\". This will create a line break without starting a new paragraph.

2. How do I create multiple new lines in LaTeX?

To create multiple new lines in LaTeX, you can use the command "\\\\" multiple times. For example, using "\\\\ \\\\" will create two new lines.

3. Can I add spacing between new lines in LaTeX?

Yes, you can add spacing between new lines in LaTeX by using the "\\\\[" command, followed by the desired amount of spacing in square brackets. For example, "\\\\[\textit{spacing}]".

4. How can I indent a new line in LaTeX?

To indent a new line in LaTeX, you can use the "\\\\indent" command after the double backslash. This will indent the new line by the default indentation size.

5. Is it possible to create a new line without starting a new paragraph in LaTeX?

Yes, it is possible to create a new line without starting a new paragraph in LaTeX by using the "\\\\newline" command. This will create a new line without the extra spacing that is added between paragraphs.

Similar threads

  • MATLAB, Maple, Mathematica, LaTeX
Replies
3
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
5
Views
765
  • MATLAB, Maple, Mathematica, LaTeX
Replies
5
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
4
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
12
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
3
Views
3K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
13
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
5
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
4
Views
11K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
12
Views
2K
Back
Top