Skip to content

Instantly share code, notes, and snippets.

@drewsberry
Created September 19, 2014 16:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drewsberry/dc9b3047d25ed8f203cf to your computer and use it in GitHub Desktop.
Save drewsberry/dc9b3047d25ed8f203cf to your computer and use it in GitHub Desktop.
LaTeX macro for siunitx x plus/minus y units (requires package siunitx)
% Without parentheses
\newcommand{\sipm}[3]{#1 $\pm$ \SI{#2}{#3}}
% With parentheses
\newcommand{\sipmp}[3]{(#1 $\pm$ #2)\si{#3}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment