texlive[41409] Master/texmf-dist: caption (24may16)

commits+karl at tug.org commits+karl at tug.org
Sun Jun 12 18:12:11 CEST 2016


Revision: 41409
          http://tug.org/svn/texlive?view=revision&revision=41409
Author:   karl
Date:     2016-06-12 18:12:11 +0200 (Sun, 12 Jun 2016)
Log Message:
-----------
caption (24may16)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/caption/README
    trunk/Master/texmf-dist/source/latex/caption/bicaption.dtx
    trunk/Master/texmf-dist/source/latex/caption/caption3.dtx
    trunk/Master/texmf-dist/source/latex/caption/subcaption.dtx
    trunk/Master/texmf-dist/tex/latex/caption/bicaption.sty
    trunk/Master/texmf-dist/tex/latex/caption/caption3.sty
    trunk/Master/texmf-dist/tex/latex/caption/subcaption.sty

Modified: trunk/Master/texmf-dist/doc/latex/caption/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/caption/README	2016-06-12 16:11:59 UTC (rev 41408)
+++ trunk/Master/texmf-dist/doc/latex/caption/README	2016-06-12 16:12:11 UTC (rev 41409)
@@ -1,7 +1,7 @@
 ==========================================================================
 
 The `caption' package bundle
-Release 2016-02-21
+Release 2016-05-22
 Copyright (C) 1994-2016 Axel Sommerfeldt (axel.sommerfeldt at f-m.fm)
 
 License: LPPL = LaTeX Project Public Licence

Modified: trunk/Master/texmf-dist/source/latex/caption/bicaption.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/caption/bicaption.dtx	2016-06-12 16:11:59 UTC (rev 41408)
+++ trunk/Master/texmf-dist/source/latex/caption/bicaption.dtx	2016-06-12 16:12:11 UTC (rev 41409)
@@ -2,7 +2,7 @@
 % 
 % This is file `bicaption.dtx'.
 % 
-% $Id: bicaption.dtx 136 2016-02-02 09:41:30Z sommerfeldt $
+% $Id: bicaption.dtx 158 2016-03-27 17:17:41Z sommerfeldt $
 % $HeadURL: svn+ssh://sommerfeldt@svn.code.sf.net/p/latex-caption/code/branches/3.3/source/bicaption.dtx $
 %
 % Copyright (C) 2010-2016 Axel Sommerfeldt (axel.sommerfeldt at f-m.fm)
@@ -28,7 +28,7 @@
 % and the user manuals caption-deu.tex, caption-eng.tex, and caption-rus.tex.
 % 
 % \fi
-% \CheckSum{393}
+% \CheckSum{409}
 %
 % \iffalse
 %<*driver>
@@ -797,7 +797,7 @@
 \NeedsTeXFormat{LaTeX2e}[1994/12/01]
 \def\caption at tempa$Id: #1 #2 #3-#4-#5 #6${%
   \def\caption at tempa{#3/#4/#5 }\def\caption at tempb{#2 }}
-\caption at tempa $Id: bicaption.dtx 136 2016-02-02 09:41:30Z sommerfeldt $
+\caption at tempa $Id: bicaption.dtx 158 2016-03-27 17:17:41Z sommerfeldt $
 \ProvidesPackage{bicaption}[\caption at tempa v1.1-\caption at tempb Bilingual Captions (AR)]
 %    \end{macrocode}
 %    \begin{macrocode}
@@ -904,31 +904,66 @@
 %    \end{macrocode}
 %
 % The option |lang=|\meta{language} will setup the language of the caption.
+% We can't set the language immediately because otherwise we will get in trouble, e.g. when
+% using the \package{microtype} package via |\usepackage[babel]{microtype}|.
+% So we store the selected language to |\bicaption at language| instead and will set it later on.
+% But this has a drawback, option settings which will be overwritten by the selection of
+% the language do not work correctly anymore.
+% The only option affected I'm aware off is the |name=| option, so this will be saved
+% and set later on, too.
+% (Since the user can declare own options it would be nice to have a new command for handling
+% delayed option settings because of the language selection,
+% e.g. |\DeclareCaptionLangOption|\marg{option key}.
+% This will be offered by a future version of \thispackage.)
 %    \begin{macrocode}
-\DeclareCaptionOption{lang}{\def\bicaption at language{#1}}
+\DeclareCaptionOption{lang}{%
+  \caption at ifundefined\bicaption at language
+    {\let\KV at bicaption@name\KV at caption@name
+     \def\KV at caption@name{\bicaption at KV{name}}}%
+    {}%
+  \def\bicaption at language{#1}%
+  \let\bicaption at language@options\@empty}
+%    \end{macrocode}
+%    \begin{macrocode}
 \let\KV at caption@language\KV at caption@lang
 %    \end{macrocode}
 %
+% \begin{macro}{\bicaption at KV}
+% \changes{v1.1}{2016/03/27}{This macro added}
+% |\bicaption at KV|\marg{option key}\marg{option value}\par
+% This macro do execute the given caption package option, and store it additionally for
+% delayed execution after setting the language.
+%    \begin{macrocode}
+\newcommand\bicaption at KV[2]{%
+  \@bicaption at KV{#1}{#2}%
+  \l at addto@macro\bicaption at language@options{\@bicaption at KV{#1}{#2}}}
+%    \end{macrocode}
+%    \begin{macrocode}
+\newcommand\@bicaption at KV[1]{%
+  \@nameuse{KV at bicaption@#1}}
+%    \end{macrocode}
+% \end{macro}
+%
 % \begin{macro}{\bicaption at selectlanguage}
 % \changes{v1.0}{2011/08/31}{Starred variant added}
 % \changes{v1.1}{2012/04/09}{Support of \cs{selectcaptionlanguage} added}
+% \changes{v1.1}{2016/03/25}{Patching of \cs{caption at applyfont} replaced by \cs{caption at beginhook}}
+% \changes{v1.1}{2016/03/27}{Usage of \cs{bicaption at language@options} added}
+% |\bicaption at selectlanguage|\marg{font-or-list-entry}\par
 % Set the language (stored in |\bi|\-|caption at lan|\-|guage|)
 % via |\select|\-|bi|\-|caption|\-|lan|\-|guage|.
 %    \begin{macrocode}
 \newcommand*\bicaption at selectlanguage[1]{%
   \caption at ifundefined\bicaption at language{}{%
-    \expandafter\selectcaptionlanguage\expandafter#1\expandafter{\bicaption at language}}}
+    \expandafter\selectcaptionlanguage\expandafter#1\expandafter{\bicaption at language}%
+    \bicaption at language@options}}
 %    \end{macrocode}
-% |\caption at applyfont| (of the \package{caption} package kernel) will be extended here
+% |\caption at beginhook| (of the \package{caption} package kernel) will be extended here
 % so the language setting will actually take effect.
 %    \begin{macrocode}
-\g at addto@macro\caption at applyfont{%
+\g at addto@macro\caption at beginhook{%
   \bicaption at selectlanguage\@firstoftwo}
 %    \end{macrocode}
-%    \begin{macrocode}
-\g at addto@macro\caption at prepareslc{%
-  \let\bicaption at language\@undefined}
-%    \end{macrocode}
 % \end{macro}
 %
 % \begin{macro}{\selectcaptionlanguage}

Modified: trunk/Master/texmf-dist/source/latex/caption/caption3.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/caption/caption3.dtx	2016-06-12 16:11:59 UTC (rev 41408)
+++ trunk/Master/texmf-dist/source/latex/caption/caption3.dtx	2016-06-12 16:12:11 UTC (rev 41409)
@@ -2,7 +2,7 @@
 % 
 % This is file `caption3.dtx'.
 % 
-% $Id: caption3.dtx 139 2016-02-04 10:26:00Z sommerfeldt $
+% $Id: caption3.dtx 166 2016-05-22 18:50:55Z sommerfeldt $
 % $HeadURL: svn+ssh://sommerfeldt@svn.code.sf.net/p/latex-caption/code/branches/3.3/source/caption3.dtx $
 %
 % Copyright (C) 1994-2016 Axel Sommerfeldt (axel.sommerfeldt at f-m.fm)
@@ -28,7 +28,7 @@
 % and the user manuals caption-deu.tex, caption-eng.tex, and caption-rus.tex.
 % 
 % \fi
-% \CheckSum{3664}
+% \CheckSum{3679}
 %
 % \iffalse
 %<*driver>
@@ -203,7 +203,7 @@
 \NeedsTeXFormat{LaTeX2e}[1994/12/01]
 \def\caption at tempa$Id: #1 #2 #3-#4-#5 #6${%
   \def\caption at tempa{#3/#4/#5 }\def\caption at tempb{#2 }}
-\caption at tempa $Id: caption3.dtx 139 2016-02-04 10:26:00Z sommerfeldt $
+\caption at tempa $Id: caption3.dtx 166 2016-05-22 18:50:55Z sommerfeldt $
 \ProvidesPackage{caption3}[\caption at tempa v1.7-\caption at tempb caption3 kernel (AR)]
 %    \end{macrocode}
 %
@@ -243,7 +243,7 @@
 % \end{macro}
 %
 % \begin{macro}{\l at addto@macro}
-% \changes{v3.3}{2013/04/26}{Revised}
+% \changes{v1.5}{2013/04/26}{Revised}
 %  The \LaTeXe\ kernel offers the internal helper macro |\g at addto@macro| which
 %  globally adds tokens to existing macros, like in |\AtBeginDocument|.
 %  This is the same but it works local, not global.
@@ -1756,6 +1756,7 @@
 %
 % \changes{v1.2}{2007/12/16}{Caption label format \opt{brace} added}
 % \changes{v1.7}{2015/09/16}{Caption label format \opt{autodot} added}
+% \changes{v1.7}{2016/05/22}{Caption label format \opt{autodot} fixed}
 % There are five pre-defined label formats, called `empty', `simple',
 % `parens', `brace', and `autodot'.
 %    \begin{macrocode}
@@ -1763,7 +1764,7 @@
 \DeclareCaptionLabelFormat{simple}{\bothIfFirst{#1}{\nobreakspace}#2}
 \DeclareCaptionLabelFormat{parens}{\bothIfFirst{#1}{\nobreakspace}(#2)}
 \DeclareCaptionLabelFormat{brace}{\bothIfFirst{#1}{\nobreakspace}#2)}
-\DeclareCaptionLabelFormat{autodot}{\bothIfFirst{#1}{\nobreakspace}\autodot}
+\DeclareCaptionLabelFormat{autodot}{\bothIfFirst{#1}{\nobreakspace}#2\autodot}
 %    \end{macrocode}
 %
 % `default' usually maps to `simple'.
@@ -2742,9 +2743,10 @@
 %    \end{macrocode}
 %
 % \subsubsection{The beamer class (Part one)}
-% \changes{v1.1}{2007/03/10}{beamer class support added}
-% \changes{v1.3}{2011/08/06}{beamer class support revised}
-% \changes{v3.3}{2013/04/27}{The beamer template \texttt{caption label separator} will be used now}
+% \changes{v1.1}{2007/03/10}{\package{beamer} class support added}
+% \changes{v1.3}{2011/08/06}{\package{beamer} class support revised}
+% \changes{v1.5}{2013/04/27}{The \package{beamer} template \texttt{caption label separator} will be used now}
+% \changes{v1.7}{2016/05/22}{Re-definition of label format \texttt{simpleMagyar} added to \package{beamer} class support}
 %
 % \begin{macro}{\caption at ifbeamerclass}
 %    \begin{macrocode}
@@ -2774,24 +2776,41 @@
       \fi
       \nobreak\vskip\belowcaptionskip\nobreak}}
 %    \end{macrocode}
+%
 % \begin{macro}{\caption at ifbeamertemplate}
 % |\caption at ifbeamertemplate|\marg{caption template name}\marg{yes-code}\marg{no-code}\\
 % tests if the given beamer caption template was selected by the user (or not).
 %    \begin{macrocode}
-\newcommand*\caption at ifbeamertemplate[1]{%
-  \begingroup
-    \let\beamer@@tmpl at caption@ORI\beamer@@tmpl at caption
-    \@nameuse{beamer@@tmpop at caption@#1}%
-    \ifx\beamer@@tmpl at caption@ORI\beamer@@tmpl at caption
-      \endgroup\expandafter\@firstoftwo
-    \else
-      \endgroup\expandafter\@secondoftwo
-    \fi}
+  \newcommand*\caption at ifbeamertemplate[1]{%
+    \begingroup
+      \let\beamer@@tmpl at caption@ORI\beamer@@tmpl at caption
+      \@nameuse{beamer@@tmpop at caption@#1}%
+      \ifx\beamer@@tmpl at caption@ORI\beamer@@tmpl at caption
+        \endgroup\expandafter\@firstoftwo
+      \else
+        \endgroup\expandafter\@secondoftwo
+      \fi}
 %    \end{macrocode}
 % \end{macro}
+%
 %    \begin{macrocode}
   \DeclareCaptionLabelFormat{default}{%
-    #1\caption at ifbeamertemplate{numbered}{~#2}{}}
+    \caption at ifbeamertemplate{numbered}{%
+      \caption at lfmt@simple{#1}{#2}}{#1}}
+%    \end{macrocode}
+% The \package{magyar} babel package redefines the current label format to a one called |simple|\-|Magyar|,
+% defined within |\@@magyar at caption|\-|fix| which will be executed |\At|\-|Begin|\-|Document|.
+% But without accounting for the \package{beamer} document class, so we will make up leeway here.
+%    \begin{macrocode}
+  \DeclareCaptionLabelFormat{default at magyar}{%
+    \caption at ifbeamertemplate{numbered}{%
+      \caption at lfmt@simple at magyar{#1}{#2}}{#1}}
+  \@ifundefined{@@magyar at captionfix}\AtBeginDocument\@firstofone{%
+    \g at addto@macro\@@magyar at captionfix{%
+      \let\caption at lfmt@simple at magyar\caption at lfmt@simpleMagyar
+      \let\caption at lfmt@simpleMagyar\caption at lfmt@default at magyar}}
+%    \end{macrocode}
+%    \begin{macrocode}
   \caption at declarelabelseparator
     {\caption at ifbeamertemplate{caption name own line}\@gobble\@firstofone}
     {default}
@@ -2804,6 +2823,8 @@
     \usebeamercolor[fg]{caption name}%
     \usebeamerfont*{caption name}}
   \DeclareCaptionDefaultJustification{\raggedright}
+%    \end{macrocode}
+%    \begin{macrocode}
   \DeclareOption{beamerclass}{%
     \renewcommand\caption at ifslc{%
       \caption at ifbeamertemplate{caption name own line}\@secondoftwo\@firstoftwo}
@@ -3385,7 +3406,7 @@
 % \changes{v1.1d}{2007/10/23}{`SingleLine' renamed to `singleline' for consistency}
 % \changes{v1.3}{2010/09/04}{Split into \cs{caption at slc} and \cs{caption@@slc}}
 % \changes{v1.5}{2012/12/26}{Merged into a single macro again}
-% \changes{v3.3}{2013/04/14}{Definition and usage of \cs{ifsinglelinecaption} added}
+% \changes{v1.5}{2013/04/14}{Definition and usage of \cs{ifsinglelinecaption} added}
 %  |\caption at slc|\marg{label}\marg{text}\marg{single-line-code}\marg{multi-line-code}\par
 %  This one does the single-line-check.
 %    \begin{macrocode}
@@ -3431,7 +3452,7 @@
 % \changes{v1.3}{2011/07/07}{Bugfix 11-07-06: Redefinition of \cs{footnote} and \cs{footnotemark} added, redefinition of \cs{stepcounter} and \cs{refstepcounter} dropped}
 % \changes{v1.4a}{2011/10/21}{Redefinition of \cs{pagenote} from \textsf{memoir} document class added}
 % \changes{v1.4a}{2011/10/22}{Redefinition of \cs{footnote} revised}
-% \changes{v3.3}{2013/04/13}{Redefinition os \cs{glsunset} added}
+% \changes{v1.5}{2013/04/13}{Redefinition os \cs{glsunset} added}
 %  Re-define anything which would disturb the single-line-check.
 %    \begin{macrocode}
 \newcommand*\caption at prepareslc{%

Modified: trunk/Master/texmf-dist/source/latex/caption/subcaption.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/caption/subcaption.dtx	2016-06-12 16:11:59 UTC (rev 41408)
+++ trunk/Master/texmf-dist/source/latex/caption/subcaption.dtx	2016-06-12 16:12:11 UTC (rev 41409)
@@ -2,7 +2,7 @@
 % 
 % This is file `subcaption.dtx'.
 % 
-% $Id: subcaption.dtx 142 2016-02-20 19:59:43Z sommerfeldt $
+% $Id: subcaption.dtx 161 2016-05-22 14:39:14Z sommerfeldt $
 % $HeadURL: svn+ssh://sommerfeldt@svn.code.sf.net/p/latex-caption/code/branches/3.3/source/subcaption.dtx $
 %
 % Copyright (C) 2007-2016 Axel Sommerfeldt (axel.sommerfeldt at f-m.fm)
@@ -28,7 +28,7 @@
 % and the user manuals caption-deu.tex, caption-eng.tex, and caption-rus.tex.
 % 
 % \fi
-% \CheckSum{147}
+% \CheckSum{165}
 %
 % \iffalse
 %<*driver>
@@ -903,7 +903,7 @@
 \NeedsTeXFormat{LaTeX2e}[1994/12/01]
 \def\caption at tempa$Id: #1 #2 #3-#4-#5 #6${%
   \def\caption at tempa{#3/#4/#5 }\def\caption at tempb{#2 }}
-\caption at tempa $Id: subcaption.dtx 142 2016-02-20 19:59:43Z sommerfeldt $
+\caption at tempa $Id: subcaption.dtx 161 2016-05-22 14:39:14Z sommerfeldt $
 \ProvidesPackage{subcaption}[\caption at tempa v1.1-\caption at tempb Sub-captions (AR)]
 %    \end{macrocode}
 %
@@ -913,32 +913,61 @@
 %    \begin{macrocode}
 \RequirePackage{caption}[2012/03/25] % needs v3.3 or newer
 %    \end{macrocode}
+%
+% \begin{macro}{\subcaption at CheckCompatibility}
 % \changes{v1.1}{2011/09/01}{Compatibility error added}
-%    \begin{macrocode}
-\caption at AtBeginDocument{\caption at ifcompatibility{%
-  \caption at Error{%
-    The `subcaption' package does not work correctly\MessageBreak
-    in compatibility mode}}{}}
-%    \end{macrocode}
-%
+% \changes{v1.1}{2016/05/22}{The presence of \package{subfigure} or \package{subfig} will be checked \cs{AtBeginDocument}, too}
 % Since we are incompatible to them an error message will be issued when
 % the \package{subfigure} or \package{subfig} package is loaded.
 %    \begin{macrocode}
-\@ifpackageloaded{subfigure}{%
-  \PackageError{subcaption}%
-    {This package can't be used in cooperation\MessageBreak
-     with the subfigure package}%
-    {RTFM}%
-  \endinput}{}%
+\newcommand\subcaption at CheckCompatibility{%
 %    \end{macrocode}
 %    \begin{macrocode}
-\@ifpackageloaded{subfig}{%
-  \PackageError{subcaption}%
-    {This package can't be used in cooperation\MessageBreak
-     with the subfig package}%
-    {RTFM}%
-  \endinput}{}%
+  \@ifpackageloaded{subfigure}{%
+    \PackageError{subcaption}%
+      {This package can't be used in cooperation\MessageBreak
+       with the subfigure package}%
+      {\subcaption at EH}%
+    \endinput}{}%
 %    \end{macrocode}
+%    \begin{macrocode}
+  \@ifpackageloaded{subfig}{%
+    \PackageError{subcaption}%
+      {This package can't be used in cooperation\MessageBreak
+       with the subfig package}%
+      {\subcaption at EH}%
+    \endinput}{}%
+%    \end{macrocode}
+%    \begin{macrocode}
+}
+%    \end{macrocode}
+%    \begin{macrocode}
+\newcommand*\subcaption at EH{%
+  If you do not understand this error, please take a closer look\MessageBreak
+  at the documentation of the `subcaption' package, especially the\MessageBreak
+  section about errors.\MessageBreak\@ehc}
+%    \end{macrocode}
+%    \begin{macrocode}
+\subcaption at CheckCompatibility
+%    \end{macrocode}
+%    \begin{macrocode}
+\caption at AtBeginDocument{%
+%    \end{macrocode}
+%    \begin{macrocode}
+  \caption at ifcompatibility{%
+    \caption at Error{%
+      The `subcaption' package does not work correctly\MessageBreak
+      in compatibility mode}}{}%
+%    \end{macrocode}
+%    \begin{macrocode}
+  \subcaption at CheckCompatibility
+  \let\subcaption at CheckCompatibility\@undefined
+  \let\subcaption at EH\@undefined
+%    \end{macrocode}
+%    \begin{macrocode}
+}
+%    \end{macrocode}
+% \end{macro}
 %
 % \iffalse
 % \subsection{Declaration of options}

Modified: trunk/Master/texmf-dist/tex/latex/caption/bicaption.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/caption/bicaption.sty	2016-06-12 16:11:59 UTC (rev 41408)
+++ trunk/Master/texmf-dist/tex/latex/caption/bicaption.sty	2016-06-12 16:12:11 UTC (rev 41409)
@@ -39,7 +39,7 @@
 \NeedsTeXFormat{LaTeX2e}[1994/12/01]
 \def\caption at tempa$Id: #1 #2 #3-#4-#5 #6${%
   \def\caption at tempa{#3/#4/#5 }\def\caption at tempb{#2 }}
-\caption at tempa $Id: bicaption.sty 136 2016-02-02 09:41:30Z sommerfeldt $
+\caption at tempa $Id: bicaption.sty 158 2016-03-27 17:17:41Z sommerfeldt $
 \ProvidesPackage{bicaption}[\caption at tempa v1.1-\caption at tempb Bilingual Captions (AR)]
 \RequirePackage{caption}[2016/02/01] % needs v3.3-134 or newer
 \caption at AtBeginDocument{\caption at ifcompatibility{%
@@ -78,15 +78,25 @@
   \caption at set@bool\bicaption at ifslc{#1}}
 \DeclareCaptionOption{bi-swap}[1]{%
   \caption at set@bool\bicaption at ifswap{#1}}
-\DeclareCaptionOption{lang}{\def\bicaption at language{#1}}
+\DeclareCaptionOption{lang}{%
+  \caption at ifundefined\bicaption at language
+    {\let\KV at bicaption@name\KV at caption@name
+     \def\KV at caption@name{\bicaption at KV{name}}}%
+    {}%
+  \def\bicaption at language{#1}%
+  \let\bicaption at language@options\@empty}
 \let\KV at caption@language\KV at caption@lang
+\newcommand\bicaption at KV[2]{%
+  \@bicaption at KV{#1}{#2}%
+  \l at addto@macro\bicaption at language@options{\@bicaption at KV{#1}{#2}}}
+\newcommand\@bicaption at KV[1]{%
+  \@nameuse{KV at bicaption@#1}}
 \newcommand*\bicaption at selectlanguage[1]{%
   \caption at ifundefined\bicaption at language{}{%
-    \expandafter\selectcaptionlanguage\expandafter#1\expandafter{\bicaption at language}}}
-\g at addto@macro\caption at applyfont{%
+    \expandafter\selectcaptionlanguage\expandafter#1\expandafter{\bicaption at language}%
+    \bicaption at language@options}}
+\g at addto@macro\caption at beginhook{%
   \bicaption at selectlanguage\@firstoftwo}
-\g at addto@macro\caption at prepareslc{%
-  \let\bicaption at language\@undefined}
 \providecommand*\selectcaptionlanguage[1]{%
   #1\select at language\selectlanguage}
 \caption at ExecuteOptions{caption}{bi-lang=0,bi-slc=1,bi-swap=0}

Modified: trunk/Master/texmf-dist/tex/latex/caption/caption3.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/caption/caption3.sty	2016-06-12 16:11:59 UTC (rev 41408)
+++ trunk/Master/texmf-dist/tex/latex/caption/caption3.sty	2016-06-12 16:12:11 UTC (rev 41409)
@@ -39,7 +39,7 @@
 \NeedsTeXFormat{LaTeX2e}[1994/12/01]
 \def\caption at tempa$Id: #1 #2 #3-#4-#5 #6${%
   \def\caption at tempa{#3/#4/#5 }\def\caption at tempb{#2 }}
-\caption at tempa $Id: caption3.sty 139 2016-02-04 10:26:00Z sommerfeldt $
+\caption at tempa $Id: caption3.sty 166 2016-05-22 18:50:55Z sommerfeldt $
 \ProvidesPackage{caption3}[\caption at tempa v1.7-\caption at tempb caption3 kernel (AR)]
 \providecommand\caption at FixArabTeX{%
   \def\caption at tempa##1{}%
@@ -657,7 +657,7 @@
 \DeclareCaptionLabelFormat{simple}{\bothIfFirst{#1}{\nobreakspace}#2}
 \DeclareCaptionLabelFormat{parens}{\bothIfFirst{#1}{\nobreakspace}(#2)}
 \DeclareCaptionLabelFormat{brace}{\bothIfFirst{#1}{\nobreakspace}#2)}
-\DeclareCaptionLabelFormat{autodot}{\bothIfFirst{#1}{\nobreakspace}\autodot}
+\DeclareCaptionLabelFormat{autodot}{\bothIfFirst{#1}{\nobreakspace}#2\autodot}
 \def\caption at lfmt@default{\caption at lfmt@simple}
 \newcommand\DeclareCaptionLabelSeparator{%
   \caption at teststar\caption at declarelabelseparator\@gobble\@firstofone}
@@ -1117,17 +1117,25 @@
         \hb at xt@\hsize{\hfil\box\@tempboxa\hfil}%
       \fi
       \nobreak\vskip\belowcaptionskip\nobreak}}
-\newcommand*\caption at ifbeamertemplate[1]{%
-  \begingroup
-    \let\beamer@@tmpl at caption@ORI\beamer@@tmpl at caption
-    \@nameuse{beamer@@tmpop at caption@#1}%
-    \ifx\beamer@@tmpl at caption@ORI\beamer@@tmpl at caption
-      \endgroup\expandafter\@firstoftwo
-    \else
-      \endgroup\expandafter\@secondoftwo
-    \fi}
+  \newcommand*\caption at ifbeamertemplate[1]{%
+    \begingroup
+      \let\beamer@@tmpl at caption@ORI\beamer@@tmpl at caption
+      \@nameuse{beamer@@tmpop at caption@#1}%
+      \ifx\beamer@@tmpl at caption@ORI\beamer@@tmpl at caption
+        \endgroup\expandafter\@firstoftwo
+      \else
+        \endgroup\expandafter\@secondoftwo
+      \fi}
   \DeclareCaptionLabelFormat{default}{%
-    #1\caption at ifbeamertemplate{numbered}{~#2}{}}
+    \caption at ifbeamertemplate{numbered}{%
+      \caption at lfmt@simple{#1}{#2}}{#1}}
+  \DeclareCaptionLabelFormat{default at magyar}{%
+    \caption at ifbeamertemplate{numbered}{%
+      \caption at lfmt@simple at magyar{#1}{#2}}{#1}}
+  \@ifundefined{@@magyar at captionfix}\AtBeginDocument\@firstofone{%
+    \g at addto@macro\@@magyar at captionfix{%
+      \let\caption at lfmt@simple at magyar\caption at lfmt@simpleMagyar
+      \let\caption at lfmt@simpleMagyar\caption at lfmt@default at magyar}}
   \caption at declarelabelseparator
     {\caption at ifbeamertemplate{caption name own line}\@gobble\@firstofone}
     {default}

Modified: trunk/Master/texmf-dist/tex/latex/caption/subcaption.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/caption/subcaption.sty	2016-06-12 16:11:59 UTC (rev 41408)
+++ trunk/Master/texmf-dist/tex/latex/caption/subcaption.sty	2016-06-12 16:12:11 UTC (rev 41409)
@@ -39,25 +39,37 @@
 \NeedsTeXFormat{LaTeX2e}[1994/12/01]
 \def\caption at tempa$Id: #1 #2 #3-#4-#5 #6${%
   \def\caption at tempa{#3/#4/#5 }\def\caption at tempb{#2 }}
-\caption at tempa $Id: subcaption.sty 142 2016-02-20 19:59:43Z sommerfeldt $
+\caption at tempa $Id: subcaption.sty 161 2016-05-22 14:39:14Z sommerfeldt $
 \ProvidesPackage{subcaption}[\caption at tempa v1.1-\caption at tempb Sub-captions (AR)]
 \RequirePackage{caption}[2012/03/25] % needs v3.3 or newer
-\caption at AtBeginDocument{\caption at ifcompatibility{%
-  \caption at Error{%
-    The `subcaption' package does not work correctly\MessageBreak
-    in compatibility mode}}{}}
-\@ifpackageloaded{subfigure}{%
-  \PackageError{subcaption}%
-    {This package can't be used in cooperation\MessageBreak
-     with the subfigure package}%
-    {RTFM}%
-  \endinput}{}%
-\@ifpackageloaded{subfig}{%
-  \PackageError{subcaption}%
-    {This package can't be used in cooperation\MessageBreak
-     with the subfig package}%
-    {RTFM}%
-  \endinput}{}%
+\newcommand\subcaption at CheckCompatibility{%
+  \@ifpackageloaded{subfigure}{%
+    \PackageError{subcaption}%
+      {This package can't be used in cooperation\MessageBreak
+       with the subfigure package}%
+      {\subcaption at EH}%
+    \endinput}{}%
+  \@ifpackageloaded{subfig}{%
+    \PackageError{subcaption}%
+      {This package can't be used in cooperation\MessageBreak
+       with the subfig package}%
+      {\subcaption at EH}%
+    \endinput}{}%
+}
+\newcommand*\subcaption at EH{%
+  If you do not understand this error, please take a closer look\MessageBreak
+  at the documentation of the `subcaption' package, especially the\MessageBreak
+  section about errors.\MessageBreak\@ehc}
+\subcaption at CheckCompatibility
+\caption at AtBeginDocument{%
+  \caption at ifcompatibility{%
+    \caption at Error{%
+      The `subcaption' package does not work correctly\MessageBreak
+      in compatibility mode}}{}%
+  \subcaption at CheckCompatibility
+  \let\subcaption at CheckCompatibility\@undefined
+  \let\subcaption at EH\@undefined
+}
 \caption at SetupOptions{subcaption}{\captionsetup[sub]{#2}}%
 \caption at ExecuteOptions{subcaption}{%
   font+=small,labelformat=parens,labelsep=space,skip=6pt,list=0,hypcap=0}



More information about the tex-live-commits mailing list