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/ltcaption.dtx | |
parent | 1e45d661b659c3025746d3a41119300ab90d1dcd (diff) |
CTAN sync 202307290300
Diffstat (limited to 'macros/latex/contrib/caption/ltcaption.dtx')
-rw-r--r-- | macros/latex/contrib/caption/ltcaption.dtx | 80 |
1 files changed, 28 insertions, 52 deletions
diff --git a/macros/latex/contrib/caption/ltcaption.dtx b/macros/latex/contrib/caption/ltcaption.dtx index 5d06fb0845..59c54f1519 100644 --- a/macros/latex/contrib/caption/ltcaption.dtx +++ b/macros/latex/contrib/caption/ltcaption.dtx @@ -2,7 +2,7 @@ % % This is file `ltcaption.dtx'. % -% Copyright (C) 2007-2020 Axel Sommerfeldt (axel.sommerfeldt@f-m.fm) +% Copyright (C) 2007-2023 Axel Sommerfeldt (axel.sommerfeldt@f-m.fm) % % -------------------------------------------------------------------------- % @@ -36,49 +36,25 @@ % \iffalse %<*driver> \NeedsTeXFormat{LaTeX2e}[1994/12/01] -\ProvidesFile{ltcaption.drv}[2013/06/01 v1.4 This package fixes caption problems with other-than-centered aligned longtables] -\hbadness=9999 \newcount\hbadness \hfuzz=48pt % Make TeX shut up. +\ProvidesFile{ltcaption.drv}[2023/07/10 v1.4 This package fixes caption problems with other-than-centered aligned longtables] % -\documentclass{ltxdoc} -\setlength\parindent{0pt} -\setlength\parskip{\smallskipamount} +\documentclass{captiondoc} +\hypersetup{pdfkeywords={LaTeX, package, ltcaption}} % -\usepackage{ifpdf} -\ifpdf - \usepackage{mathptmx,courier} - \usepackage[scaled=0.90]{helvet} -% \addtolength\marginparwidth{15pt} -\fi -% -\usepackage[bottom]{footmisc} \usepackage{longtable} \makeatletter\let\LT@makecaption@ORI\LT@makecaption\makeatother % -\usepackage{hypdoc} -\ifpdf\usepackage{hypdestopt}\fi -\hypersetup{pdfkeywords={LaTeX, package, ltcaption},pdfstartpage={},pdfstartview={}} -% \usepackage{ltcaption}[2007/09/01] %\usepackage[LTcapwidthtotable]{fr-longtable} % -\DeclareRobustCommand{\KOMAScript}{\textsf{K\kern.05em O\kern.05em% - M\kern.05em A\kern.1em-\kern.1em Script}} -% \begin{document} \DocInput{ltcaption.dtx} \end{document} %</driver> % \fi % -% \newcommand*\purerm[1]{{\upshape\mdseries\rmfamily #1}} -% \newcommand*\puresf[1]{{\upshape\mdseries\sffamily #1}} -% \newcommand*\purett[1]{{\upshape\mdseries\ttfamily #1}} -% \let\class\puresf \let\package\puresf -% \let\env\purett \let\opt\purett -% -% \def\thispackage{the \package{ltcaption} package} -% \def\Thispackage{The \package{ltcaption} package} -% \newcommand*\version[2][]{v$#2$} +% \def\thispackage{the \pkg{ltcaption} package} +% \def\Thispackage{The \pkg{ltcaption} package} % % \GetFileInfo{ltcaption.drv} % \let\docdate\filedate @@ -110,7 +86,7 @@ % This is sufficient for centered longtables, but for left or right aligned longtables % this results in captions moved into the left or right page margin. % -% To solve this problem just include this package \emph{after} the \package{longtable} +% To solve this problem just include this package \emph{after} the \pkg{longtable} % package\cite{longtable}, e.g.: % \begin{quote} % |\usepackage{longtable,ltcaption}| @@ -128,7 +104,7 @@ % When \thispackage\ is loaded it will be set to |\abovecaptionskip| which % usually represents the skip between caption and contents in floating % environments. -% (Without this package, the \package{longtable} package uses |\baselineskip| here.) +% (Without this package, the \pkg{longtable} package uses |\baselineskip| here.) % % \DescribeMacro{\LTcapleft} % \DescribeMacro{\LTcapright} @@ -142,23 +118,23 @@ % |\LTcapleft| \& |\LTcapright|. % % \emph{Note:} -% If \thispackage\ will be used with one of the \package{NTG} document +% If \thispackage\ will be used with one of the \pkg{NTG} document % classes\cite{NTGclasses}, |\CaptionLabelFont| \& |\CaptionTextFont| will % not only be used for |figure| \& |table| captions, but for |longtable| % captions as well. % % \emph{Note:} % These lengths \& commands do not work when \thispackage\ is used with one -% of the \KOMAScript\ document classes \class{scrartcl}, \class{scrreprt}, or \class{scrbook}~\cite{KOMAScript}, -% or used with the \class{memoir} document class~\cite{memoir}. -% The \KOMAScript\ resp.~\class{memoir} settings for captions are used instead. -% Same with the \package{caption} package which also uses its own options +% of the \KOMAScript\ document classes \cls{scrartcl}, \cls{scrreprt}, or \cls{scrbook}~\cite{KOMAScript}, +% or used with the \cls{memoir} document class~\cite{memoir}. +% The \KOMAScript\ or \cls{memoir} settings for captions are used instead. +% Same with the \pkg{caption} package which also uses its own options % and settings. % % \subsection{Bonus features} % % \DescribeMacro{\LTcaptype} -% As a bonus feature this package patches the \package{longtable} package +% As a bonus feature this package patches the \pkg{longtable} package % so |\LTcaptype| will be used internally instead of the fixed caption type % `table'. So for example this code snipped: % \begin{quote} @@ -279,7 +255,7 @@ % % \begin{minipage}{\linewidth} % With \thispackage\ and |\LTcapleft=0pt| -% resp. |\LTcapright=0pt|: +% or |\LTcapright=0pt|: % % \noindent\rule{\textwidth}{1pt} % @@ -306,7 +282,7 @@ % % \begin{minipage}{\linewidth} % With \thispackage\ and |\LTcapleft=\tabcolsep|\\ -% resp. |\LTcapright=\tabcolsep|: +% or |\LTcapright=\tabcolsep|: % % \noindent\rule{\textwidth}{1pt} % @@ -502,7 +478,7 @@ % \end{macro} % % \begin{macro}{\ext@lstlisting} -% 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 |\renewcommand\LTcaptype{lstlisting}| was done % by the end user, we define it here. % \begin{macrocode} @@ -513,14 +489,14 @@ % \end{macro} % % To save \TeX\ memory some stuff will not be defined if the -% \package{caption} package is loaded. +% \pkg{caption} package is loaded. % % \begin{macrocode} \@ifpackageloaded{caption}{}{% % \end{macrocode} % % \changes{v1.1}{2007/04/20}{The skips will not be defined if the -% \package{caption} package is loaded} +% \pkg{caption} package is loaded} % % \begin{macro}{\LTcapskip} % \changes{v1.2}{2007/03/28}{This skip added} @@ -548,7 +524,7 @@ % % \begin{macro}{\CaptionLabelFont} % \begin{macro}{\CaptionTextFont} -% These commands are provided by the \package{NTG} document classes. +% These commands are provided by the \pkg{NTG} document classes. % To make this package work with other document classes as well, % we need to define |\Caption|\-|Label|\-|Font| \& |\Caption|\-|Text|\-|Font| here. % \begin{macrocode} @@ -575,16 +551,16 @@ % \changes{v1.1a}{2008/03/21}{Improved redefinition of \cs{refstepcounter} etc.} % \changes{v1.4b}{2020/05/30}{Re-definition of \cs{captionnewline} added} % We insert our stuff into the definition of |\LT@array| here. -% Since the \package{hyperref} package patches |\LT@array| as well +% Since the \pkg{hyperref} package patches |\LT@array| as well % and since this only works with the original definition of |\LT@array|, -% we have to do this after the \package{hyperref} package, +% we have to do this after the \pkg{hyperref} package, % i.e. |\AtBeginDocument|. % \begin{macrocode} \@ifundefined{caption@AtBeginDocument}\AtBeginDocument\caption@AtBeginDocument{% \let\ltcaption@ORI@LT@array\LT@array \renewcommand*\LT@array{% % \end{macrocode} -% We modify |\ref|\-|step|\-|counter| resp.~|\H@ref|\-|step|\-|counter| and +% We modify |\ref|\-|step|\-|counter| or |\H@ref|\-|step|\-|counter| and % |\hyper@make|\-|current|, so |\LT|\-|cap|\-|type| is used instead of |table|. % \begin{macrocode} \let\caption@LT@refstepcounter\refstepcounter @@ -650,7 +626,7 @@ % % \begin{macro}{\LT@makecaption} % \changes{v1.1}{2007/04/20}{\cs{LT@@makecaption} added} -% \changes{v1.1}{2007/06/27}{Adapted to the \package{floatrow} package by Olga Lapko} +% \changes{v1.1}{2007/06/27}{Adapted to the \pkg{floatrow} package by Olga Lapko} % \changes{v1.2}{2007/03/28}{Uses \cs{LTcapskip} instead of \cs{baselineskip} now} % \changes{v1.3}{2011/09/12}{Usage of \cs{CaptionLabelSeparator} added} % |\LT@makecaption|\marg{cmd}\marg{label}\marg{text}\par @@ -670,7 +646,7 @@ % \endgraf\vskip\baselineskip}% % \hss}}} % \end{verbatim}%^^A -% Our code:\footnote{Adapted to the \package{floatrow} package by Olga Lapko} +% Our code:\footnote{Adapted to the \pkg{floatrow} package by Olga Lapko} % \begin{macrocode} \renewcommand\LT@makecaption[3]{% \LT@@makecaption{% @@ -702,8 +678,8 @@ \hskip\LTright \fi}}} % \end{macrocode} -% This one will be usually defined by the \package{fr-longtable} package, -% which is part of the \package{floatrow} package\cite{floatrow}: +% This one will be usually defined by the \pkg{fr-longtable} package, +% which is part of the \pkg{floatrow} package\cite{floatrow}: % \begin{macrocode} \AtBeginDocument{\providecommand*\FBifLTcapwidth[1]{}} % \end{macrocode} @@ -715,7 +691,7 @@ \newcommand\caption@LT@make[1]{% \noalign{\caption@LT@config}% % \end{macrocode} -% Note: If used with the \package{array} package |\caption@LTfmt| needs +% Note: If used with the \pkg{array} package |\caption@LTfmt| needs % to be expanded, therefore we need some |\expandafter| here. % \begin{macrocode} \expandafter\LT@mcol\expandafter\LT@cols\expandafter{\caption@LTfmt}{% |