\pm
like this.
Code: Select all
\begin{equation}\label{boh}
y = \pm x
\end{equation}
Thanks a lot!
\pm
like this.
Code: Select all
\begin{equation}\label{boh}
y = \pm x
\end{equation}
NEW: TikZ book now 40% off at Amazon.com for a short time.
Is this numbering scheme going to be globally throughout the whole document or locally for selected equations?symbol wrote:[…] How to get (x)^{\pm} instead of (x) in the equation number? […]
Code: Select all
\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage{mathtools} % loads »amsmath«
\newtagform{pm}{(}{)\rlap{$^\pm$}}
\begin{document}
\usetagform{pm}
\begin{equation}\label{eqn:einstein}
E=mc^2
\end{equation}
\usetagform{default}
\begin{equation}\label{eqn:schroedinger}
i\hbar\frac{\partial}{\partial t} |\,\psi (t) \rangle = \hat{H} |\,\psi (t) \rangle
\end{equation}
\end{document}
NEW: TikZ book now 40% off at Amazon.com for a short time.