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

spurious space added to all environments #134

Open
davidcarlisle opened this issue Sep 6, 2021 · 0 comments
Open

spurious space added to all environments #134

davidcarlisle opened this issue Sep 6, 2021 · 0 comments
Labels
bug bug; something to be fixed in AASTeX

Comments

@davidcarlisle
Copy link

This was already reported by email to the address in teh file but I just saw this github so reporting in public here.

As noted at

https://tex.stackexchange.com/a/614364/1090

The redefinitions of \begin and \end introduce spurious white space
due to missing % at ends of lines, this can prevent figures fitting on
a line and have other bad effects.

Lines 571 and 577 each miss a %

\SaveBegEnd{#1}
}
\def\end#1{%
% execute code before \end{environment}
\IfUnDef{BeforeEnd#1}\else\csname BeforeEnd#1\endcsname\fi%
% close this environment
\EndEnvironment{#1}
\SaveBegEnd{#1}%<<<<<<<<<<<<<<<
}
\def\end#1{%
% execute code before \end{environment}
\IfUnDef{BeforeEnd#1}\else\csname BeforeEnd#1\endcsname\fi%
% close this environment
\EndEnvironment{#1}%<<<<<<<<<<<<<<<<<<<

Note that in current latex you should not need to redefine \begin and
\end you can insert code at these points using the environment hooks
see texdoc lthooks

As a test file these two minipage should be side by side but come one above the other as the spurious space forces the line to be too wide and introduces a breakpoint

\documentclass[]{aastex631}

\begin{document}
Some text here
\begin{figure}[ht]
\centering
\begin{minipage}[b]{.5\linewidth}
x\dotfill x
\end{minipage}\hfill
\begin{minipage}[b]{.5\linewidth}
x\dotfill x
\end{minipage}
\end{figure}
\end{document}
@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

2 participants