Open eg9 opened 2 weeks ago
In contrast to the link between a number and the unit, where BIPM explicitly say there should be no break, there is no formal guidance on breaks within 'compound' numbers: either separated uncertainties or exponent form. (My feeling is BIPM favour always writing the unit with the number, and always using prefixes, so either issue really arises.) Thus the standard TeX math mode breaking behaviour has always been left as-is in this area.
I can add an option to adjust the allowed breaking, but I caution that particularly in journals, this is likely to be problematic: as it is, most journals ignore the rule about not breaking between a number and a unit as otherwise it's difficult to set material.
Presumably something similar to allow-quantity-breaks
would be OK: \binoppenalty
if true, \nobreak
if false. As always, option name suggestion welcome - I'll add for v3.4 so in the next month or so.
If
\sisetup{separate-uncertainty}
is used, a line break becomes possible after ±.Minimal example from https://tex.stackexchange.com/q/729528/4427
As there's no interface for changing the symbol used to separate the uncertainty, the fix should be to change the code
into
To confirm this, the hack
shows that the bad line break doesn't happen.