From c1f9540dac287386d2a61a40656a9c7413909dd8 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 13 Jan 2021 22:14:21 +0000 Subject: showexpl (13jan21) git-svn-id: svn://tug.org/texlive/trunk@57414 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/showexpl/showexpl.sty | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'Master/texmf-dist/tex/latex') diff --git a/Master/texmf-dist/tex/latex/showexpl/showexpl.sty b/Master/texmf-dist/tex/latex/showexpl/showexpl.sty index ece526c8876..f01e9d4b4fb 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/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@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 -- cgit v1.2.3