Skip to content

too much space with restatable #40

@mbertucci47

Description

@mbertucci47

The theorem printed by the restatable has extra vertical space above it. The same goes for the restated theorem from a restatable* (but not the restatable* itself). There is no issue with the restated theorems from a restatable environment or theorems using the restate key. Here's an example:

\documentclass{article}
\usepackage{amsthm,thmtools,kantlipsum}

\declaretheorem{theorem}

\begin{document}

\begin{theorem}
\kant[2][1]
\end{theorem}

\begin{theorem}[restate=foo]
\kant[1][2]
\end{theorem}

\begin{theorem}
\kant[2][1]
\end{theorem}

\foo*

\begin{theorem}
\kant[2][1]
\end{theorem}

\begin{restatable}{theorem}{foobar}
\kant[1][3]
\end{restatable}

\begin{theorem}
\kant[2][1]
\end{theorem}

\foobar*

\begin{theorem}
\kant[2][1]
\end{theorem}

\begin{restatable*}{theorem}{blub}
\kant[1][4]
\end{restatable*}

\begin{theorem}
\kant[2][1]
\end{theorem}

\blub

\begin{theorem}
\kant[2][1]
\end{theorem}

\end{document}

document-1

Apologies for the length; I wanted to show all possible behaviors with normal theorems interspersed. The space above the restatable environment theorem and the restated \blub is too big.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions