Skip to content

Commit

Permalink
Adds num to mbox SIunitx commands. Fixes #282 (reopening)
Browse files Browse the repository at this point in the history
  • Loading branch information
ftilmann committed Nov 23, 2024
1 parent 70aa787 commit 5721378
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion latexdiff
Original file line number Diff line number Diff line change
Expand Up @@ -1331,7 +1331,7 @@ if ( defined $packages{"siunitx"} ) {
# protect SI command by surrounding them with an \mbox
# this is done to get around an incompatibility between the ulem and siunitx package
print STDERR "siunitx package detected.\n" if $verbose;
my $mboxcmds = 'SI,ang,numlist,numrange,SIlist,SIrange,qty,qtylist,qtyproduct,qtyrange,complexqty';
my $mboxcmds = 'SI,ang,numlist,numrange,SIlist,SIrange,qty,qtylist,qtyproduct,qtyrange,complexqty,num';
init_regex_arr_list( \@SAFECMDLIST, 'num,si,numproduct,unit,complexnum' );
if ( $enablecitmark || ( $ulem && !$disablecitmark ) ) {
init_regex_arr_list( \@MBOXCMDLIST, $mboxcmds );
Expand Down

0 comments on commit 5721378

Please sign in to comment.