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/source/latex/showexpl/showexpl.dtx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'Master/texmf-dist/source/latex/showexpl') diff --git a/Master/texmf-dist/source/latex/showexpl/showexpl.dtx b/Master/texmf-dist/source/latex/showexpl/showexpl.dtx index 45184ab676a..3db04419e4d 100644 --- a/Master/texmf-dist/source/latex/showexpl/showexpl.dtx +++ b/Master/texmf-dist/source/latex/showexpl/showexpl.dtx @@ -22,7 +22,7 @@ %\NeedsTeXFormat{LaTeX2e}[1999/12/01] %\ProvidesPackage{showexpl} %<*package> - [2006/09/18 v0.3g Typesetting example code (RN)] + [2007/02/03 v0.3h Typesetting example code (RN)] % % %<*driver> @@ -205,11 +205,16 @@ \PassOptionsToPackage{\CurrentOption}{graphicx}% \PassOptionsToPackage{\CurrentOption}{listings}% }% +% \end{macrocode} +% \changes{v0.3h}{2007/02/03}{New Option `attachfiles' (RN).} +% \begin{macrocode} +\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{}}} % \end{macrocode} % We must aktivate code from package \textsf{listings} for writing files. % \begin{macrocode} -- cgit v1.2.3