I want to add an equation number in a formula, but I've got an error: "You can't use `\eqno' in math mode.". This is my code:
$e_{33} = 0 \eqno(4.4)$
How I can fix it?
I want to add an equation number in a formula, but I've got an error: "You can't use `\eqno' in math mode.". This is my code:
$e_{33} = 0 \eqno(4.4)$
How I can fix it?
I don't think numbering inline-math equations is wise, because
However, you could do the following:
\documentclass{article}
\usepackage{amsmath}
\newcommand\inlineeqno{\stepcounter{equation}\ (\theequation)}
\begin{document}
$e_{33} = 0 \inlineeqno$
\end{document}

equation counter.
– jub0bs
May 06 '13 at 16:23
$$ $$ (see Why is [ … ] preferable to $$ … $$?). Moreover, you don't have to specify the equation number: LaTeX itself does this work for you (i.e. try \begin{equation}e_{33} = 0\end{equation}).
– Claudio Fiandrino
May 06 '13 at 16:50
\inlineeqno?
– Vlad
Mar 22 '16 at 10:22
equation? – jub0bs May 06 '13 at 16:02equation). In plain TeX$$...$$is used. Or do you want to number a equation inside a text paragraph? – Heiko Oberdiek May 06 '13 at 16:02