Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overful box with tables and unicode-math loaded #759

Open
josephwright opened this issue Nov 19, 2024 · 3 comments
Open

Overful box with tables and unicode-math loaded #759

josephwright opened this issue Nov 19, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@josephwright
Copy link
Owner

For example

\documentclass[draft]{article}
\usepackage{unicode-math}
\usepackage{siunitx}
\begin{document}
\begin{tabular}{S[table-format = 2.1]}
  0.0 \\
  11.2 \\
  22.2 \\
  33.3 \\
  44.4 \\
  55.5 \\
  66.6 \\
  77.7 \\
  88.8 \\
  99.9 \\
\end{tabular}

\end{document}
@josephwright josephwright self-assigned this Nov 19, 2024
@josephwright josephwright added the bug Something isn't working label Nov 19, 2024
@josephwright
Copy link
Owner Author

This is happening as there is a kern added between 7 and . with Latin Modern Math (see discussion starting https://chat.stackexchange.com/transcript/message/66647483#66647483).

@josephwright
Copy link
Owner Author

In LuaTeX using \mathitalicsmode is a fix - for XeTeX we'd need to 'isolate' the . - doable but feels messy

@josephwright
Copy link
Owner Author

@davidcarlisle notes that the 7 in Latin Modern Math is based on the CM italic one:

(CHARACTER C 7
   (CHARWD R 0.511108)
   (CHARHT R 0.644444)
   (CHARDP R 0.194445)
   (CHARIC R 0.135556)
   )

which is weird

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant