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

Underfull \hbox warning with \tablenotetext #135

Open
mknote88 opened this issue Sep 20, 2021 · 0 comments
Open

Underfull \hbox warning with \tablenotetext #135

mknote88 opened this issue Sep 20, 2021 · 0 comments
Labels
bug bug; something to be fixed in AASTeX tables

Comments

@mknote88
Copy link

Whenever I used \tablenotetext on a \deluxetable, I would get an "Underfull \hbox (badness 10000)" on each line of code using \tablenotetext. This doesn't appear to cause any issues with the document, but it sufficiently annoyed me to look at it further, causing me to both find the source of the problem and the solution to it. The source of the problem is on line 5384:

2pt width0pt\relax$^{\hbox to 5pt{$#1$}}$#2\vskip1pt}}

The specific issue is using \hbox to, which is a TeX primitive and apparently doesn't play well with LaTeX (see https://tex.stackexchange.com/a/503092/200079). The solution given in that link is to use the standard LaTeX equivalent to that, \mbox. Implementing this solution to line 5384 as such solves the issue:

2pt width0pt\relax$^{\makebox[5pt]{$#1$}}$#2\vskip1pt}}

@augustfly augustfly added bug bug; something to be fixed in AASTeX tables labels Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bug; something to be fixed in AASTeX tables
Projects
None yet
Development

No branches or pull requests

2 participants