[Tex/LaTex] Manually numbering an equation in Beamer

beamernumbering

Similar to an old 2011 posting here, I would like to manually tag a particular line of equation with number in Beamer. I tried using \tag{} command but it does not work, putting in \usepackage{amsmath} also does not help. I am working under these environments:

\documentclass{beamer} 
\mode {
\usetheme{Ilmenau}
\usecolortheme{beaver}}

And here is a compilable example from my slides:

$x = r \cos \theta \tag{1}$.

Here, ShareLatex ignores \tag{1} but compiles the rest of the equation correctly.

Please advise and thanks for your time.

PS.: I do not have any need to reference the tagged equation later.

Best Answer

After a small correction of (first version of) your code:

\documentclass{beamer}

\usetheme{Ilmenau}
\usecolortheme{beaver}

\begin{document}

\begin{equation}
1+1=2
\end{equation}

\begin{equation}
1+1=2 \tag{mytag}
\end{equation}

\end{document}

enter image description here

The source of your problem seems to be inline formula, i.e. between dollar signs, not inside, say, equation environment.