# Thread: test, this is only a test of the latex system

1. ## test, this is only a test of the latex system

Hi,
I am just trying to learn how to use latex!
\sqrt{4}=2

\int {x}^{3 }dx
\int {x}^{3}dx

2. You need to wrap them in tex tags

Code:
$\displaystyle \int_{a}^{b}f(x) \, dx$
\int_{a}^{b}f(x) \, dx $\displaystyle \int_{a}^{b}f(x) \, dx$

Code:
 $\displaystyle \sqrt{4}=2$
\sqrt{4}=2 $\displaystyle \sqrt{4}=2$

3. Thanks!!

4. $\displaystyle \sqrt{4}=2$

$\displaystyle \int_{a}^{b}f(x) \, dx$
Why is the integral giving me an error? I wrote \int_{a}^{b}f(x) \, dx with {math} at the beginning and {/math} at the end? I DID use [] instead of {}

5. Originally Posted by mathprofessor
$\displaystyle \sqrt{4}=2$

$\displaystyle \int_{a}^{b}f(x) \, dx$
Why is the integral giving me an error? I wrote \int_{a}^{b}f(x) \, dx with $\displaystyle at the beginning and$ at the end?
You are using $$[/ math] tags with out the space instead of [tex] [/ tex] tags Due to technical difficulties you must use the 2nd set of tags. [tex] \int_{a}^{b} f(x) \, dx [/ tex] again remove the space 6. Tip: if you want to display actual LaTeX code, use the noparse tags around the whole thing. Then you can avoid awkward circumlocutions such as "but without the space". 7. Originally Posted by Ackbeet Tip: if you want to display actual LaTeX code, use the noparse tags around the whole thing. Then you can avoid awkward circumlocutions such as "but without the space". That is [noparse] [/noparse] tags. (and I am still surprised that that works correctly! ) CB 8. ## Re: test, this is only a test of the latex system \displaystyle M = \left( {\begin{array}{cc} x & y \\ z & w \\ \end{array} } \right)  \displaystyle \begin{bmatrix}1 & 3\\ 2 & 4\end{bmatrix}  I'm bad at matrix latex 9. ## Re: test, this is only a test of the latex system Originally Posted by noob mathematician \displaystyle M = \left( {\begin{array}{cc} x & y \\ z & w \\ \end{array} } \right)  \displaystyle \begin{bmatrix}1 & 3\\ 2 & 4\end{bmatrix} ( Here is the cleaned up LateX. Remove any line feeds. [TEX]M =\left( {\begin{array}{cc} x & y \\ z & w \\ \end{array} } \right)[/TEX] [tex]\begin{bmatrix}1 & 3\\ 2 & 4\end{bmatrix}$$

$\displaystyle M =\left( {\begin{array}{cc} x & y \\ z & w \\ \end{array} } \right)$

$\displaystyle \begin{bmatrix}1 & 3\\ 2 & 4\end{bmatrix}$