From b1f0911e7afee09bb21000ac59dab2a0efc2c1e5 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 2 Sep 2019 06:32:18 +0000 Subject: CTAN sync 201909020632 --- macros/latex/contrib/caption/caption3.dtx | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'macros/latex/contrib/caption/caption3.dtx') diff --git a/macros/latex/contrib/caption/caption3.dtx b/macros/latex/contrib/caption/caption3.dtx index e71c4daed1..bdffdcc66a 100644 --- a/macros/latex/contrib/caption/caption3.dtx +++ b/macros/latex/contrib/caption/caption3.dtx @@ -2,7 +2,7 @@ % % This is file `caption3.dtx'. % -% Copyright (C) 1994-2018 Axel Sommerfeldt (axel.sommerfeldt@f-m.fm) +% Copyright (C) 1994-2019 Axel Sommerfeldt (axel.sommerfeldt@f-m.fm) % % -------------------------------------------------------------------------- % @@ -25,7 +25,7 @@ % and the user manuals caption-deu.tex, caption-eng.tex, and caption-rus.tex. % % \fi -% \CheckSum{3954} +% \CheckSum{3961} % % \iffalse %<*driver> @@ -198,7 +198,7 @@ % % \begin{macrocode} \NeedsTeXFormat{LaTeX2e}[1994/12/01] -\ProvidesPackage{caption3}[2018/09/12 v1.8c caption3 kernel (AR)] +\ProvidesPackage{caption3}[2019/09/01 v1.8d caption3 kernel (AR)] % \end{macrocode} % % \subsection{Workaround for bug in package \package{arabtex}} @@ -1892,7 +1892,8 @@ % \begin{macrocode} \DeclareCaptionTextFormat{empty}{% \caption@get@label#1\caption@makeanchor{}\@nil - \caption@thelabel} + \caption@thelabel + \global\let\caption@thelabel\relax} \long\def\caption@get@label#1\caption@makeanchor#2#3\@nil{% \def\caption@tempa{#2}% \ifx\caption@tempa\@empty @@ -1914,6 +1915,7 @@ % \begin{macro}{\caption@getlabel} % \changes{v1.0}{2011/09/03}{\cs{label} can have optional arguments now} % \changes{v1.7}{2015/09/16}{Moved from \package{bicaption} package to \package{caption3}} +% \changes{v1.8d}{2019/09/01}{Bugfix: Global definition of \cs{caption@thelabel} added} % Gets the label command out of the (first) caption text and stores it to |\caption@thelabel|. % \begin{macrocode} \long\def\caption@getlabel#1\label#2#3\@nil{% @@ -1946,6 +1948,9 @@ \l@addto@macro\caption@thelabel{[{#1}]}% \caption@@getlabel#2\@nil} % \end{macrocode} +% \begin{macrocode} +\let\caption@thelabel\relax +% \end{macrocode} % \end{macro} % % \subsection{Fonts} -- cgit v1.2.3