summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/showexpl
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2007-03-15 18:22:59 +0000
committerKarl Berry <karl@freefriends.org>2007-03-15 18:22:59 +0000
commiteeb58fa71c1ad22dc5b0890d204a74b7f8ec3c7c (patch)
tree5a02f2e5b6ea8a8765ef7cb8c3268fe7bab9210f /Master/texmf-dist/tex/latex/showexpl
parent6eeeccefa6fa4e6b962e6593a10dd2bb44f3df57 (diff)
showexpl update (14mar07)
git-svn-id: svn://tug.org/texlive/trunk@4036 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/showexpl')
-rw-r--r--Master/texmf-dist/tex/latex/showexpl/showexpl.sty8
1 files changed, 5 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/showexpl/showexpl.sty b/Master/texmf-dist/tex/latex/showexpl/showexpl.sty
index edecf914334..10bcbec77f0 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}
- [2006/09/18 v0.3g Typesetting example code (RN)]
+ [2007/02/03 v0.3h Typesetting example code (RN)]
\DeclareOption{final}{%
\PassOptionsToPackage{\CurrentOption}{graphicx}%
\PassOptionsToPackage{\CurrentOption}{listings}%
@@ -31,11 +31,13 @@
\PassOptionsToPackage{\CurrentOption}{graphicx}%
\PassOptionsToPackage{\CurrentOption}{listings}%
}%
+\DeclareOption{attachfiles}{%
+ \AtBeginDocument{\IfFileExists{attachfile.sty}%
+ {\RequirePackage{attachfile}}{\def\SX@attachfile{}}}
+}%
\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{listings}}
\ProcessOptions\relax
\RequirePackage{listings,calc,ifthen,graphicx,varwidth}
-\AtEndOfPackage{\IfFileExists{attachfile.sty}%
- {\RequirePackage{attachfile}}{\def\SX@attachfile{}}}
\lst@RequireAspects{writefile}
\newcommand*\SX@defaultWD[2]{%
\afterassignment\SX@def@WD\dimen@#2\linewidth\relax{#1}}