summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-01-13 22:14:21 +0000
committerKarl Berry <karl@freefriends.org>2021-01-13 22:14:21 +0000
commitc1f9540dac287386d2a61a40656a9c7413909dd8 (patch)
treee218003a4a75d1a71f830ce69ce78a81a3589547 /Master/texmf-dist/tex
parent6da255ad9866692554851503a48c7bd5f5183f13 (diff)
showexpl (13jan21)
git-svn-id: svn://tug.org/texlive/trunk@57414 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/showexpl/showexpl.sty12
1 files changed, 9 insertions, 3 deletions
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