Ask your own question, for FREE!
OpenStudy Feedback 7 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!
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!