Ask your own question, for FREE!
OpenStudy Feedback 22 Online
OpenStudy (anonymous):

Is there way to get to new line latex?

OpenStudy (shadowfiend):

There are a couple. Starting a new LaTeX section is the easiest way (so close the \ [ and then open them again). If you want to get a bit more elaborate, you have to drop into an align environment: \begin{align} 2x + 3x = 2 \\ 5x = 2\\ x = \frac{2}{5} \end{align} The \\ here marks a newline. The upside of the align environment is that you can use it to line up equals signs. The above renders like this: \[ \begin{align} 2x + 3x = 2 \\ 5x = 2\\ x = \frac{2}{5} \end{align} \]

OpenStudy (anonymous):

\[22\\3 \]

OpenStudy (shadowfiend):

.... I'm an idiot, sorry. You have to wrap in \ begin{align} and \ end{align} for that to work. But! You can leave off the \ [ and \ ] if you do that. I hadn't noticed, sorry.

OpenStudy (anonymous):

\begin{align} Thanks \\ It\space works \end{align}

OpenStudy (shadowfiend):

Rockage :)

OpenStudy (mathteacher1729):

There should be an ampersand "&" symbol wherever you want your alignment to be: Compare \[ \begin{align} 2x + 3x = 2 \\ 5x = 2\\ x = \frac{2}{5} \end{align} \] with \[ \begin{align} 2x + 3x &= 2 \\ 5x &= 2\\ x &= \frac{2}{5} \end{align} \] Note how the first example doesn't quite have the equal sign line up at the last step... Now, to make this even more extreme consider: \[ \begin{align*} u = \arctan x dv = 1 \, dx \\ du = \frac{1}{1 + x^2} dx v = x. \end{align*} \] vs \[ \begin{align*} u &= \arctan x & dv &= 1 \, dx \\ du &= \frac{1}{1 + x^2} dx & v &= x. \end{align*} \]

OpenStudy (shadowfiend):

Ah, fair enough. I usually use the ampersands, and was going to indicate as much, but it looked aligned so I thought I'd missed a feature of the align environment that properly aligned equals signs :p

OpenStudy (anonymous):

\begin{array}&|1&|2&| 3&| \\ |4&|5&| 6&| \end{array}

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!
Latest Questions
Breathless: Spooky witch but cute
4 hours ago 3 Replies 0 Medals
Arriyanalol: help
3 hours ago 10 Replies 2 Medals
Arriyanalol: @tinydinoUwU stop trying to find a argument u blad lil boy
1 day ago 5 Replies 3 Medals
Jaded012023: Please tell me what you all think of this song
6 hours ago 6 Replies 1 Medal
Arriyanalol: bro how
6 hours ago 2 Replies 3 Medals
Arriyanalol: cant wait for the new bluey movie in 2027
1 day ago 12 Replies 2 Medals
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!