diff options
author | Norbert Preining <norbert@preining.info> | 2023-07-29 03:00:48 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2023-07-29 03:00:48 +0000 |
commit | 68c7c6f998e30e40017dae0faded16f93773c786 (patch) | |
tree | 66ad2c81e1296e370bd968ff224a5f3e70e956bc /macros/latex/contrib/caption/caption.dtx | |
parent | 1e45d661b659c3025746d3a41119300ab90d1dcd (diff) |
CTAN sync 202307290300
Diffstat (limited to 'macros/latex/contrib/caption/caption.dtx')
-rw-r--r-- | macros/latex/contrib/caption/caption.dtx | 1202 |
1 files changed, 575 insertions, 627 deletions
diff --git a/macros/latex/contrib/caption/caption.dtx b/macros/latex/contrib/caption/caption.dtx index 44730c1912..7f48c88b5a 100644 --- a/macros/latex/contrib/caption/caption.dtx +++ b/macros/latex/contrib/caption/caption.dtx @@ -31,73 +31,21 @@ % % \fi % -% \CheckSum{2920} +% \CheckSum{2922} % % \iffalse %<*driver> \NeedsTeXFormat{LaTeX2e}[1994/12/01] -\ProvidesFile{caption.drv}[2022/02/20 v3.6 Implementation of the caption package] -\hbadness=9999 \newcount\hbadness \hfuzz=100pt % Make TeX shut up. +\ProvidesFile{caption.drv}[2023/07/10 v3.6 The caption package] %\errorcontextlines=3 % -\documentclass{ltxdoc} -\setlength\parindent{0pt} -\setlength\parskip{\smallskipamount} -\setlength\leftmargini{2em}% default = 2.5em -%\makeatletter\g@addto@macro\MacroFont{\normalcolor}\makeatother -% -\makeatletter % make room for subsections like 2.16.14 in the TOC -%\newcommand*\l@subsection{\@dottedtocline{2}{1.5em}{2.3em}} -\renewcommand*\l@subsection{\@dottedtocline{2}{1.5em}{2.7em}} -\makeatother -% -\newcommand\LineBreak{\linebreak[3]} -\newcommand\PageBreak{\pagebreak[3]} -% -\usepackage{ifpdf} -\ifpdf - \usepackage{mathptmx,courier} - \usepackage[scaled=0.90]{helvet} - \addtolength\marginparwidth{15pt} -\fi -% -\usepackage[bottom]{footmisc} -\usepackage{graphicx,longtable,setspace} -% -\usepackage{hypdoc} -\ifpdf\usepackage{hypdestopt}\fi -\hypersetup{pdfkeywords={LaTeX, package, caption},pdfstartpage={},pdfstartview={}} -\hypersetup{breaklinks=true} -\AtBeginDocument{% - \let\subsectionautorefname\sectionautorefname - \let\subsubsectionautorefname\sectionautorefname} +\documentclass{captiondoc} +\hypersetup{pdfkeywords={LaTeX, package, caption}} % \usepackage[listof=false,hypcap=false]{caption}[2022/01/06] % -\DeclareRobustCommand*\eTeX{\texorpdfstring - {\leavevmode\hbox{$\varepsilon$}-\TeX}% - {e-TeX}} -\DeclareRobustCommand*\AmS{\texorpdfstring - {{\protect\usefont{OMS}{cmsy}{m}{n}A\kern-.1667em\lower.5ex\hbox{M}\kern-.125emS}}% - {AMS}} -\DeclareRobustCommand*\KOMAScript{\texorpdfstring - {\textsf{K\kern.05em O\kern.05em M\kern.05em A\kern.1em-\kern.1em Script}}% - {KOMA-Script}} -\DeclareRobustCommand*\NTG{NTG} -\DeclareRobustCommand*\SmF{SMF} -% -\usepackage{marvosym} -\makeatletter -\newcommand*\INFO{\@ifstar{\@INFO{}}{\@INFO{\vbox to \ht\strutbox}}} -\newcommand*\@INFO[1]{\MARGINSYM{#1{\LARGE\Info}}} -\makeatother - -\makeatletter -\newcommand*\MARGINSYM[1]{\hskip 1sp \marginpar{\raggedleft\textcolor{blue}{{#1}}}} -\newcommand*\NEW[1]{\@ifstar{\@NEW{#1}{\vskip2pt}}{\@NEW{#1}{}}} -\newcommand*\@NEW[3]{\MARGINSYM{#2\footnotesize#1\\#3}} -\makeatother - +\usepackage{graphicx,longtable} +% % \ContinuedFloat \DeclareCaptionLabelFormat{continued1}{Continued #1~#2} \DeclareCaptionLabelFormat{continued2}{#1~#2\alph{ContinuedFloat}} @@ -120,76 +68,6 @@ \DeclareCaptionFormat{llapx}{\llap{\makebox[5em][l]{#1}}#3\par} % Example 4 \DeclareCaptionLabelFormat{andtable}{#1~#2 \& \tablename~\thetable} - -\newcommand*\purerm[1]{\texorpdfstring{{\upshape\mdseries\rmfamily #1}}{#1}} -\newcommand*\puresf[1]{\texorpdfstring{{\upshape\mdseries\sffamily #1}}{#1}} -\newcommand*\purett[1]{\texorpdfstring{{\upshape\mdseries\ttfamily #1}}{#1}} -\let\class\puresf \let\package\puresf % obsolete -\let\cls\puresf \let\pkg\puresf -\let\env\purett \let\opt\purett - -\newcommand*\csmarg[1]{\texttt{\char`\{#1\char`\}}} -\newcommand*\csoarg[1]{\texttt{\char`\[#1\char`\]}} -\newcommand*\version[2][]{v$#2$} -\newcommand*\issue[1]{GitLab~\##1} -\newcommand*\x{\discretionary{}{}{}} - -\newenvironment{Annotation}% - {\ifvmode\else\unskip\par\fi\pagebreak[2]% - \smallskip - \small(\ignorespaces}{\unskip)\par} -\newenvironment{Annotation*}% - {\ifvmode\else\unskip\par\fi\pagebreak[2]% - \small(\ignorespaces}{\unskip)\par} - -\newenvironment{Example}% - {\ifvmode\else\unskip\par\fi\pagebreak[2]% - \minipage{\linewidth}\smallskip}% - {\smallskip\endminipage\par} - -\makeatletter -\newcommand\example{\@ifstar - {\@example{belowskip=\abovecaptionskip}}% - {\@example{}}} -\def\@example#1{% - \@testopt{\@@example{#1}}{figure}} -\long\def\@@example#1[#2]#3#4{% - \begingroup - \captionsetup{#1,size=small,margin={\leftmargini,10pt},#3}% - \captionof{#2}[]{#4}% - \endgroup} -\makeatother - -\newenvironment{Expert}% - {\ifvmode\else\unskip\par\fi\pagebreak[3]% - \smallskip - \footnotesize\ignorespaces}{\par} -\newenvironment{Expert*}% - {\ifvmode\else\unskip\par\fi\pagebreak[3]% - \footnotesize\ignorespaces}{\par} - -\newenvironment{Note}[1][\DefaultNoteText]% - {\ifvmode\else\unskip\par\fi - \smallskip - \small\emph{#1:}~\ignorespaces}{\par} -\newenvironment{Note*}[1][\DefaultNoteText]% - {\ifvmode\else\unskip\par\fi - \small\emph{#1:}~\ignorespaces}{\par} - -\newenvironment{Options}[1]% - {\list{}{\renewcommand\makelabel[1]{\texttt{##1}\hfil}% - \settowidth\labelwidth{\texttt{#1\space}}% - \setlength\leftmargin{10pt}% - \addtolength\leftmargin{\labelwidth}% - \addtolength\leftmargin{\labelsep}}}% - {\endlist} - -\makeatletter -\def\Ref{\@ifstar{\@Ref\ref}{\@Ref\autoref}} -\def\@Ref#1#2{#1{#2}: \textit{\nameref{#2}}} -\newcommand*\SEE[3][]{\nopagebreak{#1(#2 #3)}} -\newcommand*\SeeUserDefined[1][]{\See{\Ref{declare}#1}} -\makeatother % \begin{document} \DocInput{caption.dtx} @@ -197,18 +75,69 @@ %</driver> % \fi % +% \iffalse +% ----------------------------------------------------------------------------------------------- % +% \fi +% +% \def\thispackage{the \pkg{caption} package} +% \def\Thispackage{The \pkg{caption} package} +% +% \def\x{\-} % -% \def\thispackage{the \package{caption} package} -% \def\Thispackage{The \package{caption} package} +% \newenvironment{Annotation}% +% {\ifvmode\else\unskip\par\fi\pagebreak[2]% +% \smallskip +% \small(\ignorespaces}{\unskip)\par} +% \newenvironment{Annotation*}% +% {\ifvmode\else\unskip\par\fi\pagebreak[2]% +% \small(\ignorespaces}{\unskip)\par} % +% \newenvironment{Example}% +% {\ifvmode\else\unskip\par\fi\pagebreak[2]% +% \minipage{\linewidth}\smallskip}% +% {\smallskip\endminipage\par} +% +% \makeatletter +% \newcommand\example{\@ifstar +% {\@example{belowskip=\abovecaptionskip}}% +% {\@example{}}} +% \def\@example#1{% +% \@testopt{\@@example{#1}}{figure}} +% \long\def\@@example#1[#2]#3#4{% +% \begingroup +% \captionsetup{#1,size=small,margin={\leftmargini,10pt},#3}% +% \captionof{#2}[]{#4}% +% \endgroup} +% \makeatother +% +% \newenvironment{Expert}% +% {\ifvmode\else\unskip\par\fi\pagebreak[3]% +% \smallskip +% \footnotesize\ignorespaces}{\par} +% \newenvironment{Expert*}% +% {\ifvmode\else\unskip\par\fi\pagebreak[3]% +% \footnotesize\ignorespaces}{\par} +% +% \newenvironment{Note}[1][\DefaultNoteText]% +% {\ifvmode\else\unskip\par\fi +% \smallskip +% \small\emph{#1:}~\ignorespaces}{\par} +% \newenvironment{Note*}[1][\DefaultNoteText]% +% {\ifvmode\else\unskip\par\fi +% \small\emph{#1:}~\ignorespaces}{\par} % \newcommand*\DefaultNoteText{Note} -% \newcommand*\NEWfeature{\NEW{New feature}} -% \newcommand*\NEWdescription{\NEW{New description}} +% % \makeatletter -% \newcommand*\See{\@ifstar{\SEE{See}}{\SEE[\small]{See}}} -% \newcommand*\see{\@ifstar{\SEE{see}}{\SEE[\small]{see}}} +% \def\see{\@ifstar{\SEE\relax{see}}{\SEE\small{see}}} +% \def\See{\@ifstar{\SEE\relax{See}}{\SEE\small{See}}} +% \newcommand*\SEE[3]{\nopagebreak{#1(#2 #3)}} +% \newcommand*\SeeUserDefined[1][]{\See{\longref{declare}#1}} % \makeatother % +% \iffalse +% ----------------------------------------------------------------------------------------------- % +% \fi +% % \GetFileInfo{caption.drv} % \let\docdate\filedate % \let\docversion\fileversion @@ -231,9 +160,9 @@ % \textit{Please note:} Many document classes already have build-in options and % commands for customizing captions. % If these possibilities are sufficient for you, there is usually no need for -% you to use the \package{caption} package at all. +% you to use the \pkg{caption} package at all. % And if you are only interested in using the command \cs{captionof}, loading of -% the very small \package{capt-of} package is usually sufficient. +% the very small \pkg{capt-of} package is usually sufficient. % \end{abstract} % % \newcommand\shortexampletext{% @@ -272,7 +201,7 @@ % \small % Please note that \thispackage\ is only controlling the look \& feel of the % captions. It does \emph{not} control the placement of the captions. -% (But you could do so by using other packages like the \package{floatrow} +% (But you could do so by using other packages like the \pkg{floatrow} % package\cite{floatrow}.) % \end{minipage} % @@ -346,7 +275,7 @@ % so all the other captions remain untouched. % % \begin{Annotation} -% For a detailed description of |\caption|\-|setup| see \Ref{captionsetup}. +% For a detailed description of |\caption|\-|setup| see \longref{captionsetup}. % \end{Annotation} % % \iffalse @@ -487,7 +416,7 @@ % % \begin{Note*} % Some environments, e.g.~the |algorithm| environment offered by the -% \package{algorithm2e} package, might react allergic to a change of the +% \pkg{algorithm2e} package, might react allergic to a change of the % caption label format. % \end{Note*} % @@ -633,15 +562,15 @@ % \iffalse % \item[RaggedRight] % Each line of the caption will be moved to the left margin using -% the command |\RaggedRight| from the \package{ragged2e} package. +% the command |\RaggedRight| from the \pkg{ragged2e} package. % \else % \item[RaggedRight] % Each line of the caption will be moved to the left margin, too. -% But this time the command |\RaggedRight| of the \package{ragged2e} +% But this time the command |\RaggedRight| of the \pkg{ragged2e} % package will be used to achieve this. % The main difference to |raggedright| is that the word breaking % algorithm of \TeX\ will work inside captions.\footnote{% -% The need for the \package{ragged2e} package will be detected at +% The need for the \pkg{ragged2e} package will be detected at % run-time, therefore you maybe need a second \LaTeX\ run if this % option is used for the first time.} % \fi @@ -652,7 +581,7 @@ % \iffalse % \item[RaggedLeft] % Each line of the caption will be moved to the right margin using -% the command |\RaggedLeft| from the \package{ragged2e} package. +% the command |\RaggedLeft| from the \pkg{ragged2e} package. % \fi % % \item[\UserDefined] @@ -689,8 +618,8 @@ % % \PageBreak % \DescribeMacro{singlelinecheck=} -% The standard \LaTeX\ document classes (\class{article}, \class{report}, and -% \class{book}) automatically center a caption if it fits in one single line: +% The standard \LaTeX\ document classes (\cls{article}, \cls{report}, and +% \cls{book}) automatically center a caption if it fits in one single line: % % \example*{}{A short caption.} % @@ -769,17 +698,17 @@ % \end{Options} % \vspace{0pt}\pagebreak[3] % \begin{Options}{stretch=\meta{amount}} -% \item[singlespacing] Single spacing \See{\Ref{setspace}} -% \item[onehalfspacing] One-and-a-half spacing \See{\Ref{setspace}} -% \item[doublespacing] Double spacing \See{\Ref{setspace}} -% \item[stretch=\meta{amount}] |\setstretch|\marg{amount} \See{\Ref{setspace}} +% \item[singlespacing] Single spacing \See{\longref{setspace}} +% \item[onehalfspacing] One-and-a-half spacing \See{\longref{setspace}} +% \item[doublespacing] Double spacing \See{\longref{setspace}} +% \item[stretch=\meta{amount}] |\setstretch|\marg{amount} \See{\longref{setspace}} % \end{Options} % \vspace{0pt}\pagebreak[3] % \begin{Options}{stretch=\meta{amount}} % \item[normalcolor] |\normalcolor| % \item[color=\meta{colour}] |\color|\marg{colour} -% {\small(If the \package{color} or \package{xcolor} package is loaded, -% see \Ref{declare} for an example)} +% {\small(If the \pkg{color} or \pkg{xcolor} package is loaded, +% see \longref{declare} for an example)} % \end{Options} % \vspace{0pt}\pagebreak[3] % \begin{Options}{stretch=\meta{amount}} @@ -852,8 +781,8 @@ % For all captions you can specify \emph{either} an extra margin \emph{or} % a fixed width:~\footnote{Only fixed widths are supported here; if you are % looking for a way to limit the width of the caption to the width of the -% figure or table, please take a look at the \package{floatrow}\cite{floatrow} -% or \package{threeparttable}\cite{threeparttable} package.} +% figure or table, please take a look at the \pkg{floatrow}\cite{floatrow} +% or \pkg{threeparttable}\cite{threeparttable} package.} % \begin{quote}\begin{tabular}{@{}r@{}ll} % |margin=| & \meta{amount} & \emph{--or--}\\ % |margin=| & |{|\meta{left amount}|,|\meta{right amount}|}| & \emph{--or--}\\ @@ -898,9 +827,9 @@ % % \begin{Note} % When the caption is placed beside the contents (for example in a |SC|\-|figure| -% environment offered by the \package{sidecap} package\cite{sidecap}) or the +% environment offered by the \pkg{sidecap} package\cite{sidecap}) or the % figure is an in-text figure (for example in a |wrap|\-|figure| environment -% offered by the \package{wrapfig} package\cite{wrapfig}), the margin setting +% offered by the \pkg{wrapfig} package\cite{wrapfig}), the margin setting % will be automatically reset to |0pt| at the very beginning of the environment. % But if you really want to setup an extra margin for these environments, you can % do so by setting this margin either inside the environment itself, of by @@ -922,7 +851,7 @@ % You can also set a minimum or maximum margin amount. This can be useful for % limiting the margin amount in smaller environments, e.g.~|minipage|s. % For example the \SmF\ document classes limit the margin amount to -% |maxmargin=|\x|0.1\linewidth|. (See \Ref{SMF}) +% |maxmargin=|\x|0.1\linewidth|. (See \longref{SMF}) % \end{Expert} % % \medskip @@ -1013,7 +942,7 @@ % \NEWfeature{v3.1} % The |base| style puts all options you already know about to values reflecting % the look of the captions when using one of the base \LaTeX\ document classes -% \class{article}, \class{report}, and \class{book}. +% \cls{article}, \cls{report}, and \cls{book}. % This means that specifying the option % \begin{quote} % |style=base| @@ -1044,8 +973,8 @@ % the caption fits into a single line. % \end{Annotation*} % -% So if you use one of the base \LaTeX\ document classes \class{article}, -% \class{report}, or \class{book}, both caption styles, |base| and |default|, +% So if you use one of the base \LaTeX\ document classes \cls{article}, +% \cls{report}, or \cls{book}, both caption styles, |base| and |default|, % point to (nearly) the same settings. % % \begin{Note} @@ -1066,8 +995,8 @@ % \begin{quote} % |skip=|\meta{amount}\quad. % \end{quote} -% The standard \LaTeX\ document classes \class{article}, \class{report} and -% \class{book} preset it to |skip=|\x|10pt|, but other document classes may +% The standard \LaTeX\ document classes \cls{article}, \cls{report} and +% \cls{book} preset it to |skip=|\x|10pt|, but other document classes may % use a different amount. % % \bigskip @@ -1114,7 +1043,7 @@ % \DescribeMacro{tableposition=} % The |position| option is especially useful when used together with the % optional argument of the |\caption|\-|setup| command. -% \See{also \Ref{captionsetup}}\par +% \See{also \longref{captionsetup}}\par % For example % \begin{quote} % |\captionsetup[table]{position=above}| @@ -1145,12 +1074,12 @@ % For example the \KOMAScript\ document classes support the |skip=| % setting, but will always typeset |figure| captions as ``bottom'' captions, % and |table| captions are dependent on the global option -% |table|\-|captions|\-|above| resp.\ |table|\-|captions|\-|below|. -% \See{\Ref{KOMA}} +% |table|\-|captions|\-|above| or |table|\-|captions|\-|below|. +% \See{\longref{KOMA}} % % Furthermore some packages control the behavior of the spacing above and -% below the caption for themself, e.g.~the \package{float}, the -% \package{floatrow}, and the \package{supertabular} package. +% below the caption for themself, e.g.~the \pkg{float}, the +% \pkg{floatrow}, and the \pkg{supertabular} package. % % \bigskip % @@ -1164,8 +1093,8 @@ % So technically speaking, this package swaps the meaning of these two skips % when |position=|\x|top| is set. % Please note that there are several packages around which do the same trick -% (like the \package{ftcap}, the \package{nonfloat}, and the \package{topcap} -% package), so the usage of the \package{caption} option |position=| is not +% (like the \pkg{ftcap}, the \pkg{nonfloat}, and the \pkg{topcap} +% package), so the usage of the \pkg{caption} option |position=| is not % supported if one of these packages will be used, too. % \end{Expert*} % @@ -1179,12 +1108,12 @@ % \DescribeMacro{list=} % \NEWfeature*{v3.1} % The |\caption| command usually places an entry in the List of Figures -% resp.~List of Tables. You can either suppress that individually by giving an -% empty optional argument to |\caption| {\small(see \Ref{caption})}, or +% or List of Tables. You can either suppress that individually by giving an +% empty optional argument to |\caption| {\small(see \longref{caption})}, or % programmatically by saying % \begin{quote} % |list=no|\quad(or any other boolean value instead of |no|)\quad.~\footnote{% -% Please note that the \package{subfig} package\cite{subfig} is not supporting +% Please note that the \pkg{subfig} package\cite{subfig} is not supporting % this option, it uses the counters \texttt{lofdepth} \& \texttt{lotdepth} for % this purpose instead.} % \end{quote} @@ -1199,7 +1128,7 @@ % \end{quote} % \nopagebreak[3] % you can specify how the |figure| or |table| number will be typeset within -% the List of Figures resp.~List of Tables. +% the List of Figures or List of Tables. % There are five standard caption list formats: % % \begin{Options}{\OptionLabel} @@ -1223,16 +1152,16 @@ % \SeeUserDefined % \end{Options} % -% The prefix ($=$|\p@figure| resp.~|\p@table|), which runs ahead of the -% number ($=$|\the|\-|figure| resp.~|\the|\-|table|) in lists (e.g.~List of +% The prefix ($=$|\p@figure| or |\p@table|), which runs ahead of the +% number ($=$|\the|\-|figure| or |\the|\-|table|) in lists (e.g.~List of % Figure/Table) and references, is usually empty, % so the list formats |simple| and |subsimple| gives equal results; % same with |parens| and |subparens|. % But this can be different for sub-figures or sub-tables listed in the List of -% Figures resp.~List of Tables, or when the label prefix is redefined for a +% Figures or List of Tables, or when the label prefix is redefined for a % different purpose.\footnote{% -% Sub-figures and sub-tables can be typeset using the \package{subcaption} -% or \package{subfig} package.} +% Sub-figures and sub-tables can be typeset using the \pkg{subcaption} +% or \pkg{subfig} package.} % % \iffalse % --------------------------------------------------------------------------- % @@ -1274,8 +1203,8 @@ % \end{quote} % prior to the usage of the |\caption| command (and other commands like % |\Continued|\-|Float|, or |\sub|\-|caption|\-|box| offered by the -% \package{subcaption} package, or |\sub|\-|float| offered by the -% \package{subfig} package\cite{subfig}), +% \pkg{subcaption} package, or |\sub|\-|float| offered by the +% \pkg{subfig} package\cite{subfig}), % for example within an non-floating environment like |minipage|: % \begin{quote} % |\noindent\begin{minipage}{\textwidth}|\\ @@ -1289,9 +1218,9 @@ % \begin{Expert} % There is also a starred variant of this option, |type*=|\meta{float type}, % which behaves different than |type=|\meta{float type} if the -% \package{hyperref} package\cite{hyperref} is loaded: While |type=| sets an +% \pkg{hyperref} package\cite{hyperref} is loaded: While |type=| sets an % hyperlink anchor (if |hypcap=|\x|true| is set), |type*=| does not. -% (See also \Ref{hyperref}\,) +% (See also \longref{hyperref}\,) % \end{Expert} % \begin{Expert} % \emph{\DefaultNoteText:} Please don't re-define the internal macro |\@captype| @@ -1302,9 +1231,9 @@ % \medskip % % Own float types can be defined with -% |\Declare|\-|Floating|\-|Environment| offered by the \package{newfloat} package, -% |\new|\-|float| offered by the \package{float} package\cite{float}, or -% |\Declare|\-|New|\-|Float|\-|Type| offered by the \package{floatrow} package\cite{float}. +% |\Declare|\-|Floating|\-|Environment| offered by the \pkg{newfloat} package, +% |\new|\-|float| offered by the \pkg{float} package\cite{float}, or +% |\Declare|\-|New|\-|Float|\-|Type| offered by the \pkg{floatrow} package\cite{float}. % % \medskip % @@ -1346,7 +1275,7 @@ % if no \meta{list entry} has been given. But if a \meta{list entry} is given, % this argument is moving instead. % ``\emph{Moving} argument'' means that the argument will be written to the -% list-of file, make it appearing in the ``List of Figures'' resp. +% list-of file, make it appearing in the ``List of Figures'' or % ``List of Tables'', too. % \emph{Moving} arguments are not allowed to contain \emph{fragile} commands, % everything must be \emph{robust}, otherwise the argument could get @@ -1383,7 +1312,7 @@ % % \pagebreak[3] % \DescribeMacro{\caption*} -% The \package{longtable} package defines the command |\caption*| which +% The \pkg{longtable} package defines the command |\caption*| which % typesets the caption without label and without entry in the list of tables. % An example: % \begin{quote} @@ -1448,7 +1377,7 @@ % restrictions as for the |type| option apply here, so you should use both % |\caption|\-|of| and |\caption|\-|of*| only \emph{inside} boxes or % environments, too. -% \See{\Ref{types}} +% \See{\longref{types}} % % \bigskip % @@ -1472,7 +1401,7 @@ % |\endhead|\\ % | |\ldots % \end{quote} -% But since the \package{longtable} package does not offer an +% But since the \pkg{longtable} package does not offer an % |\end|\-|first|\-|foot| command, you cannot easily have captions \emph{below} % the table contents and a single list entry which points to the first page of % the table. @@ -1486,14 +1415,14 @@ % \end{quote} % % \begin{Annotation*} -% Another example can be found in \Ref{examples}. +% Another example can be found in \longref{examples}. % \end{Annotation*} % % \begin{Expert} % There is also a starred variant, |\caption|\-|list|\-|entry*|, which does not % increment the \meta{float type} counter. % (Note that inside |long|\-|table| environments |\caption|\-|list|\-|entry| -% never increments the |table| counter. See also \Ref{longtable}.) +% never increments the |table| counter. See also \longref{longtable}.) % \end{Expert} % % \begin{Expert} @@ -1505,7 +1434,7 @@ % \label{captionsetup} % % \DescribeMacro{\captionsetup} -% We already know the |\caption|\-|setup| command (see \Ref{usage}), +% We already know the |\caption|\-|setup| command (see \longref{usage}), % but this time we get enlighten about its optional argument % \meta{float type}. % @@ -1545,11 +1474,11 @@ % % As \meta{float type} you can usually give one of these two only: % |figure| or |table|. -% But as we will see later some \LaTeX\ packages (like the \package{floatrow}, -% \package{longtable}, and \package{sidecap} package for example) and also +% But as we will see later some \LaTeX\ packages (like the \pkg{floatrow}, +% \pkg{longtable}, and \pkg{sidecap} package for example) and also % this package offer additional environments with captions and these two % commands can also be used with them. -% \See{\Ref{declare} and \Ref{packages}} +% \See{\longref{declare} and \longref{packages}} % % \begin{Expert} % \NEWfeature{v3.1} @@ -1728,7 +1657,7 @@ % \centerline{\ldots} % \end{Example} % \smallskip -% \See{\Ref{declare} for an explanation of +% \See{\longref{declare} for an explanation of % \cs{Declare}\-\texttt{Caption}\-\texttt{Label}\-\texttt{Format}.} % % \medskip @@ -1831,13 +1760,13 @@ % % \begin{Note} % Unfortunately \cs{ContinuedFloat*} is not available if the -% \package{subfig} package\cite{subfig} is loaded. +% \pkg{subfig} package\cite{subfig} is loaded. % \end{Note} % % \pagebreak[3] % \subsubsection*{A note about longtables} % If you want to have a different caption label in |long|\-|table|s (offered -% by the \package{longtable} package\cite{longtable}) after a page break, +% by the \pkg{longtable} package\cite{longtable}) after a page break, % this can \emph{not} be archived by using |\Continued|\-|Float|, % but instead you could write something like: % \begin{quote} @@ -1905,7 +1834,7 @@ % \DescribeMacro{\bothIfFirst} % \DescribeMacro{\bothIfSecond} % If you define your own caption label formats and use the -% \package{subcaption} or \package{subfig}\cite{subfig} package, +% \pkg{subcaption} or \pkg{subfig}\cite{subfig} package, % you should take care of empty caption label names. % For this purpose the commands % \begin{quote} @@ -1990,7 +1919,7 @@ % |\DeclareCaptionFont{bf}{\bfseries}|\quad. % \end{quote} % \iffalse -% The line spacing could be customized using the \package{setspace} package, +% The line spacing could be customized using the \pkg{setspace} package, % for example:%\NEWdescription{v3.0h} % \begin{quote} % |\usepackage{setspace}|\\ @@ -2035,7 +1964,7 @@ % under a given name. You can wake up these options at any time with the % option |style=|\meta{style name}. % -% All caption styles are based on the |base| set of options. (See \Ref{style} +% All caption styles are based on the |base| set of options. (See \longref{style} % for a complete list.) So you only need to specify options which are different % to them. % @@ -2207,7 +2136,7 @@ % \MakeShortVerb{\|} % % (Please remember that |\caption|\-|list|\-|entry| increments the figure -% resp.~table counter.) +% or table counter.) % % \iffalse % --------------------------------------------------------------------------- % @@ -2218,8 +2147,8 @@ % \label{classes} % % This section will give you an overview of the document classes the -% \package{caption} supports, what do they already offer regarding captions, -% what side effects will occur when using the \package{caption} package with +% \pkg{caption} supports, what do they already offer regarding captions, +% what side effects will occur when using the \pkg{caption} package with % them, and what are the `default' settings for them. % % \NEWfeature{v3.1} @@ -2231,9 +2160,9 @@ % \begingroup\setlength\leftmargini{0.3em}% default = 2.5em % \INFO % If you don't find the document class you use in this section, you usually -% don't have to worry: Many document classes (e.g.~the \class{octavo} class) -% are derived from one of the standard document classes \class{article}, -% \class{report}, or \class{book}, and behave the same regarding captions. +% don't have to worry: Many document classes (e.g.~the \cls{octavo} class) +% are derived from one of the standard document classes \cls{article}, +% \cls{report}, or \cls{book}, and behave the same regarding captions. % \Thispackage\ automatically does a compatibility check against the document % class used and will give you the clear warning % \begin{quote}\footnotesize @@ -2323,8 +2252,8 @@ % |labelformat=| & \textit{not numbered} \\ % |labelsep=| & |colon| \\ % |justification=| & |raggedright| \\ -% |font=| & \class{beamer} ``|caption|'' \settings \\ -% |labelfont=| & \class{beamer} ``|caption name|'' \settings \\ +% |font=| & \cls{beamer} ``|caption|'' \settings \\ +% |labelfont=| & \cls{beamer} ``|caption name|'' \settings \\ % |textfont=| & \nofont \\ % \end{tabular} % @@ -2335,7 +2264,7 @@ % This will still work, unless you set a different font with % |\caption|\-|setup{font=|\x\meta{options}|}| or % |\caption|\-|setup{label|\-|font=|\x\meta{options}|}|.\par -% Furthermore the \class{beamer} classes offer different caption templates +% Furthermore the \cls{beamer} classes offer different caption templates % which can be chosen with % |\set|\-|beamer|\-|template|\x|{caption}|\x|[|\meta{template}|]|. % Since \thispackage\ replaces this caption template mechanism, @@ -2368,11 +2297,11 @@ % % \subsubsection*{Side effects} % The optional argument of |\set|\-|cap|\-|width| is not supported and -% will be ignored if used in conjunction with the \package{caption} package. +% will be ignored if used in conjunction with the \pkg{caption} package. % Furthermore the \KOMAScript\ options |table|\-|caption|\-|above| \& % |table|\-|caption|\-|below| and the commands |\caption|\-|above| \& % |\caption|\-|below| are stronger than the |position=| setting offered by -% the \package{caption} package. +% the \pkg{caption} package. % % \subsection{\NTG: artikel, rapport, and boek} % \label{NTG} @@ -2434,16 +2363,16 @@ % \label{babel} % % \NEWfeature{v3.5} -% Since version \version{3.5} of the \package{caption} package the support -% is independent on the load order of \package{caption} and \package{babel}. +% Since version \version{3.5} of the \pkg{caption} package the support +% is independent on the load order of \pkg{caption} and \pkg{babel}. % % \subsection{french babel option} % \label{french} % -% If you use the \package{french} option of the \package{babel} package +% If you use the \pkg{french} option of the \pkg{babel} package % with one of the three standard \LaTeX{} classes (or a one derived from them) % the default |label|\-|sep=| will be set to |\Caption|\-|Sep|\-|a|\-|ra|\-|tor| -% (offered by \package{french}), overriding the default value set by the +% (offered by \pkg{french}), overriding the default value set by the % document class. % So redefining |\Caption|\-|Sep|\-|a|\-|ra|\-|tor| will still work, unless you % don't select a different |label|\-|sep=| than the default one. @@ -2460,17 +2389,17 @@ % \Thispackage\ was adapted to the following packages which deals with % captions, too: % \begin{quote} -% \package{float}, \package{floatflt}, \package{fltpage}, -% \package{hyperref}, \package{hypcap}, \package{listings}, -% \package{longtable}, \package{picinpar}, \package{picins}, -% \package{rotating}, \package{setspace}, \package{sidecap}, -% \package{subfigure}, \package{supertabular}, \package{threeparttable}, -% \package{wrapfig}, and \package{xtab} +% \pkg{float}, \pkg{floatflt}, \pkg{fltpage}, +% \pkg{hyperref}, \pkg{hypcap}, \pkg{listings}, +% \pkg{longtable}, \pkg{picinpar}, \pkg{picins}, +% \pkg{rotating}, \pkg{setspace}, \pkg{sidecap}, +% \pkg{subfigure}, \pkg{supertabular}, \pkg{threeparttable}, +% \pkg{wrapfig}, and \pkg{xtab} % \end{quote} % -% Furthermore the \package{floatrow} package\cite{floatrow}, the -% \package{subcaption} package (which is part of the \package{caption} package -% bundle), and the \package{subfig} package\cite{subfig} support \thispackage{} +% Furthermore the \pkg{floatrow} package\cite{floatrow}, the +% \pkg{subcaption} package (which is part of the \pkg{caption} package +% bundle), and the \pkg{subfig} package\cite{subfig} support \thispackage{} % and use its |\caption|\-|setup| interface. % % \bigskip @@ -2502,8 +2431,8 @@ % \item |\ContinuedFloat| % \item correctly justified captions in environments like \texttt{wide} and % \texttt{addmargin} which add extra margins -% \item the \textsf{hypcap} feature \See{\Ref{hyperref}\,} -% \item the sub-caption feature \See{\package{subcaption} package documentation} +% \item the \textsf{hypcap} feature \See{\longref{hyperref}\,} +% \item the sub-caption feature \See{\pkg{subcaption} package documentation} % \end{itemize} % % \DescribeMacro{compatibility=} @@ -2526,31 +2455,31 @@ % \subsection{algorithms} % \label{algorithms} % \packagedescription{% -% The \package{algorithms} package bundle\cite{algorithms} provides two +% The \pkg{algorithms} package bundle\cite{algorithms} provides two % environments: The \texttt{algorithmic} environment provides a possibility % for describing algorithms, and the \texttt{algorithm} environment provides % a ``float'' wrapper for algorithms.} % % Since the \texttt{algorithm} environment is implemented via |\new|\-|float| -% provided by the \package{float} package\cite{float}, please see \Ref{float}. +% provided by the \pkg{float} package\cite{float}, please see \longref{float}. % % \iffalse % \pagebreak[3] % \subsection{algorithm2e} % \label{algorithm2e} % \packagedescription{% -% The \package{algorithm2e} package\cite{algorithm2e} offers an environment for +% The \pkg{algorithm2e} package\cite{algorithm2e} offers an environment for % writing algorithms in LaTeX2e.} % -% Since the \package{algorithm2e} package does not use some kind of standard +% Since the \pkg{algorithm2e} package does not use some kind of standard % interface for defining its floating environment (e.g.~|\newfloat| of the -% \package{float} package) and typesetting its caption, -% the \package{algorithm2e} package is \emph{not} supported by \thispackage. +% \pkg{float} package) and typesetting its caption, +% the \pkg{algorithm2e} package is \emph{not} supported by \thispackage. % % So if you want to customize the captions using \thispackage, % you have to build a new environment which uses a supported interface regarding -% floats (e.g. using the \package{float} or \package{floatrow} package), -% and combine this environment with the internal \package{algorithm2e} code. +% floats (e.g. using the \pkg{float} or \pkg{floatrow} package), +% and combine this environment with the internal \pkg{algorithm2e} code. % % As first step you could define a non-floating environment \texttt{algorithmic}, % for example: @@ -2567,13 +2496,13 @@ % \ldots % \end{quote} % Having defined this non-floating environment, you could define your own new -% floating environment with |\newfloat| of the \package{float} package -% (or |\DeclareNewFloatType| of the \package{floatrow} package), +% floating environment with |\newfloat| of the \pkg{float} package +% (or |\DeclareNewFloatType| of the \pkg{floatrow} package), % and use the combination of this floating environment and \texttt{algorithmic} % in its body, just like you would do when you use the -% \package{algorithm}/\package{algorithmic} package tandem. +% \pkg{algorithm}/\pkg{algorithmic} package tandem. % -% You could even use the \package{algorithm} package for this purpose, for example: +% You could even use the \pkg{algorithm} package for this purpose, for example: % \begin{quote} % \ldots\\ % |% load the algorithm package to re-define the|\\ @@ -2594,11 +2523,11 @@ % |\end{algorithmic}| % \end{quote} % Now you are finally able to customize the float and caption layout like every -% other floating environment defined with the \package{float} package\cite{float}, -% please see \Ref{float}. +% other floating environment defined with the \pkg{float} package\cite{float}, +% please see \longref{float}. % % \begin{Annotation} -% An alternative would be using the \package{algorithmicx} package. +% An alternative would be using the \pkg{algorithmicx} package. % \end{Annotation} % \fi % @@ -2606,7 +2535,7 @@ % \subsection{float} % \label{float} % \packagedescription{% -% The \package{float} package\cite{float} introduces the commands +% The \pkg{float} package\cite{float} introduces the commands % \cs{restylefloat} to give existing floating environments a new look \& feel % and \cs{newfloat} to define new floating environments. % It also provides the ``\texttt{H}'' float placement option which places @@ -2643,13 +2572,13 @@ % |\new|\-|float| or |\re|\-|style|\-|float|, furthermore these environments % are not behaving exactly like the pre-defined floats |figure| and |table|. % As a consequence many packages do not cooperate well with these. -% Furthermore the \package{float} package has some caveats \& limitations, +% Furthermore the \pkg{float} package has some caveats \& limitations, % so if you just want to define a new simple floating environment---behaving % like |figure| or |table|---I recommend using |\Declare|\-|Floating|\-|Environment| -% offered by the \package{newfloat} package instead. +% offered by the \pkg{newfloat} package instead. % And for defining non-simple floating environments and customization I % recommend using |\Declare|\-|New|\-|Float|\-|Type| offered by the -% \package{floatrow} package\cite{floatrow}. +% \pkg{floatrow} package\cite{floatrow}. % \end{Note} % % \iffalse @@ -2665,7 +2594,7 @@ % \subsection{floatflt} % \label{floatflt} % \packagedescription{% -% The \package{floatflt} package\cite{floatflt} offers figures and tables +% The \pkg{floatflt} package\cite{floatflt} offers figures and tables % which do not span the full width of a page and are float around by text.} % % \NEWfeature{v3.1} @@ -2676,19 +2605,19 @@ % |\captionsetup[floatingtable]|\marg{options}\quad. % \end{quote} % These options will be executed additionally to the regular ones for -% |figure| resp.~|table|. +% |figure| or |table|. % % \begin{Note} -% The |margin| resp.~|width| setting will not be used for these figures resp.~tables, +% The |margin| or |width| setting will not be used for these figures or tables, % unless you set it explicit with |\caption|\-|setup[floating|\-|figure]{|\ldots|}| -% resp.~|\caption|\-|setup[floating|\-|table]{|\ldots|}|. +% or |\caption|\-|setup[floating|\-|table]{|\ldots|}|. % \end{Note} % % \pagebreak[3] % \subsection{fltpage} % \label{fltpage} % \packagedescription{% -% The \package{fltpage} package\cite{fltpage} offers the outhouse of the +% The \pkg{fltpage} package\cite{fltpage} offers the outhouse of the % caption for |figure|s or |table|s which needs the whole page % for its contents. This will be done by placing the caption on the bottom % of the previous or next page.} @@ -2721,18 +2650,18 @@ % \subsection{frenchle and frenchpro packages} % \label{frenchpro} % -% If you use the \package{frenchle} or \package{frenchpro} package, +% If you use the \pkg{frenchle} or \pkg{frenchpro} package, % the default |label|\-|sep=| will be set to |\caption|\-|sep|\-|a|\-|ra|\-|tor| -% (offered by \package{frenchle/pro}) plus \cs{space}, overriding the default +% (offered by \pkg{frenchle/pro}) plus \cs{space}, overriding the default % value set by the document class. % So redefining |\caption|\-|sep|\-|a|\-|ra|\-|tor| will still work, unless you % don't select a different |label|\-|sep=| than the default one. % % Furthermore the default |text|\-|font=| will be set to |text|\-|font=|\x|it|, % since this emulates the default setting of |\caption|\-|font| defined by the -% \package{frenchle} or \package{frenchpro} package. +% \pkg{frenchle} or \pkg{frenchpro} package. % Please note that the command |\caption|\-|font| is used by the -% \package{caption} package internally for a different purpose, +% \pkg{caption} package internally for a different purpose, % so you should not change it (anymore). % % The command |\un|\-|numbered|\-|captions|\marg{figure \emph{or} table} will @@ -2740,20 +2669,20 @@ % than the default one. % % \NEWfeature{v3.5} -% Since version \version{3.5} of the \package{caption} package the support -% is independent on the load order of \package{caption} and \package{frenchle} -% resp~.\package{frenchpro}. +% Since version \version{3.5} of the \pkg{caption} package the support +% is independent on the load order of \pkg{caption} and \pkg{frenchle} +% resp~.\pkg{frenchpro}. % % \pagebreak[3] % \subsection{hyperref} % \label{hyperref} % \packagedescription{% -% The \package{hyperref} package\cite{hyperref} is used to handle cross +% The \pkg{hyperref} package\cite{hyperref} is used to handle cross % referencing commands in LaTeX to produce hypertext links in the document.} % % \NEWfeature{v3.1} % There are two options available to control the placement of hyperlink -% anchors:~\footnote{These options are named after the \package{hypcap} package +% anchors:~\footnote{These options are named after the \pkg{hypcap} package % which they supersede.} % \begin{description} % \item{\texttt{hypcap=true} or \texttt{hypcap=false}}\\[\smallskipamount] @@ -2771,10 +2700,10 @@ % \end{description} % % Both settings have no effect in |lst|\-|listing|s (provided by the -% \package{listings} package), |long|\-|table|s (provided by the -% \package{longtable} package), |super|\-|tabular|s (provided by the -% \package{supertabular} package), and |x|\-|tabular|s (provided by the -% \package{xtab} package), within these environments hyperlink +% \pkg{listings} package), |long|\-|table|s (provided by the +% \pkg{longtable} package), |super|\-|tabular|s (provided by the +% \pkg{supertabular} package), and |x|\-|tabular|s (provided by the +% \pkg{xtab} package), within these environments hyperlink % anchors will always be placed as if |hyp|\-|cap=|\x|true| and % |hyp|\-|cap|\-|space=|\x|0pt| would be set. % @@ -2783,8 +2712,8 @@ % \item{\cs{captionof}\marg{type}\csmarg{\purerm\ldots} % vs.~\cs{captionsetup}\csmarg{type=\textrm{\meta{type}}}$+$\cs{caption}\csmarg{\purerm\ldots}}% % \\[\smallskipamount] -% Without \package{hyperref} loaded, both will give you identical results. -% But with \package{hyperref} loaded, and with |hyp|\-|cap=|\x|true| requested, +% Without \pkg{hyperref} loaded, both will give you identical results. +% But with \pkg{hyperref} loaded, and with |hyp|\-|cap=|\x|true| requested, % the hyperlink anchor will be placed different. % For example: % \begin{quote} @@ -2809,8 +2738,8 @@ % % \item{\cs{caption}\csoarg{}\csmarg{\purerm\ldots} % vs.~\cs{captionsetup}\csmarg{list=false}$+$\cs{caption}\csmarg{\purerm\ldots}}\\[\smallskipamount] -% Again, without \package{hyperref} loaded, both will give you identical results. -% But with \package{hyperref} loaded, the difference is in the nuances. +% Again, without \pkg{hyperref} loaded, both will give you identical results. +% But with \pkg{hyperref} loaded, the difference is in the nuances. % So for example the optional argument of |\caption| will also be written to % the |aux| file, and will be used by the |\name|\-|ref| command. % So if you choose to use |\caption| with empty optional argument, @@ -2823,39 +2752,39 @@ % \subsection{hypcap} % \label{hypcap} % \packagedescription{% -% The \package{hyp\-cap} package\cite{hypcap} offers a solution to the problem -% that links to a float using \package{hyper\-ref} may anchors to the caption +% The \pkg{hyp\-cap} package\cite{hypcap} offers a solution to the problem +% that links to a float using \pkg{hyper\-ref} may anchors to the caption % rather than the beginning of the float. % Since \thispackage\ \version{3.1} already solves this problem for itself, -% the \package{hypcap} package is usually not needed.} +% the \pkg{hypcap} package is usually not needed.} % -% If the \package{hyp\-cap} package is loaded additionally to the -% \package{hyper\-ref} package, it takes over the control of the hyperlink +% If the \pkg{hyp\-cap} package is loaded additionally to the +% \pkg{hyper\-ref} package, it takes over the control of the hyperlink % anchor placement from \thispackage, overriding the options |hyp|\-|cap=| % and |hyp|\-|cap|\-|space=|. % % So for a manual placement of hyperlink anchors % |\caption|\-|setup{type=|\x\meta{type}|}| is not sufficient anymore, -% instead you need to use |\cap|\-|start| (provided by the \package{hyp\-cap} +% instead you need to use |\cap|\-|start| (provided by the \pkg{hyp\-cap} % package) for this. % -% Regarding the automatically placement the \package{hypcap} package offers good +% Regarding the automatically placement the \pkg{hypcap} package offers good % placement of hyperlink anchors for the floating environments |figure| and % |table| only. In contrast the |hypcap=|\x|true| option of \thispackage\ also % offers good placements of hyperlink anchors for -% |floating|\-|figure|s (provided by the \package{float\-flt} package), -% |FP|\-|figure|s \& |FPtable|s (provided by the \package{flt\-page} package), -% |fig|\-|window|s (provided by the \package{pic\-in\-par} package), -% |par|\-|pic|s (provided by the \package{pic\-ins} package), -% |SC|\-|figure|s (provided by the \package{side\-cap} package), -% |three|\-|part|\-|table|s (provided by the \package{three\-part\-table} package), -% and |wrapfigure|s (provided by the \package{wrap\-fig} package). +% |floating|\-|figure|s (provided by the \pkg{float\-flt} package), +% |FP|\-|figure|s \& |FPtable|s (provided by the \pkg{flt\-page} package), +% |fig|\-|window|s (provided by the \pkg{pic\-in\-par} package), +% |par|\-|pic|s (provided by the \pkg{pic\-ins} package), +% |SC|\-|figure|s (provided by the \pkg{side\-cap} package), +% |three|\-|part|\-|table|s (provided by the \pkg{three\-part\-table} package), +% and |wrapfigure|s (provided by the \pkg{wrap\-fig} package). % % \pagebreak[3] % \subsection{listings} % \label{listings} % \packagedescription{% -% The \package{listings} package\cite{listings} typesets programming code.} +% The \pkg{listings} package\cite{listings} typesets programming code.} % % If you want to setup special options for the |lst|\-|listing| environment % you can use @@ -2863,11 +2792,11 @@ % |\captionsetup[lstlisting]|\marg{options}\quad. % \end{quote} % -% Please note that the \package{listings} package has its very own options +% Please note that the \pkg{listings} package has its very own options % for controlling the position and the skips of the caption: % |caption|\-|pos=|, |above|\-|caption|\-|skip=|, and |below|\-|caption|\-|skip=|. -% \See{\package{listings} documentation for details.} -% These \package{listings} options override the \package{caption}'s ones, but +% \See{\pkg{listings} documentation for details.} +% These \pkg{listings} options override the \pkg{caption}'s ones, but % can be again overwritten by |\caption|\-|setup[lst|\-|listing]{|\ldots|}|, % e.g.%~ % \begin{quote}|\caption|\-|setup[lst|\-|listing]{skip=|\x|10pt}|\quad.\end{quote} @@ -2876,7 +2805,7 @@ % \subsection{longtable} % \label{longtable} % \packagedescription{% -% The \package{longtable} package\cite{longtable} offers an environment +% The \pkg{longtable} package\cite{longtable} offers an environment % which behaves similar to the \texttt{tabular} environment, but the table % itself can span multiple pages.} % @@ -2905,7 +2834,7 @@ % \NEWfeature{v3.1} % If you need a |long|\-|table| which does not increment the |table| counter % please use the |long|\-|table*| environment (offered by the -% \package{ltcaption} package which is part of \thispackage\ bundle and will be +% \pkg{ltcaption} package which is part of \thispackage\ bundle and will be % loaded automatically). % \end{Note} % @@ -2913,7 +2842,7 @@ % \subsection{picinpar} % \label{picinpar} % \packagedescription{% -% Similar to the \package{floatflt} package the \package{picinpar} +% Similar to the \pkg{floatflt} package the \pkg{picinpar} % package\cite{picinpar} offers figures and tables which do not span the full % width of a page and are float around by text. % For a detailed discussion about the differences between these packages @@ -2930,7 +2859,7 @@ % |figure| or |table|. % % \begin{Note} -% The |margin| resp.~|width| setting will not be used for these figures and tables, +% The |margin| or |width| setting will not be used for these figures and tables, % unless you set it explicit with |\caption|\-|setup[fig|\-|window]{|\ldots|}| or % |\caption|\-|setup[fig|\-|table]{|\ldots|}|. % \end{Note} @@ -2939,8 +2868,8 @@ % \subsection{picins} % \label{picins} % \packagedescription{% -% Similar to the \package{floatflt} and \package{picinpar} package the -% \package{picins} package\cite{picins} offers figures and tables which do not +% Similar to the \pkg{floatflt} and \pkg{picinpar} package the +% \pkg{picins} package\cite{picins} offers figures and tables which do not % span the full width of a page and are float around by text. % For a detailed discussion about the differences between these packages % please take a look at The \LaTeX\ Companion\cite{TLC2}.} @@ -2957,7 +2886,7 @@ % and |\pic|\-|caption*{|\ldots|}| gives an unlabeled \& unnumbered caption. % % \begin{Note} -% The |margin| resp.~|width| setting will not be used for these figures and tables. +% The |margin| or |width| setting will not be used for these figures and tables. % \iffalse % if |pic|\-|caption|\-|side| or |pic|\-|caption|\-|top|\-|side| is used. % The |width| setting will not be used (but the |margin| setting will) if @@ -2968,7 +2897,7 @@ % \end{Note} % % If you want to have a |\pic|\-|caption| of another type as |figure|, please -% do \emph{not} re-define |\@cap|\-|type| as suggested by the \package{picins} +% do \emph{not} re-define |\@cap|\-|type| as suggested by the \pkg{picins} % documentation. Please use the |\pic|\-|caption|\-|type|\marg{type} command % which is offered by \thispackage\ instead, e.g.: % \begin{quote} @@ -2981,9 +2910,9 @@ % \subsection{rotating} % \label{rotating} % \packagedescription{% -% The \package{rotating} package\cite{rotating} offers the floating +% The \pkg{rotating} package\cite{rotating} offers the floating % environments \texttt{side\-ways\-figure} and \texttt{side\-ways\-table} which -% are just like normal figures and tables but rotated by 90 resp.~270 degree. +% are just like normal figures and tables but rotated by 90 or 270 degree. % Furthermore a command \cs{rot\-caption} is offered for rotated captions only.} % % \iffalse % No, we don't do that @@ -3005,22 +2934,22 @@ % \subsection{setspace} % \label{setspace} % \packagedescription{% -% The \package{setspace} package\cite{setspace} offers options and commands +% The \pkg{setspace} package\cite{setspace} offers options and commands % to change the spacing, % e.g.\ \cs{usepackage}\x\csoarg{one\-half\-spacing}\x\csmarg{set\-space} % causes the document to be typeset in one-and-a-half spacing.} % -% If the \package{setspace} package is used in conjunction with \thispackage, +% If the \pkg{setspace} package is used in conjunction with \thispackage, % the caption will be typeset with single spacing as default. This can be changed % by specifying either |font=|\x|one|\-|half|\-|spacing|, % |font=|\x|double|\-|spacing|, or |font={stretch=|\x\meta{amount}|}|. -% \See{also \Ref{fonts}} +% \See{also \longref{fonts}} % % \pagebreak[3] % \subsection{sidecap} % \label{sidecap} % \packagedescription{% -% The \package{sidecap} package\cite{sidecap} offers the floating environments +% The \pkg{sidecap} package\cite{sidecap} offers the floating environments % \texttt{SC\-figure} and \texttt{SC\-table} which are like usual figures % and tables but the caption will be put \emph{beside} the contents.} % @@ -3035,13 +2964,13 @@ % % \pagebreak[3] % \begin{Note} -% The \package{sidecap} package offers its own options for justification. +% The \pkg{sidecap} package offers its own options for justification. % If set, they will override the one specified with the caption option % |jus|\-|ti|\-|fi|\-|ca|\-|tion=| for captions beside their contents. % \end{Note} % % \begin{Note} -% The |margin| resp.~|width| setting will not be used for these figures and tables, +% The |margin| or |width| setting will not be used for these figures and tables, % unless you set it explicit with |\caption|\-|setup[SC|\-|figure]{|\ldots|}| % or |\caption|\-|setup[SC|\-|table]{|\ldots|}|. % \end{Note} @@ -3049,14 +2978,14 @@ % \medskip % % \begin{Annotation*} -% Instead of using the \package{sidecap} package you can also use the more -% powerful and flexible \package{floatrow} package\cite{floatrow} for typesetting +% Instead of using the \pkg{sidecap} package you can also use the more +% powerful and flexible \pkg{floatrow} package\cite{floatrow} for typesetting % captions beside the contents. % \end{Annotation*} % % \pagebreak[3] % \subsubsection*{Undocumented features} -% The \package{sidecap} package \version{1.6} has some undocumented package +% The \pkg{sidecap} package \version{1.6} has some undocumented package % options and commands which allow further customization of the side-captions: % % \pagebreak[3] @@ -3082,34 +3011,34 @@ % \subsection{subfigure} % \label{subfigure} % \packagedescription{% -% The \package{subfigure} package\cite{subfigure} provides support for small or +% The \pkg{subfigure} package\cite{subfigure} provides support for small or % `sub' figures and tables within a single figure or table environment. -% This package is obsolete, new users should use \package{subfig} instead.} +% This package is obsolete, new users should use \pkg{subfig} instead.} % -% Since the \package{subfigure} package is obsolete it will only be supported in +% Since the \pkg{subfigure} package is obsolete it will only be supported in % a way that old documents (which have used \thispackage\ \version{1.x} during % development) should still compile as expected. % -% Please use the \package{subfig} or \package{subcaption} package instead which both supports \thispackage\ +% Please use the \pkg{subfig} or \pkg{subcaption} package instead which both supports \thispackage\ % \version{3.x}. % -% \See{the \package{subfig} package\cite{subfig} documentation for details.} +% \See{the \pkg{subfig} package\cite{subfig} documentation for details.} % % \pagebreak[3] % \subsection{supertabular and xtab} % \label{supertabular} % \packagedescription{% -% The \package{supertabular}\cite{supertabular} and \package{xtab}\cite{xtab} +% The \pkg{supertabular}\cite{supertabular} and \pkg{xtab}\cite{xtab} % packages offer an environment which can span multiple pages and is quite % similar to the \texttt{long\-table} environment provided by the -% \package{longtable} package\cite{longtable}. +% \pkg{longtable} package\cite{longtable}. % For a detailed discussion about the differences between these powerful % packages please take a look at The \LaTeX\ Companion\cite{TLC2}.} % % If you want to setup special options for the |super|\-|tabular| -% resp.~|x|\-|tabular| environment you can use +% or |x|\-|tabular| environment you can use % \begin{quote} -% |\captionsetup[supertabular]|\marg{options}\quad\emph{resp.}\\ +% |\captionsetup[supertabular]|\marg{options}\quad\emph{or}\\ % |\captionsetup[xtabular]|\marg{options}\quad. % \end{quote} % These options will be executed additionally to the regular ones for @@ -3123,7 +3052,7 @@ % \subsection{threeparttable} % \label{threeparttable} % \packagedescription{% -% The \package{threeparttable} package\cite{threeparttable} provides a scheme +% The \pkg{threeparttable} package\cite{threeparttable} provides a scheme % for tables that have a structured note section after the table contents and % the caption. % This scheme provides an answer to the old problem of putting footnotes in @@ -3141,7 +3070,7 @@ % % \begin{Note} % Since the caption will have the same width as the contents here, -% the |margin| resp.~|width| setting will not be used for these figures and tables, +% the |margin| or |width| setting will not be used for these figures and tables, % at least unless you set it explicit with % |\caption|\-|setup[three|\-|part|\-|table]{|\ldots|}| or % |\caption|\-|setup[measured|\-|figure]{|\ldots|}|. @@ -3150,16 +3079,16 @@ % \medskip % % \begin{Annotation*} -% Instead of using the \package{threeparttable} package you can -% also use the \package{floatrow} package\cite{floatrow} for this purpose. +% Instead of using the \pkg{threeparttable} package you can +% also use the \pkg{floatrow} package\cite{floatrow} for this purpose. % \end{Annotation*} % % \pagebreak[3] % \subsection{wrapfig} % \label{wrapfig} % \packagedescription{% -% Similar to the \package{floatflt}, the \package{picinpar}, and the -% \package{picins} package the \package{wrapfig} package\cite{wrapfig} offers +% Similar to the \pkg{floatflt}, the \pkg{picinpar}, and the +% \pkg{picins} package the \pkg{wrapfig} package\cite{wrapfig} offers % figures and tables which do not span the full width of a page and are float % around by text. % For a detailed discussion about the differences between these packages @@ -3176,7 +3105,7 @@ % |figure| or |table|. % % \begin{Note} -% The |margin| resp.~|width| setting will not be used for these figures and +% The |margin| or |width| setting will not be used for these figures and % tables, unless you set it explicit with % |\caption|\-|setup[wrap|\-|figure]{|\ldots|}| % or |\caption|\-|setup[wrap|\-|table]{|\ldots|}|. @@ -3339,13 +3268,13 @@ % \end{longtable*} % \preambleoptiontext % \footnotetext{The option \texttt{subtype} is explained in the -% \package{subcaption} package documentation.} +% \pkg{subcaption} package documentation.} % % \nopagebreak\parbox[t]{\linewidth}{% prevent from page break % \begin{Note*} % Obsolete options are not listed here. See -% \Ref{caption1} and -% \Ref{caption2} for a list of these options. +% \longref{caption1} and +% \longref{caption2} for a list of these options. % \end{Note*}} % % \pagebreak[3] @@ -3384,7 +3313,7 @@ % |\showcaptionsetup| & & \ref{captionsetup} \\ % \end{longtable*} % \footnotetext{\cs{DeclareCaptionSubType} is explained in the -% \package{subcaption} package documentation.} +% \pkg{subcaption} package documentation.} % % \clearpage % \subsection{Warnings} @@ -3403,7 +3332,7 @@ % |\caption|\-|setup{type=|\x\meta{type}|}| command outside an box, group, % or environment. % You should not do this since it could cause some bad side-effects. -% \par\See{\Ref{types} and \Ref{caption}} +% \par\See{\longref{types} and \longref{caption}} % % \Message % |\caption will not be redefined since it's already|\\ @@ -3421,7 +3350,7 @@ % you can give the unsupported(!) option |compatibility=|\x|false| % a try and keep your fingers crossed. % (But you will get the next warning instead.) -% \par\See{\Ref{classes} and \Ref{compatibility}} +% \par\See{\longref{classes} and \longref{compatibility}} % % \Message % |Forced redefinition of \caption since the|\\ @@ -3433,18 +3362,18 @@ % But depending on the document class or other packages you use that % can end in non-functional features or even errors. So keep your % fingers crossed! -% \par\See{\Ref{compatibility}} +% \par\See{\longref{compatibility}} % % \Message % |Hyperref support is turned off because hyperref has|\\ % |stopped early.| % \Description -% If the \package{hyperref} package stops early during loading -% (because of what-ever reason), the \package{hyperref} support of +% If the \pkg{hyperref} package stops early during loading +% (because of what-ever reason), the \pkg{hyperref} support of % \thispackage\ will not be available. As a result you could get -% \package{hyperref} warnings and non-functional hyperlinks to figures +% \pkg{hyperref} warnings and non-functional hyperlinks to figures % or tables. -% \par\See{\Ref{hyperref}\,} +% \par\See{\longref{hyperref}\,} % % \Message % |Ignoring optional argument [|\meta{pos}|] of \setcapwidth.| @@ -3453,7 +3382,7 @@ % captions as best as it can. But the optional argument of the % \KOMAScript\ command |\setcapwidth| is not (yet) working if you use % this package, so if you try to use it anyway, you will get this warning. -% \par\See{\Ref{KOMA}} +% \par\See{\longref{KOMA}} % % \Message % |Internal Warning: |\meta{warning message}|.| @@ -3481,7 +3410,7 @@ % get this warning. If this is not because of a typo and you would like % to suppress this warning, use |\clear|\-|caption|\-|setup*| instead of % |\clear|\-|caption|\-|setup|. -% \par\See{\Ref{captionsetup}} +% \par\See{\longref{captionsetup}} % % \Message % |Option list `|\meta{option list}|' undefined.| @@ -3492,26 +3421,26 @@ % get this warning. If this is not because of a typo and you would like % to suppress this warning, use |\clear|\-|caption|\-|setup*| instead of % |\clear|\-|caption|\-|setup|. -% \par\See{\Ref{captionsetup}} +% \par\See{\longref{captionsetup}} % % \Message % |Obsolete option `ignoreLTcapwidth' ignored.| % \Description -% The \package{caption2} package option |ignoreLTcapwidth| will not be +% The \pkg{caption2} package option |ignoreLTcapwidth| will not be % emulated by this version of \thispackage, usually you can simply wipe it % away. -% \par\See{\Ref{caption2} and \Ref{longtable}} +% \par\See{\longref{caption2} and \longref{longtable}} % % \Message % |`ragged2e' support has been changed. Rerun to get|\\ % |captions right.| % \Description -% The \package{ragged2e} package will only be loaded by \thispackage\ if it +% The \pkg{ragged2e} package will only be loaded by \thispackage\ if it % is actually needed. % At least two \LaTeX\ runs are needed for that, so on the first run you could % get this warning. % Just compile your document again and this warning should go away. -% \par\See{\Ref{justification}} +% \par\See{\longref{justification}} % % \Message % |Reference on page |\meta{page no.}| undefined.| @@ -3521,7 +3450,7 @@ % At least two \LaTeX\ runs are needed for that, on the first run you could get % this warning. % Just compile your document again and this warning should go away. -% \par\See{\Ref{margins}} +% \par\See{\longref{margins}} % % \Message % |The caption type was already set to `|\meta{type}|'.| @@ -3535,7 +3464,7 @@ % as well.\par % {\small(You can suppress this warning by using the starred form % |\caption|\-|setup*{type=|\x\ldots|}|.)\par} -% \par\See{\Ref{captionsetup}} +% \par\See{\longref{captionsetup}} % % \Message % |The option `hypcap=true' will be ignored for this|\\ @@ -3554,7 +3483,7 @@ % |\caption|\-|of| command which is causing the warning. % If this is not ok for you, you can set a hyperlink anchor with % |\caption|\-|setup{type=|\x\meta{float type}|}| for yourself. -% \par\See{\Ref{hyperref}\,} +% \par\See{\longref{hyperref}\,} % % \Message % |Unsupported document class (or package) detected,|\\ @@ -3565,7 +3494,7 @@ % (which is responsible for typesetting the caption internally) as well. % This means \thispackage\ will either change the design of captions in an % unwanted way, or it even refuses to work correctly at all. -% \par\See{\Ref{classes} and \Ref{compatibility}} +% \par\See{\longref{classes} and \longref{compatibility}} % % \Message % |Unused \captionsetup[|\meta{type}|].| @@ -3578,7 +3507,7 @@ % of the environment \meta{type} after this line. % (If you want to suppress this warning you can use |\caption|\-|setup*| % instead of |\caption|\-|setup|.) -% \par\See{\Ref{captionsetup}} +% \par\See{\longref{captionsetup}} % % \Message % |Usage of the |\meta{package}| package together with the|\\ @@ -3589,7 +3518,7 @@ % The package \meta{package} is dealing with caption skips as well. % Please decide which one do you actually want to use, \thispackage\ or the % other one, using both can lead to wrong skips above or below the caption. -% \par\See{\Ref{skips}} +% \par\See{\longref{skips}} % % \end{Warnings} % @@ -3604,10 +3533,10 @@ % |Paragraph ended before \@caption was complete.| % \Description % If you want to typeset something special (like a tabular) as caption, -% you need to give an optional argument to |\caption| resp.~|\caption|\-|of| -% for the List of Figures resp.~List of Tables, too, even if you don't +% you need to give an optional argument to |\caption| or |\caption|\-|of| +% for the List of Figures or List of Tables, too, even if you don't % use such list. -% \par\See{\Ref{caption}, \Ref{lists}, and \Ref{hyperref}\,} +% \par\See{\longref{caption}, \longref{lists}, and \longref{hyperref}\,} % % \Message % |\caption outside float.| @@ -3617,7 +3546,7 @@ % If this is what you want to, please use either % |\caption|\-|setup{type=|\x\meta{type}|}| $+$ |\caption| or % |\caption|\-|of|. -% \par\See{\Ref{caption}} +% \par\See{\longref{caption}} % % \Message % |\ContinuedFloat outside float.| @@ -3630,7 +3559,7 @@ % working, but maybe using the |long|\-|table*| environment, which % typesets a |long|\-|table| without incrementing the |table| counter, % if sufficient for you. -% \par\See{\Ref{ContinuedFloat} and \Ref{longtable}} +% \par\See{\longref{ContinuedFloat} and \longref{longtable}} % % \Message % |Continued `|\meta{type}|' after `|\meta{type}|'.| @@ -3638,7 +3567,7 @@ % Continued figures or tables are not allowed to be interrupted by a floating % environment (or |long|\-|table|) of another type, % e.g.~a table between a figure and a continued figure. -% \par\See{\Ref{ContinuedFloat}} +% \par\See{\longref{ContinuedFloat}} % % \Message % |For a successful cooperation we need at least version|\\ @@ -3662,9 +3591,9 @@ % not defined. % \meta{type} should be either `\texttt{figure}' or `\texttt{table}', or % any other floating environment defined with -% |\Declare|\-|Floating|\-|Environment| offered by the \package{newfloat} package, -% |\new|\-|float| offered by the \package{float} package\cite{float}, or -% |\Declare|\-|New|\-|Float|\-|Type| offered by the \package{floatrow} package\cite{floatrow}. +% |\Declare|\-|Floating|\-|Environment| offered by the \pkg{newfloat} package, +% |\new|\-|float| offered by the \pkg{float} package\cite{float}, or +% |\Declare|\-|New|\-|Float|\-|Type| offered by the \pkg{floatrow} package\cite{floatrow}. % % \Message % |Not allowed in longtable* environment.| @@ -3681,12 +3610,12 @@ % incompatible document class or an incompatible package which also % extents the |\caption| command. Leaving the original extension intact, % some features of \thispackage\ are not supported. -% \par\See{\Ref{compatibility}} +% \par\See{\longref{compatibility}} % % \Message % |Only one \caption can be placed in this environment.| % \Description -% Inside the environments offered by the \package{fltpage} and \package{sidecap} +% Inside the environments offered by the \pkg{fltpage} and \pkg{sidecap} % package only \emph{one} caption can be placed. (This is due implementation design.) % % \Message @@ -3696,11 +3625,11 @@ % \Description % \Thispackage\ has already been loaded by some other \LaTeX\ package, % so you can't do that again specifying different options. -% A candidate causing this could be the \package{subfig} package; if this is -% the case, please load \thispackage\ \emph{before} the \package{subfig} +% A candidate causing this could be the \pkg{subfig} package; if this is +% the case, please load \thispackage\ \emph{before} the \pkg{subfig} % package or specify the option |caption=|\x|false| while loading the -% \package{subfig} package. -% \par\See{the \package{subfig} package\cite{subfig} documentation} +% \pkg{subfig} package. +% \par\See{the \pkg{subfig} package\cite{subfig} documentation} % % \Message % |Paragraph ended before \caption@makecurrent was complete.| @@ -3708,9 +3637,9 @@ % |Paragraph ended before \caption@prepareanchor was complete.| % \Description % If you want to typeset multi-paragraph captions, you need to give an -% optional argument to |\caption| resp.~|\caption|\-|of| for the List of -% Figures resp.~List of Tables, too, even if you don't use such list. -% \par\See{\Ref{caption}, \Ref{lists}, and \Ref{hyperref}\,} +% optional argument to |\caption| or |\caption|\-|of| for the List of +% Figures or List of Tables, too, even if you don't use such list. +% \par\See{\longref{caption}, \longref{lists}, and \longref{hyperref}\,} % % \Message % |Something's wrong--perhaps a missing \caption|\\ @@ -3733,7 +3662,7 @@ % Please select either another caption label separator % (e.g.~|labelsep=|\x|colon|) or another caption format % (e.g.~|format=|\x|plain|). -% \par\See{\Ref{formats} resp.~\Ref{KOMA}} +% \par\See{\longref{formats} or \longref{KOMA}} % % \Message % |The package option `caption=false' is obsolete.|\\ @@ -3741,12 +3670,12 @@ % |and do *not* load the caption package anymore.| % \Description % You have specified the option |caption=|\x|false|. This used to be a workaround -% for not using the whole \package{caption} package (leaving the caption stuff +% for not using the whole \pkg{caption} package (leaving the caption stuff % offered by the document class or other packages intact), but keeping the -% \package{subfig} package working. This mechanism is obsolete and not offered -% anymore, please pass this option to the \package{subfig} package instead and +% \pkg{subfig} package working. This mechanism is obsolete and not offered +% anymore, please pass this option to the \pkg{subfig} package instead and % do not load \thispackage\ anymore. -% \par\See{the \package{subfig} package\cite{subfig} documentation} +% \par\See{the \pkg{subfig} package\cite{subfig} documentation} % % \Message % |Undefined boolean value `|\meta{value}|'.| @@ -3760,42 +3689,42 @@ % \Description % You tried to set a caption format which does not exists. % Maybe a typo!? -% \par\See{\Ref{formats}} +% \par\See{\longref{formats}} % % \Message % |Undefined label format `|\meta{name}|'.| % \Description % You tried to set a caption label format which does not exists. % Maybe a typo!? -% \par\See{\Ref{formats}} +% \par\See{\longref{formats}} % % \Message % |Undefined label separator `|\meta{name}|'.| % \Description % You tried to set a caption label separator which does not exists. % Maybe a typo!? -% \par\See{\Ref{formats}} +% \par\See{\longref{formats}} % % \Message % |Undefined list format `|\meta{name}|'.| % \Description % You tried to set a caption list-of format which does not exists. % Maybe a typo!? -% \par\See{\Ref{lists}} +% \par\See{\longref{lists}} % % \Message % |Undefined position `|\meta{name}|'.| % \Description % You tried to set a caption position with an improper value. % Maybe a typo!? -% \par\See{\Ref{skips}} +% \par\See{\longref{skips}} % % \Message % |Undefined style `|\meta{name}|'.| % \Description % You tried to set a caption style which does not exists. % Maybe a typo!? -% \par\See{\Ref{style}} +% \par\See{\longref{style}} % % \Message % |Usage of the `position' option is incompatible|\\ @@ -3806,14 +3735,14 @@ % of \thispackage\ or the mechanism of the other one; using both this way % would lead to wrong skips above or below the caption and is therefore % not supported. -% \par\See{\Ref{skips}} +% \par\See{\longref{skips}} % % \Message % |Undefined text format `|\meta{name}|'.| % \Description % You tried to set a caption text format which does not exists. % Maybe a typo!? -% \par\See{\Ref{formats}} +% \par\See{\longref{formats}} % % \Message % |You can't use both, the (obsolete) caption2 *and*|\\ @@ -3821,7 +3750,7 @@ % \Description % This error message says it all, you simply can't do that. % Please use only \thispackage. -% \par\See{\Ref{caption2}} +% \par\See{\longref{caption2}} % % \end{Warnings} % @@ -3835,49 +3764,49 @@ % % The version $1.0$ was written in 1994 and was offering a handful of options % to customize the look \& feel of the captions. -% Furthermore this version already supported the \package{rotating} and -% \package{subfigure} packages. +% Furthermore this version already supported the \pkg{rotating} and +% \pkg{subfigure} packages. % Version $1.1$ introduced the |center|\-|last| option; -% version $1.2$ added the support of the \package{float} package. -% Version $1,3$ offered a better support of the \package{subfigure} package, +% version $1.2$ added the support of the \pkg{float} package. +% Version $1,3$ offered a better support of the \pkg{subfigure} package, % while version $1.4$ came with the new option |nooneline|. % -% The \package{caption2} package $2.0$ was an experimental side-version of -% the regular \package{caption} package. It was made public as beta test version +% The \pkg{caption2} package $2.0$ was an experimental side-version of +% the regular \pkg{caption} package. It was made public as beta test version % without proper documentation in 1995 because of the strong demand for new -% features and adaptations to additional packages like the \package{longtable} +% features and adaptations to additional packages like the \pkg{longtable} % package. -% Furthermore it offered a revised support of the \package{subfigure} package. +% Furthermore it offered a revised support of the \pkg{subfigure} package. % (An improved version $2.1$ was offered in 2002.) % % In 2003 I finally found some time, so a new regular release $3.0$ -% of the \package{caption} package could be build in cooperation with +% of the \pkg{caption} package could be build in cooperation with % Frank Mittelbach and Steven Cochran. % It was released in December 2003 and superseded the neglected -% \package{caption2} package. +% \pkg{caption2} package. % Main parts were re-written and it provided a complete re-work of % the user interface. -% Furthermore it supported the \package{hyperref}, \package{hypcap}, -% \package{listings}, \package{sidecap}, and \package{supertabular} packages +% Furthermore it supported the \pkg{hyperref}, \pkg{hypcap}, +% \pkg{listings}, \pkg{sidecap}, and \pkg{supertabular} packages % additionally. % % While all the previous versions were designed for usage with the standard -% \LaTeX\ document classes \class{article}, \class{report}, and \class{book}, +% \LaTeX\ document classes \cls{article}, \cls{report}, and \cls{book}, % the current version $3.1$ released in 2007 also supports the \AmS, -% \KOMAScript, \NTG, and \SmF\ document classes, and the \class{beamer} class +% \KOMAScript, \NTG, and \SmF\ document classes, and the \cls{beamer} class % as well. -% Furthermore it was adapted to the \package{french} Babel option, -% the \package{frenchle} \& \package{frenchpro} packages, -% and the \package{floatflt}, \package{fltpage}, \package{picinpar}, -% \package{picins}, \package{setspace}, \package{threeparttable}, -% and \package{wrapfig} packages. +% Furthermore it was adapted to the \pkg{french} Babel option, +% the \pkg{frenchle} \& \pkg{frenchpro} packages, +% and the \pkg{floatflt}, \pkg{fltpage}, \pkg{picinpar}, +% \pkg{picins}, \pkg{setspace}, \pkg{threeparttable}, +% and \pkg{wrapfig} packages. % New options and commands were introduced as well, among other things % |font+|, |figure|\-|within| \& |table|\-|within|, % |list| \& |list|\-|format|, |max|\-|margin| \& |min|\-|margin|, % |\caption|\-|list|\-|entry|, |\Declare|\-|Caption|\-|List|\-|Format|. -% Further benefits are the new compatibility check \see*{\Ref{compatibility}}, -% the new ``hypcap'' feature \see*{\Ref{hyperref}\,}, and the sub-caption -% feature \see*{\package{subcaption} package documentation}. +% Further benefits are the new compatibility check \see*{\longref{compatibility}}, +% the new ``hypcap'' feature \see*{\longref{hyperref}\,}, and the sub-caption +% feature \see*{\pkg{subcaption} package documentation}. % % \iffalse % --------------------------------------------------------------------------- % @@ -3900,7 +3829,7 @@ % % \begin{center}\small % \begin{tabular}{ll} -% \package{caption} \version{1.x} & \package{caption} \version{3.x}\\ +% \pkg{caption} \version{1.x} & \pkg{caption} \version{3.x}\\ % \hline % |normal| & |format=plain|\\ % |hang| & |format=hang|\\ @@ -3927,7 +3856,7 @@ % \end{center} % % Beside the options for setting up the desired font there were also -% the commands |\caption|\-|size| resp.~|\caption|\-|font| and +% the commands |\caption|\-|size| or |\caption|\-|font| and % |\caption|\-|label|\-|font| who could be redefined with % |\re|\-|new|\-|command| and allowed an alternate and more flexible way to % change the font used for captions. @@ -3946,7 +3875,7 @@ % \begin{quote} % |\captionsetup{margin=|\ldots|}|\qquad. % \end{quote} -% \See{\Ref{margins}} +% \See{\longref{margins}} % % For example the old-style code % \begin{quote} @@ -3968,7 +3897,7 @@ % % The quite exotic option |ruled| which allowed a partial usage of % the caption settings for |ruled| floats defined with the -% \package{float} package will be emulated by this version of the +% \pkg{float} package will be emulated by this version of the % caption package, too. % But using this option is not recommended anymore since this % version of \thispackage\ offers a more flexible way @@ -3976,21 +3905,21 @@ % \begin{quote} % |\DeclareCaptionStyle{ruled}{|\ldots|}| % \end{quote} -% resp. +% or % \begin{quote} % |\captionsetup[ruled]{|\ldots|}|\qquad. % \end{quote} -% \SeeUserDefined[, \Ref{captionsetup}, and \Ref{float}] +% \SeeUserDefined[, \longref{captionsetup}, and \longref{float}] % % \subsection{caption2 v\texorpdfstring{$2.x$}{2.x}} % \label{caption2} % -% Although they do very similar stuff, the packages \package{caption} and -% its experimental and now obsolete variant \package{caption2} have a +% Although they do very similar stuff, the packages \pkg{caption} and +% its experimental and now obsolete variant \pkg{caption2} have a % very different implementation design. % Therefore a full compatibility could not be offered. % For that reason you will still find a file called |caption2.sty| in -% this package distribution, so old documents using the \package{caption2} +% this package distribution, so old documents using the \pkg{caption2} % package will still compile fine. % % Newly created documents should use the actual version of @@ -4004,8 +3933,8 @@ % \end{quote} % But some options and commands will not be emulated, so you can get % error messages afterwards. This section will hopefully help you removing -% these errors. If you have problems migrating from \package{caption2} -% to \package{caption} please don't hesitate to send me an e-mail asking +% these errors. If you have problems migrating from \pkg{caption2} +% to \pkg{caption} please don't hesitate to send me an e-mail asking % for help. % % In addition to the obsolete options shown in the last section @@ -4013,7 +3942,7 @@ % % \begin{center}\small % \begin{tabular}{ll} -% \package{caption2} \version{2.x} & \package{caption} \version{3.x}\\ +% \pkg{caption2} \version{2.x} & \pkg{caption} \version{3.x}\\ % \hline % |flushleft| & |justification=raggedright|\\ % |flushright| & |justification=raggedleft|\\ @@ -4023,15 +3952,15 @@ % % Setting the margin for captions was done in \version{2.x} with % \begin{quote}\leavevmode\hbox{% -% |\setcaptionmargin{|\ldots|}| resp. +% |\setcaptionmargin{|\ldots|}| or % |\setcaptionwidth{|\ldots|}|\quad. % }\end{quote} % This was replaced by % \begin{quote}\leavevmode\hbox{% -% |\captionsetup{margin=|\ldots|}| resp. +% |\captionsetup{margin=|\ldots|}| or % |\captionsetup{width=|\ldots|}|\quad. % }\end{quote} -% \See{\Ref{margins}} +% \See{\longref{margins}} % % Setting an indention was done in \version{2.x} with % \begin{quote} @@ -4050,9 +3979,9 @@ % |\oneline|\-|captions|\-|true| (for switching the check on). % This was replaced by % |\caption|\-|setup{single|\-|line|\-|check=|\x|off}| -% resp. +% or % |\caption|\-|setup{single|\-|line|\-|check=|\x|on}|\quad. -% \See{\Ref{justification}} +% \See{\longref{justification}} % % The commands % \begin{quote} @@ -4075,14 +4004,14 @@ % in this version of \thispackage\ the value of |\LT|\-|cap|\-|width| % will be ignored anyway (unless you set it to a different value than the % default one which is |4in|). -% \See{\Ref{longtable}} +% \See{\longref{longtable}} % % \subsection{caption v\texorpdfstring{$3.0$}{3.0}} % \label{caption3} % % \Thispackage\ \version{3.0} did not support any document classes -% other than the standard \LaTeX\ ones: \class{article}, \class{report}, -% and \class{book}. +% other than the standard \LaTeX\ ones: \cls{article}, \cls{report}, +% and \cls{book}. % Therefore the default settings used to be fixed, but now \thispackage{} % supports more classes, therefore they are now set in dependence on the % document class used. @@ -4091,7 +4020,7 @@ % |jus|\-|ti|\-|fi|\-|ca|\-|tion| used to be always |jus|\-|ti|\-|fied|, % it's now still |jus|\-|ti|\-|fied| when using one of the standard document % classes, but |ragged|\-|right| will be used as default format when used -% with the \class{beamer} document class. +% with the \cls{beamer} document class. % % An easy way to select the `old' defaults is using the option % |style=base| when loading \thispackage\ (or later on using |\caption|\-|setup|). @@ -4114,11 +4043,11 @@ % % \begin{Note*} % \Thispackage\ \version{3.0} offered the option |caption=|\x|false|, -% which used to be a workaround for not using the whole \package{caption} package +% which used to be a workaround for not using the whole \pkg{caption} package % (leaving the caption stuff offered by the document class or other packages -% intact), but keeping the \package{subfig} package\cite{subfig} working. +% intact), but keeping the \pkg{subfig} package\cite{subfig} working. % This mechanism is obsolete and not offered anymore, please pass this option -% to the \package{subfig} package instead and do not load \thispackage\ anymore. +% to the \pkg{subfig} package instead and do not load \thispackage\ anymore. % \end{Note*} % % \iffalse @@ -4128,23 +4057,23 @@ % \clearpage % \section{Commands for document class authors} % -% A document class could simply load the \package{caption} package instead +% A document class could simply load the \pkg{caption} package instead % of defining an own variant of |\@make|\-|caption|. However if the author decides % not to do this -- for whatever reason -- there is a second option: % % \NEWfeature{v3.5} % If a document class defines |\caption@document|\-|class|, an adaption to the -% \package{caption} package will be loaded as |caption-|\meta{documentclass}|.sto| -% if the \package{caption} kernel is loaded. +% \pkg{caption} package will be loaded as |caption-|\meta{documentclass}|.sto| +% if the \pkg{caption} kernel is loaded. % The goal of this adaption file is changing the default settings of the -% \package{caption} package so simply loading it (without any package options) +% \pkg{caption} package so simply loading it (without any package options) % will not make any harm to the look at feel of the captions. % This gives end-users the opportunity to fine-tune certain aspects of the % appearance of captions by adding package options, without unwanted % side-effects on other aspects of the appearance. % % In both cases the command |\Set|\-|Caption|\-|Default| -% could be used to adapt the \package{caption} package default values: +% could be used to adapt the \pkg{caption} package default values: % % \DescribeMacro{\SetCaptionDefault} % The command @@ -4194,11 +4123,11 @@ % environment. % % \DescribeMacro{\AtCaptionPackage} -% The adaption file will be loaded when the \package{caption} kernel |caption3.sty| -% will be loaded so the given adaptions will be done for the \package{floatrow} -% and \package{subfig} packages even if the \package{caption} package isn't loaded. +% The adaption file will be loaded when the \pkg{caption} kernel |caption3.sty| +% will be loaded so the given adaptions will be done for the \pkg{floatrow} +% and \pkg{subfig} packages even if the \pkg{caption} package isn't loaded. % -% But some adaptions have to be done for the \package{caption} package, +% But some adaptions have to be done for the \pkg{caption} package, % and for this reason the hook % \begin{quote}|\AtCaptionPackage|\marg{code}\end{quote} % is offered to authors of adaption files. @@ -4206,7 +4135,7 @@ % options will be evaluated. % % For example the adaption file for the \KOMAScript\ document classes -% uses |\At|\-|Begin|\-|Caption| to re-define the \package{caption} package +% uses |\At|\-|Begin|\-|Caption| to re-define the \pkg{caption} package % options |figure|\-|position| and |table|\-|position| to issue a warning % that using these options have little effect here. % @@ -4215,7 +4144,7 @@ % \begin{quote}|\AfterCaptionPackage|\marg{code}\end{quote} % is offered to authors of adaption files as well. % The \meta{code} inside the hook will be executed at the very end of the -% \package{caption} package. +% \pkg{caption} package. % % \iffalse % --------------------------------------------------------------------------- % @@ -4226,7 +4155,7 @@ % % \NEWfeature{v3.5} % \DescribeMacro{\caption@switchdefault} -% If the \package{caption3} kernel package is loaded, the command +% If the \pkg{caption3} kernel package is loaded, the command % \begin{quote}|\caption@switchdefault|\marg{option}\marg{code with \#1}\marg{new value}\end{quote} % is available which saves the old default value of the given option using % \meta{code} and sets the new default value afterwards. @@ -4251,7 +4180,7 @@ % |\caption@restoredefault{font}{\original@captionfont}%|\\ % \end{quote} % -% Since boths commands are defined with |\def| inside the \package{caption3} +% Since boths commands are defined with |\def| inside the \pkg{caption3} % kernel, they could be pre-defined with % \begin{quote} % |\providecommand\caption@switchdefault[3]{}|\\ @@ -4261,7 +4190,7 @@ % prior use. % % Additionally babel language packages should not re-define |\@make|\-|caption| -% if the \package{caption} package is loaded, i.e.~if |\caption@makecaption| is +% if the \pkg{caption} package is loaded, i.e.~if |\caption@makecaption| is % defined. (Unfortunately one cannot use the \LaTeX{} kernel command % |\@if|\-|package|\-|loaded{caption}| here since it's only available in the % document preamble.) @@ -4276,13 +4205,13 @@ % | \caption@switchdefault{|\ldots|}{\babel@save #1}{|\ldots|}%|\\ % | }}| % \end{quote} -% would be wrong since it mixes up the presence of the \package{caption3} kernel -% and the \package{caption} package. -% If the \package{caption3} kernel is loaded this does not mean that the -% \package{caption} package is loaded, too, and the latter one re-defines -% |\caption|, |\@caption|, and |\@make|\-|caption| while the \package{caption3} +% would be wrong since it mixes up the presence of the \pkg{caption3} kernel +% and the \pkg{caption} package. +% If the \pkg{caption3} kernel is loaded this does not mean that the +% \pkg{caption} package is loaded, too, and the latter one re-defines +% |\caption|, |\@caption|, and |\@make|\-|caption| while the \pkg{caption3} % kernel does not re-define any of them, instead it only provides (default) values -% for the \package{caption}, \package{floatrow}, and \package{subfig} package. +% for the \pkg{caption}, \pkg{floatrow}, and \pkg{subfig} package. % % Currently there is build-in support for the following babel language options: % |arabic|, |farsi|, |french|, |hungarian|, |latvian|, and |magyar|. @@ -4305,15 +4234,15 @@ % \begin{quote}\begin{tabular}{ll} % Internal command & Currently used by \\ % \hline -% |\caption@kernel@addcontentsline| & \package{floatrow} \\ -% |\caption@settype| & \package{newfloat} \\ -% |\caption@xlabel| & \package{cleveref} \\ +% |\caption@kernel@addcontentsline| & \pkg{floatrow} \\ +% |\caption@settype| & \pkg{newfloat} \\ +% |\caption@xlabel| & \pkg{cleveref} \\ % \end{tabular}\end{quote} % -% If your package wants to use any other internal command of the \package{caption} package, +% If your package wants to use any other internal command of the \pkg{caption} package, % please write me an e-mail so we can define a proper interface together. % -% The \package{lwarp} package uses a lot of internal commands as well, +% The \pkg{lwarp} package uses a lot of internal commands as well, % but we are working on it on the Git branch \texttt{feature/lwarp}: % \url{https://gitlab.com/axelsommerfeldt/caption/-/tree/feature/lwarp} % @@ -4528,12 +4457,12 @@ % % \changes{v1.0}{1994/10/27}{First release} % \changes{v1.1}{1994/11/03}{New option \texttt{centerlast}} -% \changes{v1.2}{1994/11/28}{Support of the \package{float} package} +% \changes{v1.2}{1994/11/28}{Support of the \pkg{float} package} % \changes{v1.3}{1995/01/09}{Support of \cs{captionlabelfont} in subcaptions} % \changes{v1.4}{1995/01/30}{New option \texttt{nooneline}} % \changes{v1.4b}{1995/04/05}{Bugfix release} % \changes{v3.0}{2003/12/20}{Rewritten; many new commands and features} -% \changes{v3.0d}{2004/11/28}{Split into two packages: \package{caption} \& \package{caption3}} +% \changes{v3.0d}{2004/11/28}{Split into two packages: \pkg{caption} \& \pkg{caption3}} % % \iffalse % --------------------------------------------------------------------------- % @@ -4556,13 +4485,13 @@ % |\caption@@make|, giving the user the possibility to control the look \& feel % of the captions from floating environments like |figure| and |table|. % Furthermore it does similar to the caption stuff coming from other packages -% (like the \package{longtable} or \package{supertabular} package): +% (like the \pkg{longtable} or \pkg{supertabular} package): % Mapping the appropriate internal commands (like |\LT@makecaption| or -% |\ST@caption|) to the ones offered by the \package{caption3} kernel. +% |\ST@caption|) to the ones offered by the \pkg{caption3} kernel. % So you can think of \thispackage\ as a layer package, it % simply provides adaptation layers between the caption stuff coming from % \LaTeXe\ or packages, and the caption stuff offered by the -% \package{caption3} kernel. +% \pkg{caption3} kernel. % % \subsection{Identification} % @@ -4592,28 +4521,29 @@ % % Identify the current version of the package. % \begin{macrocode} -\ProvidesPackage{caption}[2023/03/12 v3.6j Customizing captions (AR)] +\ProvidesPackage{caption}[2023/07/28 v3.6m Customizing captions (AR)] % \end{macrocode} % % \subsection{Loading the kernel} % -% Load a matching version of the \package{caption} kernel. +% Load a matching version of the \pkg{caption} kernel. % \begin{macrocode} -\RequirePackage{caption3}[2022/04/06] % needs v2.4 or newer +\RequirePackage{caption3}[2023/07/28] % needs v2.4c or newer % \end{macrocode} % % \subsection{Check against unknown document classes} % % \begin{macrocode} -\caption@ifbool{documentclass}{}{% - \caption@WarningNoLine{% - Unknown document class (or package),\MessageBreak - standard defaults will be used}} +\caption@ifdocumentclass{unknown}% + {\caption@WarningNoLine{% + Unknown document class (or package),\MessageBreak + standard defaults will be used}}% + {} % \end{macrocode} % % \subsection{Check against incompatible packages} % -% \changes{v3.0p}{2007/04/06}{Check against obsolete \package{caption2} package added} +% \changes{v3.0p}{2007/04/06}{Check against obsolete \pkg{caption2} package added} % \begin{macrocode} \@ifpackageloaded{caption2}{% \caption@Error{% @@ -4624,10 +4554,10 @@ % \end{macrocode} % % Check against incompatible packages which used to work fine with \version{1} of the `caption' package. -% \changes{v3.1}{2007/06/15}{Check against incompatible \package{ftcap} package added} -% \changes{v3.1}{2007/06/15}{Check against incompatible \package{nonfloat} package added} -% \changes{v3.1}{2007/06/18}{Check against incompatible \package{topcapt} package added} -% \changes{v3.6}{2021/01/02}{Check against incompatible packages \package{ftcap}, \package{nonfloat}, and \package{topcapt} revised} +% \changes{v3.1}{2007/06/15}{Check against incompatible \pkg{ftcap} package added} +% \changes{v3.1}{2007/06/15}{Check against incompatible \pkg{nonfloat} package added} +% \changes{v3.1}{2007/06/18}{Check against incompatible \pkg{topcapt} package added} +% \changes{v3.6}{2021/01/02}{Check against incompatible packages \pkg{ftcap}, \pkg{nonfloat}, and \pkg{topcapt} revised} % \begin{macrocode} \caption@AtBeginDocument{% \caption@setincompatible{\@ifpackageloaded{captcont}}{captcont package}% @@ -4816,10 +4746,10 @@ % \subsubsection{fltpage package support options} % % \changes{v3.1}{2007/09/01}{Options `FPlist' \& `FPref' added} -% With these options is controlled where the list-of entry and |\ref| resp. +% With these options is controlled where the list-of entry and |\ref| or % |\pageref| or |\autoref| will link to. % Defaults are |FPlist=caption| and |FPref=figure| which is inconsistent, -% but compatible to the usual behaviour of the \package{fltpage} package. +% but compatible to the usual behaviour of the \pkg{fltpage} package. % \begin{macrocode} \DeclareCaptionOption{FPlist}[1]{\caption@setFPoption{list}{#1}} \DeclareCaptionOption{FPref}[1]{\caption@setFPoption{ref}{#1}} @@ -4839,7 +4769,7 @@ % \subsubsection{hyperref package support options} % % \changes{v3.1}{2007/06/21}{Options `hypcap' \& `hypcapspace' added} -% With |hypcap=off| one can turn the \package{hypcap} support off +% With |hypcap=off| one can turn the \pkg{hypcap} support off % (default is |on|). % \begin{macrocode} \DeclareCaptionOption{hypcap}[1]{\caption@setbool{hypcap}{#1}} @@ -4879,11 +4809,11 @@ % Since we support continued floats and sub-figures it's not an easy task % to manage the figure (and table) counter, especially since previous versions % of the caption package have proven that correcting a counter locally is not a good idea, -% and to make it dependent on the |position=| setting (like the \package{subfig} package does) +% and to make it dependent on the |position=| setting (like the \pkg{subfig} package does) % is not a good idea, either. % % In the past three boolean switches were used to store the flags, but since some -% packages (like the \package{floatrow} and \package{tabu} package) try hard to keep +% packages (like the \pkg{floatrow} and \pkg{tabu} package) try hard to keep % \LaTeX{} counter changes locally under certain circumstances, it seems a good idea to make % these flags a \LaTeX{} counter value. % @@ -5106,7 +5036,7 @@ \caption@if@minipage\@minipagetrue\@minipagefalse}% \caption@end} % \end{macrocode} -% \class{memoir} document class stuff: +% \cls{memoir} document class stuff: % \begin{macrocode} \providecommand\memcaptioninfo[4]{} % \end{macrocode} @@ -5121,7 +5051,7 @@ \caption@ifhypcap\caption@@start\relax \M@gettitle{#2}} % \end{macrocode} -% \class{memoir} document class stuff: +% \cls{memoir} document class stuff: % \begin{macrocode} \providecommand\M@gettitle[1]{} % \end{macrocode} @@ -5129,7 +5059,7 @@ % % \begin{macro}{\caption@nobreak} % \changes{v3.6}{2022/01/06}{This macro added} -% |\caption@nobreak| for use in places where |\@caption| resp.~|\beamer@makecaption| does |\nobreak|. +% |\caption@nobreak| for use in places where |\@caption| or |\beamer@makecaption| does |\nobreak|. % It's defined to do nothing unless the \cls{beamer} document class is used. % \begin{macrocode} \newcommand*\caption@nobreak{} @@ -5154,7 +5084,7 @@ % |\@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 -% and use |\caption@@make| from the \package{caption} kernel to finally +% and use |\caption@@make| from the \pkg{caption} kernel to finally % typeset the caption. % \begin{macrocode} \long\def\caption@makecaption#1#2{% @@ -5173,7 +5103,7 @@ % \changes{v3.3a}{2019/04/02}{This macro added} % |\caption@make@above|\\ % |\caption@make@below|\par -% Typesets the stuff above resp.~below the caption, depending on |\caption@iftop|. +% Typesets the stuff above or below the caption, depending on |\caption@iftop|. % \begin{macrocode} \newcommand*\caption@make@above{% \caption@iftop @@ -5198,7 +5128,7 @@ \newcommand*\caption@redefine{% % \end{macrocode} % Prior to \version{3.4} we only redefined |\caption| and |\@caption| if the current definitions -% were well known, so documents written in the old (\package{caption} package \version{1.x}) days +% were well known, so documents written in the old (\pkg{caption} package \version{1.x}) days % (where |\caption| \& |\@caption| were not redefined by us) still compiled fine. % This used to make sense when introducing \version{3.0} in the year 2003 % but is simply overcautious and especially unwanted by the user nowadays. @@ -5209,14 +5139,14 @@ \let\@caption\caption@@caption % \end{macrocode} % We redefine |\@x|\-|float| so inside floating environments our -% type-specific options will be used, a \package{hyperref} +% type-specific options will be used, a \pkg{hyperref} % anchor will be set etc. % \begin{macrocode} \let\caption@ORI@xfloat\@xfloat \let\@xfloat\caption@xfloat % \end{macrocode} % We redefine |\@xdbl|\-|float|, too, so special options for |figure*| -% resp.~|table*| will be applied here. +% or |table*| will be applied here. % \begin{macrocode} \let\caption@ORI@xdblfloat\@xdblfloat \let\@xdblfloat\caption@xdblfloat @@ -5224,7 +5154,7 @@ % \begin{macrocode} } % \end{macrocode} -% Some packages (like the \package{hyperref} package for example) redefines +% Some packages (like the \pkg{hyperref} package for example) redefines % |\caption| and |\@caption|, too. % So we have to use |\At|\-|Begin|\-|Document| here, so we can make sure % our definition is the one which will be valid at last. @@ -5303,14 +5233,14 @@ % % \begin{macro}{\setcaptiontype} % \changes{v3.2}{2010/10/24}{This macro added} -% \changes{v3.5}{2020/08/24}{Definition method adapted to the \package{caption-light} package} +% \changes{v3.5}{2020/08/24}{Definition method adapted to the \pkg{caption-light} package} % \changes{v3.6}{2022/02/20}{Optional argument added} % \changes{v3.6e}{2022/04/17}{Re-written, task sequence corrected} % \changes{v3.6f}{2022/04/18}{\cs{@ifnextchar} replaced by \cs{kernel@ifnextchar}} % |\setcaptiontype*|\oarg{additional options}\marg{type}\\ % Like |\captionsetup{type=|\meta{type}|}|, but also works if |\caption|\-|setup| was redefined. -% The non-starred version sets a \package{hyperref} anchor additionally -% (if |hypcap=|\-|true| and the \package{hypcap} package is not loaded). +% The non-starred version sets a \pkg{hyperref} anchor additionally +% (if |hypcap=|\-|true| and the \pkg{hypcap} package is not loaded). % \begin{macrocode} \def\setcaptiontype{% \caption@teststar\@setcaptiontype\@gobble\@iden} @@ -5354,7 +5284,7 @@ % (using |\caption@set|\-|options|). % Furthermore we check |\current|\-|group|\-|level| (if avail), and % use the macro |\caption@|(|sub|)|type|\-|hook| (which will be used by our -% \package{float} package support).\par +% \pkg{float} package support).\par % \begin{macrocode} \newcommand*\caption@settype{% \caption@initposition @@ -5401,8 +5331,8 @@ % |\setcaptionsubtype*|\\ % Like |\captionsetup{subtype}|, but also works if |\caption|\-|setup| was redefined. % Sets |\@sub|\-|cap|\-|type| and executes the options associated with it. -% The non-starred version sets a \package{hyperref} anchor additionally -% (if |hypcap=|\-|true| and the \package{hypcap} package is not loaded). +% The non-starred version sets a \pkg{hyperref} anchor additionally +% (if |hypcap=|\-|true| and the \pkg{hypcap} package is not loaded). % \begin{macrocode} \newcommand*\setcaptionsubtype{% \caption@teststar\@setcaptionsubtype\@gobble\@iden} @@ -5478,7 +5408,7 @@ % % \begin{macro}{\caption@checktype} % \changes{v3.4g}{2020/01/02}{This macro definition added} -% \changes{v3.4m}{2020/07/29}{Check of \cs{sf@counterlist} from \package{subfig} package added} +% \changes{v3.4m}{2020/07/29}{Check of \cs{sf@counterlist} from \pkg{subfig} package added} % |\caption@checktype|\marg{type}\marg{code}\par % is used by |\caption@settype| and should either expand the code or issue an error % if the given type is not a proper type, i.e. it is a sub-type instead (either defined by @@ -5494,8 +5424,8 @@ % % \begin{macro}{\caption@checksubtype} % \changes{v3.4g}{2020/01/02}{This macro definition added} -% \changes{v3.4m}{2020/07/29}{Check of \cs{sf@counterlist} from \package{subfig} package added} -% \changes{v3.6c}{2022/04/06}{Check of \cs{sf@counterlist} from \package{subfig} package removed} +% \changes{v3.4m}{2020/07/29}{Check of \cs{sf@counterlist} from \pkg{subfig} package added} +% \changes{v3.6c}{2022/04/06}{Check of \cs{sf@counterlist} from \pkg{subfig} package removed} % \changes{v3.6c}{2022/04/06}{Usage of \cs{caption@subtypesource} added} % |\caption@checksubtype|\marg{type}\marg{code}\par % is used by |\caption@settype| and should either expand the code or issue an error @@ -5593,7 +5523,7 @@ % \changes{v3.1c}{2007/09/22}{Bugfix: Redefinition of \cs{caption@setfloatcapt} removed} % \changes{v3.1e}{2007/10/30}{Better compatibility: Will be defined with \cs{AtBeginDocument} now} % \changes{v3.2}{2010/10/24}{Bugfix 10-10-17: Uses \cs{setcaptiontype} instead of \cs{caption@settype} now} -% \changes{v3.5}{2020/08/24}{Definition method adapted to the \package{caption-light} package} +% \changes{v3.5}{2020/08/24}{Definition method adapted to the \pkg{caption-light} package} % |\captionof|\marg{type}\oarg{lst\_entry}\marg{heading}\\ % |\captionof*|\oarg{lst\_entry}\marg{heading}\par % \Note{This will be defined with \cs{AtBeginDocument} so @@ -5763,8 +5693,8 @@ % \changes{v3.2a}{2011/08/16}{\cs{captionsetup} replaces with \cs{captionbox@settype} and \cs{caption@setposition}} % \changes{v3.3}{2012/04/09}{Adapted to revised version of \cs{caption@withoptargs}} % \changes{v3.3}{2017/03/19}{When used with fixed witdh the content will not be hboxed anymore} -% \changes{v3.3c}{2019/09/01}{Adapted so it could be used by \cs{subfloat} offered by \package{subcaption}} -% \changes{v3.5}{2020/07/28}{Adapted to \package{caption3} v2.0} +% \changes{v3.3c}{2019/09/01}{Adapted so it could be used by \cs{subfloat} offered by \pkg{subcaption}} +% \changes{v3.5}{2020/07/28}{Adapted to \pkg{caption3} v2.0} % \changes{v3.6}{2020/12/24}{Check of argument \meta{inner-pos} added} % A |\parbox| with contents and caption, separated by an invisible |\hrule|. % \begin{macrocode} @@ -5883,14 +5813,14 @@ % \begin{macro}{\continuedfloat} % \changes{v3.0i}{2005/11/12}{Optional argument added} % \changes{v3.0g}{2005/06/28}{Bugfix: \cs{newcounter} replaced by \cs{newcount}} -% \changes{v3.1}{2007/07/02}{Format of \package{hyperref} extension changed} +% \changes{v3.1}{2007/07/02}{Format of \pkg{hyperref} extension changed} % \changes{v3.1}{2007/07/07}{\cs{caption@setoptions} added} % \changes{v3.1g}{2008/01/29}{Starred variant added} % \changes{v3.2f}{2011/12/17}{Undocumented optional argument removed} % \changes{v3.2f}{2011/12/17}{Redefinition of \cs{caption@@@continuedfloat} added} % \changes{v3.3}{2011/12/28}{Uses \cs{ifcaption@ContinuedFloat} now} % \changes{v3.3}{2013/05/01}{Usage of \cs{caption@restorecounters} added} -% \changes{v3.3}{2013/12/16}{Bugfix: Does not use \cs{caption@ContinuedFloat} anymore since this breaks \cs{ContinuedFloat} offered by the \package{subfig} package} +% \changes{v3.3}{2013/12/16}{Bugfix: Does not use \cs{caption@ContinuedFloat} anymore since this breaks \cs{ContinuedFloat} offered by the \pkg{subfig} package} % \changes{v3.4}{2015/09/16}{Renamed from \cs{ContinuedFloat} to \cs{continuedfloat}} % \changes{v3.5f}{2020/10/06}{Usage of \cs{caption@restorecounters} removed} % \changes{v3.6}{2020/12/27}{Check of counter caption type out-sourced to \cs{caption@check@continuedfloat}} @@ -5924,7 +5854,7 @@ \caption@setoptions{continued#1}% \expandafter\l@addto@macro\csname the#1\endcsname\thecontinuedfloat % \end{macrocode} -% When the \package{hyperref} package is used we have the problem +% When the \pkg{hyperref} package is used we have the problem % that the usage of |\continued|\-|float| will create duplicate % hyper links -- |\@current|\-|Href| will be the same for the main float and % the continued ones. So we have to make sure unique labels and references @@ -5934,13 +5864,13 @@ % will be used instead of % \begin{quote}\meta{type}|.|\meta{type \#}\quad\quad.\end{quote} % \par{\small(This implementation follows an idea from Steven Douglas Cochran.)} -% \Note{This does not help if the \package{hyperref} package option \texttt{naturalnames=true} is set.} +% \Note{This does not help if the \pkg{hyperref} package option \texttt{naturalnames=true} is set.} % \begin{macrocode} \@ifundefined{theH#1}{}{% \expandafter\l@addto@macro\csname theH#1\endcsname{% \@alph\c@continuedfloat}}% % \end{macrocode} -% Make sure the options and the \package{hyperref} patch is only applied once (per group). +% Make sure the options and the \pkg{hyperref} patch is only applied once (per group). % \begin{macrocode} \let\caption@@@continuedfloat\@gobble} % \end{macrocode} @@ -5957,8 +5887,8 @@ % \changes{v3.0f}{2005/06/11}{This macro added} % \changes{v3.3}{2013/12/16}{Bugfix: Revised and defined with \cs{def} instead of \cs{newcommand}} % |\caption@ContinuedFloat|\marg{caption type}\par -% This one is used by \cs{ContinuedFloat} offered by the \package{subfig} package. -% Since the \package{subfig} package does its own counter handling we try not to +% This one is used by \cs{ContinuedFloat} offered by the \pkg{subfig} package. +% Since the \pkg{subfig} package does its own counter handling we try not to % interfere by changing couter-related flags. % not interfere with it % \begin{macrocode} @@ -5972,7 +5902,7 @@ % \changes{v3.6}{2021/01/09}{Usage of \cs{flushsubcaptionlistentries} added} % \changes{v3.6}{2022/01/05}{Usage of \cs{caption@Error} replaced by \cs{caption@OutsideFloat}} % |\nextfloat| resets the flags (indicating that the next contents of the floating environment starts here), -% and sets a new \package{hyperref} anchor. +% and sets a new \pkg{hyperref} anchor. % \begin{macrocode} \providecommand*\nextfloat{% \caption@teststar\caption@nextfloat\@firstoftwo\@secondoftwo} @@ -6234,7 +6164,7 @@ % % \begin{macro}{\caption@normalsize} % \changes{v3.1}{2007/05/05}{This macro definition added} -% \changes{v3.5}{2020/07/27}{Adapted to \package{caption3} v2.0} +% \changes{v3.5}{2020/07/27}{Adapted to \pkg{caption3} v2.0} % This one will be used by |\@caption| instead of |\normalsize|. % \begin{macrocode} \newcommand*\caption@normalsize{% @@ -6243,7 +6173,7 @@ % \end{macro} % % \begin{macro}{\caption@setfloatcapt} -% Needed for support of the \package{float} package, where the caption will +% Needed for support of the \pkg{float} package, where the caption will % not be typeset directly, but catched in a |\vbox| called |\@floatcapt| % instead. % \begin{macrocode} @@ -6252,7 +6182,7 @@ % \end{macro} % % \begin{macro}{\caption@makecurrent} -% This one is needed for support of the \package{nameref} and \package{hyperref} package. +% This one is needed for support of the \pkg{nameref} and \pkg{hyperref} package. % \changes{v3.2f}{2012/01/14}{Bugfix: Usage of \cs{caption@gettitle} added} % \begin{macrocode} \newcommand*\caption@makecurrent[1]{\caption@gettitle} @@ -6264,7 +6194,7 @@ % \begin{macro}{\caption@@start} % \begin{macro}{\caption@freezeHref} % \begin{macro}{\caption@defrostHref} -% All these are needed for support of the \package{hyperref} package. +% All these are needed for support of the \pkg{hyperref} package. % \begin{macrocode} \let\caption@makeanchor\@firstofone \let\caption@start\relax @@ -6280,7 +6210,7 @@ % % \begin{macro}{\caption@gettitle} % \changes{v3.1}{2007/05/05}{This macro definition added} -% This one is needed for support of the \package{nameref} package. +% This one is needed for support of the \pkg{nameref} package. % \begin{macrocode} \newcommand\caption@gettitle[1]{% \caption@ifdefined\NR@gettitle @@ -6292,6 +6222,25 @@ % \subsection{Support for sub-captions} % \changes{v3.1f}{2007/11/16}{Support for sub-captions added} % +% \begin{macro}{\subcaptionsetup} +% \changes{v3.6l}{2023/03/22}{This macro definition moved from \pkg{subcaption} package to here} +% |\subcaptionsetup*|\oarg{environment}\marg{options} +% is an abbreviation for |\caption|\-|setup*[sub|\meta{environment}|]|\marg{options}, +% especially |\sub|\-|caption|\-|setup|\marg{options} sets options valid for all sub-captions. +% \begin{macrocode} +\newcommand*\subcaptionsetup{% + \caption@teststar\@subcaptionsetup*{}} +% \end{macrocode} +% \begin{macrocode} +\newcommand*\@subcaptionsetup[1]{% + \@testopt{\captionsetup@sub{#1}}{}} +% \end{macrocode} +% \begin{macrocode} +\def\captionsetup@sub#1[#2]#3{% + \captionsetup#1[sub#2]{#3}} +% \end{macrocode} +% \end{macro} +% % \begin{macro}{\caption@subtypehook} % \changes{v3.1g}{2008/03/20}{Redefinition of \cs{caption@setlist} added} % \changes{v3.1k}{2009/10/09}{Bugfix 09-08-12b: \cs{@makecaption} will now be restored here, too} @@ -6303,14 +6252,14 @@ % \changes{v3.3}{2012/03/15}{Usage of \cs{caption@setbox} added} % \changes{v3.3}{2013/05/01}{Redefinition of \cs{caption@settype} added} % \changes{v3.3}{2013/06/17}{Missing redefinition of \cs{captionlistentry} added} -% \changes{v3.3}{2018/09/06}{Adapted to the \package{chkfloat} package} +% \changes{v3.3}{2018/09/06}{Adapted to the \pkg{chkfloat} package} % \changes{v3.4f}{2020/01/03}{Redefinition of \cs{@caption} added since it was redefined by the \env{threeparttable} environment} -% \changes{v3.5}{2020/07/27}{Adapted to \package{caption3} v2.0} +% \changes{v3.5}{2020/07/27}{Adapted to \pkg{caption3} v2.0} % \changes{v3.6}{2020/09/20}{Handling of flags out-sourced to \cs{caption@stepcounter}} % \changes{v3.6d}{2022/04/17}{Usage of \cs{if@subfloatrow} removed in favour of a re-definition of \env{subfloatrow*}} % Hook, will be used inside \cs{caption@setsubtype}.\par % (Note: If we are inside an |sub|\-|float|\-|row| environment we have to keep -% the |\@make|\-|caption| code of the \package{floatrow} package intact.) +% the |\@make|\-|caption| code of the \pkg{floatrow} package intact.) % \begin{macrocode} \newcommand*\caption@subtypehook{% \ifx\caption\caption@subcaption \else @@ -6416,14 +6365,13 @@ % \changes{v3.2c}{2011/08/19}{Uses \cs{caption@gobble} instead of \cs{@gobble} now} % \changes{v3.3}{2012/01/15}{Debug message added} % \changes{v3.3}{2013/03/10}{A single \cs{protect} replaced by \cs{noexpand}} +% \changes{v3.6m}{2023/07/28}{Redefinition of \cs{label} etc. replaced by \cs{caption@prepareslc}} % Add a pending sub-caption list entry. % \begin{macrocode} \newcommand*\caption@addsubcontentsline[4]{% \caption@Debug{\string\caption@addsubcontentsline{#1}{#2}}% \begingroup - \let\label\caption@gobble - \let\index\caption@gobble - \let\glossary\caption@gobble + \caption@prepareslc \protected@edef\@tempa{\endgroup \noexpand\g@addto@macro\noexpand\caption@subcontentslines{% \noexpand\@namedef{the#2}{\csname the#2\endcsname}% @@ -6458,14 +6406,14 @@ % \subsection{Babel package support} % % \subsubsection{The arabic \& farsi babel option} -% \changes{v3.5}{2020/08/02}{\package{arabic} babel support addded} +% \changes{v3.5}{2020/08/02}{\pkg{arabic} babel support addded} % % \begin{macrocode} \caption@IfBabelArabi{% % \end{macrocode} % -% The \package{arabicore} package re-defines |\@make|\-|caption|, |\fnum@figure|, and |\fnum@table| -% incompatible to the \package{caption} package, therefore we have to restore our resp.~the original definitions here. +% The \pkg{arabicore} package re-defines |\@make|\-|caption|, |\fnum@figure|, and |\fnum@table| +% incompatible to the \pkg{caption} package, therefore we have to restore our or the original definitions here. % % \begin{macrocode} \let\@makecaption\caption@makecaption @@ -6478,8 +6426,8 @@ % \end{macrocode} % % \subsubsection{The frenchle \& frenchpro package} -% \changes{v3.0h}{2005/10/03}{\package{frenchle/pro} package support added} -% \changes{v3.5}{2020/08/01}{\package{frenchle/pro} package support updated} +% \changes{v3.0h}{2005/10/03}{\pkg{frenchle/pro} package support added} +% \changes{v3.5}{2020/08/01}{\pkg{frenchle/pro} package support updated} % % \begin{macrocode} \caption@IfFrenchLe{% @@ -6500,7 +6448,7 @@ % \end{macro} % \end{macro} % -% Since the \package{frenchle} package overwrites |\@make|\-|caption| (within |\GO|\-|french|), +% Since the \pkg{frenchle} package overwrites |\@make|\-|caption| (within |\GO|\-|french|), % we need to save it beforehand and restore it afterwards. % \begin{macrocode} \caption@AtBeginDocument{% @@ -6514,18 +6462,18 @@ % \end{macrocode} % % \subsubsection{The hungarian \& magyar babel option} -% \changes{v3.2}{2009/03/29}{\package{magyar} babel support added} -% \changes{v3.3}{2018/08/26}{\package{magyar} babel support revised} -% \changes{v3.5}{2020/08/02}{\package{magyar} babel support updated} +% \changes{v3.2}{2009/03/29}{\pkg{magyar} babel support added} +% \changes{v3.3}{2018/08/26}{\pkg{magyar} babel support revised} +% \changes{v3.5}{2020/08/02}{\pkg{magyar} babel support updated} % % \begin{macrocode} \caption@IfBabelHungarian{% % \end{macrocode} % -% Since the \package{magyar} package tends to overwrite |\@make|\-|caption| +% Since the \pkg{magyar} package tends to overwrite |\@make|\-|caption| % we save it beforehand and restore it afterwards. % \Note{Currently it will not be overwritten, caused by a side-effect of a -% work-around for the \package{floatrow} package within \package{caption3}.} +% work-around for the \pkg{floatrow} package within \pkg{caption3}.} % % \begin{macrocode} \caption@AtBeginDocument{% @@ -6543,13 +6491,13 @@ % \end{macrocode} % % \subsubsection{The latvian babel option} -% \changes{v3.5}{2020/08/02}{\package{latvian} babel support updated} +% \changes{v3.5}{2020/08/02}{\pkg{latvian} babel support updated} % % \begin{macrocode} \caption@IfBabelLatvian{% % \end{macrocode} % -% The \package{latvian} package re-defines |\@make|\-|caption| incompatible to the \package{caption} package, +% The \pkg{latvian} package re-defines |\@make|\-|caption| incompatible to the \pkg{caption} package, % therefore we have to restore our definitions here. % % \begin{macrocode} @@ -6605,7 +6553,7 @@ % \changes{v3.1}{2007/05/05}{This macro definition added} % \changes{v3.6}{2021/01/17}{Adapted to current implementation of \cs{caption@setmargin}} % This macro will be used by some package support stuff where the usual -% margin setting is not welcome, e.g. in the \package{sidecap} package. +% margin setting is not welcome, e.g. in the \pkg{sidecap} package. % \begin{macrocode} \newcommand*\caption@clearmargin{% \caption@setmargin\z@ @@ -6622,7 +6570,7 @@ % \begin{macro}{\caption@freezetype} % \changes{v3.3}{2013/05/01}{This macro added} % |\caption@freezetype|\marg{type}\par -% Used by the \package{fltpage} \& \package{sidecap} package support. +% Used by the \pkg{fltpage} \& \pkg{sidecap} package support. % \begin{macrocode} \newcommand*\caption@freezetype[1]{% \caption@settype{#1}% @@ -6644,7 +6592,7 @@ % \changes{v3.2c}{2011/08/21}{Revised} % \changes{v3.3}{2013/01/06}{Adapted to new switch \cs{caption@caption} etc.} % |\caption@freeze|\par -% Used by the \package{bicaption} package. +% Used by the \pkg{bicaption} package. % \begin{macrocode} \newcommand*\caption@freeze{% \let\caption@frozen@continuedfloat\continuedfloat @@ -6749,7 +6697,7 @@ % \end{macro} % % \subsubsection{The changepage package} -% \changes{v3.4k}{2020/05/30}{Patch of the \package{changepage} package added} +% \changes{v3.4k}{2020/05/30}{Patch of the \pkg{changepage} package added} % % \begin{macrocode} \caption@IfPackageLoaded{changepage}[2008/07/23 memoir-v3.7k]{% @@ -6817,7 +6765,7 @@ % \end{macrocode} % % \subsubsection{The chkfloat package} -% \changes{v3.3}{2018/09/06}{Support of the \package{chkfloat} package added} +% \changes{v3.3}{2018/09/06}{Support of the \pkg{chkfloat} package added} % % \begin{macrocode} \caption@IfPackageLoaded{chkfloat}[2012/08/19 v0.1]{% @@ -6842,13 +6790,13 @@ % \end{macrocode} % % \subsubsection{The float package} -% \changes{v3.0f}{2005/05/31}{\package{float} package support rewritten and improved} +% \changes{v3.0f}{2005/05/31}{\pkg{float} package support rewritten and improved} % \iffalse % (This is a more straight-ahead implementation, but it only works with \version{1.3} % now, so \version{1.2} is no longer supported. % \fi % -% The \package{float} package usually do not use the \LaTeX\ kernel command +% The \pkg{float} package usually do not use the \LaTeX\ kernel command % |\@caption| to typeset the caption but |\float@caption| instead. % (|\@caption| will only be used if the float is re-styled with % |\restylefloat*|.) @@ -6876,7 +6824,7 @@ % \changes{v3.1k}{2009/10/09}{Bugfix 08-12-05: \cs{color@begin/endgroup} added % to redefinition of \cs{caption@setfloatcapt}} % \changes{v3.4b}{2019/12/16}{Usage of \cs{caption@float@setname} added} -% |\@float@setevery|\marg{float type} is provided by the \package{float} +% |\@float@setevery|\marg{float type} is provided by the \pkg{float} % package; it's called every time a floating environment defined with % |\newfloat| or |\restylefloat| begins. % We use this hook to do some adaptations and to setup the proper caption @@ -6894,7 +6842,7 @@ % contents) to our |position=| setting. % Since the spacing above and below the caption will be done by the float % style and \emph{not} by us this sounds quite useless. But in fact it isn't, -% since some packages based on \thispackage\ (like the \package{subfig} +% since some packages based on \thispackage\ (like the \pkg{subfig} % package) could have an interest for this information and therefore use the % |\caption@iftop| macro we provide in our kernel. Furthermore we need this % information for ourself in |\captionof| which uses |\@makecaption| to @@ -6937,7 +6885,7 @@ % \begin{macrocode} \caption@AtBeginDocument{% % \end{macrocode} -% If it was redefined by the \package{hyperref} package, +% If it was redefined by the \pkg{hyperref} package, % we need to build on the original definition (and not on the redefined one). % \begin{macrocode} \caption@ifdefined\HyOrg@float@makebox @@ -6957,18 +6905,18 @@ % \changes{v3.6i}{2023/02/19}{Uses \cs{def} instead of \cs{let} now} % \LaTeX\ and almost every other packages use % |\|\meta{type}|name| -% to provide a macro for the type resp.~environment name -- for example +% to provide a macro for the type or environment name -- for example % the command |\figure|\-|name| will usually contain the name of the floating % environment |figure|: % \begin{quote} % |\newcommand\figurename{Figure}| % \end{quote} -% But the \package{float} package doesn't follow this common naming +% But the \pkg{float} package doesn't follow this common naming % convention: % For floats defined with |\new|\-|float| it uses |\fname@|\meta{type} instead, % which breaks with our code (and with |\auto|\-|ref| and some other things as % well). -% So we have to map the \package{float} package name to the common one here.\par +% So we have to map the \pkg{float} package name to the common one here.\par % \Note{If the float was not defined with \cs{newfloat} but with % \cs{restylefloat} instead, \cs{fname@}\meta{type} is not defined.} % \begin{macrocode} @@ -7008,7 +6956,7 @@ % \changes{v3.1}{2007/06/10}{This macro added} % |\float@getstyle|\marg{cmd}\marg{type}\par % Determining the float style is not so easy because the only hint -% provided by the \package{float} package is the macro +% provided by the \pkg{float} package is the macro % |\fst@|\meta{float type} which points to the macro which represents the % float style. So for example after % \begin{quote} @@ -7037,7 +6985,7 @@ % \begin{macro}{\float@ifcaption} % \changes{v3.1}{2007/06/23}{This macro added} % |\float@ifcaption|\marg{type}\marg{if-clause}\marg{else-clause}\par -% Here we determine if the user has used |\newfloat| resp.~|\restylefloat|, +% Here we determine if the user has used |\newfloat| or |\restylefloat|, % or |\restylefloat*|. % This is quite easy: If |\@float@c@|\meta{captype} is the same as % |\float@caption|, the user has used |\newfloat| or |\restylefloat|, @@ -7085,7 +7033,7 @@ % \end{macrocode} % % \subsubsection{The floatflt package} -% \changes{v3.1}{2007/06/10}{Support of the \package{floatflt} package added} +% \changes{v3.1}{2007/06/10}{Support of the \pkg{floatflt} package added} % % \begin{macrocode} \caption@IfPackageLoaded{floatflt}[1996/02/27 v1.3]{% @@ -7199,7 +7147,7 @@ % \end{macrocode} % % \subsubsection{The fltpage package} -% \changes{v3.1}{2007/07/22}{Support of the \package{fltpage} package added} +% \changes{v3.1}{2007/07/22}{Support of the \pkg{fltpage} package added} % % \begin{macrocode} \caption@IfPackageLoaded{fltpage}[1998/10/29 v.0.3]{% @@ -7349,11 +7297,11 @@ % \end{macrocode} % % \subsubsection{The hyperref package} -% \changes{v3.0f}{2005/06/11}{Support of the \package{hyperref} package added} +% \changes{v3.0f}{2005/06/11}{Support of the \pkg{hyperref} package added} % \changes{v3.1}{2007/03/09}{Usage of \cs{hyper@makecurrent} instead of -% \cs{theHfigure} as indicator for \package{hyperref} package} -% \changes{v3.2}{2011/07/30}{Test if \package{hyperref} has stopped early revised} -% \changes{v3.2c}{2011/08/24}{Test if \package{hyperref} has stopped early adapted to current version of \package{hyperref} package: Usage of \cs{IfHyperBoolean} added} +% \cs{theHfigure} as indicator for \pkg{hyperref} package} +% \changes{v3.2}{2011/07/30}{Test if \pkg{hyperref} has stopped early revised} +% \changes{v3.2c}{2011/08/24}{Test if \pkg{hyperref} has stopped early adapted to current version of \pkg{hyperref} package: Usage of \cs{IfHyperBoolean} added} % % \begin{macrocode} \caption@IfPackageLoaded{hyperref}[2003/11/30 v6.74m]{% @@ -7387,7 +7335,7 @@ % % \begin{macro}{\caption@makecurrent} % \changes{v3.1l}{2010/01/09}{Adapted to current version of nameref package} -% We redefine |\caption@makecurrent| so a \package{hyperref} label +% We redefine |\caption@makecurrent| so a \pkg{hyperref} label % will be defined inside |\@caption|. % \Note{Will be redefined by \cs{caption@start}.} % \begin{macrocode} @@ -7403,7 +7351,7 @@ % % \begin{macro}{\caption@makeanchor} % \changes{v3.1l}{2010/01/09}{Adapted to the current hyperref package} -% We redefine |\caption@makeanchor| so a \package{hyperref} anchor +% We redefine |\caption@makeanchor| so a \pkg{hyperref} anchor % will be set inside |\@caption|. % \Note{Will be redefined by \cs{caption@start}.} % \begin{macrocode} @@ -7426,7 +7374,7 @@ % \paragraph{The hypcap option} % % \begin{macro}{\if@capstart} -% Like the \package{hypcap} package we define the switch |\if@capstart|, too. +% Like the \pkg{hypcap} package we define the switch |\if@capstart|, too. % \begin{macrocode} \newif\if@capstart % \end{macrocode} @@ -7437,22 +7385,22 @@ % \cs{caption@currentHref} renamed to \cs{hc@currentHref}} % \changes{v3.1}{2007/06/21}{% % This macro renamed from \cs{capstart} to \cs{caption@start} and revised} -% While the \package{hypcap} package defines a macro called |\capstart| +% While the \pkg{hypcap} package defines a macro called |\capstart| % our variant is called |\caption@start| and is controlled by the option % |hypcap=||false|/|true|. % \begin{macrocode} \def\caption@start{\caption@ifhypcap\caption@start@\relax}% \def\caption@start@{% % \end{macrocode} -% Generate the \package{hyperref} label and set the \package{hyperref} anchor, +% Generate the \pkg{hyperref} label and set the \pkg{hyperref} anchor, % usually (if |hypcap=false|) both is done inside |\@caption|. % \begin{macrocode} \caption@makestart\@captype \caption@startanchor\@currentHref % \end{macrocode} -% Prevent |\@caption| from generating a new \package{hyperref} label, +% Prevent |\@caption| from generating a new \pkg{hyperref} label, % use the label we save in |\hc@currentHref| instead. -% (We also support the |@capstart| flag from the \package{hypcap} package.) +% (We also support the |@capstart| flag from the \pkg{hypcap} package.) % \begin{macrocode} \global\@capstarttrue \let\hc@currentHref\@currentHref @@ -7460,7 +7408,7 @@ \global\@capstartfalse \global\let\@currentHref\hc@currentHref}% % \end{macrocode} -% Prevent |\@caption| from generating a \package{hyperref} anchor since this +% Prevent |\@caption| from generating a \pkg{hyperref} anchor since this % has already been done. % \begin{macrocode} \let\caption@makeanchor\@firstofone @@ -7474,10 +7422,10 @@ % \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 +% defines a \pkg{hyperref} anchor inside |\caption@start|.\par % Since we offer |\continuedfloat| the float counter can change between % `now' and |\caption|, i.e., we simply don't know the figure or table counter -% yet and therefore we are not able to generate the `right' \package{hyperref} +% yet and therefore we are not able to generate the `right' \pkg{hyperref} % label. % Two different solutions of this problem came into my mind: % \begin{enumerate} @@ -7511,13 +7459,13 @@ % \changes{v3.1b}{2007/09/17}{Bugfix 06-09-17: We use \cs{caption@anchor} instead of \cs{hyper@@anchor}} % \changes{v3.1g}{2008/03/16}{Warning about TeX mode replaced with debug info} % |\caption@startanchor|\marg{Href} -% sets a \package{hyperref} anchor inside |\caption@start|.\par -% This code was taken from the \package{hypcap} package\cite{hypcap} and adapted. +% sets a \pkg{hyperref} anchor inside |\caption@start|.\par +% This code was taken from the \pkg{hypcap} package\cite{hypcap} and adapted. % \Note{Since \cs{hyper@@anchor}\marg{Href}\csmarg{\string\relax} can cause % a change from vertical mode to horizontal mode (design flaw in -% \package{hyperref} package!?), and since the workaround +% \pkg{hyperref} package!?), and since the workaround % \cs{let}\cs{leavevmode}\cs{relax} which can be found in the -% \package{hypcap} package is not always sufficient +% \pkg{hypcap} package is not always sufficient % (for example with ``Direct pdfmark support'' and \texttt{breaklinks=true}), % we use \cs{caption@anchor} instead of \cs{hyper@@anchor} here.} % \begin{macrocode} @@ -7539,7 +7487,7 @@ % % \begin{macro}{\caption@anchor} % \changes{v3.1c}{2007/10/17}{Workaround 07-10-17: We use \cs{caption@raisedlink} instead of \cs{Hy@raisedlink} now} -% |\caption@anchor|\marg{Href} sets a \package{hyperref} anchor. +% |\caption@anchor|\marg{Href} sets a \pkg{hyperref} anchor. % \begin{macrocode} \newcommand*\caption@anchor[1]{% \ifmeasuring@ \else @@ -7548,7 +7496,7 @@ % \end{macrocode} % \Note{Since \cs{Hy@raisedlink} change \cs{@tempdima} we surrounded it by \cs{ifvmode}, % suppressing ``\texttt{LaTeX Warning: Float too large for page by 1.0pt}'' in \texttt{sideways} floats. -% (This is not necessary since \package{hyperref} \version{6.77}.)} +% (This is not necessary since \pkg{hyperref} \version{6.77}.)} % \begin{macrocode} \ifx\HyperRaiseLinkLength\@tempdima \def\caption@raisedlink#1{\ifvmode#1\else\Hy@raisedlink{#1}\fi}% @@ -7560,7 +7508,7 @@ % % \begin{macro}{\caption@@start} % Will be used by |\caption@freezeHref|. Apart from that we issue a warning -% if we expect a saved \package{hyperref} label coming from |\caption@start|, +% if we expect a saved \pkg{hyperref} label coming from |\caption@start|, % but there isn't any. % \begin{macrocode} \def\caption@@start{% @@ -7572,11 +7520,11 @@ % \end{macro} % % \begin{macro}{\caption@freezeHref} -% Suppress |\caption@start| from generating a \package{hyperref} label and -% setting a \package{hyperref} anchor. Instead if |\@caption| generates a -% \package{hyperref} label, it will be stored in |\caption@currentHref|. +% Suppress |\caption@start| from generating a \pkg{hyperref} label and +% setting a \pkg{hyperref} anchor. Instead if |\@caption| generates a +% \pkg{hyperref} label, it will be stored in |\caption@currentHref|. % Furthermore we need to redefine |\caption@setfloatcapt| so no -% \package{hyperref} anchor will be placed in |\@caption|. +% \pkg{hyperref} anchor will be placed in |\@caption|. % \iffalse % (Since |\caption@setfloatcapt| will be set to |\@firstofone| inside % |\subcaption| there is no need to add its restauration to @@ -7607,7 +7555,7 @@ % \end{macro} % % \begin{macro}{\caption@defrostHref} -% If there is a freezed |\@currentHref|, we set the \package{hyperref} +% If there is a freezed |\@currentHref|, we set the \pkg{hyperref} % anchor here. % \begin{macrocode} \def\caption@defrostHref{% @@ -7623,21 +7571,21 @@ % \end{macrocode} % % \subsubsection{The hypcap package} -% \changes{v3.0f}{2005/06/22}{Support of the \package{hypcap} package added} -% \changes{v3.0l}{2007/02/20}{Adapted to \package{hypcap} \version{1.6}} -% \changes{v3.1e}{2007/11/04}{\package{hypcap} support adapted to \package{hyperref} \version{6.77}} +% \changes{v3.0f}{2005/06/22}{Support of the \pkg{hypcap} package added} +% \changes{v3.0l}{2007/02/20}{Adapted to \pkg{hypcap} \version{1.6}} +% \changes{v3.1e}{2007/11/04}{\pkg{hypcap} support adapted to \pkg{hyperref} \version{6.77}} % % \begin{macrocode} \caption@IfPackageLoaded{hypcap}{% v1.0 \ifx\caption@start\relax \else % hyperref hasn't stopped early % \end{macrocode} % -% If the \package{hypcap} package was loaded, we give up our own +% If the \pkg{hypcap} package was loaded, we give up our own % hyperlink placement algorithm and give the control over the placement -% to the \package{hypcap} package instead. +% to the \pkg{hypcap} package instead. % % \begin{macro}{\capstart} -% \changes{v3.1k}{2009/10/09}{Support of \cs{ifcapstart} (\package{hypcap} package \version{1.10}) added} +% \changes{v3.1k}{2009/10/09}{Support of \cs{ifcapstart} (\pkg{hypcap} package \version{1.10}) added} % We do this simply by mapping |\capstart| to |\caption@start@|, % although our code does not behave exactly like the original one: % The original |\capstart| has an effect on the next |\caption| @@ -7654,7 +7602,7 @@ % % \begin{macro}{\caption@hypcapspace} % Furthermore we map our |\caption@hypcapspace| to |\hypcapspace| -% offered by the \package{hypcap} package. +% offered by the \pkg{hypcap} package. % \begin{macrocode} \caption@set@bool\caption@ifhypcap 1% \renewcommand*\caption@hypcapspace{\hypcapspace}% @@ -7666,7 +7614,7 @@ % \end{macrocode} % % \subsubsection{The listings package} -% \changes{v3.0b}{2004/05/16}{Support of the \package{listings} package added} +% \changes{v3.0b}{2004/05/16}{Support of the \pkg{listings} package added} % % \begin{macrocode} \caption@IfPackageLoaded{listings}[2004/02/13 v1.2]{% @@ -7679,10 +7627,10 @@ % \changes{v3.4c}{2020/01/01}{Ugly workaround for usage in lists added} % \changes{v3.4d}{2020/01/01}{Ugly workaround for usage in lists revised} % \changes{v3.6}{2021/01/04}{Re-definition of \cs{addcontentsline} added} -% To support the \package{listings} package we need to redefine +% To support the \pkg{listings} package we need to redefine % |\lst@Make|\-|Caption| so the original stuff is nested with % |\caption@begin| and |\caption@end| etc.\par -% We set a flag inside the "Init" hook of the \package{listings} package (where adaption of |\line|\-|width| etc.~takes place). +% We set a flag inside the "Init" hook of the \pkg{listings} package (where adaption of |\line|\-|width| etc.~takes place). % \begin{macrocode} \caption@setbool{lst@Init}{0}% \lst@AddToHook{Init}{\caption@setbool{lst@Init}{1}}% @@ -7691,22 +7639,22 @@ \let\caption@ORI@lst@MakeCaption\lst@MakeCaption \renewcommand*\lst@MakeCaption[1]{% #1 is `t' or `b' % \end{macrocode} -% This macro is always called twice by the \package{listings} package (with `t' resp. `b' as parameter), +% This macro is always called twice by the \pkg{listings} package (with `t' or `b' as parameter), % therefore we need an extra group here. % \begin{macrocode} \begingroup % \end{macrocode} -% Inside lists the \package{listings} package ignores the left margin (|\@total|\-|left|\-|margin|) for captions. +% Inside lists the \pkg{listings} package ignores the left margin (|\@total|\-|left|\-|margin|) for captions. % We emulate this behaviour by adding a negative skip which will be typeset ahead of |\caption@box|.\par -% Note: We only need to do this if the ``Init'' hook of the \package{listings} package wasn't called yet. +% Note: We only need to do this if the ``Init'' hook of the \pkg{listings} package wasn't called yet. % \begin{macrocode} \caption@iflst@Init{}{% \edef\caption@lst@leftskip{\noexpand\hskip-\the\@totalleftmargin\noexpand\relax}% \l@addto@macro\caption@beginhook\caption@lst@leftskip}% % \end{macrocode} % We set |position=#1| and if it was set to `top', -% we swap the skips so the default behavior of the \package{listings} package -% will not be changed. (Note that the \package{listings} package has set its +% we swap the skips so the default behavior of the \pkg{listings} package +% will not be changed. (Note that the \pkg{listings} package has set its % own |\abovecaptionskip| \& |\belowcaptionskip| values prior to calling % \cs{lst@MakeCaption}.) % \begin{macrocode} @@ -7725,7 +7673,7 @@ \caption@setoptions{lstlisting}% % \end{macrocode} % If the |position=| is now set to |auto|, we take over the |captionpos=| -% setting from the \package{listings} package. +% setting from the \pkg{listings} package. % \begin{macrocode} \caption@setautoposition{#1}% % \end{macrocode} @@ -7751,7 +7699,7 @@ % % \begin{macro}{\lst@makecaption} % \begin{macro}{\lst@maketitle} -% Wrapper macros for typesetting the |caption=| resp. |title=| value. +% Wrapper macros for typesetting the |caption=| or |title=| value. % \begin{macrocode} \def\lst@makecaption{\caption@starfalse\@makecaption}% \def\lst@maketitle{\caption@startrue\@makecaption\@empty}% @@ -7761,7 +7709,7 @@ % % \begin{macro}{\ext@lstlisting} % \changes{v3.1}{2007/03/03}{This macro added} -% Since the \package{listings} package do not define |\ext@lstlisting| +% Since the \pkg{listings} package do not define |\ext@lstlisting| % but we needed it when |\captionof{lstlisting}| will be done by the end user, % we define it here. % \begin{macrocode} @@ -7822,9 +7770,9 @@ % \changes{v3.6}{2022/01/05}{Usage of \cs{caption@Error} replaced by \cs{caption@OutsideFloat}} % \changes{v3.6g}{2022/04/18}{Adapted to recent version of \pkg{caption3} package} % We redefine |\LT@array| here to get |\captionsetup|\marg{options} working inside |longtable|s. -% \Note{Since the \package{hyperref} package patches \cs{LT@array} as well +% \Note{Since the \pkg{hyperref} package patches \cs{LT@array} as well % and since this only works with the original definition of \cs{LT@array}, -% we have to do this after the \package{hyperref} package, i.e.~\cs{AtBeginDocument}.} +% we have to do this after the \pkg{hyperref} package, i.e.~\cs{AtBeginDocument}.} % \begin{macrocode} \caption@AtBeginDocument{% \let\caption@ORI@LT@array\LT@array @@ -7854,7 +7802,7 @@ % \end{macrocode} % |\continuedfloat| for longtable:\\ % {\small(Commented out, since it's not deeply tested and quite useless anyway)} -% \Note{\package{hyperref} versions $<$ v6.76j uses $2\times$ \cs{hyper@makecurrent}} +% \Note{\pkg{hyperref} versions $<$ v6.76j uses $2\times$ \cs{hyper@makecurrent}} % \begin{macrocode} % \caption@ifhypcap{% % \let\caption@ORI@hyper@makecurrent\hyper@makecurrent @@ -7917,7 +7865,7 @@ % \changes{v3.0e}{2005/05/05}{Bugfix: \cs{captionsetup[longtable]} overrides \cs{LTcapwidth} now} % \changes{v3.0h}{2005/10/07}{\cs{caption@LT@make} introduced} % \changes{v3.3}{2016/02/01}{Support for \cs{bicaption} via \cs{caption@LT@setup} added} -% \changes{v3.3a}{2019/04/02}{Work-around for problem with \package{floatrow} added} +% \changes{v3.3a}{2019/04/02}{Work-around for problem with \pkg{floatrow} added} % \changes{v3.6}{2021/01/09}{Adapted to current interface of \cs{caption@prepare@stepcounter}} % |\LT@makecaption|\marg{cmd}\marg{label}\marg{text}\par % \smallskip @@ -7942,14 +7890,14 @@ \caption@LT@make{% \caption@LT@settype\LTcaptype % \end{macrocode} -% |\caption@LT@setup| is re-defined inside the \package{bicaption} package +% |\caption@LT@setup| is re-defined inside the \pkg{bicaption} package % and contains the preparation of typesetting of the bilingual caption. % \begin{macrocode} \caption@LT@setup % \end{macrocode} % \iffalse % The default |position=| setting for longtables is |top|. -% (This emulates the standard behavior of the \package{longtable} package +% (This emulates the standard behavior of the \pkg{longtable} package % which has no skip above the caption but a skip below it.) % \fi % |position=auto| is a bad idea for longtables, but we do our very best. @@ -7983,9 +7931,9 @@ % \begin{macrocode} \vskip-\ht\strutbox % \end{macrocode} -% Work-around for problem with \package{floatrow}: +% Work-around for problem with \pkg{floatrow}: % The |\below|\-|caption|\-|skip| disturbs the environment in which the caption is actually typeset (by creating extra, unwanted space), -% so we supress this skip if the \package{floatrow} package is loaded. +% so we supress this skip if the \pkg{floatrow} package is loaded. % (This fixes \issue{50}) % \begin{macrocode} \caption@ifdefined\FBifcaptop{% @@ -8042,9 +7990,9 @@ % % \begin{macro}{\flrow@setlist} % \changes{v3.4g}{2020/01/03}{Redefinition of this macro added} -% The \package{floatrow} package uses |\flrow@setlist{{table}{longtable}}| inside its redefinition of |\LT@array| without setting |\@captype| first, +% The \pkg{floatrow} package uses |\flrow@setlist{{table}{longtable}}| inside its redefinition of |\LT@array| without setting |\@captype| first, % and this makes |\captionsetup[table]{name=...}| doomed to fail for longtables (``Undefined control sequence''). -% Unfortunately we cannot easily patch |\LT@array| again to fix this bug in \package{floatrow} since it will be patched |\AtBeginDocument|. +% Unfortunately we cannot easily patch |\LT@array| again to fix this bug in \pkg{floatrow} since it will be patched |\AtBeginDocument|. % Therefore we patch |\flrow@setlist| instead to catch and fix the bug on-the-fly. % \begin{macrocode} \caption@AtBeginDocument{\caption@ifdefined\flrow@setlist@{% @@ -8070,14 +8018,14 @@ % % \begin{macro}{\caption@LT@setup} % \changes{v3.3}{2016/02/01}{This macro added} -% Hook for stuff which prepares the typesetting of the \package{longtable} caption. +% Hook for stuff which prepares the typesetting of the \pkg{longtable} caption. % \begin{macrocode} \providecommand*\caption@LT@setup{} % \end{macrocode} % \end{macro} % % \subsubsection{The picinpar package} -% \changes{v3.1}{2007/06/13}{Support of the \package{picinpar} package added} +% \changes{v3.1}{2007/06/13}{Support of the \pkg{picinpar} package added} % % \begin{macrocode} \caption@IfPackageLoaded{picinpar}{% @@ -8085,7 +8033,7 @@ % % \begin{macro}{\figwindow} % \begin{macro}{\tabwindow} -% The \package{picinpar} package comes with its own caption code +% The \pkg{picinpar} package comes with its own caption code % (|\wincaption|, |\@wincaption|, |\@makewincaption|, \ldots) % so we redefine |\figwindow| \& |\tabwindow| to use |\caption| instead. % \begin{macrocode} @@ -8106,8 +8054,8 @@ % \begin{macro}{\caption@window} % \changes{v3.1c}{2007/10/06}{Bugfix: \cs{caption@clearmargin} added} % Beside calling |\caption@settype| we redefine |\caption@par|\-|box|\-|restore| -% (as in \package{floatflt} \& \package{picins} package support) -% and |\@makecaption| (as in \package{float} package support) here. +% (as in \pkg{floatflt} \& \pkg{picins} package support) +% and |\@makecaption| (as in \pkg{float} package support) here. % \begin{macrocode} \newcommand*\caption@window[1]{% \let\@makecaption\caption@@make @@ -8164,16 +8112,16 @@ % \end{macrocode} % % \subsubsection{The picins package} -% \changes{v3.0j}{2006/01/26}{Support of the \package{picins} package added} +% \changes{v3.0j}{2006/01/26}{Support of the \pkg{picins} package added} % % \begin{macro}{\piccaptiontype} % |\piccaptiontype|\marg{type}\par % We offer this macro for changing the \meta{type} of the caption, so the user -% doesn't have to redefine |\@captype|, as proposed in the \package{picins} +% doesn't have to redefine |\@captype|, as proposed in the \pkg{picins} % documentation. % \Note{We define this macro here so it can be used in the % preamble of the document, even when \thispackage\ was loaded prior to the -% \package{picins} package.} +% \pkg{picins} package.} % \begin{macrocode} \newcommand*\piccaptiontype[1]{\def\@piccaptype{#1}} % \end{macrocode} @@ -8184,7 +8132,7 @@ % \end{macrocode} % % Initial set |\@piccaptype| and undefine |\@captype| which was set to -% |figure| by the \package{picins} package. +% |figure| by the \pkg{picins} package. % \begin{macrocode} \caption@ifundefined\@piccaptype{% \caption@iftype{% @@ -8279,7 +8227,7 @@ % \begin{macro}{\ivparpic} % \changes{v3.3}{2018/12/26}{Bugfix: Missing curly braces added} -% We need to set our \package{hyperref} anchor here. +% We need to set our \pkg{hyperref} anchor here. % Not bullet-proof since we have to redefine |\noindent| here! % \begin{macrocode} \let\caption@ORI@ivparpic\ivparpic @@ -8308,7 +8256,7 @@ % % \begin{macro}{\rotcaption} % \changes{v3.0c}{2004/07/16}{Bugfix: Check for \cs{caption@star} removed} -% \changes{v3.0i}{2005/12/07}{Rewritten, works with \package{hyperref} now} +% \changes{v3.0i}{2005/12/07}{Rewritten, works with \pkg{hyperref} now} % Make |\rotcaption*| work. % \begin{macrocode} \def\rotcaption{\let\@makecaption\@makerotcaption\caption}% @@ -8366,17 +8314,17 @@ % \end{macrocode} % % \subsubsection{The scrextend package} -% \changes{v3.6j}{2023/03/12}{Patch of the \package{scrextend} package added} +% \changes{v3.6j}{2023/03/12}{Patch of the \pkg{scrextend} package added} % % \begin{macro}{\caption@IfKomaPackageLoaded} % \changes{v3.6j}{2023/03/12}{This macro definition added} +% \changes{v3.6k}{2023/03/14}{Check for \cs{scr@caption} replaced by \cs{caption@ifdocumentclass}} % \begin{macrocode} -\caption@ifdefined\scr@caption{% - \long\def\caption@IfKomaPackageLoaded#1[#2]#3#4{% - \caption@InfoNoLine{KOMA-Script #1 package detected} - #3}}{% - \let\caption@IfKomaPackageLoaded\caption@IfPackageLoaded - } +\caption@ifdocumentclass{koma}% + {\long\def\caption@IfKomaPackageLoaded#1[#2]#3#4{% + \caption@InfoNoLine{KOMA-Script #1 package detected}% + #3}}% + {\let\caption@IfKomaPackageLoaded\caption@IfPackageLoaded} % \end{macrocode} % \end{macro} % @@ -8495,7 +8443,7 @@ % \changes{v3.0i}{2006/01/12}{\cs{@listdepth}\cs{z@} added} % \changes{v3.1}{2007/05/05}{Call of \cs{caption@setoptions}\arg{SCfloat} added} % This macro will be called at the end of the environment, here we need to -% setup our stuff before the \package{sidecap} package actually typesets +% setup our stuff before the \pkg{sidecap} package actually typesets % its caption. % \begin{macrocode} \let\caption@ORI@endSC@FLOAT\endSC@FLOAT @@ -8508,7 +8456,7 @@ % to a skip of zero anyway.)\par % Furthermore |\SC@justify| will override the caption justification, if set. % The usage of |\SC@justify| differs from version to version of the -% \package{sidecap} package:\par +% \pkg{sidecap} package:\par % \begin{tabular}{ll} % Version 1.4: & |\SC@justify| is not defined\\ % Version 1.5: & |\SC@justify| is |\relax| when not set\\ @@ -8524,7 +8472,7 @@ % \end{macrocode} % Make the original definition of |\endSC@FLOAT| to use our caption % stuff instead of its own. -% \Note{At this point the \package{sidecap} definition of \cs{caption} is valid, +% \Note{At this point the \pkg{sidecap} definition of \cs{caption} is valid, % not the regular one!} % \begin{macrocode} \let\caption\SC@orig@caption @@ -8555,8 +8503,8 @@ % % \begin{macro}{\sf@ifpositiontop} % \changes{v3.1a}{2007/09/15}{Bugfix 07-09-15: Check for \cs{@captype} added} -% If the \package{subfigure} package is loaded, we map |\sf@ifpositiontop| -% to |\iffiguretopcap| resp. |\iftabletopcap|, so the \package{subfigure} +% If the \pkg{subfigure} package is loaded, we map |\sf@ifpositiontop| +% to |\iffiguretopcap| or |\iftabletopcap|, so the \pkg{subfigure} % \version{2.1} options \opt{figbotcap} etc. will still work. % \begin{macrocode} \def\sf@ifpositiontop{% @@ -8638,7 +8586,7 @@ \caption@setoptions{supertabular}% % \end{macrocode} % The |position=| setting will be overwritten by the -% \package{supertabular} package: If |\topcaption| was used, +% \pkg{supertabular} package: If |\topcaption| was used, % the position will be |top| automatically, |bottom| otherwise. % \begin{macrocode} \caption@setposition{\if@topcaption t\else b\fi}% @@ -8726,7 +8674,7 @@ % \end{macrocode} % % \subsubsection{The threeparttable package} -% \changes{v3.1}{2007/05/08}{Support of the \package{threeparttable} package added} +% \changes{v3.1}{2007/05/08}{Support of the \pkg{threeparttable} package added} % % \begin{macrocode} \caption@IfPackageLoaded{threeparttable}[2003/06/13 v3.0]{% @@ -8759,7 +8707,7 @@ % % \begin{macro}{\caption@setthreeparttabletype} % \changes{v3.6e}{2022/04/17}{Extracted from \cs{threeparttable} and \cs{measuredfigure}} -% \changes{v3.6e}{2022/04/17}{Support for usage inside \env{subtable} resp.~\env{subfigure} added} +% \changes{v3.6e}{2022/04/17}{Support for usage inside \env{subtable} or \env{subfigure} added} % |\caption@setthreeparttabletype|\marg{threepart type}\marg{main type} % \begin{macrocode} \newcommand*\caption@setthreeparttabletype[2]{% @@ -8811,8 +8759,8 @@ % \end{macrocode} % % \subsubsection{The wrapfig package} -% \changes{v3.1}{2007/05/05}{Support of the \package{wrapfig} package added} -% \changes{v3.2d}{2011/11/02}{Support of the \package{wrapfig} package rewritten} +% \changes{v3.1}{2007/05/05}{Support of the \pkg{wrapfig} package added} +% \changes{v3.2d}{2011/11/02}{Support of the \pkg{wrapfig} package rewritten} % % \begin{macrocode} \caption@IfPackageLoaded{wrapfig}[2003/01/31 v3.6]{% @@ -8821,9 +8769,9 @@ % \begin{macro}{\wrapfloat} % \changes{v3.2d}{2011/11/02}{Redefinition of this macro added} % \changes{v3.6}{2020/12/28}{Usage of \cs{@testopt} added} -% First of all we make the \package{wrapfig} package independent from the package -% load order regarding the \package{float} package. -% Since the usage of |\@float@set|\-|every| is missing in the code of the \package{wrapfig} +% First of all we make the \pkg{wrapfig} package independent from the package +% load order regarding the \pkg{float} package. +% Since the usage of |\@float@set|\-|every| is missing in the code of the \pkg{wrapfig} % package (it should be in the redefinition of |\float@re|\-|style|, right after % |\@nameuse{fst@#1}|), we don't use it here, too, % especially since |\wrap|\-|float| will usually not be used when used with re-styled floats. @@ -8865,10 +8813,10 @@ % \begin{macro}{\WF@captionstyhook} % \changes{v3.2d}{2011/11/02}{This macro added} % \changes{v3.2e}{2011/11/10}{Bugfix 11-11-09: float package support fixed} -% We place our \package{hyperref} anchor here, apply the `wrap' options etc. -% Since the usage of |\@float@set|\-|every| is missing in the \package{wrapfig} +% We place our \pkg{hyperref} anchor here, apply the `wrap' options etc. +% Since the usage of |\@float@set|\-|every| is missing in the \pkg{wrapfig} % package we will catch it up here for making the necessary adaptions to the -% \package{float} package. +% \pkg{float} package. % \begin{macrocode} \def\WF@captionstyhook#1{% \let\@captype\@undefined |