
Graphics, Figures & Tables ⇒ Take formula to the left (not centered)
Take formula to the left (not centered)

NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Take formula to the left (not centered)
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
Take formula to the left (not centered)
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
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: 10324
- 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