Skip to content

Commit

Permalink
Use "fill" glue for aligning comparator (fixes #733)
Browse files Browse the repository at this point in the history
  • Loading branch information
josephwright committed Jun 14, 2024
1 parent b25ee71 commit 643390e
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 13 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to

## [Unreleased]

### Fixed
- Use `fill` glue for aligning comparators (see issue [\#733](https://github.com/josephwright/siunitx/issues/733))

## [v3.3.17] - 2024-05-06

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion siunitx-table.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -1423,7 +1423,7 @@
}
{
\hbox_unpack:N \l_@@_integer_box
\@@_fil:
\@@_fill:
\hbox_unpack:N \l_@@_tmp_box
}
}
Expand Down
2 changes: 1 addition & 1 deletion testfiles/siunitx-emulation.luatex.tlg
Original file line number Diff line number Diff line change
Expand Up @@ -2167,7 +2167,7 @@ Package siunitx Info: Option "table-comparator" has been deprecated in this rele
......\hbox(5.39098+0.39098)x7.7778, direction TLT
.......\OML/cmm/m/it/10 >
......\mathoff
......\glue 0.0 plus 1.0fil
......\glue 0.0 plus 1.0fill
......\mathon
......\OT1/cmr/m/n/10 2
......\OT1/cmr/m/n/10 2
Expand Down
2 changes: 1 addition & 1 deletion testfiles/siunitx-emulation.tlg
Original file line number Diff line number Diff line change
Expand Up @@ -2163,7 +2163,7 @@ Package siunitx Info: Option "table-comparator" has been deprecated in this rele
......\hbox(5.39098+0.39098)x7.7778
.......\OML/cmm/m/it/10 >
......\mathoff
......\glue 0.0 plus 1.0fil
......\glue 0.0 plus 1.0fill
......\mathon
......\OT1/cmr/m/n/10 2
......\OT1/cmr/m/n/10 2
Expand Down
2 changes: 1 addition & 1 deletion testfiles/siunitx-emulation.xetex.tlg
Original file line number Diff line number Diff line change
Expand Up @@ -2148,7 +2148,7 @@ Package siunitx Info: Option "table-comparator" has been deprecated in this rele
......\hbox(5.39098+0.39098)x7.7778
.......\OML/cmm/m/it/10 >
......\mathoff
......\glue 0.0 plus 1.0fil
......\glue 0.0 plus 1.0fill
......\mathon
......\OT1/cmr/m/n/10 2
......\OT1/cmr/m/n/10 2
Expand Down
6 changes: 3 additions & 3 deletions testfiles/siunitx-table.luatex.tlg
Original file line number Diff line number Diff line change
Expand Up @@ -205,13 +205,13 @@ TEST 3: Option setting "table-align-comparator"
.\kern0.0
.\hbox(0.0+0.0)x0.0, direction TLT
..\glue 0.0 plus 1.0fil
.\hbox(6.44444+0.39098)x17.77783, glue set 2.50002fil, direction TLT
.\hbox(6.44444+0.39098)x17.77783, glue set 5.00002fill, direction TLT
..\glue 0.0 plus 1.0fil
..\mathon
..\hbox(5.39098+0.39098)x7.7778, direction TLT
...\OML/cmm/m/it/10 >
..\mathoff
..\glue 0.0 plus 1.0fil
..\glue 0.0 plus 1.0fill
..\mathon
..\OT1/cmr/m/n/10 1
..\mathoff
Expand Down Expand Up @@ -240,7 +240,7 @@ l. ... }
..\hbox(5.39098+0.39098)x7.7778, direction TLT
...\OML/cmm/m/it/10 <
..\mathoff
..\glue 0.0 plus 1.0fil
..\glue 0.0 plus 1.0fill
..\mathon
..\OT1/cmr/m/n/10 1
..\OT1/cmr/m/n/10 2
Expand Down
6 changes: 3 additions & 3 deletions testfiles/siunitx-table.tlg
Original file line number Diff line number Diff line change
Expand Up @@ -205,13 +205,13 @@ TEST 3: Option setting "table-align-comparator"
.\kern 0.0
.\hbox(0.0+0.0)x0.0
..\glue 0.0 plus 1.0fil
.\hbox(6.44444+0.39098)x17.77783, glue set 2.50002fil
.\hbox(6.44444+0.39098)x17.77783, glue set 5.00002fill
..\glue 0.0 plus 1.0fil
..\mathon
..\hbox(5.39098+0.39098)x7.7778
...\OML/cmm/m/it/10 >
..\mathoff
..\glue 0.0 plus 1.0fil
..\glue 0.0 plus 1.0fill
..\mathon
..\OT1/cmr/m/n/10 1
..\mathoff
Expand Down Expand Up @@ -240,7 +240,7 @@ l. ... }
..\hbox(5.39098+0.39098)x7.7778
...\OML/cmm/m/it/10 <
..\mathoff
..\glue 0.0 plus 1.0fil
..\glue 0.0 plus 1.0fill
..\mathon
..\OT1/cmr/m/n/10 1
..\OT1/cmr/m/n/10 2
Expand Down
6 changes: 3 additions & 3 deletions testfiles/siunitx-table.xetex.tlg
Original file line number Diff line number Diff line change
Expand Up @@ -205,13 +205,13 @@ TEST 3: Option setting "table-align-comparator"
.\kern 0.0
.\hbox(0.0+0.0)x0.0
..\glue 0.0 plus 1.0fil
.\hbox(6.44444+0.39098)x17.77783, glue set 2.50002fil
.\hbox(6.44444+0.39098)x17.77783, glue set 5.00002fill
..\glue 0.0 plus 1.0fil
..\mathon
..\hbox(5.39098+0.39098)x7.7778
...\OML/cmm/m/it/10 >
..\mathoff
..\glue 0.0 plus 1.0fil
..\glue 0.0 plus 1.0fill
..\mathon
..\OT1/cmr/m/n/10 1
..\mathoff
Expand Down Expand Up @@ -240,7 +240,7 @@ l. ... }
..\hbox(5.39098+0.39098)x7.7778
...\OML/cmm/m/it/10 <
..\mathoff
..\glue 0.0 plus 1.0fil
..\glue 0.0 plus 1.0fill
..\mathon
..\OT1/cmr/m/n/10 1
..\OT1/cmr/m/n/10 2
Expand Down

0 comments on commit 643390e

Please sign in to comment.