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 ++++++++--- Master/texmf-dist/tex/latex/showexpl/showexpl.sty | 8 +++++--- Master/texmf-dist/tpm/showexpl.tpm | 6 +++--- 3 files changed, 16 insertions(+), 9 deletions(-) (limited to 'Master') 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} 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}} diff --git a/Master/texmf-dist/tpm/showexpl.tpm b/Master/texmf-dist/tpm/showexpl.tpm index ed1b5014c6b..d9bf46537e6 100644 --- a/Master/texmf-dist/tpm/showexpl.tpm +++ b/Master/texmf-dist/tpm/showexpl.tpm @@ -3,7 +3,7 @@ showexpl Package - 2006/09/20 20:14:47 + 2007/03/13 21:49:00 karl The showexpl package. @@ -12,7 +12,7 @@ 486535 - + texmf-dist/tex/latex/showexpl/showexpl.sty texmf-dist/tpm/showexpl.tpm @@ -24,7 +24,7 @@ texmf-dist/doc/latex/showexpl/showexpl-test.tex texmf-dist/doc/latex/showexpl/showexpl.cfg texmf-dist/doc/latex/showexpl/showexpl.pdf - + texmf-dist/source/latex/showexpl/showexpl.dtx texmf-dist/source/latex/showexpl/showexpl.ins -- cgit v1.2.3