GeneralGetting "+/-" Sign

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
rizwan
Posts: 3
Joined: Wed Jan 13, 2010 2:53 pm

Getting "+/-" Sign

Post by rizwan »

Hi,

I am writing tables where I have to express values as quantity +/- range. The issue is the appearance of +/- when the documented is typeset. Is there a way of expressing this more elegantly, a bit like "%" (just to convey what I mean) with the o replaced by + and -.

Many thanks for your help.

Rizwan

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Getting "+/-" Sign

Post by Stefan Kottwitz »

Hi Rizwan,

you could use \pm in math mode, such as

Code: Select all

$\pm 1$
Stefan
LaTeX.org admin
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Getting "+/-" Sign

Post by localghost »

For the sign in text mode you can use the textcomp package.

Code: Select all

\documentclass[11pt]{article}
\usepackage{textcomp}

\begin{document}
  \textpm
\end{document}
For values with uncertainties you should take a look at the excellent siunitx package. It is also capable to format and align numbers as content of tables. For more specific help it is helpful if you prepare a minimal example that shows what you are after.


Thorsten
Post Reply