diff options
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r-- | Master/texmf-dist/doc/latex/caption/caption.pdf | bin | 353815 -> 364044 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/caption/caption2.pdf | bin | 136128 -> 136832 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/caption/subcaption.pdf | bin | 133832 -> 133769 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/caption/caption.dtx | 527 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/caption/caption2.dtx | 21 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/caption/subcaption.dtx | 25 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/caption/caption.sty | 74 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/caption/caption2.sty | 14 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/caption/caption3.sty | 357 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/caption/subcaption.sty | 11 |
10 files changed, 911 insertions, 118 deletions
diff --git a/Master/texmf-dist/doc/latex/caption/caption.pdf b/Master/texmf-dist/doc/latex/caption/caption.pdf Binary files differindex 771b9dfda03..0df0768b1bf 100644 --- a/Master/texmf-dist/doc/latex/caption/caption.pdf +++ b/Master/texmf-dist/doc/latex/caption/caption.pdf diff --git a/Master/texmf-dist/doc/latex/caption/caption2.pdf b/Master/texmf-dist/doc/latex/caption/caption2.pdf Binary files differindex ae23600d9c1..7f9a907e878 100644 --- a/Master/texmf-dist/doc/latex/caption/caption2.pdf +++ b/Master/texmf-dist/doc/latex/caption/caption2.pdf diff --git a/Master/texmf-dist/doc/latex/caption/subcaption.pdf b/Master/texmf-dist/doc/latex/caption/subcaption.pdf Binary files differindex 63cd802e3b3..ce58b13fb29 100644 --- a/Master/texmf-dist/doc/latex/caption/subcaption.pdf +++ b/Master/texmf-dist/doc/latex/caption/subcaption.pdf diff --git a/Master/texmf-dist/source/latex/caption/caption.dtx b/Master/texmf-dist/source/latex/caption/caption.dtx index a489d57fe58..95d983fc112 100644 --- a/Master/texmf-dist/source/latex/caption/caption.dtx +++ b/Master/texmf-dist/source/latex/caption/caption.dtx @@ -24,12 +24,12 @@ % user manuals caption-deu.tex, caption-eng.tex, and caption-rus.tex. % % \fi -% \CheckSum{6230} +% \CheckSum{6913} % % \iffalse %<*driver> \NeedsTeXFormat{LaTeX2e}[1994/12/01] -\ProvidesFile{caption.drv}[2008/04/01 v3.1h Implementation of the caption package] +\ProvidesFile{caption.drv}[2008/08/24 v3.1j Implementation of the caption package] \hbadness=9999 \newcount\hbadness \hfuzz=100pt % Make TeX shut up. %\errorcontextlines=3 % @@ -56,7 +56,7 @@ \ifpdf\usepackage{hypdestopt}\fi \hypersetup{pdfkeywords={LaTeX, package, caption},pdfstartpage={},pdfstartview={}} % -\usepackage[debug]{caption}[2008/04/01] +\usepackage[debug]{caption}[2008/08/01] % \DeclareRobustCommand*\eTeX{\texorpdfstring {\leavevmode\hbox{$\varepsilon$}-\TeX}% @@ -120,7 +120,7 @@ % which typesets captions, for example the \package{caption} and % \package{subfig} packages. % -% \Thispackage\ itself redefines the \LaTeX\ commands +% \Thispackage\ redefines the \LaTeX\ commands % |\caption|, |\@caption|, and |\@makecaption| and maps the latter one to % |\caption@@make|, giving the user the possibility to control the look \& feel % of the captions from floating environments like |figure| and |table|. @@ -233,7 +233,7 @@ % % \begin{macrocode} \NeedsTeXFormat{LaTeX2e}[1994/12/01] -\ProvidesPackage{caption3}[2008/03/20 v3.1h caption3 kernel (AR)] +\ProvidesPackage{caption3}[2008/08/24 v3.1j caption3 kernel (AR)] % \end{macrocode} % % \subsection{Generic helpers} @@ -481,6 +481,8 @@ % \begin{macro}{\caption@CheckCommand} % \changes{v3.1}{2007/04/10}{This macro added} % \begin{macro}{\caption@IfCheckCommand} +% \changes{v3.1}{2007/04/10}{This macro added} +% \changes{v3.1i}{2008/08/02}{Revised so \cs{next} is no longer used} % |\caption@CheckCommand|\marg{macro}\marg{definition of macro}\par % checks if a command already exists, with the same definition. % It can be used more-than-once to check if one of multiple definitions will @@ -512,12 +514,11 @@ % \begin{macrocode} \newcommand*\caption@IfCheckCommand{% \ifx\caption@CheckCommand\@gobbletwo - \let\next\@firstoftwo + \let\caption@CheckCommand\caption@DoCheckCommand + \expandafter\@firstoftwo \else - \let\next\@secondoftwo - \fi - \let\caption@CheckCommand\caption@DoCheckCommand - \next} + \expandafter\@secondoftwo + \fi} \@onlypreamble\caption@IfCheckCommand % \end{macrocode} % \end{macro} @@ -852,6 +853,7 @@ % \changes{v3.1}{2007/07/22}{This macro added} % \begin{macro}{\caption@removefromoptlist} % \changes{v3.1}{2007/07/22}{This macro added} +% \changes{v3.1j}{2008/08/24}{Fatal typo corrected} % |\caption@addtooptlist|\marg{type}\\ % |\caption@removefromoptlist|\marg{type}\par % Adds or removes an \meta{type} to the list of unused caption options. @@ -881,7 +883,7 @@ % \begin{macrocode} \AtEndDocument{% \caption@for@list\caption@optlist{% - \PackageWarningNoLine{caption}{% + \caption@WarningNoLine{% Unused \string\captionsetup[#1] on input line \csname caption@opt@#1@lineno\endcsname}}} % \end{macrocode} @@ -1275,10 +1277,12 @@ % \end{macro} % % \changes{v3.1g}{2008/01/20}{Option \opt{style*=} added} +% \changes{v3.1i}{2008/05/06}{Option \opt{slc=} added} % \begin{macrocode} \DeclareCaptionOption{style}{\caption@setstyle{#1}} \DeclareCaptionOption{style*}{\caption@setstyle*{#1}} -\DeclareCaptionOption{singlelinecheck}{\caption@set@bool\caption@ifslc{#1}} +\DeclareCaptionOption{singlelinecheck}[1]{\caption@set@bool\caption@ifslc{#1}} +\DeclareCaptionOption{slc}[1]{\KV@caption@singlelinecheck{#1}} % \end{macrocode} % % \begin{macro}{\caption@setstyle} @@ -1322,7 +1326,8 @@ % \changes{v3.1}{2007/02/04}{% % This macro renamed from \cs{caption@setdefault} to \cs{caption@resetstyle}} % \changes{v3.1d}{2007/10/23}{`SingleLine' renamed to `singleline' for consistency} -% \changes{v3.1f}{2007/11/17}{\texttt{size=} added} +% \changes{v3.1f}{2007/11/17}{Usage of \texttt{size=} added} +% \changes{v3.1i}{2008/05/06}{Usage of \texttt{rule} added} % This resets (nearly) all caption options to the base ones. % \emph{Note that this does not touch the skips and the positioning!} % \begin{macrocode} @@ -1332,7 +1337,7 @@ justification=justified,font=,size=,labelfont=,textfont=,% margin=0pt,minmargin=0,maxmargin=0,% indent=0pt,parindent=0pt,hangindent=0pt,% - singlelinecheck=1,strut=1}% + slc,rule,strut}% \caption@clearsetup{singleline}} % \end{macrocode} % \end{macro} @@ -1574,7 +1579,7 @@ % \changes{v3.0d}{2005/02/12}{Option \opt{strut=} added} % \begin{macrocode} \DeclareCaptionOption{textformat}{\caption@settextformat{#1}} -\DeclareCaptionOption{strut}{\caption@set@bool\caption@ifstrut{#1}} +\DeclareCaptionOption{strut}[1]{\caption@set@bool\caption@ifstrut{#1}} % \end{macrocode} % % \begin{macro}{\caption@settextformat} @@ -1924,6 +1929,23 @@ \DeclareCaptionOption{skip}{\setlength\abovecaptionskip{#1}} % \end{macrocode} % +% \begin{macro}{\caption@rule} +% \changes{v3.1i}{2008/05/06}{This macro added} +% |\caption@rule|\par +% Draws an invisible rule to adjust the ``skip'' setting. +% \begin{macrocode} +\newcommand*\caption@rule{\caption@ifrule\caption@hrule\relax} +% \end{macrocode} +% \begin{macrocode} +\newcommand*\caption@hrule{\hrule\@height\z@} +% \end{macrocode} +% \end{macro} +% +% \changes{v3.1i}{2008/05/06}{Option \opt{rule=} added} +% \begin{macrocode} +\DeclareCaptionOption{rule}[1]{\caption@set@bool\caption@ifrule{#1}} +% \end{macrocode} +% % \subsection{Positioning} % % These macros handle the right position of the caption. @@ -2070,8 +2092,8 @@ % \changes{v3.0b}{2004/05/16}{Option \opt{listof=} added} % \changes{v3.1f}{2007/11/17}{Option \opt{list=} added} % \begin{macrocode} -\DeclareCaptionOption{list}{\caption@setlist{#1}} -\DeclareCaptionOption{listof}{\caption@setlist{#1}} +\DeclareCaptionOption{list}[1]{\caption@setlist{#1}} +\DeclareCaptionOption{listof}[1]{\caption@setlist{#1}} % \end{macrocode} % % \begin{macro}{\caption@setlist} @@ -2493,8 +2515,8 @@ % \subsection{Execution of options} % % \begin{macrocode} -\captionsetup{style=default,position=default,list=1,listformat=default,% - twoside=\if@twoside 1\else 0\fi} +\captionsetup{style=default,position=default,% + list,listformat=default,twoside=\if@twoside 1\else 0\fi} % \end{macrocode} % \begin{macrocode} \ProcessOptions* @@ -2836,6 +2858,7 @@ % \changes{v3.0e}{2005/05/05}{This macro added} % \changes{v3.1}{2007/07/04}{Re-defines itself now} % \changes{v3.1g}{2007/01/22}{Revised so \cs{label} will be detected, too} +% \changes{v3.1i}{2008/08/02}{Revised so \cs{index} and \cs{glossary} will be detected, too} % |\caption@ifempty|\marg{text}\marg{true} (\emph{no} \meta{false})\par % This one tests if the \meta{text} is actually empty. % \Note{This will be done without expanding the text, @@ -2867,7 +2890,17 @@ \ifx\caption@tempa\caption@tempb \expandafter\caption@if@empty\expandafter{\@gobbletwo#1}% \else - \let\caption@ifempty\@gobbletwo + \def\caption@tempb{\index}% + \ifx\caption@tempa\caption@tempb + \expandafter\caption@if@empty\expandafter{\@gobbletwo#1}% + \else + \def\caption@tempb{\glossary}% + \ifx\caption@tempa\caption@tempb + \expandafter\caption@if@empty\expandafter{\@gobbletwo#1}% + \else + \let\caption@ifempty\@gobbletwo + \fi + \fi \fi \fi \fi @@ -2895,6 +2928,8 @@ % \changes{v3.1a}{2007/09/07}{Three optional arguments added} % \changes{v3.1f}{2007/12/06}{Renamed from \cs{DeclareFloatingEnvironment} to \cs{DeclareCaptionType}} % \changes{v3.1f}{2007/12/21}{Optional argument revised, uses key-value syntax now} +% \changes{v3.1i}{2008/04/13}{Uses \cs{caption@within@default} now} +% \changes{v3.1i}{2008/08/02}{Support of \cs{float@exts} and \cs{float@addtolists} added} % |\DeclareCaptionType|\oarg{options}\marg{environment}\oarg{name}\oarg{list name} % \begin{macrocode} \newcommand*\DeclareCaptionType{% @@ -2906,7 +2941,7 @@ \def\caption@type{#2}% \caption@Debug{New type `#2'}% \newcounter{#2}\@namedef{theH#2}{}% - \KV@caption@DCT@within{\@ifundefined{c@chapter}{none}{chapter}}% + \KV@caption@DCT@within\caption@within@default \KV@caption@DCT@placement{tbp}% \@ifundefined{c@float@type}% {\newcounter{float@type}% @@ -2937,6 +2972,18 @@ % \begin{macrocode} \@cons\caption@typelist{{#2}}% \caption@setkeys[caption]{caption@DCT}{#1}% +% \end{macrocode} +% \begin{macrocode} + \@ifundefined{float@exts}{\newtoks\float@exts}{}% + \let\float@do=\relax + \edef\@tempa{\noexpand\float@exts{\the\float@exts\float@do{\@nameuse{ext@#2}}}}% + \@tempa + \@ifundefined{float@addtolists}{% + \newcommand\float@addtolists[1]{% + \def\float@do####1{\addtocontents{####1}{##1}}\the\float@exts}% + \@ifundefined{@chapter}{}{\caption@PatchChapter}}{}% +% \end{macrocode} +% \begin{macrocode} \@ifnextchar[\@@DeclareCaptionType\relax} \@onlypreamble\@DeclareCaptionType % \end{macrocode} @@ -2953,6 +3000,16 @@ % \end{macrocode} % \begin{macrocode} \let\DeclareFloatingEnvironment\DeclareCaptionType % old command name +\@onlypreamble\DeclareFloatingEnvironment +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\caption@within@default} +% \changes{v3.1i}{2008/04/13}{This macro added} +% The default `within' value. +% \begin{macrocode} +\newcommand*\caption@within@default{\@ifundefined{c@chapter}{none}{chapter}} +\@onlypreamble\caption@within@default % \end{macrocode} % \end{macro} % @@ -3060,6 +3117,336 @@ % \end{macrocode} % \end{macro} % +% \begin{macro}{\caption@PatchChapter} +% \changes{v3.1i}{2008/08/02}{This macro added} +% We try to patch \cs{@chapter} so \cs{float@addtolists} will be supported. +% (Note: The \KOMAScript\ classes already support \cs{float@addtolists}.) +% \begin{macrocode} +\newcommand*\caption@PatchChapter{% + \providecommand*\@chapterlistsgap{10\p@}% +% \end{macrocode} +% \begin{macrocode} + % report.cls [2005/09/16 v1.4f Standard LaTeX document class] + \caption@patch@chapter{report}{% + \ifnum \c@secnumdepth >\m@ne + \refstepcounter{chapter}% + \typeout{\@chapapp\space\thechapter.}% + \addcontentsline{toc}{chapter}% + {\protect\numberline{\thechapter}##1}% + \else + \addcontentsline{toc}{chapter}{##1}% + \fi + \chaptermark{##1}% + \addtocontents{lof}{\protect\addvspace{10\p@}}% + \addtocontents{lot}{\protect\addvspace{10\p@}}% + \if@twocolumn + \@topnewpage[\@makechapterhead{##2}]% + \else + \@makechapterhead{##2}% + \@afterheading + \fi + }{% + \ifnum \c@secnumdepth >\m@ne + \refstepcounter{chapter}% + \typeout{\@chapapp\space\thechapter.}% + \addcontentsline{toc}{chapter}% + {\protect\numberline{\thechapter}##1}% + \else + \addcontentsline{toc}{chapter}{##1}% + \fi + \chaptermark{##1}% + \ifdim \@chapterlistsgap>\z@ + \addtocontents{lof}{\protect\addvspace{\@chapterlistsgap}}% + \addtocontents{lot}{\protect\addvspace{\@chapterlistsgap}}% + \float@addtolists{\protect\addvspace{\@chapterlistsgap}}% + \fi + \if@twocolumn + \@topnewpage[\@makechapterhead{##2}]% + \else + \@makechapterhead{##2}% + \@afterheading + \fi}% +% \end{macrocode} +% \begin{macrocode} + % book.cls [2005/09/16 v1.4f Standard LaTeX document class] + \caption@patch@chapter{book}{% + \ifnum \c@secnumdepth >\m@ne + \if@mainmatter + \refstepcounter{chapter}% + \typeout{\@chapapp\space\thechapter.}% + \addcontentsline{toc}{chapter}% + {\protect\numberline{\thechapter}##1}% + \else + \addcontentsline{toc}{chapter}{##1}% + \fi + \else + \addcontentsline{toc}{chapter}{##1}% + \fi + \chaptermark{##1}% + \addtocontents{lof}{\protect\addvspace{10\p@}}% + \addtocontents{lot}{\protect\addvspace{10\p@}}% + \if@twocolumn + \@topnewpage[\@makechapterhead{##2}]% + \else + \@makechapterhead{##2}% + \@afterheading + \fi + }{% + \ifnum \c@secnumdepth >\m@ne + \if@mainmatter + \refstepcounter{chapter}% + \typeout{\@chapapp\space\thechapter.}% + \addcontentsline{toc}{chapter}% + {\protect\numberline{\thechapter}##1}% + \else + \addcontentsline{toc}{chapter}{##1}% + \fi + \else + \addcontentsline{toc}{chapter}{##1}% + \fi + \chaptermark{##1}% + \ifdim \@chapterlistsgap>\z@ + \addtocontents{lof}{\protect\addvspace{\@chapterlistsgap}}% + \addtocontents{lot}{\protect\addvspace{\@chapterlistsgap}}% + \float@addtolists{\protect\addvspace{\@chapterlistsgap}}% + \fi + \if@twocolumn + \@topnewpage[\@makechapterhead{##2}]% + \else + \@makechapterhead{##2}% + \@afterheading + \fi}% +% \end{macrocode} +% \begin{macrocode} + % amsbook.cls [2004/08/06 v2.20] + % smfbook.cls [1999/11/15 v1.2f Classe LaTeX pour les monographies editees par la SMF] + \caption@patch@chapter{ams/smfbook}{% + \refstepcounter{chapter}% + \ifnum\c@secnumdepth<\z@ \let\@secnumber\@empty + \else \let\@secnumber\thechapter \fi + \typeout{\chaptername\space\@secnumber}% + \def\@toclevel{0}% + \ifx\chaptername\appendixname \@tocwriteb\tocappendix{chapter}{##2}% + \else \@tocwriteb\tocchapter{chapter}{##2}\fi + \chaptermark{##1}% + \addtocontents{lof}{\protect\addvspace{10\p@}}% + \addtocontents{lot}{\protect\addvspace{10\p@}}% + \@makechapterhead{##2}\@afterheading + }{% + \refstepcounter{chapter}% + \ifnum\c@secnumdepth<\z@ \let\@secnumber\@empty + \else \let\@secnumber\thechapter \fi + \typeout{\chaptername\space\@secnumber}% + \def\@toclevel{0}% + \ifx\chaptername\appendixname \@tocwriteb\tocappendix{chapter}{##2}% + \else \@tocwriteb\tocchapter{chapter}{##2}\fi + \chaptermark{##1}% + \ifdim \@chapterlistsgap>\z@ + \addtocontents{lof}{\protect\addvspace{\@chapterlistsgap}}% + \addtocontents{lot}{\protect\addvspace{\@chapterlistsgap}}% + \float@addtolists{\protect\addvspace{\@chapterlistsgap}}% + \fi + \@makechapterhead{##2}\@afterheading}% +% \end{macrocode} +% \begin{macrocode} + % scrreprt/scrbook.cls + \@ifundefined{KOMAClassName}{}{% + \caption@Debug{document class `\KOMAClassName' detected}% + \let\caption@patch@chapter\@gobblethree}% +% \end{macrocode} +% \begin{macrocode} + % rapport1/3.cls [2004/06/07 v2.1a NTG LaTeX document class] + \caption@patch@chapter{rapport}{% + \ifnum \c@secnumdepth >\m@ne + \refstepcounter{chapter}% + \typeout{\@chapapp\space\thechapter.}% + \addcontentsline{toc}{chapter}% + {\protect\numberline{\thechapter}\toc@font0 ##1}% + \else + \addcontentsline{toc}{chapter}{\toc@font0 ##1}% + \fi + \chaptermark{##1}% + \addtocontents{lof}{\protect\addvspace{10\p@}}% + \addtocontents{lot}{\protect\addvspace{10\p@}}% + \if@twocolumn + \@topnewpage[\@makechapterhead{##2}]% + \else + \@makechapterhead{##2}% + \@afterheading + \fi + }{% + \ifnum \c@secnumdepth >\m@ne + \refstepcounter{chapter}% + \typeout{\@chapapp\space\thechapter.}% + \addcontentsline{toc}{chapter}% + {\protect\numberline{\thechapter}\toc@font0 ##1}% + \else + \addcontentsline{toc}{chapter}{\toc@font0 ##1}% + \fi + \chaptermark{##1}% + \ifdim \@chapterlistsgap>\z@ + \addtocontents{lof}{\protect\addvspace{\@chapterlistsgap}}% + \addtocontents{lot}{\protect\addvspace{\@chapterlistsgap}}% + \float@addtolists{\protect\addvspace{\@chapterlistsgap}}% + \fi + \if@twocolumn + \@topnewpage[\@makechapterhead{##2}]% + \else + \@makechapterhead{##2}% + \@afterheading + \fi}% +% \end{macrocode} +% \begin{macrocode} + % boek(3).cls [2004/06/07 v2.1a NTG LaTeX document class] + \caption@patch@chapter{boek}{% + \ifnum \c@secnumdepth >\m@ne + \if@mainmatter + \refstepcounter{chapter}% + \typeout{\@chapapp\space\thechapter.}% + \addcontentsline{toc}{chapter}% + {\protect\numberline{\thechapter}\toc@font0 ##1}% + \else + \addcontentsline{toc}{chapter}{\toc@font0 ##1}% + \fi + \else + \addcontentsline{toc}{chapter}{\toc@font0 ##1}% + \fi + \chaptermark{##1}% + \addtocontents{lof}{\protect\addvspace{10\p@}}% + \addtocontents{lot}{\protect\addvspace{10\p@}}% + \if@twocolumn + \@topnewpage[\@makechapterhead{##2}]% + \else + \@makechapterhead{##2}% + \@afterheading + \fi + }{% + \ifnum \c@secnumdepth >\m@ne + \if@mainmatter + \refstepcounter{chapter}% + \typeout{\@chapapp\space\thechapter.}% + \addcontentsline{toc}{chapter}% + {\protect\numberline{\thechapter}\toc@font0 ##1}% + \else + \addcontentsline{toc}{chapter}{\toc@font0 ##1}% + \fi + \else + \addcontentsline{toc}{chapter}{\toc@font0 ##1}% + \fi + \chaptermark{##1}% + \ifdim \@chapterlistsgap>\z@ + \addtocontents{lof}{\protect\addvspace{\@chapterlistsgap}}% + \addtocontents{lot}{\protect\addvspace{\@chapterlistsgap}}% + \float@addtolists{\protect\addvspace{\@chapterlistsgap}}% + \fi + \if@twocolumn + \@topnewpage[\@makechapterhead{##2}]% + \else + \@makechapterhead{##2}% + \@afterheading + \fi}% +% \end{macrocode} +% \begin{macrocode} + % thesis.cls [1996/25/01 1.0g LaTeX document class (wm).] + \caption@patch@chapter{thesis}{% + \ifnum \c@secnumdepth >\m@ne + \if@mainmatter + \refstepcounter{chapter}% + \typeout{\chaptername\space\thechapter.} + \if@thema + \ifx\@shortauthor\@empty + \addcontentsline{toc}{chapter}{% + \protect\numberline{\thechapter.}##1}% + \else + \addcontentsline{toc}{chapter}{% + \protect\numberline{\thechapter.}% + \@shortauthor\hfill\mbox{}\vskip\normallineskip ##1}% + \fi + \else + \addcontentsline{toc}{chapter}{% + \protect\numberline{\thechapter.}##1}% + \fi + \else + \addcontentsline{toc}{chapter}{##1} + \fi + \else + \addcontentsline{toc}{chapter}{##1} + \fi + \chaptermark{##1} + \addtocontents{lof}{\protect\addvspace{10pt}} + \addtocontents{lot}{\protect\addvspace{10pt}} + \if@twocolumn + \@topnewpage[\@makechapterhead{##2}] + \else + \@makechapterhead{##2} + \@afterheading + \fi + }{% + \ifnum \c@secnumdepth >\m@ne + \if@mainmatter + \refstepcounter{chapter}% + \typeout{\chaptername\space\thechapter.}% + \if@thema + \ifx\@shortauthor\@empty + \addcontentsline{toc}{chapter}{% + \protect\numberline{\thechapter.}##1}% + \else + \addcontentsline{toc}{chapter}{% + \protect\numberline{\thechapter.}% + \@shortauthor\hfill\mbox{}\vskip\normallineskip ##1}% + \fi + \else + \addcontentsline{toc}{chapter}{% + \protect\numberline{\thechapter.}##1}% + \fi + \else + \addcontentsline{toc}{chapter}{##1}% + \fi + \else + \addcontentsline{toc}{chapter}{##1}% + \fi + \chaptermark{##1}% + \ifdim \@chapterlistsgap>\z@ + \addtocontents{lof}{\protect\addvspace{\@chapterlistsgap}}% + \addtocontents{lot}{\protect\addvspace{\@chapterlistsgap}}% + \float@addtolists{\protect\addvspace{\@chapterlistsgap}}% + \fi + \if@twocolumn + \@topnewpage[\@makechapterhead{##2}]% + \else + \@makechapterhead{##2}% + \@afterheading + \fi}% +% \end{macrocode} +% \begin{macrocode} + \ifx\caption@patch@chapter\@gobblethree \else + \caption@Debug{% + Unsupported document class detected,\MessageBreak + or \noexpand\@chapter was redefined by another package}% + \fi + \let\caption@PatchChapter\@undefined} +\@onlypreamble\caption@PatchChapter +% \end{macrocode} +% \begin{macrocode} +\newcommand\caption@patch@chapter[3]{% + \begingroup +% \let\if@twocolumn\iffalse + \let\if@mainmatter\iffalse + \let\if@thema\iffalse + \def\@tempa[##1]##2{#2}% + \ifx\@tempa\@chapter + \caption@Debug{document class `#1' detected}% + \gdef\@chapter[##1]##2{#3}% + \global\let\caption@patch@chapter\@gobblethree + \fi + \endgroup} +\@onlypreamble\caption@patch@chapter +% \end{macrocode} +% \begin{macrocode} +\long\def \@gobblethree #1#2#3{} +% \end{macrocode} +% \end{macro} +% % \begin{macro}{\DeclareCaptionSubType} % \changes{v3.1f}{2007/11/16}{This macro added} % \changes{v3.1g}{2008/03/11}{Bugfix: \cs{subfigurename} will be defined now} @@ -3226,7 +3613,7 @@ % % \begin{macrocode} \NeedsTeXFormat{LaTeX2e}[1994/12/01] -\ProvidesPackage{caption}[2008/04/01 v3.1h Customizing captions (AR)] +\ProvidesPackage{caption}[2008/08/24 v3.1j Customizing captions (AR)] %\@ifundefined{PackageRedefines}{}{\PackageRedefines{caption}{caption}} % \end{macrocode} % @@ -3243,7 +3630,7 @@ % \subsection{Loading the kernel} % % \begin{macrocode} -\RequirePackage{caption3}[2008/03/20] % needs v3.1g or newer +\RequirePackage{caption3}[2008/08/24] % needs v3.1j or newer % \end{macrocode} % % \subsection{Check against incompatible packages} @@ -3294,7 +3681,7 @@ % % \begin{macrocode} \caption@ifbool{documentclass}{}{% - \PackageWarningNoLine{caption}{% + \caption@WarningNoLine{% Unsupported document class (or package) detected,\MessageBreak usage of the caption package is not recommended}% \caption@Info{\string\@makecaption\space=\space\meaning\@makecaption}% @@ -3459,7 +3846,7 @@ \def\hspace##1##{\@firstofone}% \edef\@tempa{\endgroup \noexpand\captionsetup{% - twoside=\@twoside,singlelinecheck=0,% + twoside=\@twoside,slc=0,% margin={\cap@left,\cap@right}}}% \fi\fi \@tempa} @@ -3513,16 +3900,17 @@ % \changes{v3.1}{2007/07/04}{This macro added} % \changes{v3.1f}{2007/11/18}{After-preamble variant added} % \changes{v3.1g}{2008/02/28}{Renamed from \cs{caption@SetFloatName} to \cs{caption@SetName}} +% \changes{v3.1i}{2008/08/02}{Bugfix: Works now without \cs{addto}, too} % |\caption@SetName|\marg{cmd}\marg{value} % \begin{macrocode} \newcommand*\caption@SetName[2]{% + \caption@setname{#1}{#2}% \begingroup - \def\@tempa{\endgroup\@firstofone}% \@ifundefined{languagename}{}{% \@ifundefined{captions\languagename}{}{% - \def\@tempa{\endgroup - \expandafter\addto\csname captions\languagename\endcsname}}}% - \@tempa{\caption@setname{#1}{#2}}} + \expandafter\g@addto@macro\csname captions\languagename\endcsname + {\caption@setname{#1}{#2}}}}% + \endgroup} % \end{macrocode} % \begin{macrocode} \newcommand*\caption@setname[2]{\@namedef{#1name}{#2}} @@ -3533,18 +3921,28 @@ % \end{macro} % % \changes{v3.1f}{2007/12/21}{Options \opt{figurewithin} and \opt{tablewithin} added} +% \changes{v3.1i}{2008/04/13}{Option \opt{within} added} % \begin{macrocode} \DeclareCaptionOption{figurewithin}{\caption@Within{figure}{#1}} \@onlypreamble@key{caption}{figurewithin} -\DeclareCaptionOption{figurewithout}{\caption@Within{figure}{none}} +\DeclareCaptionOption{figurewithout}{\KV@caption@figurewithin{none}} \@onlypreamble@key{caption}{figurewithout} % \end{macrocode} % \begin{macrocode} \DeclareCaptionOption{tablewithin}{\caption@Within{table}{#1}} \@onlypreamble@key{caption}{tablewithin} -\DeclareCaptionOption{tablewithout}{\caption@Within{table}{none}} +\DeclareCaptionOption{tablewithout}{\KV@caption@tablewithin{none}} \@onlypreamble@key{caption}{tablewithout} % \end{macrocode} +% \begin{macrocode} +\DeclareCaptionOption{within}{% + \@ifundefined{c@figure}{}{\caption@Within{figure}{#1}}% + \@ifundefined{c@table}{}{\caption@Within{table}{#1}}% + \def\caption@within@default{#1}} +\@onlypreamble@key{caption}{within} +\DeclareCaptionOption{without}{\KV@caption@within{none}} +\@onlypreamble@key{caption}{without} +% \end{macrocode} % \begin{macro}{\caption@within} % \changes{v3.1}{2007/12/21}{This macro added} % \begin{macrocode} @@ -3871,28 +4269,45 @@ % \begin{macro}{\caption@undefinedlabel} % \changes{v3.1}{2007/07/03}{This macro and its usage added} % \changes{v3.1b}{2007/09/22}{Contents changed to \texttt{??}} +% \changes{v3.1i}{2008/04/13}{Contents changed to \cs{caption@xref}(\ldots)} % This label will be used for |\currentlabel| inside (floating) environments % as default. (see above) % \iffalse\Note{All commands used have to be robust here.}\fi % \begin{macrocode} -\newcommand*\caption@undefinedlabel{??} +\newcommand*\caption@undefinedlabel{% + \protect\caption@xref{\caption@labelname}{\on@line}} +% \end{macrocode} +% \begin{macrocode} +\newcommand*\caption@xref[2]{% + \caption@WarningNoLine{\noexpand\label before \string\caption#2}% + \@setref\relax\@undefined{#1}} +% \end{macrocode} +% \begin{macrocode} +\newcommand*\caption@labelname{??} % \end{macrocode} % \end{macro} % \begin{macro}{\caption@xlabel} % \changes{v3.1b}{2007/09/22}{This macro and its usage added} % \changes{v3.1f}{2007/11/11}{Revised} +% \changes{v3.1i}{2008/04/13}{Bugfix: \cs{pageref} should always work now} % The new code of |\label| inside floating environments. % |\label| will be redefined using |\caption@withoptargs|, so % |#1| are the optional arguments (if any), and % |#2| is the mandatory argument here. % \begin{macrocode} -\newcommand*\caption@xlabel{% - \ifx\@currentlabel\caption@undefinedlabel - \caption@Warning{\noexpand\label before \noexpand\caption ignored}% - \expandafter\@gobble - \else - \expandafter\caption@ORI@label - \fi} +\newcommand*\caption@xlabel[1]{% + \caption@@xlabel + \def\caption@labelname{#1}% + \caption@ORI@label{#1}} +% \end{macrocode} +% \begin{macrocode} +\newcommand*\caption@@xlabel{% + \global\let\caption@@xlabel\@empty + \@bsphack + \protected@write\@auxout{}% + {\string\providecommand*\string\caption@xref[2]{% + \string\@setref\string\relax\string\@undefined{\string##1}}}% + \@esphack} % \end{macrocode} % \end{macro} % @@ -4690,6 +5105,7 @@ % \end{macrocode} % % \begin{macro}{\@makecaption} +% \changes{v3.1i}{2008/05/06}{Usage of \cs{caption@rule} added} % |\@makecaption|\marg{label}\marg{text}\par % We do basically the same as the original code (from the standard % \LaTeX\ document classes), but take care of the |position=| setting @@ -4697,9 +5113,13 @@ % typeset the caption. % \begin{macrocode} \long\def\@makecaption#1#2{% - \caption@iftop{\vskip\belowcaptionskip}{\vskip\abovecaptionskip}% + \caption@iftop + {\vskip\belowcaptionskip}% + {\caption@rule\vskip\abovecaptionskip}% \caption@@make{#1}{#2}% - \caption@iftop{\vskip\abovecaptionskip}{\vskip\belowcaptionskip}} + \caption@iftop + {\vskip\abovecaptionskip\caption@rule}% + {\vskip\belowcaptionskip}} % \end{macrocode} % \end{macro} % @@ -4786,6 +5206,7 @@ % % \begin{macro}{\caption@addcontentsline} % \changes{v3.1g}{2008/01/12}{Argument of \cs{caption@addsubcontentslines} removed} +% \changes{v3.1i}{2008/08/02}{Argument of \cs{caption@addsubcontentslines} re-added} % We extend |\caption@addcontentsline| so it handles sub-captions, too. % \Note{\cs{sf@ifpositiontop} \& \cs{@listsubcaptions} are defined by the % \package{subfigure} \& \package{subfig} packages.} @@ -4795,10 +5216,10 @@ \sf@ifpositiontop{\@listsubcaptions{#1}}{}% \caption@kernel@addcontentsline{#1}{#2}% \sf@ifpositiontop{}{\@listsubcaptions{#1}}% - \caption@addsubcontentslines} + \caption@addsubcontentslines{#1}} % \end{macrocode} % \begin{macrocode} -\newcommand*\caption@addsubcontentslines{% +\newcommand*\caption@addsubcontentslines[1]{% \begingroup \caption@subcontentslines \endgroup @@ -4815,10 +5236,14 @@ % \end{macrocode} % % \begin{macro}{\caption@addsubcontentsline} +% \changes{v3.1i}{2008/08/02}{Bugfix: +% \cs{label}, \cs{index}, and \cs{glossary} are allowed inside the list entry now} % Add a pending sub-caption list entry. % \begin{macrocode} \newcommand*\caption@addsubcontentsline[3]{% - \protected@edef\@tempa{% + \begingroup + \let\label\@gobble \let\index\@gobble \let\glossary\@gobble + \protected@edef\@tempa{\endgroup \noexpand\g@addto@macro\noexpand\caption@subcontentslines{% \noexpand\@namedef{the#2}{\csname the#2\endcsname}% \ifx\@currentHref\@undefined \else @@ -4873,8 +5298,8 @@ % this support in \thispackage\ off. % \begin{macrocode} \captionsetup{list=false} - \DeclareCaptionOption{list}{} - \DeclareCaptionOption{listof}{} + \DeclareCaptionOption{list}[1]{} + \DeclareCaptionOption{listof}[1]{} % \end{macrocode} % % \begin{macro}{\figure} @@ -5419,7 +5844,7 @@ % `single-line-check'. % \begin{macrocode} \caption@ifbool{ruled}{% - \captionsetup[ruled]{margin=0pt,minmargin=0,singlelinecheck=0}% + \captionsetup[ruled]{margin=0pt,minmargin=0,slc=0}% }{% \DeclareCaptionStyle{ruled}{labelfont=bf,labelsep=space,strut=0}% } @@ -5762,7 +6187,8 @@ % \end{macro} % % \begin{macro}{\caption@makestart} -% \changes{v3.1c}{2007/09/30}{\cs{@currentHref} will be extended by \texttt{caption} instead of \texttt{xxx} now} +% \changes{v3.1c}{2007/09/30}{\cs{@currentHref} will be extended by \texttt{caption} +% instead of \texttt{xxx} now} % |\caption@makestart|\marg{type} % defines a \package{hyperref} anchor inside |\caption@start|.\par % Since we offer |\ContinuedFloat| the float counter can change between @@ -6820,7 +7246,7 @@ % \@initisotab % \addcontentsline{\csname ext@#1\endcsname}{#1}% % {\protect\numberline{% -% \csname the#1\endcsname}{\ignorespaces #2}} +% \csname the#1\endcsname}{\ignorespaces #2}}% % \begingroup % \@parboxrestore % \normalsize @@ -6829,8 +7255,7 @@ % %% \if@topcaption \vskip 10\p@ \fi % \endgroup % \global\advance\ST@pageleft -\PWSTcapht -% \ST@trace\tw@{Added caption. Space left for xtabular: \the\ST@pageleft} -% } +% \ST@trace\tw@{Added caption. Space left for xtabular: \the\ST@pageleft}} % \end{verbatim}%^^A % \begin{macrocode} \long\def\ST@caption#1[#2]#3{\par% diff --git a/Master/texmf-dist/source/latex/caption/caption2.dtx b/Master/texmf-dist/source/latex/caption/caption2.dtx index 0d18ff7868e..0172521d3aa 100644 --- a/Master/texmf-dist/source/latex/caption/caption2.dtx +++ b/Master/texmf-dist/source/latex/caption/caption2.dtx @@ -2,7 +2,7 @@ % % This is file `caption2.dtx'. % -% Copyright (C) 1994-2007 Axel Sommerfeldt (caption@sommerfee.de) +% Copyright (C) 1994-2008 Axel Sommerfeldt (caption@sommerfee.de) % % -------------------------------------------------------------------------- % @@ -24,7 +24,7 @@ % user manuals caption-deu.tex, caption-eng.tex, and caption-rus.tex. % % \fi -% \CheckSum{846} +% \CheckSum{848} % % \iffalse %<*driver> @@ -49,7 +49,7 @@ \ifpdf\usepackage{hypdestopt}\fi \hypersetup{pdfkeywords={LaTeX, package, caption2},pdfstartpage={},pdfstartview={}} % -\usepackage{caption2}[2007/08/12] +\usepackage{caption2}[2008/07/01] % %<+driver>\OnlyDescription % @@ -203,7 +203,7 @@ % % \begin{macrocode} \NeedsTeXFormat{LaTeX2e}[1994/12/01] -\ProvidesPackage{caption2}[2007/08/12 v2.2b Customising captions (AS)] +\ProvidesPackage{caption2}[2008/07/01 v2.2c Customising captions (AS)] % \end{macrocode} % % \changes{v2.2b}{2007/06/15}{Made obsolete warning even more annoying} @@ -1092,6 +1092,7 @@ % \end{macro} % % \begin{macro}{\caption@makesubcaption} +% \changes{v2.2c}{2008/07/01}{Bugfix: Usage of \cs{ifcaptionwidth} removed} % This will typeset the subcaption. % We just set all our \cs{caption}\textit{xxx} values to % the values of \cs{subcap}\textit{xxx} and typeset the @@ -1129,11 +1130,19 @@ \renewcommand*\captionlabelfont{\normalfont\subcapsize\subcaplabelfont}% \let\captionlabeldelim\subcaplabeldelim \let\captionlabelsep\subcaplabelsep - \ifsubfigcapwidth\captionwidthtrue\else\captionwidthfalse\fi + \ifsubfigcapwidth + \setcaptionwidth\subfigcapwidth + \else + \setcaptionmargin\subfigcapmargin + \fi \setlength\captionmargin\subfigcapmargin \setlength\captionwidth\subfigcapwidth \captionindent\subcapindent - \ifsubcapnooneline\onelinecaptionsfalse\else\onelinecaptionstrue\fi + \ifsubcapnooneline + \onelinecaptionsfalse + \else + \onelinecaptionstrue + \fi \hbox to\@tempdima{% \caption@subfig@hss\parbox[t]\@tempdima{% \captionlinewidth\@tempdima diff --git a/Master/texmf-dist/source/latex/caption/subcaption.dtx b/Master/texmf-dist/source/latex/caption/subcaption.dtx index defb3b40dae..8c6781305e2 100644 --- a/Master/texmf-dist/source/latex/caption/subcaption.dtx +++ b/Master/texmf-dist/source/latex/caption/subcaption.dtx @@ -24,12 +24,12 @@ % user manuals caption-deu.tex, caption-eng.tex, and caption-rus.tex. % % \fi -% \CheckSum{204} +% \CheckSum{203} % % \iffalse %<*driver> \NeedsTeXFormat{LaTeX2e}[1994/12/01] -\ProvidesFile{subcaption.drv}[2008/03/30 v0.3 Adds a sub-caption feature to the caption package] +\ProvidesFile{subcaption.drv}[2008/08/31 v1.0b Adds a sub-caption feature to the caption package] \hbadness=9999 \newcount\hbadness \hfuzz=74pt % Make TeX shut up. %\errorcontextlines=3 % @@ -59,7 +59,7 @@ \hypersetup{pdfkeywords={LaTeX, package, subcaption},pdfstartpage={},pdfstartview={}} % \usepackage{caption}[2007/12/06] % needs v3.1f or newer -\usepackage{subcaption}[2007/12/06] +\usepackage{subcaption}[2008/08/31] \DeclareCaptionSubType*[arabic]{table} \captionsetup[subtable]{labelformat=simple,labelsep=colon} % @@ -401,7 +401,7 @@ % \begin{quote} % | |\ldots\\ % | \subcaptionbox{A cat\label{cat}}|\\ -% | [2.5cm]{\includegraphics{cat}}|\\ +% | |\textcolor{blue}{\csoarg{2.5cm}}|{\includegraphics{cat}}|\\ % | |\ldots % \end{quote} % \noindent\begin{minipage}{\linewidth} @@ -423,9 +423,9 @@ % \begin{quote} % | |\ldots\\ % | \subcaptionbox{A cat\label{cat}}|\\ -% | [.4\linewidth]{\includegraphics{cat}}%|\\ +% | |\textcolor{blue}{\csoarg{.4\cs{linewidth}}}|{\includegraphics{cat}}%|\\ % | \subcaptionbox{An elephant\label{elephant}}|\\ -% | [.4\linewidth]{\includegraphics{elephant}}|\\ +% | |\textcolor{blue}{\csoarg{.4\cs{linewidth}}}|{\includegraphics{elephant}}|\\ % | |\ldots % \end{quote} % \noindent\begin{minipage}{\linewidth} @@ -708,7 +708,7 @@ % % \begin{macrocode} \NeedsTeXFormat{LaTeX2e}[1994/12/01] -\ProvidesPackage{subcaption}[2008/03/16 v1.0 Adding subcaptions (AR)] +\ProvidesPackage{subcaption}[2008/08/31 v1.0b Adding subcaptions (AR)] % \end{macrocode} % % \subsection{Initial code} @@ -806,6 +806,8 @@ % \subsubsection{The \cs{subcaptionbox} command} % % \begin{macro}{\subcaptionbox} +% \changes{v1.0a}{2008/05/06}{Adapted to the \opt{rule} option of the \package{caption} package} +% \changes{v1.0b}{2008/08/31}{Definition and usage of \cs{subcaption@hrule} added} % A |\parbox| with contents and sub-caption, separated by an invisible |\hrule|. % \begin{macrocode} \newcommand*\subcaptionbox{\caption@withoptargs\subcaption@box} @@ -828,7 +830,7 @@ \parbox[t]{#3}{% \captionsetup{subtype,position=t}% \vbox{\caption#1{#2}}% - \hrule\@height\z@ + \subcaption@hrule \csname caption@hj@#4\endcsname \unhbox\@tempboxa}% }{% @@ -837,7 +839,7 @@ \captionsetup{subtype,position=b}% \csname caption@hj@#4\endcsname \unhbox\@tempboxa - \hrule\@height\z@ + \subcaption@hrule \vtop{\caption#1{#2}}}% }} % \end{macrocode} @@ -847,6 +849,7 @@ \providecommand*\caption@hj@r{\raggedleft} \providecommand*\caption@hj@s{} \newcommand*\subcaptionbox@hj@default{c} +\newcommand*\subcaption@hrule{\hrule\@height\z@} % \end{macrocode} % \end{macro} % @@ -895,10 +898,10 @@ \caption@refstepcounter\@subcaptype \caption@prepareanchor\@subcaptype{}% \caption@makeanchor{}}% - \caption@iftop{\hrule\@height\z@}{}% + \caption@iftop\subcaption@hrule\@empty \csname caption@hj@#3\endcsname \unhbox\@tempboxa - \caption@iftop{}{\hrule\@height\z@}}}% + \caption@iftop\@empty\subcaption@hrule}}% % \end{macrocode} % \end{macro} % diff --git a/Master/texmf-dist/tex/latex/caption/caption.sty b/Master/texmf-dist/tex/latex/caption/caption.sty index 3c68e16ad11..5db710300bb 100644 --- a/Master/texmf-dist/tex/latex/caption/caption.sty +++ b/Master/texmf-dist/tex/latex/caption/caption.sty @@ -28,10 +28,10 @@ %% user manuals caption-deu.tex, caption-eng.tex, and caption-rus.tex. %% \NeedsTeXFormat{LaTeX2e}[1994/12/01] -\ProvidesPackage{caption}[2008/04/01 v3.1h Customizing captions (AR)] +\ProvidesPackage{caption}[2008/08/24 v3.1j Customizing captions (AR)] \newcommand*\caption@Info[1]{\PackageInfo{caption}{#1\@gobble}} \@onlypreamble\caption@Info -\RequirePackage{caption3}[2008/03/20] % needs v3.1g or newer +\RequirePackage{caption3}[2008/08/24] % needs v3.1j or newer \@ifpackageloaded{caption2}{% \caption@Error{% You can't use both, the (obsolete) caption2 *and*\MessageBreak @@ -51,7 +51,7 @@ to the `#1' package}}} \@onlypreamble\caption@DisablePositionOption \caption@ifbool{documentclass}{}{% - \PackageWarningNoLine{caption}{% + \caption@WarningNoLine{% Unsupported document class (or package) detected,\MessageBreak usage of the caption package is not recommended}% \caption@Info{\string\@makecaption\space=\space\meaning\@makecaption}% @@ -123,7 +123,7 @@ \def\hspace##1##{\@firstofone}% \edef\@tempa{\endgroup \noexpand\captionsetup{% - twoside=\@twoside,singlelinecheck=0,% + twoside=\@twoside,slc=0,% margin={\cap@left,\cap@right}}}% \fi\fi \@tempa} @@ -143,23 +143,30 @@ \DeclareCaptionOption{listfigurename}{\caption@SetName{listfigure}{#1}} \DeclareCaptionOption{listtablename}{\caption@SetName{listtable}{#1}} \newcommand*\caption@SetName[2]{% + \caption@setname{#1}{#2}% \begingroup - \def\@tempa{\endgroup\@firstofone}% \@ifundefined{languagename}{}{% \@ifundefined{captions\languagename}{}{% - \def\@tempa{\endgroup - \expandafter\addto\csname captions\languagename\endcsname}}}% - \@tempa{\caption@setname{#1}{#2}}} + \expandafter\g@addto@macro\csname captions\languagename\endcsname + {\caption@setname{#1}{#2}}}}% + \endgroup} \newcommand*\caption@setname[2]{\@namedef{#1name}{#2}} \caption@AtBeginDocument{\let\caption@SetName\caption@setname} \DeclareCaptionOption{figurewithin}{\caption@Within{figure}{#1}} \@onlypreamble@key{caption}{figurewithin} -\DeclareCaptionOption{figurewithout}{\caption@Within{figure}{none}} +\DeclareCaptionOption{figurewithout}{\KV@caption@figurewithin{none}} \@onlypreamble@key{caption}{figurewithout} \DeclareCaptionOption{tablewithin}{\caption@Within{table}{#1}} \@onlypreamble@key{caption}{tablewithin} -\DeclareCaptionOption{tablewithout}{\caption@Within{table}{none}} +\DeclareCaptionOption{tablewithout}{\KV@caption@tablewithin{none}} \@onlypreamble@key{caption}{tablewithout} +\DeclareCaptionOption{within}{% + \@ifundefined{c@figure}{}{\caption@Within{figure}{#1}}% + \@ifundefined{c@table}{}{\caption@Within{table}{#1}}% + \def\caption@within@default{#1}} +\@onlypreamble@key{caption}{within} +\DeclareCaptionOption{without}{\KV@caption@within{none}} +\@onlypreamble@key{caption}{without} \newcommand*\caption@Within[1]{\def\caption@type{#1}\KV@caption@DCT@within} \@onlypreamble\caption@Within \DeclareCaptionOption*{config}[caption]{% @@ -301,14 +308,23 @@ \fi }{}} \fi -\newcommand*\caption@undefinedlabel{??} -\newcommand*\caption@xlabel{% - \ifx\@currentlabel\caption@undefinedlabel - \caption@Warning{\noexpand\label before \noexpand\caption ignored}% - \expandafter\@gobble - \else - \expandafter\caption@ORI@label - \fi} +\newcommand*\caption@undefinedlabel{% + \protect\caption@xref{\caption@labelname}{\on@line}} +\newcommand*\caption@xref[2]{% + \caption@WarningNoLine{\noexpand\label before \string\caption#2}% + \@setref\relax\@undefined{#1}} +\newcommand*\caption@labelname{??} +\newcommand*\caption@xlabel[1]{% + \caption@@xlabel + \def\caption@labelname{#1}% + \caption@ORI@label{#1}} +\newcommand*\caption@@xlabel{% + \global\let\caption@@xlabel\@empty + \@bsphack + \protected@write\@auxout{}% + {\string\providecommand*\string\caption@xref[2]{% + \string\@setref\string\relax\string\@undefined{\string##1}}}% + \@esphack} \caption@AtBeginDocument{% \def\captionof{\caption@teststar\caption@of{\caption*}\caption}} \newcommand*\caption@of[2]{\caption@settype*{#2}#1} @@ -678,9 +694,13 @@ \caption@settype{#1}}% } \long\def\@makecaption#1#2{% - \caption@iftop{\vskip\belowcaptionskip}{\vskip\abovecaptionskip}% + \caption@iftop + {\vskip\belowcaptionskip}% + {\caption@rule\vskip\abovecaptionskip}% \caption@@make{#1}{#2}% - \caption@iftop{\vskip\abovecaptionskip}{\vskip\belowcaptionskip}} + \caption@iftop + {\vskip\abovecaptionskip\caption@rule}% + {\vskip\belowcaptionskip}} \def\caption@DeclareSubType sub#1\@nil{% \caption@Debug{Initializing subtype for `#1'\@gobble}% \@namedef{caption@c@#1}{0}% @@ -726,8 +746,8 @@ \sf@ifpositiontop{\@listsubcaptions{#1}}{}% \caption@kernel@addcontentsline{#1}{#2}% \sf@ifpositiontop{}{\@listsubcaptions{#1}}% - \caption@addsubcontentslines} -\newcommand*\caption@addsubcontentslines{% + \caption@addsubcontentslines{#1}} +\newcommand*\caption@addsubcontentslines[1]{% \begingroup \caption@subcontentslines \endgroup @@ -738,7 +758,9 @@ \g@addto@macro\caption@typehook{\caption@checksubcontentslines}% \AtEndDocument{\caption@checksubcontentslines}}% \newcommand*\caption@addsubcontentsline[3]{% - \protected@edef\@tempa{% + \begingroup + \let\label\@gobble \let\index\@gobble \let\glossary\@gobble + \protected@edef\@tempa{\endgroup \noexpand\g@addto@macro\noexpand\caption@subcontentslines{% \noexpand\@namedef{the#2}{\csname the#2\endcsname}% \ifx\@currentHref\@undefined \else @@ -759,8 +781,8 @@ \@ifclassloaded{beamer}{% \caption@Info{beamer document class}% \captionsetup{list=false} - \DeclareCaptionOption{list}{} - \DeclareCaptionOption{listof}{} + \DeclareCaptionOption{list}[1]{} + \DeclareCaptionOption{listof}[1]{} \expandafter\let\expandafter\caption@ORI@figure \csname\string\figure\endcsname \@namedef{\string\figure}[#1]{% @@ -957,7 +979,7 @@ } \captionsetup[boxed]{skip=2pt} % do not issue a warning when not used \caption@ifbool{ruled}{% - \captionsetup[ruled]{margin=0pt,minmargin=0,singlelinecheck=0}% + \captionsetup[ruled]{margin=0pt,minmargin=0,slc=0}% }{% \DeclareCaptionStyle{ruled}{labelfont=bf,labelsep=space,strut=0}% } diff --git a/Master/texmf-dist/tex/latex/caption/caption2.sty b/Master/texmf-dist/tex/latex/caption/caption2.sty index adf32f8db9b..88edf30d74f 100644 --- a/Master/texmf-dist/tex/latex/caption/caption2.sty +++ b/Master/texmf-dist/tex/latex/caption/caption2.sty @@ -28,7 +28,7 @@ %% user manuals caption-deu.tex, caption-eng.tex, and caption-rus.tex. %% \NeedsTeXFormat{LaTeX2e}[1994/12/01] -\ProvidesPackage{caption2}[2007/08/12 v2.2b Customising captions (AS)] +\ProvidesPackage{caption2}[2008/07/01 v2.2c Customising captions (AS)] \PackageWarning{caption2}{% ****************************************************\MessageBreak THIS PACKAGE IS OBSOLETE:\MessageBreak @@ -365,11 +365,19 @@ \renewcommand*\captionlabelfont{\normalfont\subcapsize\subcaplabelfont}% \let\captionlabeldelim\subcaplabeldelim \let\captionlabelsep\subcaplabelsep - \ifsubfigcapwidth\captionwidthtrue\else\captionwidthfalse\fi + \ifsubfigcapwidth + \setcaptionwidth\subfigcapwidth + \else + \setcaptionmargin\subfigcapmargin + \fi \setlength\captionmargin\subfigcapmargin \setlength\captionwidth\subfigcapwidth \captionindent\subcapindent - \ifsubcapnooneline\onelinecaptionsfalse\else\onelinecaptionstrue\fi + \ifsubcapnooneline + \onelinecaptionsfalse + \else + \onelinecaptionstrue + \fi \hbox to\@tempdima{% \caption@subfig@hss\parbox[t]\@tempdima{% \captionlinewidth\@tempdima diff --git a/Master/texmf-dist/tex/latex/caption/caption3.sty b/Master/texmf-dist/tex/latex/caption/caption3.sty index 1b468ec5d50..99d841e9e99 100644 --- a/Master/texmf-dist/tex/latex/caption/caption3.sty +++ b/Master/texmf-dist/tex/latex/caption/caption3.sty @@ -28,7 +28,7 @@ %% user manuals caption-deu.tex, caption-eng.tex, and caption-rus.tex. %% \NeedsTeXFormat{LaTeX2e}[1994/12/01] -\ProvidesPackage{caption3}[2008/03/20 v3.1h caption3 kernel (AR)] +\ProvidesPackage{caption3}[2008/08/24 v3.1j caption3 kernel (AR)] \providecommand*\@nameundef[1]{% \expandafter\let\csname #1\endcsname\@undefined} \providecommand\l@addto@macro[2]{% @@ -139,12 +139,11 @@ \@onlypreamble\caption@CheckCommand \newcommand*\caption@IfCheckCommand{% \ifx\caption@CheckCommand\@gobbletwo - \let\next\@firstoftwo + \let\caption@CheckCommand\caption@DoCheckCommand + \expandafter\@firstoftwo \else - \let\next\@secondoftwo - \fi - \let\caption@CheckCommand\caption@DoCheckCommand - \next} + \expandafter\@secondoftwo + \fi} \@onlypreamble\caption@IfCheckCommand \let\caption@begindocumenthook\@empty \let\caption@@begindocumenthook\@empty @@ -294,7 +293,7 @@ \endgroup} \AtEndDocument{% \caption@for@list\caption@optlist{% - \PackageWarningNoLine{caption}{% + \caption@WarningNoLine{% Unused \string\captionsetup[#1] on input line \csname caption@opt@#1@lineno\endcsname}}} \newcommand*\caption@setkeys{\@dblarg\caption@@setkeys} @@ -436,7 +435,8 @@ \@onlypreamble\caption@declarestyle \DeclareCaptionOption{style}{\caption@setstyle{#1}} \DeclareCaptionOption{style*}{\caption@setstyle*{#1}} -\DeclareCaptionOption{singlelinecheck}{\caption@set@bool\caption@ifslc{#1}} +\DeclareCaptionOption{singlelinecheck}[1]{\caption@set@bool\caption@ifslc{#1}} +\DeclareCaptionOption{slc}[1]{\KV@caption@singlelinecheck{#1}} \newcommand*\caption@setstyle{% \caption@teststar\caption@@setstyle\@gobble\@firstofone} \newcommand*\caption@@setstyle[2]{% @@ -460,7 +460,7 @@ justification=justified,font=,size=,labelfont=,textfont=,% margin=0pt,minmargin=0,maxmargin=0,% indent=0pt,parindent=0pt,hangindent=0pt,% - singlelinecheck=1,strut=1}% + slc,rule,strut}% \caption@clearsetup{singleline}} \DeclareCaptionStyle{base}[indent=0pt,justification=centering]{} \DeclareCaptionStyle{default}[indent=0pt,justification=centering]{% @@ -550,7 +550,7 @@ \global\long\@namedef{caption@tfmt@#1}##1{#2}} \@onlypreamble\DeclareCaptionTextFormat \DeclareCaptionOption{textformat}{\caption@settextformat{#1}} -\DeclareCaptionOption{strut}{\caption@set@bool\caption@ifstrut{#1}} +\DeclareCaptionOption{strut}[1]{\caption@set@bool\caption@ifstrut{#1}} \newcommand*\caption@settextformat[1]{% \@ifundefined{caption@tfmt@#1}% {\caption@Error{Undefined text format `#1'}}% @@ -698,6 +698,9 @@ \DeclareCaptionOption{aboveskip}{\setlength\abovecaptionskip{#1}} \DeclareCaptionOption{belowskip}{\setlength\belowcaptionskip{#1}} \DeclareCaptionOption{skip}{\setlength\abovecaptionskip{#1}} +\newcommand*\caption@rule{\caption@ifrule\caption@hrule\relax} +\newcommand*\caption@hrule{\hrule\@height\z@} +\DeclareCaptionOption{rule}[1]{\caption@set@bool\caption@ifrule{#1}} \DeclareCaptionOption{position}{\caption@setposition{#1}} \newcommand*\caption@setposition[1]{% \caption@ifinlist{#1}{d,default}{% @@ -740,8 +743,8 @@ \newcommand*\caption@endhook{} \newcommand*\AtBeginCaption{\l@addto@macro\caption@beginhook} \newcommand*\AtEndCaption{\l@addto@macro\caption@endhook} -\DeclareCaptionOption{list}{\caption@setlist{#1}} -\DeclareCaptionOption{listof}{\caption@setlist{#1}} +\DeclareCaptionOption{list}[1]{\caption@setlist{#1}} +\DeclareCaptionOption{listof}[1]{\caption@setlist{#1}} \newcommand*\caption@setlist{\caption@set@bool\caption@iflist} \newcommand*\DeclareCaptionListFormat[2]{% \global\@namedef{caption@lstfmt@#1}##1##2{#2}} @@ -1010,8 +1013,8 @@ \DeclareCaptionDefaultFont{textfont}{\itshape}% \DeclareCaptionLabelSeparator{default}{\captionseparator\space}% } -\captionsetup{style=default,position=default,list=1,listformat=default,% - twoside=\if@twoside 1\else 0\fi} +\captionsetup{style=default,position=default,% + list,listformat=default,twoside=\if@twoside 1\else 0\fi} \ProcessOptions* \caption@IfCheckCommand{% \caption@setbool{documentclass}{1}% @@ -1162,7 +1165,17 @@ \ifx\caption@tempa\caption@tempb \expandafter\caption@if@empty\expandafter{\@gobbletwo#1}% \else - \let\caption@ifempty\@gobbletwo + \def\caption@tempb{\index}% + \ifx\caption@tempa\caption@tempb + \expandafter\caption@if@empty\expandafter{\@gobbletwo#1}% + \else + \def\caption@tempb{\glossary}% + \ifx\caption@tempa\caption@tempb + \expandafter\caption@if@empty\expandafter{\@gobbletwo#1}% + \else + \let\caption@ifempty\@gobbletwo + \fi + \fi \fi \fi \fi @@ -1177,7 +1190,7 @@ \def\caption@type{#2}% \caption@Debug{New type `#2'}% \newcounter{#2}\@namedef{theH#2}{}% - \KV@caption@DCT@within{\@ifundefined{c@chapter}{none}{chapter}}% + \KV@caption@DCT@within\caption@within@default \KV@caption@DCT@placement{tbp}% \@ifundefined{c@float@type}% {\newcounter{float@type}% @@ -1204,6 +1217,14 @@ \expandafter\xdef\csname list#2name\endcsname{List of \@tempa s}% \@cons\caption@typelist{{#2}}% \caption@setkeys[caption]{caption@DCT}{#1}% + \@ifundefined{float@exts}{\newtoks\float@exts}{}% + \let\float@do=\relax + \edef\@tempa{\noexpand\float@exts{\the\float@exts\float@do{\@nameuse{ext@#2}}}}% + \@tempa + \@ifundefined{float@addtolists}{% + \newcommand\float@addtolists[1]{% + \def\float@do####1{\addtocontents{####1}{##1}}\the\float@exts}% + \@ifundefined{@chapter}{}{\caption@PatchChapter}}{}% \@ifnextchar[\@@DeclareCaptionType\relax} \@onlypreamble\@DeclareCaptionType \def\@@DeclareCaptionType[#1]{% @@ -1214,6 +1235,9 @@ \KV@caption@DCT@listname{#1}} \@onlypreamble\@@@DeclareCaptionType \let\DeclareFloatingEnvironment\DeclareCaptionType % old command name +\@onlypreamble\DeclareFloatingEnvironment +\newcommand*\caption@within@default{\@ifundefined{c@chapter}{none}{chapter}} +\@onlypreamble\caption@within@default \newcommand*\caption@listof[1]{% \begingroup \expandafter\let\expandafter\listfigurename\csname list#1name\endcsname @@ -1277,6 +1301,307 @@ \fi}% \expandafter\xdef\csname cl@#2\endcsname{% \csname cl@#2\endcsname}}} +\newcommand*\caption@PatchChapter{% + \providecommand*\@chapterlistsgap{10\p@}% + % report.cls [2005/09/16 v1.4f Standard LaTeX document class] + \caption@patch@chapter{report}{% + \ifnum \c@secnumdepth >\m@ne + \refstepcounter{chapter}% + \typeout{\@chapapp\space\thechapter.}% + \addcontentsline{toc}{chapter}% + {\protect\numberline{\thechapter}##1}% + \else + \addcontentsline{toc}{chapter}{##1}% + \fi + \chaptermark{##1}% + \addtocontents{lof}{\protect\addvspace{10\p@}}% + \addtocontents{lot}{\protect\addvspace{10\p@}}% + \if@twocolumn + \@topnewpage[\@makechapterhead{##2}]% + \else + \@makechapterhead{##2}% + \@afterheading + \fi + }{% + \ifnum \c@secnumdepth >\m@ne + \refstepcounter{chapter}% + \typeout{\@chapapp\space\thechapter.}% + \addcontentsline{toc}{chapter}% + {\protect\numberline{\thechapter}##1}% + \else + \addcontentsline{toc}{chapter}{##1}% + \fi + \chaptermark{##1}% + \ifdim \@chapterlistsgap>\z@ + \addtocontents{lof}{\protect\addvspace{\@chapterlistsgap}}% + \addtocontents{lot}{\protect\addvspace{\@chapterlistsgap}}% + \float@addtolists{\protect\addvspace{\@chapterlistsgap}}% + \fi + \if@twocolumn + \@topnewpage[\@makechapterhead{##2}]% + \else + \@makechapterhead{##2}% + \@afterheading + \fi}% + % book.cls [2005/09/16 v1.4f Standard LaTeX document class] + \caption@patch@chapter{book}{% + \ifnum \c@secnumdepth >\m@ne + \if@mainmatter + \refstepcounter{chapter}% + \typeout{\@chapapp\space\thechapter.}% + \addcontentsline{toc}{chapter}% + {\protect\numberline{\thechapter}##1}% + \else + \addcontentsline{toc}{chapter}{##1}% + \fi + \else + \addcontentsline{toc}{chapter}{##1}% + \fi + \chaptermark{##1}% + \addtocontents{lof}{\protect\addvspace{10\p@}}% + \addtocontents{lot}{\protect\addvspace{10\p@}}% + \if@twocolumn + \@topnewpage[\@makechapterhead{##2}]% + \else + \@makechapterhead{##2}% + \@afterheading + \fi + }{% + \ifnum \c@secnumdepth >\m@ne + \if@mainmatter + \refstepcounter{chapter}% + \typeout{\@chapapp\space\thechapter.}% + \addcontentsline{toc}{chapter}% + {\protect\numberline{\thechapter}##1}% + \else + \addcontentsline{toc}{chapter}{##1}% + \fi + \else + \addcontentsline{toc}{chapter}{##1}% + \fi + \chaptermark{##1}% + \ifdim \@chapterlistsgap>\z@ + \addtocontents{lof}{\protect\addvspace{\@chapterlistsgap}}% + \addtocontents{lot}{\protect\addvspace{\@chapterlistsgap}}% + \float@addtolists{\protect\addvspace{\@chapterlistsgap}}% + \fi + \if@twocolumn + \@topnewpage[\@makechapterhead{##2}]% + \else + \@makechapterhead{##2}% + \@afterheading + \fi}% + % amsbook.cls [2004/08/06 v2.20] + % smfbook.cls [1999/11/15 v1.2f Classe LaTeX pour les monographies editees par la SMF] + \caption@patch@chapter{ams/smfbook}{% + \refstepcounter{chapter}% + \ifnum\c@secnumdepth<\z@ \let\@secnumber\@empty + \else \let\@secnumber\thechapter \fi + \typeout{\chaptername\space\@secnumber}% + \def\@toclevel{0}% + \ifx\chaptername\appendixname \@tocwriteb\tocappendix{chapter}{##2}% + \else \@tocwriteb\tocchapter{chapter}{##2}\fi + \chaptermark{##1}% + \addtocontents{lof}{\protect\addvspace{10\p@}}% + \addtocontents{lot}{\protect\addvspace{10\p@}}% + \@makechapterhead{##2}\@afterheading + }{% + \refstepcounter{chapter}% + \ifnum\c@secnumdepth<\z@ \let\@secnumber\@empty + \else \let\@secnumber\thechapter \fi + \typeout{\chaptername\space\@secnumber}% + \def\@toclevel{0}% + \ifx\chaptername\appendixname \@tocwriteb\tocappendix{chapter}{##2}% + \else \@tocwriteb\tocchapter{chapter}{##2}\fi + \chaptermark{##1}% + \ifdim \@chapterlistsgap>\z@ + \addtocontents{lof}{\protect\addvspace{\@chapterlistsgap}}% + \addtocontents{lot}{\protect\addvspace{\@chapterlistsgap}}% + \float@addtolists{\protect\addvspace{\@chapterlistsgap}}% + \fi + \@makechapterhead{##2}\@afterheading}% + % scrreprt/scrbook.cls + \@ifundefined{KOMAClassName}{}{% + \caption@Debug{document class `\KOMAClassName' detected}% + \let\caption@patch@chapter\@gobblethree}% + % rapport1/3.cls [2004/06/07 v2.1a NTG LaTeX document class] + \caption@patch@chapter{rapport}{% + \ifnum \c@secnumdepth >\m@ne + \refstepcounter{chapter}% + \typeout{\@chapapp\space\thechapter.}% + \addcontentsline{toc}{chapter}% + {\protect\numberline{\thechapter}\toc@font0 ##1}% + \else + \addcontentsline{toc}{chapter}{\toc@font0 ##1}% + \fi + \chaptermark{##1}% + \addtocontents{lof}{\protect\addvspace{10\p@}}% + \addtocontents{lot}{\protect\addvspace{10\p@}}% + \if@twocolumn + \@topnewpage[\@makechapterhead{##2}]% + \else + \@makechapterhead{##2}% + \@afterheading + \fi + }{% + \ifnum \c@secnumdepth >\m@ne + \refstepcounter{chapter}% + \typeout{\@chapapp\space\thechapter.}% + \addcontentsline{toc}{chapter}% + {\protect\numberline{\thechapter}\toc@font0 ##1}% + \else + \addcontentsline{toc}{chapter}{\toc@font0 ##1}% + \fi + \chaptermark{##1}% + \ifdim \@chapterlistsgap>\z@ + \addtocontents{lof}{\protect\addvspace{\@chapterlistsgap}}% + \addtocontents{lot}{\protect\addvspace{\@chapterlistsgap}}% + \float@addtolists{\protect\addvspace{\@chapterlistsgap}}% + \fi + \if@twocolumn + \@topnewpage[\@makechapterhead{##2}]% + \else + \@makechapterhead{##2}% + \@afterheading + \fi}% + % boek(3).cls [2004/06/07 v2.1a NTG LaTeX document class] + \caption@patch@chapter{boek}{% + \ifnum \c@secnumdepth >\m@ne + \if@mainmatter + \refstepcounter{chapter}% + \typeout{\@chapapp\space\thechapter.}% + \addcontentsline{toc}{chapter}% + {\protect\numberline{\thechapter}\toc@font0 ##1}% + \else + \addcontentsline{toc}{chapter}{\toc@font0 ##1}% + \fi + \else + \addcontentsline{toc}{chapter}{\toc@font0 ##1}% + \fi + \chaptermark{##1}% + \addtocontents{lof}{\protect\addvspace{10\p@}}% + \addtocontents{lot}{\protect\addvspace{10\p@}}% + \if@twocolumn + \@topnewpage[\@makechapterhead{##2}]% + \else + \@makechapterhead{##2}% + \@afterheading + \fi + }{% + \ifnum \c@secnumdepth >\m@ne + \if@mainmatter + \refstepcounter{chapter}% + \typeout{\@chapapp\space\thechapter.}% + \addcontentsline{toc}{chapter}% + {\protect\numberline{\thechapter}\toc@font0 ##1}% + \else + \addcontentsline{toc}{chapter}{\toc@font0 ##1}% + \fi + \else + \addcontentsline{toc}{chapter}{\toc@font0 ##1}% + \fi + \chaptermark{##1}% + \ifdim \@chapterlistsgap>\z@ + \addtocontents{lof}{\protect\addvspace{\@chapterlistsgap}}% + \addtocontents{lot}{\protect\addvspace{\@chapterlistsgap}}% + \float@addtolists{\protect\addvspace{\@chapterlistsgap}}% + \fi + \if@twocolumn + \@topnewpage[\@makechapterhead{##2}]% + \else + \@makechapterhead{##2}% + \@afterheading + \fi}% + % thesis.cls [1996/25/01 1.0g LaTeX document class (wm).] + \caption@patch@chapter{thesis}{% + \ifnum \c@secnumdepth >\m@ne + \if@mainmatter + \refstepcounter{chapter}% + \typeout{\chaptername\space\thechapter.} + \if@thema + \ifx\@shortauthor\@empty + \addcontentsline{toc}{chapter}{% + \protect\numberline{\thechapter.}##1}% + \else + \addcontentsline{toc}{chapter}{% + \protect\numberline{\thechapter.}% + \@shortauthor\hfill\mbox{}\vskip\normallineskip ##1}% + \fi + \else + \addcontentsline{toc}{chapter}{% + \protect\numberline{\thechapter.}##1}% + \fi + \else + \addcontentsline{toc}{chapter}{##1} + \fi + \else + \addcontentsline{toc}{chapter}{##1} + \fi + \chaptermark{##1} + \addtocontents{lof}{\protect\addvspace{10pt}} + \addtocontents{lot}{\protect\addvspace{10pt}} + \if@twocolumn + \@topnewpage[\@makechapterhead{##2}] + \else + \@makechapterhead{##2} + \@afterheading + \fi + }{% + \ifnum \c@secnumdepth >\m@ne + \if@mainmatter + \refstepcounter{chapter}% + \typeout{\chaptername\space\thechapter.}% + \if@thema + \ifx\@shortauthor\@empty + \addcontentsline{toc}{chapter}{% + \protect\numberline{\thechapter.}##1}% + \else + \addcontentsline{toc}{chapter}{% + \protect\numberline{\thechapter.}% + \@shortauthor\hfill\mbox{}\vskip\normallineskip ##1}% + \fi + \else + \addcontentsline{toc}{chapter}{% + \protect\numberline{\thechapter.}##1}% + \fi + \else + \addcontentsline{toc}{chapter}{##1}% + \fi + \else + \addcontentsline{toc}{chapter}{##1}% + \fi + \chaptermark{##1}% + \ifdim \@chapterlistsgap>\z@ + \addtocontents{lof}{\protect\addvspace{\@chapterlistsgap}}% + \addtocontents{lot}{\protect\addvspace{\@chapterlistsgap}}% + \float@addtolists{\protect\addvspace{\@chapterlistsgap}}% + \fi + \if@twocolumn + \@topnewpage[\@makechapterhead{##2}]% + \else + \@makechapterhead{##2}% + \@afterheading + \fi}% + \ifx\caption@patch@chapter\@gobblethree \else + \caption@Debug{% + Unsupported document class detected,\MessageBreak + or \noexpand\@chapter was redefined by another package}% + \fi + \let\caption@PatchChapter\@undefined} +\@onlypreamble\caption@PatchChapter +\newcommand\caption@patch@chapter[3]{% + \begingroup + \let\if@mainmatter\iffalse + \let\if@thema\iffalse + \def\@tempa[##1]##2{#2}% + \ifx\@tempa\@chapter + \caption@Debug{document class `#1' detected}% + \gdef\@chapter[##1]##2{#3}% + \global\let\caption@patch@chapter\@gobblethree + \fi + \endgroup} +\@onlypreamble\caption@patch@chapter +\long\def \@gobblethree #1#2#3{} \newcommand*\DeclareCaptionSubType{% \caption@teststar\@DeclareCaptionSubType\@firstoftwo\@secondoftwo} \@onlypreamble\DeclareCaptionSubType diff --git a/Master/texmf-dist/tex/latex/caption/subcaption.sty b/Master/texmf-dist/tex/latex/caption/subcaption.sty index c5af2ecf25e..ac9c91d2306 100644 --- a/Master/texmf-dist/tex/latex/caption/subcaption.sty +++ b/Master/texmf-dist/tex/latex/caption/subcaption.sty @@ -28,7 +28,7 @@ %% user manuals caption-deu.tex, caption-eng.tex, and caption-rus.tex. %% \NeedsTeXFormat{LaTeX2e}[1994/12/01] -\ProvidesPackage{subcaption}[2008/03/16 v1.0 Adding subcaptions (AR)] +\ProvidesPackage{subcaption}[2008/08/31 v1.0b Adding subcaptions (AR)] \@ifundefined{caption@subtypehook}{% we need caption v3.1f or newer \PackageError{subcaption}{`caption' package not loaded\MessageBreak (which is needed by this package)\@gobble}{% @@ -69,7 +69,7 @@ \parbox[t]{#3}{% \captionsetup{subtype,position=t}% \vbox{\caption#1{#2}}% - \hrule\@height\z@ + \subcaption@hrule \csname caption@hj@#4\endcsname \unhbox\@tempboxa}% }{% @@ -78,7 +78,7 @@ \captionsetup{subtype,position=b}% \csname caption@hj@#4\endcsname \unhbox\@tempboxa - \hrule\@height\z@ + \subcaption@hrule \vtop{\caption#1{#2}}}% }} \providecommand*\caption@hj@c{\centering} @@ -86,6 +86,7 @@ \providecommand*\caption@hj@r{\raggedleft} \providecommand*\caption@hj@s{} \newcommand*\subcaptionbox@hj@default{c} +\newcommand*\subcaption@hrule{\hrule\@height\z@} \newcommand*\subfloat{% \@ifnextchar[\@subfloat\subfloat@} \long\def\@subfloat[#1]{% @@ -108,10 +109,10 @@ \caption@refstepcounter\@subcaptype \caption@prepareanchor\@subcaptype{}% \caption@makeanchor{}}% - \caption@iftop{\hrule\@height\z@}{}% + \caption@iftop\subcaption@hrule\@empty \csname caption@hj@#3\endcsname \unhbox\@tempboxa - \caption@iftop{}{\hrule\@height\z@}}}% + \caption@iftop\@empty\subcaption@hrule}}% \g@addto@macro\caption@subtypehook{% \ifx\label\subcaption@label \else \let\subcaption@ORI@label\label |