diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/caption/caption.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/caption/caption.sty | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/caption/caption.sty b/Master/texmf-dist/tex/latex/caption/caption.sty index 1e5324db58b..382086e3532 100644 --- a/Master/texmf-dist/tex/latex/caption/caption.sty +++ b/Master/texmf-dist/tex/latex/caption/caption.sty @@ -27,7 +27,7 @@ %% caption.sty, caption2.sty, caption3.sty, and manual.tex. %% \NeedsTeXFormat{LaTeX2e}[1994/12/01] -\ProvidesPackage{caption}[2006/03/21 v3.0j Customising captions (AR)] +\ProvidesPackage{caption}[2007/01/07 v3.0k Customising captions (AR)] \RequirePackage{caption3}[2006/01/12] % needs v3.0i or newer \DeclareCaptionOption{config}[caption]{% \InputIfFileExists{#1.cfg}{\typeout{*** Local configuration file @@ -76,7 +76,7 @@ \scr@caption} \def\captionbelow{% \caption@setposition{b}\let\caption@setposition\@gobble -\scr@caption} + \scr@caption} } \newcommand*\caption@declarepackage[1]{% \caption@setbool{pkt@#1}{1}% @@ -149,6 +149,9 @@ \let\caption@ContinuedFloat\@gobble \let\caption@resetContinuedFloat\@gobble \providecommand*\caption@@ContinuedFloat[1]{} +\newcommand*\DeclareCaptionEnvironment[2][]{% + \AtBeginEnvironment{#2}{\caption@letfloattype{#2}{#1}}} +\@onlypreamble\DeclareCaptionEnvironment \newcommand*\caption@begin[1]{% \caption@resetContinuedFloat{#1}% \begingroup @@ -411,6 +414,13 @@ \fi}% \caption@endSC@FLOAT}% } +\AtBeginDocument{% + \def\@tempa{\@ifstar\sf@@subref\sf@subref}% + \ifx\subref\@tempa + \PackageInfo{caption}{subref 1.2 or 1.3 detected}% + \DeclareRobustCommand*\subref{\@ifstar\sf@@subref\sf@subref}% + \fi +} \def\caption@setSTposition{% \caption@setposition{\if@topcaption t\else b\fi}} \caption@ifpackage{supertabular}{ST@caption}{% |