josephwright / josephwright/siunitx

unicode-math causes a wider 7

Open
#877 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TeX
Stars
407
Forks
29
Avg merge
11h 20m
Merged PRs (30d)
3

Description

It appears that loading unicode-math causes the digit 7 to be wider than expected:

\documentclass{article}
\usepackage{unicode-math}
\usepackage{siunitx}
\begin{document}
\begin{tabular}{ S[table-format=1]}
0\\
1\\
2\\
3\\
4\\
5\\
6\\
7\\
8\\ % line 14
9
\end{tabular}
\end{document}

has the warning

Overfull \hbox (0.13pt too wide) detected at line 14
$\TU/latinmodern-math.otf(1)/m/n/10 7$

(Using \setlength\overfullrule{1pt} shows that it's the 7 on line 13, not the 8 on line 14.)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Compile the supplied minimal LaTeX document with unicode-math and siunitx, then inspect the overfull-box warning around the digit 7. Compare the digit widths and table-column measurement in this reproduction; done means the example no longer reports the unexpected overfull box or the cause is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
latex
Domain
design
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.