summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-05-28 22:00:19 +0000
committerKarl Berry <karl@freefriends.org>2020-05-28 22:00:19 +0000
commit0893837b836c0bc724438be1b006cb3fa88a5338 (patch)
tree413ed2e2653a03009cf62c492ca93a8567e75037 /Master/texmf-dist/tex/latex
parent95adfddbd29a54564bdafff9e843bbf8618049e9 (diff)
showexpl (28may20)
git-svn-id: svn://tug.org/texlive/trunk@55324 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/showexpl/showexpl.sty11
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,