Is there way to get to new line latex?
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} \]
\[22\\3 \]
.... 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.
\begin{align} Thanks \\ It\space works \end{align}
Rockage :)
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*} \]
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
\begin{array}&|1&|2&| 3&| \\ |4&|5&| 6&| \end{array}
Join our real-time social learning platform and learn together with your friends!