josephwright / siunitx

A comprehensive (SI) units package for LaTeX
LaTeX Project Public License v1.3c
350 stars 25 forks source link

Wishlist: accept ± as part of numbers #714

Closed callegar closed 5 months ago

callegar commented 5 months ago

Can be nice when copying values from elsewhere and working on an unicode engine (luatex, xetex)

josephwright commented 5 months ago

Already works:

\documentclass{article}
\usepackage{siunitx}
\sisetup{input-uncertainty-signs = ±\pm}
\begin{document}
\num{1\pm2}
\num{1±2}
\end{document}

You just need to add ± to the input list.

callegar commented 5 months ago

Missed that, sorry for the noise!