fix bugs in refproof
This commit is contained in:
parent
613e16998b
commit
70426b2d22
1 changed files with 4 additions and 1 deletions
|
@ -119,7 +119,7 @@ __END_OPTIONS_X__
|
|||
\setcounter{claim}{\FSTop{__PACKAGE_PREFIX__save@claim}}
|
||||
\FSPop{__PACKAGE_PREFIX__save@claim}
|
||||
\addtocounter{__PACKAGE_PREFIX__proofdepth}{-1}
|
||||
\let\theclaim__PACKAGE_MACRO__(saved@theclaim)
|
||||
\let\theclaim__PACKAGE_MACRO__(saved@theclaim)
|
||||
}
|
||||
|
||||
%%% A 'smart' proof environment
|
||||
|
@ -131,6 +131,7 @@ __END_OPTIONS_X__
|
|||
\protected@edef__PACKAGE_MACRO__(dummy@expand){\arabic{claim}}
|
||||
\FSPush{__PACKAGE_PREFIX__save@claim}{__PACKAGE_MACRO__(dummy@expand)}
|
||||
\setcounter{claim}{0}
|
||||
\let__PACKAGE_MACRO__(saved@theclaim)\theclaim
|
||||
\def\theclaim{\arabic{claim}}
|
||||
\ifnum\value{__PACKAGE_PREFIX__proofdepth}>1%
|
||||
__PACKAGE_MACRO__(saved@subproof)[%
|
||||
|
@ -157,6 +158,8 @@ __END_OPTIONS_X__
|
|||
%Restore previous claim counter
|
||||
\setcounter{claim}{\FSTop{__PACKAGE_PREFIX__save@claim}}
|
||||
\FSPop{__PACKAGE_PREFIX__save@claim}
|
||||
\addtocounter{__PACKAGE_PREFIX__proofdepth}{-1}
|
||||
\let\theclaim__PACKAGE_MACRO__(saved@theclaim)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue