# What LaTeX problems are you having?

#### topsquark

Forum Staff
$$\displaystyle \oint _c \frac{x^{3y^3}}{\text{Your variable goes here}} d \bold{x}$$

Seems okay. Any specific problems about LaTeX?

-Dan

#### MarkFL

I had trouble earlier today with a piecewise function. Using the example code:

f(x)=\begin{cases}
x^2 && x\ne0 \\
1 && x=0 \\
\end{cases}

I get:

$$\displaystyle f(x)=\begin{cases} x^2 && x\ne0 \\ 1 && x=0 \\ \end{cases}$$

Other than that, I haven't experienced any problems.

#### emakarov

MHF Hall of Honor
It is recommended to write the formula in one line and insert spaces after every, say, 50 or 60 non-space characters

2 people

#### MarkFL

That is very helpful, although I can't quite get it to work yet:

f(x)=\begin{cases}x^2 \&& x\ne0 \\1 \&& x=0 \\ \end{cases}

$$\displaystyle f(x)=\begin{cases}x^2 \&& x\ne0 \\1 \&& x=0 \\ \end{cases}$$

#### zzephod

That is very helpful, although I can't quite get it to work yet:

f(x)=\begin{cases}x^2 \&& x\ne0 \\1 \&& x=0 \\ \end{cases}

$$\displaystyle f(x)=\begin{cases}x^2 \&& x\ne0 \\1 \&& x=0 \\ \end{cases}$$
What are you trying to achieve? The field separator on a line is "&" not "\&" (or "\&&") which renders as &

[noparse] $$\displaystyle f(x)=\begin{cases}x^2, & x\ne0 \\1, & x=0 \\ \end{cases}$$[/noparse]

renders as:

$$\displaystyle f(x)=\begin{cases}x^2, & x\ne0 \\1, & x=0 \\ \end{cases}$$

2 people

#### MarkFL

I see, I am used to the rendering on another site...I appreciate you showing me how it works here!

#### zzephod

I see, I am used to the rendering on another site...I appreciate you showing me how it works here!
It has little to do with the site, it is normal LaTeX.