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.
{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.