summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/showexpl/showexpl.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/showexpl/showexpl.sty')
-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}}