From eeb58fa71c1ad22dc5b0890d204a74b7f8ec3c7c Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 15 Mar 2007 18:22:59 +0000 Subject: showexpl update (14mar07) git-svn-id: svn://tug.org/texlive/trunk@4036 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/showexpl/showexpl.sty | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Master/texmf-dist/tex/latex/showexpl') 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}} -- cgit v1.2.3