From a607bd31ca2f248c3553f46abe08f9bc257390d8 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Thu, 14 Jan 2021 03:03:23 +0000 Subject: CTAN sync 202101140303 --- .../latex/contrib/showexpl/doc/showexpl-test.pdf | Bin 350869 -> 350534 bytes macros/latex/contrib/showexpl/doc/showexpl.pdf | Bin 250715 -> 250883 bytes macros/latex/contrib/showexpl/showexpl.dtx | 22 +++++++++++++-------- 3 files changed, 14 insertions(+), 8 deletions(-) (limited to 'macros/latex/contrib/showexpl') diff --git a/macros/latex/contrib/showexpl/doc/showexpl-test.pdf b/macros/latex/contrib/showexpl/doc/showexpl-test.pdf index 027f9bc9b6..1ad2247286 100644 Binary files a/macros/latex/contrib/showexpl/doc/showexpl-test.pdf and b/macros/latex/contrib/showexpl/doc/showexpl-test.pdf differ diff --git a/macros/latex/contrib/showexpl/doc/showexpl.pdf b/macros/latex/contrib/showexpl/doc/showexpl.pdf index 9a3bfd6b57..821d29b854 100644 Binary files a/macros/latex/contrib/showexpl/doc/showexpl.pdf and b/macros/latex/contrib/showexpl/doc/showexpl.pdf differ diff --git a/macros/latex/contrib/showexpl/showexpl.dtx b/macros/latex/contrib/showexpl/showexpl.dtx index c2e2a99df2..e154a1ae90 100644 --- a/macros/latex/contrib/showexpl/showexpl.dtx +++ b/macros/latex/contrib/showexpl/showexpl.dtx @@ -22,7 +22,7 @@ %\NeedsTeXFormat{LaTeX2e}[1999/12/01] %\ProvidesPackage{showexpl} %<*package> - [2020/10/08 v0.3r Typesetting example code (RN)] + [2021/01/06 v0.3s Typesetting example code (RN)] % % %<*driver> @@ -39,7 +39,7 @@ % % \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@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@cleveref.sty\endcsname\relax + \let\refstepcounter=\stepcounter + \let\label\@gobble + \else + \let\cref@old@refstepcounter=\stepcounter + \let\cref@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@tempb{\SX@tempa{\SX@codefile}}\par -% \end{macrocode} -% Restore the regular numbering of floats outside of `LTXexample'. -% \begin{macrocode} \endgroup \else \expandafter\includegraphics\expandafter[\SX@graphicparam]% -- cgit v1.2.3