This article aims to show you the simplest and easiest way to create a plus-minus symbol in LaTeX.
LaTeX allows you to write documents that include equations, symbols, tables, and more. And sometimes, if you are tabulating data from an experiment, you will need the plus/minus sign or symbol.
With LaTeX you can include the plus-minus in your document, we are going to look at how to insert it in LaTeX.
Table of Contents
Plus-Minus SymbolÂ
Most of the time in mathematics and science, the plus together with the minus, also known as the plus/minus symbol, is used and can have multiple meanings.Â
In mathematics you use the plus minus symbol, if you have the algebraic solution of a second order polynomial, or a square root solution. This is the most common appearance of the symbol.Â
Meanwhile in physics, you may need the plus minus symbol for measurement if you are tabulating values or a quantity with uncertainty errors. For example
Syntax
The plus-minus is generated using a command, no extra package or argument is required, it is a built-in LaTeX command. The command is \pm or \mp ,for example
\begin{document}
  $$ x = \pm 2 $$
  $$ x = \mp 2 $$
\end{document}
LaTex Plus/Minus
The plus-minus symbol must not be confused with the minus plus, they are different. The \pm command generates plus over minus.Â
Minus/Plus
The LaTex minus plus sign is the opposite, minus overplus. This occurs if you are simplifying an equation, and the plus-minus goes to the other side of the equation. It is generated with \mp command. Another exampleÂ
\begin{align}
  x^2 \pm y &=0 \\
  x^2 &= \mp y
\end{align}
The aligned environment in the document is possible with the package amsmath.
Symbol minus plus, minus sign is above the plus
Math mode vs Text mode
Now, you usually work in math mode, denoted by $, $$, or \[ \] when you need to use a command for a properties value symbol, thus we cannot use the \pm command or \mp command outside math mode.Â
Therefore you always have to open the math mode within the text mode to use it, using a $ to open and a $ to close. For example
%minus plus sign/symbol\[
 x^2+bx+c=0 \implies x=\frac{-b \mp \sqrt{b^2-4c}}{2}
\]
%plus minus sign
$$
 x^2+bx+c=0 \implies x=\frac{-b \pm \sqrt{b^2-4c}}{2}
$$% quadratic formula in a LaTeX document
In Text mode we open Math mode to use the $\pm$, $\mp$ symbol.
Wherever you write the command in the LaTeX document, the symbol will be there. Remember it does not require an argument.
There are exceptions to using it in text mode but they require external packages, and sometimes it is better to use already built-in LaTeX commands.
You now know how to insert this useful symbol in LaTeX. Surely this tutorial was helpful in guiding you in LaTeX.
Further Reading
LaTex Tutorial on Symbols
- How To Create A Cross Product Symbol In LaTeX
- How to create a hat symbol in LaTeX?
- How to create a prime symbol in LaTeX?
- How to create an absolute value symbol in LaTeX?
- How to create an approximate symbol in LaTeX?
- How to create an intersection symbol in LaTeX?
- How to create the empty set symbol in LaTeX?
- How to write a degree symbol in LaTeX?
- How to write a dot product in LaTeX?
- How to Write a Greater Than Symbol in LaTeX?
- How to write a norm symbol in LaTeX?
- How to write a proportional to symbol in LaTeX?
- How to write a real number symbol in LaTeX?
- How to write a tilde symbol in LaTeX?
- How to write a union symbol in LaTeX?
- How to write a vector in LaTeX?
- How to write an infinity symbol in LaTeX?
- How to write bold text in LaTeX?
- How To Write Dots Symbols In LaTeX?
- How to write the arrow symbols in LaTeX
- How to write the Degree celsius symbol in LaTeX?
- How to write the equal or not equal symbol in LaTeX?
- How to write the Euro symbol in LaTeX?
- How to write the floor symbol in LaTeX?
- How to write the gradient operator symbol in LaTeX
- How To Write The Greater Than Or Equal To Symbol In LaTeX?
- How to write the integer number symbol in LaTeX?
- How to write the less than symbol in LaTeX?
- How to write the Natural numbers symbol in LaTeX?
- How to write the parallel symbol in LaTeX?
- How to write the percent symbol in LaTeX?
- How to write the square root symbol in LaTeX?
- How To Write The Symbol For A Subset In LaTeX?
- How to write the symbol for therefore in LaTeX?
- How to write with the mathbb in LaTeX?