# Power of an equation number

Suppose I want the output in latex to be some equation number, for example (1.1). Then we use the command



Now I want the output to be $(1.1)^{p}$ for some $p$. That is I want the output to the power of an equation number.

Is there some command for that?

• $\text{\eqref{<label>}}^p$ (requires package amsmath) – Henri Menke Jul 19 '20 at 8:42
• Thank you very much. But I think there is a little misunderstanding. Suppose I use the command $$\label{1}$$, then I get some output with an equation number, for example (1.1) but not with a power. Here I want the output an equation with a power for example (1.1)^p. – Mathlover Jul 19 '20 at 8:47
• Then look up \tag{...}  – daleif Jul 19 '20 at 8:52
• Can you kindly elaborate a bit more. Thanks. – Mathlover Jul 19 '20 at 9:03
• I just came here to read about the secret powers of equation numbers :) – Philipp Imhof Jul 19 '20 at 9:17

If p is a fixed exponent, it can easily be done with the \newtagform command from mathtools:

\documentclass{article}
\usepackage{mathtools} %
\newtagform{power}({)$^p$}
\counterwithin{equation}{section}

\begin{document}

\section{Fermat’s equation}

\usetagform{power}

$$x^n + y^n = z^n \label{pdf}$$
For $n = 2$, equation \eqref{pdf} is known as the \emph{Pythagorean triples} problem.

\end{document}


• Thank you very much. – Mathlover Jul 23 '20 at 15:47

You can use \tag*.

\documentclass{article}
\usepackage{amsmath}

\begin{document}

We have a standard equation
$$|a+b| \le |a|+|b| \label{standard}$$
but also its generalization to different exponents
$$\sqrt[\uproot{2}p]{|a|^p+|b|^p}\le |a|+|b| \tag*{(\ref{standard})\makebox[0pt][l]{^p}}$$
for every $p\ge1$.

We can refer to equation~\eqref{standard} and to equation~\eqref{standard}$^p$.

\end{document}


• What is the difference between \tag and \tag*? – LSpice Jul 19 '20 at 17:40
• @LSpice \tag supplies the parentheses around the argument, \tag* doesn't. SInce I wanted the exponent outside the parentheses, \tag* is necessary. – egreg Jul 19 '20 at 17:57