texlive[57414] Master/texmf-dist: showexpl (13jan21)

commits+karl at tug.org commits+karl at tug.org
Wed Jan 13 23:14:22 CET 2021


Revision: 57414
          http://tug.org/svn/texlive?view=revision&revision=57414
Author:   karl
Date:     2021-01-13 23:14:21 +0100 (Wed, 13 Jan 2021)
Log Message:
-----------
showexpl (13jan21)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/showexpl/showexpl-test.pdf
    trunk/Master/texmf-dist/doc/latex/showexpl/showexpl.pdf
    trunk/Master/texmf-dist/source/latex/showexpl/showexpl.dtx
    trunk/Master/texmf-dist/tex/latex/showexpl/showexpl.sty

Modified: trunk/Master/texmf-dist/doc/latex/showexpl/showexpl-test.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/showexpl/showexpl.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/showexpl/showexpl.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/showexpl/showexpl.dtx	2021-01-13 22:14:08 UTC (rev 57413)
+++ trunk/Master/texmf-dist/source/latex/showexpl/showexpl.dtx	2021-01-13 22:14:21 UTC (rev 57414)
@@ -22,7 +22,7 @@
 %<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
 %<package>\ProvidesPackage{showexpl}
 %<*package>
-    [2020/10/08 v0.3r Typesetting example code (RN)]
+    [2021/01/06 v0.3s Typesetting example code (RN)]
 %</package>
 %
 %<*driver>
@@ -39,7 +39,7 @@
 %</driver>
 % \fi
 %
-% \CheckSum{889}
+% \CheckSum{902}
 %
 % \CharacterTable
 %  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -318,7 +318,10 @@
 % the user key ``|preset=...|''.
 % \changes{v0.3e}{2006/04/05}{More redefinitions added (RN).}
 % \changes{v0.3p}{2020/05/04}{Remove extra treatment of `figure'/`table' (RN).}
-% \changes{v0.3r}{2020/10/08}{letting \cmd{\refstepcounter} be \cmd{\stepcounter} (RN).}
+% \changes{v0.3r}{2020/10/08}{letting \cmd{\refstepcounter} be
+%   \cmd{\stepcounter} (RN).}
+% \changes{v0.3s}{2021/01/06}{Special handling of cleveref's
+%   \cmd{\refstepcounter} (RN).}
 %    \begin{macrocode}
 \newcommand*\SX@@preset{%
   \renewcommand\documentclass[2][]{\SX at eat@version}%
@@ -328,8 +331,14 @@
   \let\tableofcontens\relax \let\listoffigures\relax
   \let\listoftables\relax \let\printindex\relax
   \let\listfiles\relax \let\nofiles\relax
-  \let\index\@gobble \let\label\@gobble
-  \let\refstepcounter=\stepcounter
+  \let\index\@gobble
+  \expandafter\ifx\csname ver at cleveref.sty\endcsname\relax
+    \let\refstepcounter=\stepcounter
+    \let\label\@gobble
+  \else
+    \let\cref at old@refstepcounter=\stepcounter   
+    \let\cref at old@label=\@gobble
+  \fi 
   \let\bibliography\@gobble
   \let\pagestyle\@gobble \let\thispagestyle\@gobble
   %%\let\immediate\relax \let\write\@gobbletwo
@@ -720,9 +729,6 @@
 %  Typeset the Code.
 %    \begin{macrocode}
       \SX at tempb{\SX at tempa{\SX at codefile}}\par
-%    \end{macrocode}
-%  Restore the regular numbering of floats outside of `LTXexample'. 
-%    \begin{macrocode}
     \endgroup
   \else
     \expandafter\includegraphics\expandafter[\SX at graphicparam]%

Modified: trunk/Master/texmf-dist/tex/latex/showexpl/showexpl.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/showexpl/showexpl.sty	2021-01-13 22:14:08 UTC (rev 57413)
+++ trunk/Master/texmf-dist/tex/latex/showexpl/showexpl.sty	2021-01-13 22:14:21 UTC (rev 57414)
@@ -22,7 +22,7 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}[1999/12/01]
 \ProvidesPackage{showexpl}
-    [2020/10/08 v0.3r Typesetting example code (RN)]
+    [2021/01/06 v0.3s Typesetting example code (RN)]
 \DeclareOption{final}{%
   \PassOptionsToPackage{\CurrentOption}{graphicx}%
   \PassOptionsToPackage{\CurrentOption}{listings}%
@@ -93,8 +93,14 @@
   \let\tableofcontens\relax \let\listoffigures\relax
   \let\listoftables\relax \let\printindex\relax
   \let\listfiles\relax \let\nofiles\relax
-  \let\index\@gobble \let\label\@gobble
-  \let\refstepcounter=\stepcounter
+  \let\index\@gobble
+  \expandafter\ifx\csname ver at cleveref.sty\endcsname\relax
+    \let\refstepcounter=\stepcounter
+    \let\label\@gobble
+  \else
+    \let\cref at old@refstepcounter=\stepcounter
+    \let\cref at old@label=\@gobble
+  \fi
   \let\bibliography\@gobble
   \let\pagestyle\@gobble \let\thispagestyle\@gobble
   %%\let\immediate\relax \let\write\@gobbletwo



More information about the tex-live-commits mailing list.