diff options
author | Karl Berry <karl@freefriends.org> | 2019-09-01 21:35:52 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-09-01 21:35:52 +0000 |
commit | 743d65ddc6fa01add37aa1136fba86d3adddb577 (patch) | |
tree | 17b5e78fedce250aabe0f931b7eacaf8c1265f9f /Master/texmf-dist/tex/latex/caption/subcaption.sty | |
parent | 6c2b37784436216910ca9511232762e43883439d (diff) |
caption (1sep19)
git-svn-id: svn://tug.org/texlive/trunk@52008 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/caption/subcaption.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/caption/subcaption.sty | 29 |
1 files changed, 26 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/caption/subcaption.sty b/Master/texmf-dist/tex/latex/caption/subcaption.sty index 72d1c2e4768..0f03f498edd 100644 --- a/Master/texmf-dist/tex/latex/caption/subcaption.sty +++ b/Master/texmf-dist/tex/latex/caption/subcaption.sty @@ -6,7 +6,7 @@ %% %% subcaption.dtx (with options: `package') %% -%% Copyright (C) 1994-2018 Axel Sommerfeldt (axel.sommerfeldt@f-m.fm) +%% Copyright (C) 1994-2019 Axel Sommerfeldt (axel.sommerfeldt@f-m.fm) %% %% https://gitlab.com/axelsommerfeldt/caption %% @@ -37,8 +37,8 @@ %% caption-deu.tex, caption-eng.tex, and caption-rus.tex. %% \NeedsTeXFormat{LaTeX2e}[1994/12/01] -\ProvidesPackage{subcaption}[2018/05/13 v1.2 Sub-captions (AR)] -\RequirePackage{caption}[2018/05/11] % needs v3.4 or newer +\ProvidesPackage{subcaption}[2019/09/01 v1.3a Sub-captions (AR)] +\RequirePackage{caption}[2019/09/01] % needs v3.3c or newer \newcommand\subcaption@CheckCompatibility{% \@ifundefined{caption@ifcompatibility}{}{% \caption@ifcompatibility{% @@ -145,6 +145,29 @@ {\caption@Error{Undefined label format `#1'}}% {\expandafter\let\expandafter\subcaption@reffmt\csname caption@lfmt@#1\endcsname}} \subcaption@setrefformat{simple} +\caption@ifundefined\subfloat{% + \newcommand*\subfloat{% + \@ifnextchar[\@subfloat\subfloat@} + \long\def\@subfloat[#1]{% + \@ifnextchar[{\@@subfloat{#1}}{\@@@subfloat\subcaptionbox{#1}}} + \long\def\@@subfloat#1[#2]{\@@@subfloat{\subcaptionbox[{#1}]}{#2}} + \newcommand\@@@subfloat[3]{% + \caption@getlabel#3\label{}\@nil + #1{#2\caption@thelabel}{\let\label\caption@gobble#3}% + \global\let\caption@thelabel\relax + \ignorespaces} + \newcommand*\subfloat@[1]{% + \setbox\@tempboxa\hbox{#1}% + \caption@iiiibox\setcaptionsubtype + {\phantomcaption\@gobble}{\phantomcaption\@gobble}% no box with \caption + {}% no optional arguments for \caption + {}% no sub-caption + [\wd\@tempboxa][\caption@hj@default]% + {\unhbox\@tempboxa}% + \ignorespaces} +}{% + \PackageInfo{subcaption}{\protect\subfloat\space is already defined\@gobble} +} \endinput %% %% End of file `subcaption.sty'. |