diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/showexpl/showexpl.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/showexpl/showexpl.sty | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/showexpl/showexpl.sty b/Master/texmf-dist/tex/latex/showexpl/showexpl.sty index 7a54531d0fc..dfa1b14e666 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} - [2020/05/04 v0.3p Typesetting example code (RN)] + [2020/05/26 v0.3q Typesetting example code (RN)] \DeclareOption{final}{% \PassOptionsToPackage{\CurrentOption}{graphicx}% \PassOptionsToPackage{\CurrentOption}{listings}% @@ -94,6 +94,7 @@ \let\listoftables\relax \let\printindex\relax \let\listfiles\relax \let\nofiles\relax \let\index\@gobble \let\label\@gobble + \let\refstepcounter=\@gobble \let\bibliography\@gobble \let\pagestyle\@gobble \let\thispagestyle\@gobble %%\let\immediate\relax \let\write\@gobbletwo @@ -358,9 +359,13 @@ \fi \fi \let\SX@lst@Init=\lst@Init - \def\@xfloat##1[##2]{\@float@HH{##1}[H]}% + \def\@xfloat##1[##2]{% + \def\@captype{##1}% + \@namedef{the\@captype}{0}% + \@float@HH{##1}[H]}% \def\lst@Init{% \let\lst@float=\relax + \setcounter\@captype{-1}% \SX@lst@Init } \SX@tempb{\SX@tempa{\SX@codefile}}\par @@ -383,7 +388,7 @@ \endgroup }% \newcommand*\LTXinputExample[2][]{% - \g@addto@macro\SX@@explpreset{#1,codefile=#2}% + \g@addto@macro\SX@@explpreset{float=false,#1,codefile=#2}% \SX@put@code@result}% \lstset{explpreset={numbers=left,numberstyle=\tiny,numbersep=.3em, xleftmargin=1em,columns=flexible,language=[LaTeX]TEX},pos=l,width=-99pt, |