#TEXT NOT ALIGNED

1 messages · Page 1 of 1 (latest)

latent barn
#

My code

$\begin{align}
y & = \sqrt{\frac{x^3}{2}}\\
& = \left(frac{x^3}{2}\right)^{\frac{1}{2}}\\
& = \frac{x^{\frac{3}{2}}{2}\\
\end{align}$

Whenever I try run this code the align command does not work
Can someone please explain what I need to do??

weak ventureBOT
#

skySLAYER

$\begin{align}
y & = \sqrt{\frac{x^3}{2}}\\
& = \left(frac{x^3}{2}\right)^{\frac{1}{2}}\\
& = \frac{x^{\frac{3}{2}}{2}\\
\end{align}$
```Compilation error:```! Package amsmath Error: \begin{align} allowed only in paragraph mode.

See the amsmath package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.65 $\begin{align}
                   
You've lost some text.  Try typing  <return>  to proceed.
If that doesn't work, type  X <return>  to quit.```
latent barn
#

This is what pops up

storm stag
#

You need not be in math mode to use align, and you are missing delimiters for second and third line

latent barn
#

And also how do I go into paragraph mode then??

storm stag
#

by not entering math mode

weak ventureBOT
#
\begin{align}
y & = \sqrt{\frac{x^3}{2}}\\
& = \left(\frac{x^3}{2}\right)^{\frac{1}{2}}\\
& = \frac{x^{\frac{3}{2}}}{2}
\end{align}
storm stag
#

Notice how I didn't do $ ... $?

latent barn
storm stag
#

What's Yh?

latent barn
#

Yeah

#

Yeah I noticed is what I was trying to say

latent barn
storm stag
#

Huh

latent barn
#

\begin{align}
y & = \sqrt{\frac{x^3}{2}}\
& = \left(frac{x^3}{2}\right)^{\frac{1}{2}}\
& = \frac{x^{\frac{3}{2}}{2}\
\end{align}

weak ventureBOT
#

skySLAYER

\begin{align}
y & = \sqrt{\frac{x^3}{2}}\\
& = \left(frac{x^3}{2}\right)^{\frac{1}{2}}\\
& = \frac{x^{\frac{3}{2}}{2}\\
\end{align}
```Compilation error:```! File ended while scanning use of \align.
<inserted text> 
                \par 
<*> 602425518499037184.tex
                          
I suspect you have forgotten a `}', causing me
to read past where you wanted me to stop.
I'll try to recover; but if the error is serious,
you'd better type `E' or `X' now and fix your file.```
storm stag
#

You have mismatching braces in your code as well

#

Try copy pasting my code

latent barn
#

K

#

\begin{align}
y & = \sqrt{\frac{x^3}{2}}\
& = \left(\frac{x^3}{2}\right)^{\frac{1}{2}}\
& = \frac{x^{\frac{3}{2}}}{2}
\end{align}

weak ventureBOT
#

skySLAYER

storm stag
#

fantastic.

latent barn
#

Yup that's what I wanted

storm stag
#

We will consider this post solved

latent barn
#

Also 1 more qn

storm stag
#

Yes?

latent barn
#

Will that (1) (2) (3) always appear??

#

If I use \align command??

storm stag
#

If you use align environment as is, yes.

#

If you don't want those numbers, use the starred version, align*

latent barn
#

So what wld u recommend instead

storm stag
#
\section*{Numbered}
\begin{align}
y & = \sqrt{\frac{x^3}{2}}\\
& = \left(\frac{x^3}{2}\right)^{\frac{1}{2}}\\
& = \frac{x^{\frac{3}{2}}}{2}
\end{align}

\section*{No numbering}
\begin{align*}
y & = \sqrt{\frac{x^3}{2}}\\
& = \left(\frac{x^3}{2}\right)^{\frac{1}{2}}\\
& = \frac{x^{\frac{3}{2}}}{2}
\end{align*}
weak ventureBOT
latent barn
#

Like this \align* ??

storm stag
#

I don't recall using a macro called \align.

latent barn
#

What?

storm stag
#

It's \begin{align} ... \end{align}

#

not \align

latent barn
#

\begin{align*} right??

storm stag
#

make sure your \end also matches the content in your \begin

latent barn
#

Yh I get that

#

Or else it wldnt be rendered

storm stag
#

Please stop randomly stripping vowels from your words, I'm having trouble comprehending

latent barn
#

Ok sorry 😅

storm stag
#

Thank you

#

and yes, try it out yourself and see the difference between align and align* environment

latent barn
#

I usually chat like this so Im pretty used to; to people understanding this

storm stag
#

f i strt tlkng lk ths im gng t hv a szr

latent barn
#

Lmao 😂

storm stag
#

anyways, the post is now answered in full

latent barn
#

Yes

storm stag
#

/close