\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}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
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}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis