Here is a piece Latex code:
Code: Select all
\begin{enumerate}[(1)]\item\begin{flalign*}&p_t(x) \defeq \frac{e^{-x^2/2t}}{(2\pi t)^{d/2}}&\end{flalign*}\end{enumerate}
But I would like to have formula for
$p_t(x)$
in the same line as $(1)$
.Code: Select all
\begin{enumerate}[(1)]\item\begin{flalign*}&p_t(x) \defeq \frac{e^{-x^2/2t}}{(2\pi t)^{d/2}}&\end{flalign*}\end{enumerate}
$p_t(x)$
in the same line as $(1)$
.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
{enumerate}
instead of the standard equation numbering? If you want the numbers to the left instead of right use the package option leqno
:Code: Select all
\documentclass[leqno]{article}\usepackage{amsmath}\begin{document}\begin{align}p_t(x) &= \frac{e^{-x^2/2t}}{(2\pi t)^{d/2}}\end{align}\end{document}
Code: Select all
\documentclass[11pt]{article}\usepackage[T1]{fontenc}\usepackage{mathtools} % loads »amsmath«\usepackage{xfrac} % nice fractions\usepackage{enumitem} % customized lists\usepackage{lmodern} % Latin Modern fonts\begin{document}\begin{enumerate}[label={(\arabic*)}]\item \( p_t(x) = \dfrac{e^{\sfrac{-x^2}{2t}}}{(2\pi t)^{\sfrac{d}{2}}} \)\item\(\begin{aligned}[t](a+b)^2 &= a^2+2ab+b^2 \\(a-b)^2 &= a^2-2ab+b^2 \\(a+b)(a+b) &= a^2-b^2\end{aligned}\)\end{enumerate}\end{document}
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