diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/showexpl')
-rw-r--r-- | Master/texmf-dist/tex/latex/showexpl/showexpl.sty | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/showexpl/showexpl.sty b/Master/texmf-dist/tex/latex/showexpl/showexpl.sty index b3d77545a79..65451f40923 100644 --- a/Master/texmf-dist/tex/latex/showexpl/showexpl.sty +++ b/Master/texmf-dist/tex/latex/showexpl/showexpl.sty @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2004 by Rolf Niepraschk <Rolf.Niepraschk@ptb.de> +%% Copyright (C) 2004, ... by Rolf Niepraschk <Rolf.Niepraschk@gmx.de> %% %% This file may be distributed and/or modified under the conditions of %% the LaTeX Project Public License, either version 1.2 of this license @@ -22,7 +22,7 @@ %% \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesPackage{showexpl} - [2012/09/22 v0.3j Typesetting example code (RN)] + [2013/03/21 v0.3k Typesetting example code (RN)] \DeclareOption{final}{% \PassOptionsToPackage{\CurrentOption}{graphicx}% \PassOptionsToPackage{\CurrentOption}{listings}% @@ -227,6 +227,8 @@ \let\lst@ifdisplaystyle=\iftrue \SX@KillAboveCaptionskip\lst@MakeCaption{t}% \lst@belowskip=\z@ + \let\SX@MakeCaption\lst@MakeCaption + \let\lst@MakeCaption\@gobble{} \setbox\SX@ResBox\hbox{% \SX@frame{% \@nameuse{\if@SX@varwidth varwidth\else minipage\fi}% @@ -240,6 +242,7 @@ {\@latex@error{Parameter `\SX@pos' undefined}\@ehd}% {\@nameuse{SX@put@\SX@pos}% {\SX@width}{\box\SX@ResBox}{\SX@codeInput}}% + \let\lst@MakeCaption\SX@MakeCaption \lst@MakeCaption{b}\SX@KillBelowCaptionskip }% }% @@ -362,6 +365,9 @@ \lstset{explpreset={numbers=left,numberstyle=\tiny,numbersep=.3em, xleftmargin=1em,columns=flexible,language=[LaTeX]TEX},pos=l,width=-99pt, overhang=0pt,hsep=\columnsep,vsep=\bigskipamount,rframe=single} +\AtBeginDocument{% + \def\theHlstnumber{\thelstlisting.\arabic{lstnumber}.\lst@neglisting}% +} \InputIfFileExists{showexpl.cfg}{}{} \endinput %% |