josephwright / josephwright/siunitx
Would be nice if \ang could parse uncertainties the same way as \qty.
Nobody has claimed this yet.
- Dominant language
- TeX
- Stars
- 407
- Forks
- 29
- Avg merge
- 11h 20m
- Merged PRs (30d)
- 3
Description
Basically \ang{17.8(3)} simply ignores the uncertainty and forces one to use \qty{17.8(3)}{\degree} instead. It would be useful in context of introductory laboratory courses where we teach measurement and how to propagate uncertainties. While the workaround with \qty exists, I did inadvertently make a lab quiz (my bad) that was easier than intended by creating and printing the quiz on the spot before checking that the angle had an uncertainty!
\listfiles
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{siunitx}
% siunitx prefs
\sisetup{per-mode = symbol} % display units as fractions such as m/s
\sisetup{separate-uncertainty = true} % this prints the uncertainties as \pm and not as bracketed.
%-----------------------------------------------------------------------------
% Document begins
%-----------------------------------------------------------------------------
\begin{document}
\noindent Would be nice if \textsf{siunitx} \verb!\ang! would parse uncertainties the same way as \verb!\qty!
\vspace{2em}
Reference output: \qty{17.8(3)}{\degree} \hfill \verb!\qty{17.8(3)}{\degree}!
\vspace{2em}
\textsf{siunitx} output: \ang{17.8(3)} \hfill \verb!\ang{17.8(3)}!
\vspace{2em}
\noindent (Running MiKTeX, most recent versions of all packages as of May 27th, 2026.)
\end{document}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the supplied Minimal.tex example and compare the current output of \ang{17.8(3)} with \qty{17.8(3)}{\degree}, using the siunitx package entry points for these commands. Done means \ang parses and displays the uncertainty consistently with \qty, including the configured separate-uncertainty=true behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- latex
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100