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/source | |
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/source')
-rw-r--r-- | Master/texmf-dist/source/latex/storebox/storebox.dtx | 40 |
1 files changed, 22 insertions, 18 deletions
diff --git a/Master/texmf-dist/source/latex/storebox/storebox.dtx b/Master/texmf-dist/source/latex/storebox/storebox.dtx index e690526682c..b81f06d36dd 100644 --- a/Master/texmf-dist/source/latex/storebox/storebox.dtx +++ b/Master/texmf-dist/source/latex/storebox/storebox.dtx @@ -24,10 +24,10 @@ %<*driver> \ProvidesFile{storebox.dtx}[% %<=*DATE> - 2011/09/22 + 2011/10/21 %<=/DATE> %<=*VERSION> - v1.0 + v1.1 %<=/VERSION> DTX file for storebox] \documentclass{ydoc} @@ -44,7 +44,7 @@ %</driver> % \fi % -% \CheckSum{132} +% \CheckSum{137} % % \CharacterTable % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -65,6 +65,7 @@ % % \changes{v0.99}{2011/08/05}{Converted to DTX file.} % \changes{v1.0}{2011/09/22}{First release.} +% \changes{v1.1}{2011/10/21}{Fixed issue with \env{storebox} environment with new \pkg{collectbox} version.} % % \DoNotIndex{\newcommand,\newenvironment} % @@ -211,11 +212,13 @@ % \begin{macro}{\storebox} % \begin{macrocode} \newcommand*\storebox{% - \collectboxcheckenv{storebox}% - \ifcollectboxenv + \begingroup + \def\@tempa{storebox}% + \ifx\@currenvir\@tempa \endgroup \expandafter\@storebox@env \else + \endgroup \expandafter\@storebox \fi } @@ -245,7 +248,7 @@ \def\@storebox@env#1{% \edef\@tempa{% \setbox\collectedbox\hbox\bgroup% - \def\noexpand\@tempa{\noexpand#1}% + \def\noexpand\the@storebox{\noexpand#1}% }% \@tempa \begingroup @@ -259,6 +262,18 @@ % \end{macrocode} % \end{macro} % +% \begin{macro}{\endstorebox} +% \begin{macrocode} +\def\endstorebox{% + \unskip + \endgroup + \color@endgroup +} +% \end{macrocode} +% \end{macro} +% +% +% % \begin{macro}{\@storebox@env@end} % This ends the box assignment and stores the box as PDF xform. % Then the given control sequence is set to the xform number. @@ -268,7 +283,7 @@ \egroup \pdfxform\collectedbox \endgroup - \mathchardef\expandafter\noexpand\@tempa=\pdflastxform + \mathchardef\expandafter\noexpand\the@storebox=\pdflastxform }% \@tempa } @@ -276,17 +291,6 @@ % \end{macro} % % -% \begin{macro}{\endstorebox} -% \begin{macrocode} -\def\endstorebox{% - \unskip - \endgroup - \color@endgroup -} -% \end{macrocode} -% \end{macro} -% -% % \begin{macro}{\newstorebox} % \begin{macrocode} \newcommand*\newstorebox[1]{% |