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-beamer.dtx | |
parent | 1e45d661b659c3025746d3a41119300ab90d1dcd (diff) |
CTAN sync 202307290300
Diffstat (limited to 'macros/latex/contrib/caption/caption-beamer.dtx')
-rw-r--r-- | macros/latex/contrib/caption/caption-beamer.dtx | 80 |
1 files changed, 26 insertions, 54 deletions
diff --git a/macros/latex/contrib/caption/caption-beamer.dtx b/macros/latex/contrib/caption/caption-beamer.dtx index f18d12437b..88987e1ab4 100644 --- a/macros/latex/contrib/caption/caption-beamer.dtx +++ b/macros/latex/contrib/caption/caption-beamer.dtx @@ -2,7 +2,7 @@ % % This is file `caption-beamer.dtx'. % -% Copyright (C) 2007-2022 Axel Sommerfeldt (axel.sommerfeldt@f-m.fm) +% Copyright (C) 2007-2023 Axel Sommerfeldt (axel.sommerfeldt@f-m.fm) % % -------------------------------------------------------------------------- % @@ -36,29 +36,11 @@ % \iffalse %<*driver> \NeedsTeXFormat{LaTeX2e}[1994/12/01] -\ProvidesFile{caption-beamer.drv}[2022/12/27 v2.0 Implementation of the caption-beamer package] -\hbadness=9999 \newcount\hbadness \hfuzz=100pt % Make TeX shut up. +\ProvidesFile{caption-beamer.drv}[2023/07/10 v2.0 Implementation of the caption-beamer package] %\errorcontextlines=3 % -\documentclass{ltxdoc} -\setlength\parindent{0pt} -\setlength\parskip{\smallskipamount} -% -\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 -% -\usepackage{ifpdf} -\ifpdf - \usepackage{mathptmx,courier} - \usepackage[scaled=0.90]{helvet} - \addtolength\marginparwidth{15pt} -\fi -% -\usepackage{hypdoc} -\ifpdf\usepackage{hypdestopt}\fi -\hypersetup{pdfkeywords={LaTeX, package, caption},pdfstartpage={},pdfstartview={}} +\documentclass{captiondoc} +\hypersetup{pdfkeywords={LaTeX, package, caption-beamer}} % \begin{document} \DocInput{caption-beamer.dtx} @@ -66,23 +48,13 @@ %</driver> % \fi % -% \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 -% \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$} -% % \GetFileInfo{caption-beamer.drv} % \let\docdate\filedate % \let\docversion\fileversion % \GetFileInfo{caption-beamer.sto} % % \title{\texorpdfstring -% {The adaption of the \package{caption} package to the \class{beamer} document class\thanks{%^^A +% {The adaption of the \pkg{caption} package to the \cls{beamer} document class\thanks{%^^A % This adaption has version number \docversion.}}%^^A % {The adaption of the caption package to the beamer document class}} % \author{Axel Sommerfeldt\\ @@ -91,7 +63,7 @@ % \maketitle % % \begin{abstract} -% This package adapts the \package{caption} package to the \class{beamer} document class. +% This package adapts the \pkg{caption} package to the \cls{beamer} document class. % \end{abstract} % % \section*{User manual} @@ -166,13 +138,13 @@ % \setlength{\parskip}{0pt plus 1pt} % \newcommand*\Note[2][Note]{\par{\small\emph{#1:} #2}\par} % -% \changes{v1.1}{2007/03/10}{\class{beamer} class support added} -% \changes{v1.3}{2011/08/06}{\class{beamer} class support revised} -% \changes{v1.5}{2013/04/27}{The \class{beamer} template \texttt{caption label separator} will be used now} -% \changes{v1.7}{2016/05/22}{Re-definition of label format \texttt{simpleMagyar} added to \class{beamer} class support} +% \changes{v1.1}{2007/03/10}{\cls{beamer} class support added} +% \changes{v1.3}{2011/08/06}{\cls{beamer} class support revised} +% \changes{v1.5}{2013/04/27}{The \cls{beamer} template \texttt{caption label separator} will be used now} +% \changes{v1.7}{2016/05/22}{Re-definition of label format \texttt{simpleMagyar} added to \cls{beamer} class support} % \changes{v1.7}{2018/04/15}{Re-definition of label format \texttt{simpleMagyar} revised} -% \changes{v1.7}{2018/05/01}{Definition of \class{beamer} default label font revised} -% \changes{v2.0}{2020/07/27}{\class{beamer} class support adapted to \package{caption3}~\version{2.0}} +% \changes{v1.7}{2018/05/01}{Definition of \cls{beamer} default label font revised} +% \changes{v2.0}{2020/07/27}{\cls{beamer} class support adapted to \pkg{caption3}~\version{2.0}} % % \iffalse % --------------------------------------------------------------------------- % @@ -220,15 +192,15 @@ % \end{macrocode} % % \begin{macro}{\footnote} -% \changes{v1.12b}{2020/07/20}{Special adaption to \class{beamer} added} -% The patch of \cs{footnote} provided by the \package{caption3} package assumes +% \changes{v1.12b}{2020/07/20}{Special adaption to \cls{beamer} added} +% The patch of \cs{footnote} provided by the \pkg{caption3} package assumes % that the optional arguments of \cs{footnote} and \cs{footnotemark} match. -% Since this is not the case in \class{beamer} based documents, -% and since \class{beamer} extents the syntax of \cs{footnote} in a special way, +% Since this is not the case in \cls{beamer} based documents, +% and since \cls{beamer} extents the syntax of \cs{footnote} in a special way, % we need a special patch here.\par % \emph{Note:} For this patch we assume that \cs{footnote} will always end with the usage of % \cs{beamer@footnotetext}. (Unfortunately \cs{footnote} is defined too monolithic -% in \class{beamer} to offer a less dirty patch.) +% in \cls{beamer} to offer a less dirty patch.) % \begin{macrocode} \providecommand*\AtCaptionSingleLineCheck{\g@addto@macro\caption@prepareslc} % for caption v3.5 \let\caption@footnote@ORI\footnote @@ -254,7 +226,7 @@ {#1}{#2}} % \end{macrocode} % -% The \package{magyar} babel package redefines the current label format to a one called |simple|\-|Magyar|, +% The \pkg{magyar} babel package redefines the current label format to a one called |simple|\-|Magyar|, % defined within |\@@magyar@caption|\-|fix| which will be executed |\At|\-|Begin|\-|Document|: % \begin{quote} % |\DeclareCaptionLabelFormat{simpleMagyar}%|\\ @@ -268,7 +240,7 @@ {\caption@labelformat@unnumbered{#1}{#2}}} % \end{macrocode} % \begin{macro}{\@@magyar@captionfix} -% Prevent \package{magyar} from defining this caption label format on its own. +% Prevent \pkg{magyar} from defining this caption label format on its own. % \begin{macrocode} \let\@@magyar@captionfix\relax \AtBeginDocument{\let\@@magyar@captionfix\relax} @@ -299,7 +271,7 @@ % % \section{Fonts} % -% The `default' caption font maps to the beamer settings for `caption' resp. `caption name'. +% The `default' caption font maps to the beamer settings for `caption' or `caption name'. % \begin{macrocode} \DeclareCaptionFont{beamer@font}{% \usebeamerfont*{caption}% @@ -340,8 +312,8 @@ % \end{macrocode} % % \begin{macro}{\figure} -% \changes{v1.1f}{2007/12/17}{This re-definition for \class{beamer} document class added} -% \changes{v1.8d}{2019/09/01}{This re-definition for \class{beamer} document class revised} +% \changes{v1.1f}{2007/12/17}{This re-definition for \cls{beamer} document class added} +% \changes{v1.8d}{2019/09/01}{This re-definition for \cls{beamer} document class revised} % We re-define |figure| so our type-specific options will be used etc. % \begin{macrocode} \expandafter\let\expandafter\caption@beamer@figure @@ -353,8 +325,8 @@ % \end{macro} % % \begin{macro}{\table} -% \changes{v1.1f}{2007/12/17}{This re-definition for \class{beamer} document class added} -% \changes{v1.8d}{2019/09/01}{This re-definition for \class{beamer} document class revised} +% \changes{v1.1f}{2007/12/17}{This re-definition for \cls{beamer} document class added} +% \changes{v1.8d}{2019/09/01}{This re-definition for \cls{beamer} document class revised} % \changes{v1.8e}{2019/10/18}{Bug fixed which was introduced in previous revision} % We re-define |table| as well so our type-specific options will be used etc. % \begin{macrocode} @@ -367,9 +339,9 @@ % \end{macro} % % \begin{macro}{\caption@nobreak} -% \changes{v2.0c}{2022/01/06}{This re-definition for \class{beamer} document class added} +% \changes{v2.0c}{2022/01/06}{This re-definition for \cls{beamer} document class added} % We re-define |\caption@nobreak| to activate the usage of |\nobreak| inside |\caption|. -% |\caption@nobreak| is only available since \version{3.6} of the \package{caption} +% |\caption@nobreak| is only available since \version{3.6} of the \pkg{caption} % package, for this reason we use |\def| instead of |\renewcommand|. % \begin{macrocode} \def\caption@nobreak{\nobreak} |