Hello, I'm new to latex. I want to use latex in my website (wordpress based). Is there any way to create such equation? I need the equation starts right after numbering and align the = sign
Thanks in advance
Note: the equal = in number 1 and 2 doesn't need to be in same alignText Formatting ⇒ Enumerate and Equation
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Stefan Kottwitz
- Site Admin
- Posts: 10348
- Joined: Mon Mar 10, 2008 9:44 pm
Enumerate and Equation
Hi Limus,
welcome to the forum!
Sure, what's the specific question? Is it about aligning the equal signs of the first equation? Or about typing all code? If you show is the code you have, we can help improving it and give working code.
Do you use a LaTeX Wordpress plugin? Btw. you can use a LaTeX compiler right on your wordpress website, such as on LaTeX-Cookbook.net.
Stefan
welcome to the forum!
Sure, what's the specific question? Is it about aligning the equal signs of the first equation? Or about typing all code? If you show is the code you have, we can help improving it and give working code.
Do you use a LaTeX Wordpress plugin? Btw. you can use a LaTeX compiler right on your wordpress website, such as on LaTeX-Cookbook.net.
Stefan
LaTeX.org admin
Enumerate and Equation
I use Simple Mathjax since it works best with Gutenberg Block. Sorry, I forgot to mention that I wrote the equation in Ms. Word.Stefan Kottwitz wrote:Hi Limus,
welcome to the forum!
Sure, what's the specific question? Is it about aligning the equal signs of the first equation? Or about typing all code? If you show is the code you have, we can help improving it and give working code.
Do you use a LaTeX Wordpress plugin? Btw. you can use a LaTeX compiler right on your wordpress website, such as on LaTeX-Cookbook.net.
Stefan
I tried this code
\begin{enumerate}
\item \begin{flalign*}f(x)g(x)&=\left(2x^2+3x-4\right)\left(3x^2-2x\right)&\\
&=6x^4-4x^3+9x^3-6x^2-12x^2+8x&\\
&=6x^4+5x^3-18x^2+8x&\end{flalign*}
\item $f(x)g(x)=\left(2x^2+3x-4\right)\left(3x^2-2x\right)\\
=6x^4-4x^3+9x^3-6x^2-12x^2+8x\\
=6x^4+5x^3-18x^2+8x\\D_{f\times g}=D_{f}+D_{g}=2+2=4$
\end{enumerate}
I want the equal sign (=) align like number 1 and the equation start after the numbering like number 2, is there any way to handle it? Again, thank you for your response
Enumerate and Equation
Please try to provide a
minimal working example.
The

The
aligned
environment could fit these requirements.Code: Select all
\documentclass{article}
\usepackage{mathtools}% loads amsmath
\begin{document}
\begin{enumerate}
\item $\begin{aligned}[t]
f(x)g(x)&=\left(2x^2+3x-4\right)\left(3x^2-2x\right)\\
&=6x^4-4x^3+9x^3-6x^2-12x^2+8x\\
&=6x^4+5x^3-18x^2+8x
\end{aligned}$
\end{enumerate}
\end{document}