summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/caption/caption3.dtx
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-10-02 03:05:35 +0000
committerNorbert Preining <norbert@preining.info>2023-10-02 03:05:35 +0000
commit5f9c1e9c3c9b2ac59c6f868744ee6fafee27ab39 (patch)
tree0eeb99db5c67d9d98c690cdc0322bb1f9d2f3be6 /macros/latex/contrib/caption/caption3.dtx
parent8a05034cb5d7ae61b2de6857258caa3e43b496aa (diff)
CTAN sync 202310020305
Diffstat (limited to 'macros/latex/contrib/caption/caption3.dtx')
-rw-r--r--macros/latex/contrib/caption/caption3.dtx9
1 files changed, 7 insertions, 2 deletions
diff --git a/macros/latex/contrib/caption/caption3.dtx b/macros/latex/contrib/caption/caption3.dtx
index be2a46ec67..33bb027ceb 100644
--- a/macros/latex/contrib/caption/caption3.dtx
+++ b/macros/latex/contrib/caption/caption3.dtx
@@ -31,7 +31,7 @@
%
% \fi
%
-% \CheckSum{3853}
+% \CheckSum{3855}
%
% \iffalse
%<*driver>
@@ -1178,6 +1178,11 @@
\@onlypreamble\caption@SetupOptions@list
% \end{macrocode}
% \begin{macrocode}
+%% Unfortunately we have to patch internal \LaTeX\ code here
+%% to get rid of unnecessary ``Option clash'' error messages.
+%% I have asked Frank Mittelbach and David Carlisle in 2018
+%% and have asked Frank again in 2020 for a proper interface instead of
+%% this dirty hack, but my requests got declined.
\let\caption@onefilewithoptions\@onefilewithoptions
\def\@onefilewithoptions#1[#2]{%
\begingroup
@@ -2118,7 +2123,7 @@
\DeclareCaptionLabelFormat{simple}{\bothIfFirst{#1}{\nobreakspace}#2}
\DeclareCaptionLabelFormat{parens}{\bothIfFirst{#1}{\nobreakspace}(#2)}
\DeclareCaptionLabelFormat{brace}{\bothIfFirst{#1}{\nobreakspace}#2)}
-\DeclareCaptionLabelFormat{autodot}{\bothIfFirst{#1}{\nobreakspace}#2\autodot}
+\DeclareCaptionLabelFormat{autodot}{\bothIfFirst{#1}{\nobreakspace}#2\autodot} % obsolete, use `koma' instead
\DeclareCaptionLabelFormat{unnumbered}{#1}
% \end{macrocode}
%