-
Notifications
You must be signed in to change notification settings - Fork 3
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
too much space with restatable #40
Comments
A glance at the |
This TeXSE question shows how to fix this if hyperref is loaded. Redefining \def\thmt@rst@storecounters#1{%
\bgroup
\def\@currentlabel{}%
\@for\thmt@ctr:=\thmt@innercounters\do{%
\thmt@sanitizethe{\thmt@ctr}%
\protected@edef\@currentlabel{%
\@currentlabel
\protect\def\@xa\protect\csname the\thmt@ctr\endcsname{%
\csname the\thmt@ctr\endcsname}%
\ifcsname theH\thmt@ctr\endcsname
\protect\def\@xa\protect\csname theH\thmt@ctr\endcsname{%
(restate \protect\theHthmt@dummyctr)\csname theH\thmt@ctr\endcsname}%
\fi
\protect\setcounter{\thmt@ctr}{\number\csname c@\thmt@ctr\endcsname}%
}%
}%
\Hy@SaveLastskip
\label{thmt@@#1@data}%
\Hy@RestoreLastskip
\egroup
}% seems to work. Maybe thmtools can define its own versions of |
The theorem printed by the
restatable
has extra vertical space above it. The same goes for the restated theorem from arestatable*
(but not therestatable*
itself). There is no issue with the restated theorems from arestatable
environment or theorems using therestate
key. Here's an example: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.The text was updated successfully, but these errors were encountered: