summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/koma-script/source/scrkernel-floats.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/koma-script/source/scrkernel-floats.dtx')
-rw-r--r--macros/latex/contrib/koma-script/source/scrkernel-floats.dtx52
1 files changed, 27 insertions, 25 deletions
diff --git a/macros/latex/contrib/koma-script/source/scrkernel-floats.dtx b/macros/latex/contrib/koma-script/source/scrkernel-floats.dtx
index 93d6140d8a..3a4e59b211 100644
--- a/macros/latex/contrib/koma-script/source/scrkernel-floats.dtx
+++ b/macros/latex/contrib/koma-script/source/scrkernel-floats.dtx
@@ -54,7 +54,7 @@
% Right brace \} Tilde \~}
%
% \iffalse
-%%% From File: $Id: scrkernel-floats.dtx 3590 2021-03-22 10:30:57Z kohm $
+%%% From File: $Id: scrkernel-floats.dtx 3620 2021-10-12 10:27:43Z kohm $
%<option>%%% (run: option)
%<body>%%% (run: body)
%<*dtx>
@@ -62,9 +62,9 @@
\ifx\ProvidesFile\undefined\def\ProvidesFile#1[#2]{}\fi
\begingroup
\def\filedate$#1: #2-#3-#4 #5${\gdef\filedate{#2/#3/#4}}
- \filedate$Date: 2021-03-22 11:30:57 +0100 (Mon, 22 Mar 2021) $
+ \filedate$Date: 2021-10-12 12:27:43 +0200 (Tue, 12 Oct 2021) $
\def\filerevision$#1: #2 ${\gdef\filerevision{r#2}}
- \filerevision$Revision: 1962 $
+ \filerevision$Revision: 3620 $
\edef\reserved@a{%
\noexpand\endgroup
\noexpand\ProvidesFile{scrkernel-floats.dtx}%
@@ -1861,21 +1861,22 @@
% \end{macrocode}
% \end{macro}
% \begin{macro}{\thefigure}
-% \changes{v2.97e}{2007/11/23}{Kapitelnummer nur im Hauptteil}%^^A
-% \changes{v3.27}{2019/06/26}{\cs{relax} replaced by percent}%^^A
+% \changes{v2.97e}{2007/11/23}{Kapitelnummer nur im Hauptteil}
+% \changes{v3.27}{2019/06/26}{\cs{relax} replaced by percent}
+% \changes{v3.35}{2021/10/12}{use chapter number only of greater than zero}
+% \changes{v3.35}{2021/10/12}{redefine \cs{thefigure} only if compatibility is
+% less or equal 2.97d resp. less than 3.35}
% \begin{macrocode}
%<*book|report>
-\renewcommand*\thefigure{%
-%<*book>
- \expandafter\ifnum\scr@v@is@gt{2.97d}%
- \if@mainmatter\thechapter.\fi
- \else
-%</book>
- \thechapter.%
-%<book> \fi
- \@arabic\c@figure
-}
+\expandafter\ifnum\scr@v@is@le{2.97d}%
+ \renewcommand*\thefigure{\thechapter.\@arabic\c@figure}
+\fi
%</book|report>
+%<*article>
+\expandafter\ifnum\scr@v@is@lt{3.35}%
+ \renewcommand*\thefigure{\@arabic\c@figure}
+\fi
+%</article>
% \end{macrocode}
% \end{macro}
% \begin{macro}{\fnum@figure}
@@ -1953,19 +1954,20 @@
% \begin{macro}{\thetable}
% \changes{v2.97e}{2007/11/23}{Kapitelnummer nur im Hauptteil}%^^A
% \changes{v3.27}{2019/06/26}{\cs{relax} replaced by percent}%^^A
+% \changes{v3.35}{2021/10/12}{use chapter number only of greater than zero}
+% \changes{v3.35}{2021/10/12}{redefine \cs{thefigure} only if compatibility is
+% less or equal 2.97d resp. less than 3.35}
% \begin{macrocode}
%<*book|report>
-%<book|report>\renewcommand*\thetable{%
-%<*book>
- \expandafter\ifnum\scr@v@is@gt{2.97d}%
- \if@mainmatter\thechapter.\fi
- \else
-%</book>
-%<book|report> \thechapter.%
-%<book> \fi
- \@arabic\c@table
-}
+\expandafter\ifnum\scr@v@is@le{2.97d}%
+ \renewcommand*\thetable{\thechapter.\@arabic\c@table}
+\fi
%</book|report>
+%<*article>
+\expandafter\ifnum\scr@v@is@lt{3.35}%
+ \renewcommand*\thetable{\@arabic\c@table}
+\fi
+%</article>
% \end{macrocode}
% \end{macro}
% \begin{macro}{\fnum@table}