summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/showexpl
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-09-23 22:59:26 +0000
committerKarl Berry <karl@freefriends.org>2012-09-23 22:59:26 +0000
commitdde3ebb88489bce66c4f70a9d357c4e9abd71f6d (patch)
treed3228146b83923ee0351b7ff0e7cb6ddbbfbc435 /Master/texmf-dist/tex/latex/showexpl
parent97ea2d52f2bb923f12bf7a4965ed57ad25db5e0e (diff)
showexpl (23sep12)
git-svn-id: svn://tug.org/texlive/trunk@27790 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/showexpl')
-rw-r--r--Master/texmf-dist/tex/latex/showexpl/showexpl.sty10
1 files changed, 5 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/showexpl/showexpl.sty b/Master/texmf-dist/tex/latex/showexpl/showexpl.sty
index 312ee16d7e4..b3d77545a79 100644
--- a/Master/texmf-dist/tex/latex/showexpl/showexpl.sty
+++ b/Master/texmf-dist/tex/latex/showexpl/showexpl.sty
@@ -22,7 +22,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{showexpl}
- [2011/08/22 v0.3i Typesetting example code (RN)]
+ [2012/09/22 v0.3j Typesetting example code (RN)]
\DeclareOption{final}{%
\PassOptionsToPackage{\CurrentOption}{graphicx}%
\PassOptionsToPackage{\CurrentOption}{listings}%
@@ -227,19 +227,19 @@
\let\lst@ifdisplaystyle=\iftrue
\SX@KillAboveCaptionskip\lst@MakeCaption{t}%
\lst@belowskip=\z@
- \let\SX@MakeCaption\lst@MakeCaption
- \let\lst@MakeCaption\@gobble
\setbox\SX@ResBox\hbox{%
\SX@frame{%
\@nameuse{\if@SX@varwidth varwidth\else minipage\fi}%
- \SX@width\relax\SX@resultInput%
+ \SX@width\relax
+ \begingroup
+ \SX@resultInput
+ \endgroup
\@nameuse{end\if@SX@varwidth varwidth\else minipage\fi}}}%
\edef\SX@width{\the\wd\SX@ResBox}%
\@ifundefined{SX@put@\SX@pos}%
{\@latex@error{Parameter `\SX@pos' undefined}\@ehd}%
{\@nameuse{SX@put@\SX@pos}%
{\SX@width}{\box\SX@ResBox}{\SX@codeInput}}%
- \let\lst@MakeCaption\SX@MakeCaption
\lst@MakeCaption{b}\SX@KillBelowCaptionskip
}%
}%