
Graphics, Figures & Tables ⇒ Take formula to the left (not centered)
Take formula to the left (not centered)
I have a formula (using cases) centered and I want to take it to the left, but I don't know how to do it. Could someone help me? Thanks.


NEW: TikZ book now 40% off at Amazon.com for a short time.

- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Take formula to the left (not centered)
Please post a minimal working example as text (code), not an image. Please follow the link for instructions.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
- Stefan Kottwitz
- Site Admin
- Posts: 10348
- Joined: Mon Mar 10, 2008 9:44 pm
Take formula to the left (not centered)
Hi,
please take a look at your last question and the answer: function by parts help. Johannes already said, please copy & paste your code here, don't show an image. If a reader wants to help and test and improve your code, he has to type everything what he sees in your image! Post text (code), so it can be copied, and even used in the online compiler.
Stefan
please take a look at your last question and the answer: function by parts help. Johannes already said, please copy & paste your code here, don't show an image. If a reader wants to help and test and improve your code, he has to type everything what he sees in your image! Post text (code), so it can be copied, and even used in the online compiler.
Stefan
LaTeX.org admin
Take formula to the left (not centered)
Code: Select all
\\
1)\[ f(x,y) =
\begin{cases}
xy\dfrac{x^2-y^2}{x^2+y^2} & \left(x,y\right) \neq \left(0,0\right)\\
0 & \left(x,y\right) = \left(0,0\right)
\end{cases}
\; , \; D_{12}f(0,0) \neq D_{21}f(0,0).
\]
\\
- Stefan Kottwitz
- Site Admin
- Posts: 10348
- Joined: Mon Mar 10, 2008 9:44 pm
Take formula to the left (not centered)
- For flushed left equations, add the class option
fleqn
.
For left equation numbers, add the class optionleqno
. - Use an
equation
environment instead of\[ ... \]
if you would like to have numbers. - The
\\
before and after the formula are not good, they cause errors.
Code: Select all
\documentclass[fleqn,leqno]{article}
\usepackage{amsmath}
\setlength{\mathindent}{0pt}
\begin{document}
\begin{equation}
f(x,y) =
\begin{cases}
xy\dfrac{x^2-y^2}{x^2+y^2} & \left(x,y\right) \neq \left(0,0\right)\\
0 & \left(x,y\right) = \left(0,0\right)
\end{cases}
\; , \; D_{12}f(0,0) \neq D_{21}f(0,0).
\end{equation}
\end{document}

Stefan
LaTeX.org admin