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

Overfull \hbox warning when using footnote in preprint #127

Open
mknote88 opened this issue Feb 17, 2021 · 2 comments
Open

Overfull \hbox warning when using footnote in preprint #127

mknote88 opened this issue Feb 17, 2021 · 2 comments
Labels
bug bug; something to be fixed in AASTeX

Comments

@mknote88
Copy link

mknote88 commented Feb 17, 2021

When I insert a footnote using preprint style, I get an Overfull \hbox warning upon compiling despite the footnote not being anywhere close to long enough to cause an overfull hbox. Here's a MWE showing the issue:

\documentclass[preprint]{aastex63}

\begin{document}

\footnote{Some text to showcase the problem.}

\end{document}

It appears to be an issue with preprint specifically (and perhaps other styles, though I haven't tested them), and if I instead use the twocolumn style and change nothing else in the above MWE, no warning is given on compiling.

@augustfly
Copy link
Member

Thank you! Confirmed and repeatable. Also repeatable for preprint2, so it is related to the internal macro, iftwocolstyle. Maybe related to the hsize hack here:

AASTeX60/cls/aastex63.cls

Lines 760 to 767 in 3a75b16

\long\def\ltx@foottext#1#2{%
\begingroup
\expandafter\ltx@make@current@footnote\expandafter{\@mpfn}{#1}%
\@footnotetext{\vtop{\iftwocolstyle\hsize=.5\textwidth
\advance\hsize-18pt
\fi #2\vskip2pt}}% fixed for two col style, march 15, 2019
\endgroup
}%

@CastleStar14654
Copy link

@augustfly
Hi, I do not know whether this issue is resolved in the unreleased 6.4 version, since there is no further commits to the github repository. Here is a workaround for those using v6.3.1 using etoolbox:

% in preamble: \usepackage{etoolbox}
\makeatletter
\patchcmd{\ltx@foottext}{%
  .5\textwidth\advance\hsize-18pt}{%
  \linewidth\advance\hsize-1.8em%
}{}{}
\makeatother

This solves two problems:

  1. the total horizontal size of the footnote should be the \columnwidth (or \linewidth)
  2. the horizontal size of the footnote mark should be 1.8em so that it could work for 12pt manuscript too.

@augustfly augustfly added the bug bug; something to be fixed in AASTeX label 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
Projects
None yet
Development

No branches or pull requests

3 participants