diff options
author | Karl Berry <karl@freefriends.org> | 2011-10-21 22:34:31 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-10-21 22:34:31 +0000 |
commit | 6af85dc2b807a9e34d53d7c608a7829a47ea88ff (patch) | |
tree | 9e7097e4b0a05ccb3e384b6c1638de9e8978293e /Master/texmf-dist/tex/latex/storebox | |
parent | d6a79abc84563ca694881e371e36bea940575713 (diff) |
storebox (21oct11)
git-svn-id: svn://tug.org/texlive/trunk@24355 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/storebox')
-rw-r--r-- | Master/texmf-dist/tex/latex/storebox/storebox.sty | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/Master/texmf-dist/tex/latex/storebox/storebox.sty b/Master/texmf-dist/tex/latex/storebox/storebox.sty index 4666417a38b..9de1791cad4 100644 --- a/Master/texmf-dist/tex/latex/storebox/storebox.sty +++ b/Master/texmf-dist/tex/latex/storebox/storebox.sty @@ -16,8 +16,8 @@ %% and the derived filebase storebox.sty. %% \ProvidesPackage{storebox}[% - 2011/09/22 - v1.0 + 2011/10/21 + v1.1 Store and reuse boxes in a file size efficient way] \DeclareOption{disable}{\let\ifstorebox\iffalse} \DeclareOption{enable}{\let\ifstorebox\iftrue} @@ -29,11 +29,13 @@ \fi \RequirePackage{collectbox}[2011/08/04] \newcommand*\storebox{% - \collectboxcheckenv{storebox}% - \ifcollectboxenv + \begingroup + \def\@tempa{storebox}% + \ifx\@currenvir\@tempa \endgroup \expandafter\@storebox@env \else + \endgroup \expandafter\@storebox \fi } @@ -45,7 +47,7 @@ \def\@storebox@env#1{% \edef\@tempa{% \setbox\collectedbox\hbox\bgroup% - \def\noexpand\@tempa{\noexpand#1}% + \def\noexpand\the@storebox{\noexpand#1}% }% \@tempa \begingroup @@ -56,20 +58,20 @@ \def\@currenvir{storebox\empty}% \ignorespaces } +\def\endstorebox{% + \unskip + \endgroup + \color@endgroup +} \def\@storebox@env@end{% \edef\@tempa{% \egroup \pdfxform\collectedbox \endgroup - \mathchardef\expandafter\noexpand\@tempa=\pdflastxform + \mathchardef\expandafter\noexpand\the@storebox=\pdflastxform }% \@tempa } -\def\endstorebox{% - \unskip - \endgroup - \color@endgroup -} \newcommand*\newstorebox[1]{% \@ifdefinable{#1}{\let#1\relax}% } |