| 1 |
% \iffalse meta-comment |
| 2 |
% |
| 3 |
% This is file `caption-elsarticle.dtx'. |
| 4 |
% |
| 5 |
% Copyright (C) 2013-2022 Axel Sommerfeldt ([email protected]) |
| 6 |
% |
| 7 |
% -------------------------------------------------------------------------- |
| 8 |
% |
| 9 |
% This work may be distributed and/or modified under the |
| 10 |
% conditions of the LaTeX Project Public License, either version 1.3 |
| 11 |
% of this license or (at your option) any later version. |
| 12 |
% The latest version of this license is in |
| 13 |
% http://www.latex-project.org/lppl.txt |
| 14 |
% and version 1.3 or later is part of all distributions of LaTeX |
| 15 |
% version 2003/12/01 or later. |
| 16 |
% |
| 17 |
% This work has the LPPL maintenance status "maintained". |
| 18 |
% |
| 19 |
% This Current Maintainer of this work is Axel Sommerfeldt. |
| 20 |
% |
| 21 |
% This work consists of the files |
| 22 |
% caption.ins, caption.dtx, caption-light.dtx, caption2.dtx, caption3.dtx, |
| 23 |
% caption-ams-smf.dtx, caption-beamer.dtx, caption-elsarticle.dtx, |
| 24 |
% caption-koma.dtx, caption-memoir.dtx, caption-ntg.dtx, |
| 25 |
% caption-thesis.dtx, bicaption.dtx, ltcaption.dtx, subcaption.dtx, |
| 26 |
% the derived files |
| 27 |
% caption.sty, caption-light.sty, caption2.sty, caption3.sty, |
| 28 |
% caption-ams-smf.sto, caption-beamer.sto, caption-elsarticle.sto, |
| 29 |
% caption-koma.sto, caption-memoir.sto, caption-ntg.sto, |
| 30 |
% caption-thesis.sto, bicaption.sty, ltcaption.sty, subcaption.sty. |
| 31 |
% |
| 32 |
% \fi |
| 33 |
% |
| 34 |
% \CheckSum{3} |
| 35 |
% |
| 36 |
% \iffalse |
| 37 |
%<*driver> |
| 38 |
\NeedsTeXFormat{LaTeX2e}[1994/12/01] |
| 39 |
\ProvidesFile{caption-elsarticle.drv}[2022/12/27 v2.0 Implementation of the caption-elsarticle package] |
| 40 |
%\errorcontextlines=3 |
| 41 |
% |
| 42 |
\documentclass{captiondoc} |
| 43 |
\hypersetup{pdfkeywords={LaTeX, package, caption-elsarticle}} |
| 44 |
% |
| 45 |
\begin{document} |
| 46 |
\DocInput{caption-elsarticle.dtx} |
| 47 |
\end{document} |
| 48 |
%</driver> |
| 49 |
% \fi |
| 50 |
% |
| 51 |
% \GetFileInfo{caption-elsarticle.drv} |
| 52 |
% \let\docdate\filedate |
| 53 |
% \let\docversion\fileversion |
| 54 |
% \GetFileInfo{caption-elsarticle.sto} |
| 55 |
% |
| 56 |
% \title{\texorpdfstring |
| 57 |
% {The adaption of the \pkg{caption} package to the \cls{elsarticle} document class\thanks{%^^A |
| 58 |
% This adaption has version number \docversion.}}%^^A |
| 59 |
% {The adaption of the caption package to the elsarticle document class}} |
| 60 |
% \author{Axel Sommerfeldt\\ |
| 61 |
% \url{https://gitlab.com/axelsommerfeldt/caption}} |
| 62 |
% \date{\docdate} |
| 63 |
% \maketitle |
| 64 |
% |
| 65 |
% \begin{abstract} |
| 66 |
% This package adapts the \pkg{caption} package to the \pkg{elsarticle} document class. |
| 67 |
% \end{abstract} |
| 68 |
% |
| 69 |
% \section*{User manual} |
| 70 |
% |
| 71 |
% This document is describing the code implementation only. The user |
| 72 |
% documentation can be found in |
| 73 |
% \nopagebreak\begin{quote} |
| 74 |
% \begin{tabular}{ll} |
| 75 |
% \href{http://mirror.ctan.org/macros/latex/contrib/caption/caption.pdf}% |
| 76 |
% {\texttt{caption.pdf}} & The caption package documentation \\ |
| 77 |
% \end{tabular} |
| 78 |
% \end{quote} |
| 79 |
% |
| 80 |
% \StopEventually{} |
| 81 |
% \iffalse |
| 82 |
% \clearpage |
| 83 |
% \tableofcontents |
| 84 |
% \fi |
| 85 |
% |
| 86 |
% \iffalse |
| 87 |
% --------------------------------------------------------------------------- % |
| 88 |
% \fi |
| 89 |
% |
| 90 |
% \DoNotIndex{\\,\_,\ ,\@@par} |
| 91 |
% \DoNotIndex{\@bsphack} |
| 92 |
% \DoNotIndex{\@car,\@cdr,\@classoptionslist,\@cons,\@currext,\@currname} |
| 93 |
% \DoNotIndex{\@ehc,\@ehd,\@empty,\@esphack,\@expandtwoargs} |
| 94 |
% \DoNotIndex{\@for,\@firstofone,\@firstoftwo} |
| 95 |
% \DoNotIndex{\@gobble,\@gobblefour,\@gobbletwo,\@hangfrom} |
| 96 |
% \DoNotIndex{\if@minipage,\@ifnextchar,\@ifpackagelater,\@ifpackageloaded} |
| 97 |
% \DoNotIndex{\@ifstar,\@ifundefined,\@latex@error,\@minipagefalse,\@minipagetrue} |
| 98 |
% \DoNotIndex{\@namedef,\@nameuse} |
| 99 |
% \DoNotIndex{\@onlypreamble,\@parboxrestore,\@plus,\@ptionlist} |
| 100 |
% \DoNotIndex{\@removeelement,\@restorepar,\@secondoftwo,\@setminipage,\@setpar} |
| 101 |
% \DoNotIndex{\@tempa,\@tempboxa,\@tempdima,\@tempdimb,\@tempdimc,\@tempb,\@tempc} |
| 102 |
% \DoNotIndex{\@testopt} |
| 103 |
% \DoNotIndex{\@undefined,\@unprocessedoptions,\@unusedoptionlist} |
| 104 |
% \DoNotIndex{\p@,\z@} |
| 105 |
% \DoNotIndex{\active,\addtocounter,\addtolength,\advance,\aftergroup} |
| 106 |
% \DoNotIndex{\baselineskip,\begin,\begingroup,\bfseries,\box} |
| 107 |
% \DoNotIndex{\catcode,\centering,\changes,\csname,\def,\divide,\do,\downarrow} |
| 108 |
% \DoNotIndex{\edef,\else,\empty,\end,\endcsname,\endgraf,\endgroup,\expandafter} |
| 109 |
% \DoNotIndex{\fi,\footnotesize,\global} |
| 110 |
% \DoNotIndex{\hangindent,\hbox,\hfil,\hsize,\hskip,\hspace,\hss} |
| 111 |
% \DoNotIndex{\ifcase,\ifdim,\ifnum,\ifodd,\ifvoid,\ifvmode} |
| 112 |
% \DoNotIndex{\ifx,\ignorespaces,\itshape} |
| 113 |
% \DoNotIndex{\kernel@ifnextchar} |
| 114 |
% \DoNotIndex{\Large,\large,\leavevmode,\leftmargini,\leftskip,\let,\linewidth} |
| 115 |
% \DoNotIndex{\llap,\long,\m@ne,\margin,\mdseries,\message} |
| 116 |
% \DoNotIndex{\newcommand,\newdimen,\newlength,\newline,\newif,\newsavebox} |
| 117 |
% \DoNotIndex{\next,\nobreak,\nobreakspace,\noexpand,\noindent,\numberline} |
| 118 |
% \DoNotIndex{\normalcolor,\normalfont,\normalsize,\or,\par,\parbox,\parfillskip} |
| 119 |
% \DoNotIndex{\parindent,\parskip,\prevdepth,\protect,\protected@edef,\protected@write} |
| 120 |
% \DoNotIndex{\providecommand,\quad} |
| 121 |
% \DoNotIndex{\raggedleft,\raggedright,\relax,\renewcommand,\RequirePackage} |
| 122 |
% \DoNotIndex{\rightskip,\rmfamily} |
| 123 |
% \DoNotIndex{\sbox,\scriptsize,\scshape,\setbox,\setlength,\sffamily,\slshape} |
| 124 |
% \DoNotIndex{\small,\string,\space,\strut} |
| 125 |
% \DoNotIndex{\textheight,\the,\toks@,\typeout,\ttfamily} |
| 126 |
% \DoNotIndex{\unvbox,\uparrow,\upshape,\usebox,\usepackage} |
| 127 |
% \DoNotIndex{\value,\vbox,\vsize,\vskip,\wd,\width,\z@skip} |
| 128 |
% \DoNotIndex{\AtBeginDocument,\AtEndOfPackage,\CurrentOption,\DeclareOption} |
| 129 |
% \DoNotIndex{\ExecuteOptions,\GenericWarning,\IfFileExists,\InputIfFileExists} |
| 130 |
% \DoNotIndex{\NeedsTeXFormat,\MessageBreak} |
| 131 |
% \DoNotIndex{\PackageError,\PackageInfo,\PackageWarning,\PackageWarningNoLine} |
| 132 |
% \DoNotIndex{\PassOptionsToPackage,\ProcessOptions,\ProvidesPackage} |
| 133 |
% |
| 134 |
% \iffalse |
| 135 |
% --------------------------------------------------------------------------- % |
| 136 |
% \fi |
| 137 |
% |
| 138 |
% \setlength{\parskip}{0pt plus 1pt} |
| 139 |
% \newcommand*\Note[2][Note]{\par{\small\emph{#1:} #2}\par} |
| 140 |
% |
| 141 |
% \changes{v1.5}{2013/01/06}{\cls{elsarticle} class support added} |
| 142 |
% \changes{v2.0}{2020/07/27}{\cls{elsarticle} class support adapted to \pkg{caption3}~\version{2.0}} |
| 143 |
% |
| 144 |
% \iffalse |
| 145 |
% --------------------------------------------------------------------------- % |
| 146 |
% \fi |
| 147 |
% |
| 148 |
% \clearpage |
| 149 |
% |
| 150 |
% \iffalse |
| 151 |
%<*package> |
| 152 |
% \fi |
| 153 |
% |
| 154 |
% \section{Identification} |
| 155 |
% |
| 156 |
% \begin{macrocode} |
| 157 |
\NeedsTeXFormat{LaTeX2e}[1994/12/01] |
| 158 |
\ProvidesFile{caption-elsarticle.sto}[2020/08/22 v2.0 Adaption of the caption package to the elsarticle document class (AR)] |
| 159 |
% \end{macrocode} |
| 160 |
% |
| 161 |
% \section{Fonts} |
| 162 |
% |
| 163 |
% The `default' caption size is |\footnotesize|. |
| 164 |
% \begin{macrocode} |
| 165 |
\SetCaptionDefault{font}{footnotesize} |
| 166 |
% \end{macrocode} |
| 167 |
% |
| 168 |
% \iffalse |
| 169 |
%</package> |
| 170 |
% \fi |
| 171 |
% |
| 172 |
% \iffalse |
| 173 |
% --------------------------------------------------------------------------- % |
| 174 |
% \fi |
| 175 |
% |
| 176 |
% \clearpage |
| 177 |
% \Finale |
| 178 |
% |
| 179 |
\endinput |
| 180 |
|