Ask your own question, for FREE!
LaTeX Practicing! :) 12 Online
OpenStudy (anonymous):

How to insert new line, please :D

Parth (parthkohli):

Use "\\". ``` 1\\ 2 \\ 3 \\ 4 ``` yields\[1 \\ 2 \\ 3 \\ 4\]

Parth (parthkohli):

Similarly, you may start a new \(\LaTeX\) bracket again. So, ``` \[1\]\[2\]\[3\]\[4\] ``` yields\[1\]\[2\]\[3\]\[4\]

Parth (parthkohli):

Notice how \\ is much more convenient if you want to use lesser spacing between two lines. :)

OpenStudy (anonymous):

Thank you @ParthKohli :)

Parth (parthkohli):

You're welcome :)

OpenStudy (anonymous):

I was always disturbed by lengthy spacing between eqs before.

Parth (parthkohli):

Me too! Another tip for you. ``` Right: \[x + 3 = 8\]\[\implies x = 8 - 3 = 5\] ``` The above is better since this doesn't do a lot of spacing between two equations. Here's what you should do. ``` Wrong: \[x + 3 = 8\] \[\implies x = 8 - 3 = 5 \] ```

hartnn (hartnn):

\(hi\\hello\\testing\\1\\2\\3\)

Parth (parthkohli):

Let's compare the outputs of both 'right' and the 'wrong'. Right -\[x + 3 = 8\]\[\implies x = 8 - 3 = 5\] Wrong -\[x + 3 = 8 \] \[\implies x = 8 - 3 = 5\]

Parth (parthkohli):

Another good way is the following: ``` x + 3 = 8 \\ \implies x = 8 - 3 = 5 ```

OpenStudy (anonymous):

Wow, thanks for the bonus tip. What about making equals aligned. Is there a way?

OpenStudy (kinggeorge):

To make equals aligned, it's a little bit weirder. There are two ways that stand out to me. 1: `f(x)=4x+7(x+3) \\ f(x)=4x+7x+21 \\ f(x)=11x+21` which outputs\[f(x)=4x+7(x+3) \\ f(x)=4x+7x+21 \\ f(x)=11x+21\]The downside to this, is that you always have to have the same stuff before the equals sign. 2. `\begin{aligned} f(x)=32 &=4x+7(x+3) \\ &=4x+7x+21 \\ &=11x+21 \\ 32-21&=11x \\ 11&=11x \\ x&=1 \end{aligned}` which outputs \[\begin{aligned} f(x)=32 &=4x+7(x+3) \\ &=4x+7x+21 \\ &=11x+21 \\ 32-21&=11x \\ 11&=11x \\ x&=1 \end{aligned}\]You start with `\begin{aligned}` and end with `\end{aligned}`. To start a new line, you use `\\` and wherever you put the `&` sign, that's where it lines things up. In this case, I put them in front of the equals signs. This method gives you much more flexibility, but it takes longer to type.

OpenStudy (anonymous):

Yaay, thanks @KingGeorge !

OpenStudy (kinggeorge):

You're welcome.

Parth (parthkohli):

That's something new I learned; I've heard only of `\begin{align} `.

OpenStudy (kinggeorge):

Technically speaking, they're almost the same, but you should use "aligned" if you're working in a second environment. So if you have an equation environment, you need to use "aligned" to align your lines. In the standard math mode, I think "align" is technically more correct, but they have the same effect in math mode, so I just always use "aligned."

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!