# Thread: Just a test for LaTeX on this forum.

1. ## Just a test for LaTeX on this forum.

Hi

This is only for my own use to make sure my LaTeX comes out right.

I don't want to make a mess of any maths layout I submit in my posts.

$\frac{dy}{dx}(2x^2+6) = 4x$

Regards

2. ## Re: Just a test for LaTeX on this forum.

Test Post :

$
\frac{dy}{dx}(2x^2+6) = 4x
$

Layout ok ?

3. ## Re: Just a test for LaTeX on this forum.

Test Post :

$\frac{dy}{dx}(2x^2+6) = 4x \\ \log_{5} 25=2$

$\sqrt[3]{2}$

$\arctan 45$

$\sum x_i$

$178 \pm 5$

$this \Leftrightarrow \\ this$

$\begin{array}{l|cr|}4&1&2\\-4&-1&-2\\\hline\end{array}$

$f(x)=\left\{\begin{array}{cc}0,&\mbox{ if }x\leq 0\\1, & \mbox{ if } x>0\end{array}\right.$

$\left(\begin{array}{cc}1&9\\7&1\end{array}\right)$

$\begin{array}{cc}1&0\\0&1\end{array}$

$\begin{array}{lcr}4&1&2\\-4&-1&-2 \\-4&-1&-2 \end{array}$

4. ## Re: Just a test for LaTeX on this forum.

Hello, guinster!

You're doing great!

Personally I dislike those long minus-signs.

To me, $\begin{pmatrix} 3 & -1 \\ -2 & 0 \end{pmatrix}$ looks awkward.

I prefer: . $\begin{pmatrix}3 & \text{-}1 \\ \text{-}2 & 0 \end{pmatrix}$

where I replace - with \text{-}.

5. ## Re: Just a test for LaTeX on this forum.

If you put \phantom{-} before the positive terms they end up lined up properly

6. ## Re: Just a test for LaTeX on this forum.

$\begin{matrix} \phantom{-} 1 & -3 \\ -2 & \phantom{-} 4 \end{matrix}$

Cooooool!

-Dan

7. ## Re: Just a test for LaTeX on this forum.

Hi

I really appreciate the tips.

Regards

8. ## Re: Just a test for LaTeX on this forum.

Also it's common practice to write the d's in a different font when they're used for differentials.

\frac{\mathrm{d}y}{\mathrm{d}x} gives \displaystyle \begin{align*} \frac{\mathrm{d}y}{\mathrm{d}x} \end{align*}

In fact, the mathrm font is used when your letter is used for something other than a variable, such as a predefined constant like \displaystyle \begin{align*} \mathrm{e} \end{align*} or \displaystyle \begin{align*} \mathrm{i} \end{align*} as well

9. ## Re: Just a test for LaTeX on this forum.

Thanks Prove It