| 1 |
%% |
| 2 |
%% This is file `newfloat.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% newfloat.dtx (with options: `package') |
| 8 |
%% |
| 9 |
%% Copyright (C) 2011-2023 Axel Sommerfeldt ([email protected]) |
| 10 |
%% |
| 11 |
%% https://gitlab.com/axelsommerfeldt/newfloat |
| 12 |
%% |
| 13 |
%% -------------------------------------------------------------------------- |
| 14 |
%% |
| 15 |
%% This work may be distributed and/or modified under the |
| 16 |
%% conditions of the LaTeX Project Public License, either version 1.3 |
| 17 |
%% of this license or (at your option) any later version. |
| 18 |
%% The latest version of this license is in |
| 19 |
%% http://www.latex-project.org/lppl.txt |
| 20 |
%% and version 1.3 or later is part of all distributions of LaTeX |
| 21 |
%% version 2003/12/01 or later. |
| 22 |
%% |
| 23 |
%% This work has the LPPL maintenance status "unmaintained". |
| 24 |
%% |
| 25 |
%% This work consists of the files newfloat.ins, newfloat.dtx, |
| 26 |
%% and the derived file newfloat.sty. |
| 27 |
%% |
| 28 |
\NeedsTeXFormat{LaTeX2e}[1994/12/01] |
| 29 |
\providecommand\DeclareRelease[3]{} |
| 30 |
\providecommand\DeclareCurrentRelease[2]{} |
| 31 |
\DeclareRelease{v1.0}{2011-10-30}{newfloat_v1.0.sty} |
| 32 |
\DeclareRelease{v1.1}{2013-05-12}{newfloat_v1.1.sty} |
| 33 |
\DeclareCurrentRelease{v1.2}{2023-10-01} |
| 34 |
\ProvidesPackage{newfloat}[2023/10/01 v1.2 Defining new floating environments (AR)] |
| 35 |
\newcommand*\newfloat@Info[1]{% |
| 36 |
\PackageInfo{newfloat}{#1}} |
| 37 |
\newcommand*\newfloat@InfoNoLine[1]{% |
| 38 |
\newfloat@Info{#1\@gobble}} |
| 39 |
\newcommand*\newfloat@Warning[1]{% |
| 40 |
\PackageWarning{newfloat}{#1}} |
| 41 |
\newcommand*\newfloat@WarningNoLine[1]{% |
| 42 |
\newfloat@Warning{#1\@gobble}} |
| 43 |
\newcommand*\newfloat@Error[1]{% |
| 44 |
\PackageError{newfloat}{#1}\newfloat@eh} |
| 45 |
\newcommand*\newfloat@eh{% |
| 46 |
If you do not understand this error, please take a closer look\MessageBreak |
| 47 |
at the documentation of the `newfloat' package.\MessageBreak\@ehc} |
| 48 |
\RequirePackage{keyval}[1997/11/10] |
| 49 |
\newcommand*\newfloat@def[2]{% |
| 50 |
\newfloat@ifundefined{#1}{% |
| 51 |
\@namedef{#1}{#2}}} |
| 52 |
\newcommand*\newfloat@let[2]{% |
| 53 |
\newfloat@ifundefined{#1}{% |
| 54 |
\expandafter\let\csname #1\endcsname#2}} |
| 55 |
\newcommand*\newfloat@ifundefined[2]{% |
| 56 |
\@ifundefined{#1}{#2}{% |
| 57 |
\newfloat@Info{% |
| 58 |
\expandafter\string\csname#1\endcsname\space is already defined}}} |
| 59 |
\newcommand*\DeclareFloatingEnvironment{% |
| 60 |
\@testopt\@DeclareFloatingEnvironment{}} |
| 61 |
\@onlypreamble\DeclareFloatingEnvironment |
| 62 |
\def\@DeclareFloatingEnvironment[#1]#2{% |
| 63 |
\newfloat@Info{New float `#2' with options `#1'}% |
| 64 |
\newfloat@ifundefined{c@#2}{\newcounter{#2}}% |
| 65 |
\@ifundefined{c@float@type}% from float package |
| 66 |
{\@ifundefined{c@newflo@tctr}% from memoir document class |
| 67 |
{\ifdefined\newfloat@ftype \else |
| 68 |
\newcount\newfloat@ftype |
| 69 |
\newfloat@ftype=8\relax |
| 70 |
\fi |
| 71 |
\expandafter\xdef\csname ftype@#2\endcsname{\the\newfloat@ftype}% |
| 72 |
\advance\newfloat@ftype\newfloat@ftype}% |
| 73 |
{\expandafter\edef\csname ftype@#2\endcsname{\the\c@newflo@tctr}% |
| 74 |
\advance\c@newflo@tctr \c@newflo@tctr}}% |
| 75 |
{\expandafter\edef\csname ftype@#2\endcsname{\the\value{float@type}}% |
| 76 |
\addtocounter{float@type}{\value{float@type}}}% |
| 77 |
\newfloat@Info{float type `#2'=\@nameuse{ftype@#2}}% |
| 78 |
\newfloat@def{fnum@#2}% |
| 79 |
{\@nameuse{#2name}\nobreakspace\@nameuse{the#2}% |
| 80 |
\ifdefined\autodot\expandafter\autodot\fi}% |
| 81 |
\newfloat@capitalize\newfloat@Type{#2}% |
| 82 |
\newfloat@let{#2name}{\newfloat@Type}% \caption naming |
| 83 |
\newfloat@def{#2autorefname}{\@nameuse{#2name}}% \autoref naming (hyperref) |
| 84 |
\newfloat@def{fleg#2}{\@nameuse{#2name}}% \legend naming (memoir) |
| 85 |
\newfloat@ifundefined{flegtoc#2}{\@namedef{flegtoc#2}##1{}}% |
| 86 |
\ifcsname @tufte@float\endcsname |
| 87 |
\newenvironment{#2}[1][htbp]% |
| 88 |
{\begin{@tufte@float}[{##1}]{#2}{}}% |
| 89 |
{\end{@tufte@float}}% |
| 90 |
\newenvironment{#2*}[1][htbp]% |
| 91 |
{\begin{@tufte@float}[{##1}]{#2}{star}}% |
| 92 |
{\end{@tufte@float}}% |
| 93 |
\else |
| 94 |
\@ifclassloaded{beamer}{% |
| 95 |
\newenvironment{#2}[1][]{\beamer@float{#2}}{\end@beamer@float}% |
| 96 |
}{% |
| 97 |
\newenvironment{#2}{\@float{#2}}{\end@float}% |
| 98 |
\newenvironment{#2*}{\@dblfloat{#2}}{\end@dblfloat}% |
| 99 |
}% |
| 100 |
\fi |
| 101 |
\newfloat@def{listof#2}{\newfloat@listof{#2}}% |
| 102 |
\newfloat@def{listof#2s}{\@nameuse{listof#2}}% |
| 103 |
\newfloat@def{listof#2es}{\@nameuse{listof#2s}}% |
| 104 |
\newfloat@def{newfloat@listof#2@hook}{}% |
| 105 |
\ifdefined\l@figure |
| 106 |
\newfloat@let{l@#2}{\l@figure}% |
| 107 |
\else |
| 108 |
\newfloat@def{l@#2}{\@dottedtocline{1}{1.5em}{2.3em}}% |
| 109 |
\fi |
| 110 |
\edef\newfloat@tempa{List of \newfloat@Type s}% |
| 111 |
\newfloat@let{list#2name}{\newfloat@tempa}% |
| 112 |
\expandafter\let\csname fst@#2\endcsname\@undefined |
| 113 |
\newfloat@ifundefined{fps@#2}{\newfloat@setplacement{#2}{tbp}}% |
| 114 |
\newfloat@ifundefined{ext@#2}{\newfloat@setfileext{#2}{lo#2}}% |
| 115 |
\newfloat@setoptions*{#2}{#1}% |
| 116 |
\@expandtwoargs\newfloat@announce{#2}{\@nameuse{ext@#2}}% |
| 117 |
\@ifnextchar[\newfloat@DFE@setname\relax} |
| 118 |
\@onlypreamble\@DeclareFloatingEnvironment |
| 119 |
\def\newfloat@DFE@setname[#1]{% |
| 120 |
\KV@@newfloat@name{#1}% |
| 121 |
\@ifnextchar[\newfloat@DFE@setlistname\relax} |
| 122 |
\@onlypreamble\newfloat@DFE@setname |
| 123 |
\def\newfloat@DFE@setlistname[#1]{% |
| 124 |
\KV@@newfloat@listname{#1}} |
| 125 |
\@onlypreamble\newfloat@DFE@setlistname |
| 126 |
\newcommand*\newfloat@capitalize[2]{% |
| 127 |
\edef\newfloat@tempa{\gdef\noexpand#1{\@car#2\@nil}}% |
| 128 |
\uppercase\expandafter{\newfloat@tempa}% |
| 129 |
\edef\newfloat@tempa{% |
| 130 |
\noexpand\g@addto@macro\noexpand#1{\@cdr#2\@nil}}% |
| 131 |
\newfloat@tempa} |
| 132 |
\newcommand*\newfloat@listof[1]{% |
| 133 |
\@ifstar |
| 134 |
{\newfloat@list@of{#1}*}% |
| 135 |
{\newfloat@list@of{#1}\relax}} |
| 136 |
\newcommand*\newfloat@list@of[1]{% |
| 137 |
\@expandtwoargs\newfloat@list@of@{#1}{\newfloat@ext{#1}}} |
| 138 |
\newcommand*\newfloat@list@of@[3]{% |
| 139 |
\begingroup |
| 140 |
\expandafter\let\expandafter\listfigurename\csname list#1name\endcsname |
| 141 |
\def\ext@figure{#2}% |
| 142 |
\let\newfloat@starttoc\@starttoc |
| 143 |
\def\@starttoc##1{\newfloat@starttoc{#2}}% |
| 144 |
\let\newfloat@listoftoc\listoftoc |
| 145 |
\def\listoftoc##1{\newfloat@listoftoc{#2}}% |
| 146 |
\@nameuse{newfloat@listof#1@hook}% |
| 147 |
\listoffigures#3% |
| 148 |
\endgroup} |
| 149 |
\newcommand*\newfloat@setoptions{% |
| 150 |
\@ifstar |
| 151 |
{\newfloat@@setoptions\@firstofone}% |
| 152 |
{\newfloat@@setoptions\@gobble}} |
| 153 |
\newcommand*\newfloat@@setoptions[3]{% |
| 154 |
\let\newfloat@within@value\@undefined |
| 155 |
\let\newfloat@chapterlistsgaps@value\@undefined |
| 156 |
#1{\KV@@newfloat@within\newfloat@within@default}% set default value for new floats |
| 157 |
\def\newfloat@type{#2}% |
| 158 |
\setkeys{@newfloat}{#3}% |
| 159 |
\ifx\newfloat@within@value\@undefined \else |
| 160 |
\newfloat@setoption{within}\newfloat@within@value |
| 161 |
\fi |
| 162 |
\ifx\newfloat@chapterlistsgaps@value\@undefined \else |
| 163 |
\newfloat@setoption{chapterlistsgaps}\newfloat@chapterlistsgaps@value |
| 164 |
\fi} |
| 165 |
\newcommand*\newfloat@within@default{% |
| 166 |
\ifcsname c@chapter\endcsname chapter\else none\fi} |
| 167 |
\@onlypreamble\newfloat@within@default |
| 168 |
\newcommand*\newfloat@setoption[1]{% |
| 169 |
\edef\newfloat@tempa{\noexpand\@nameuse{newfloat@set#1}{\newfloat@type}}% |
| 170 |
\newfloat@tempa} |
| 171 |
\newcommand*\newfloat@setfileext[2]{% |
| 172 |
\@namedef{ext@#1}{#2}} |
| 173 |
\define@key{@newfloat}{fileext}{% |
| 174 |
\newfloat@setoption{fileext}{#1}} |
| 175 |
\newcommand*\newfloat@setlistname[2]{% |
| 176 |
\@namedef{list#1name}{#2}} |
| 177 |
\define@key{@newfloat}{listname}{% |
| 178 |
\newfloat@setoption{listname}{#1}} |
| 179 |
\newcommand*\newfloat@setname[2]{% |
| 180 |
\newfloat@@setname{#1}{#2}% |
| 181 |
\begingroup |
| 182 |
\ifcsname languagename\endcsname |
| 183 |
\ifcsname captions\languagename\endcsname |
| 184 |
\expandafter\g@addto@macro\csname captions\languagename\endcsname |
| 185 |
{\newfloat@@setname{#1}{#2}}% |
| 186 |
\fi |
| 187 |
\fi |
| 188 |
\endgroup} |
| 189 |
%%\AtBeginDocument{\let\newfloat@setname\newfloat@@setname} |
| 190 |
\newcommand*\newfloat@@setname[2]{% |
| 191 |
\@namedef{#1name}{#2}} |
| 192 |
\define@key{@newfloat}{name}{% |
| 193 |
\newfloat@setoption{name}{#1}} |
| 194 |
\newcommand*\newfloat@setautorefname[2]{% |
| 195 |
\@namedef{#1autorefname}{#2}} |
| 196 |
\define@key{@newfloat}{autorefname}{% |
| 197 |
\newfloat@setoption{autorefname}{#1}} |
| 198 |
\newcommand*\newfloat@setlegendname[2]{% |
| 199 |
\@namedef{fleg#1}{#2}} |
| 200 |
\define@key{@newfloat}{legendname}{% |
| 201 |
\newfloat@setoption{legendname}{#1}} |
| 202 |
\newcommand*\newfloat@setplacement[2]{% |
| 203 |
\@namedef{fps@#1}{#2}} |
| 204 |
\define@key{@newfloat}{placement}{% |
| 205 |
\newfloat@setoption{placement}{#1}} |
| 206 |
\newcommand*\newfloat@setwithin[2]{% |
| 207 |
\ifcsname c@chapter\endcsname |
| 208 |
\@removefromreset{#1}{chapter}% |
| 209 |
\fi |
| 210 |
\@removefromreset{#1}{section}% |
| 211 |
\edef\@tempa{#2}% |
| 212 |
\ifx\@tempa\@empty |
| 213 |
\def\@tempa{none}% |
| 214 |
\fi |
| 215 |
\def\@tempb{none}% |
| 216 |
\ifx\@tempa\@tempb |
| 217 |
\ifcsname c@chapter\endcsname |
| 218 |
\@chapterlistsgap@off{#1}% |
| 219 |
\fi |
| 220 |
\newfloat@@setwithin{#1}{}{}% |
| 221 |
\else |
| 222 |
\def\@tempb{chapter}% |
| 223 |
\ifx\@tempa\@tempb |
| 224 |
\@addtoreset{#1}{chapter}% |
| 225 |
\@chapterlistsgap@on{#1}% |
| 226 |
\newfloat@@setwithin{#1}{\ifnum\c@chapter>\z@ \thechapter.\fi}{\theHchapter.}% |
| 227 |
\else |
| 228 |
\def\@tempb{section}% |
| 229 |
\ifx\@tempa\@tempb |
| 230 |
\@addtoreset{#1}{section}% |
| 231 |
\ifcsname c@chapter\endcsname |
| 232 |
\@addtoreset{#1}{chapter}% |
| 233 |
\@chapterlistsgap@on{#1}% |
| 234 |
\newfloat@@setwithin{#1}{\thesection.}{\theHsection.}% |
| 235 |
\else |
| 236 |
\newfloat@@setwithin{#1}{\ifnum\c@section>\z@ \thesection.\fi}{\theHsection.}% |
| 237 |
\fi |
| 238 |
\else |
| 239 |
\newfloat@Error{Invalid value `#2' for option `within'}% |
| 240 |
\fi |
| 241 |
\fi |
| 242 |
\fi} |
| 243 |
\newcommand*\newfloat@@setwithin[3]{% |
| 244 |
\global\@namedef{the#1}{#2\arabic{#1}}% |
| 245 |
\global\@namedef{theH#1}{#3\arabic{#1}}} |
| 246 |
\define@key{@newfloat}{within}{% |
| 247 |
\def\newfloat@within@value{#1}} |
| 248 |
\newcommand*\newfloat@setwithout[1]{% |
| 249 |
\newfloat@setwithin{#1}{none}} |
| 250 |
\define@key{@newfloat}{without}[]{% |
| 251 |
\def\newfloat@within@value{none}} |
| 252 |
\newcommand*\newfloat@setchapterlistsgaps[2]{% |
| 253 |
\edef\@tempa{#2}% |
| 254 |
\newfloat@setchapterlistsgaps@{off}{off}{#1}% |
| 255 |
\newfloat@setchapterlistsgaps@{false}{off}{#1}% |
| 256 |
\newfloat@setchapterlistsgaps@{on}{on}{#1}% |
| 257 |
\newfloat@setchapterlistsgaps@{true}{on}{#1}% |
| 258 |
\ifx\@tempa\newfloat@setchapterlistsgaps@ \else |
| 259 |
\newfloat@Error{Invalid value `#2' for option `chapterlistsgaps'}% |
| 260 |
\fi} |
| 261 |
\newcommand*\newfloat@setchapterlistsgaps@[3]{% |
| 262 |
\def\@tempb{#1}% |
| 263 |
\ifx\@tempa\@tempb |
| 264 |
\newfloat@chapterlistsgap@{#2}{#3}% |
| 265 |
\let\@tempa\newfloat@setchapterlistsgaps@ |
| 266 |
\fi} |
| 267 |
\newcommand*\newfloat@chapterlistsgap@[1]{% |
| 268 |
\@ifundefined{@chapterlistsgap@#1}% |
| 269 |
{\@gobble}% |
| 270 |
{\@nameuse{@chapterlistsgap@#1}}} |
| 271 |
\define@key{@newfloat}{chapterlistsgaps}{% |
| 272 |
\def\newfloat@chapterlistsgaps@value{#1}} |
| 273 |
\providecommand*\@removefromreset[2]{{% |
| 274 |
\expandafter\let\csname c@#1\endcsname\@removefromreset |
| 275 |
\def\@elt##1{% |
| 276 |
\expandafter\ifx\csname c@##1\endcsname\@removefromreset |
| 277 |
\else |
| 278 |
\noexpand\@elt{##1}% |
| 279 |
\fi}% |
| 280 |
\expandafter\xdef\csname cl@#2\endcsname{% |
| 281 |
\csname cl@#2\endcsname}}} |
| 282 |
\newcommand*\newfloat@announce[2]{% |
| 283 |
\@cons\newfloat@list{{#1}}% |
| 284 |
\@cons\newfloat@@list{{#1}}% |
| 285 |
\newfloat@ifundefined{newfloat@env@#2}{% |
| 286 |
\@namedef{newfloat@env@#2}{#1}% |
| 287 |
\ifcsname c@lofdepth\endcsname |
| 288 |
\newfloat@ifundefined{c@#2depth}{% |
| 289 |
\newcounter{#2depth}% |
| 290 |
\setcounter{#2depth}{1}}% |
| 291 |
\fi |
| 292 |
\ifcsname addtotoclist\endcsname |
| 293 |
\addtotoclist[float]{#2}% |
| 294 |
\newfloat@def{listof#2name}{\@nameuse{list#1name}}% |
| 295 |
\fi |
| 296 |
}% |
| 297 |
\ifcsname contentsuse\endcsname |
| 298 |
\contentsuse{#1}{#2}% |
| 299 |
\fi |
| 300 |
\newfloat@hook{#1}} |
| 301 |
\@onlypreamble\newfloat@announce |
| 302 |
\newcommand*\newfloat@ext[1]{\@nameuse{ext@#1}} |
| 303 |
\newcommand*\newfloat@@list{} |
| 304 |
\newcommand*\SetupFloatingEnvironment[1]{% |
| 305 |
\newfloat@addtolist{#1}% |
| 306 |
\newfloat@setoptions{#1}} |
| 307 |
\newcommand*\ForEachFloatingEnvironment{% |
| 308 |
\@ifstar |
| 309 |
{\newfloat@foreach\@gobble}% |
| 310 |
{\newfloat@foreach\@iden}} |
| 311 |
\newcommand\newfloat@foreach[2]{% |
| 312 |
\def\@elt##1{#2}% |
| 313 |
\newfloat@list |
| 314 |
\let\@elt\relax |
| 315 |
#1{\newfloat@addtohook{#2}}} |
| 316 |
\providecommand\newfloat@addtohook[1]{% |
| 317 |
\toks@=\expandafter{\newfloat@hook{##1}#1}% |
| 318 |
\edef\@tempa{\def\noexpand\newfloat@hook####1{\the\toks@}}% |
| 319 |
\@tempa} |
| 320 |
\providecommand*\newfloat@hook[1]{} |
| 321 |
\newcommand\PrepareListOf[1]{% |
| 322 |
\expandafter\g@addto@macro\csname newfloat@listof#1@hook\endcsname} |
| 323 |
\@onlypreamble\PrepareListOf |
| 324 |
\newcommand*\newfloat@list{} |
| 325 |
\newcommand*\newfloat@addtolist[1]{% |
| 326 |
\newfloat@ifinlist{#1}{}{% |
| 327 |
\ifcsname ext@#1\endcsname |
| 328 |
\@cons\newfloat@list{{#1}}% |
| 329 |
\@namedef{newfloat@env@\@nameuse{ext@#1}}{#1}% |
| 330 |
\newfloat@let{@ifchapterlistsgap@#1}{\@iden}% |
| 331 |
\else |
| 332 |
\newfloat@Error{`#1' does not seem to be a floating environment}% |
| 333 |
\fi}} |
| 334 |
\newcommand*\newfloat@ifinlist[1]{% |
| 335 |
\let\next\@secondoftwo |
| 336 |
\begingroup |
| 337 |
\expandafter\let\csname c@#1\endcsname\newfloat@ifinlist |
| 338 |
\def\@elt##1{% |
| 339 |
\expandafter\ifx\csname c@##1\endcsname\newfloat@ifinlist |
| 340 |
\global\let\next\@firstoftwo |
| 341 |
\fi}% |
| 342 |
\newfloat@list |
| 343 |
\endgroup |
| 344 |
\next} |
| 345 |
\ifcsname ext@figure\endcsname |
| 346 |
\newfloat@addtolist{figure} |
| 347 |
\fi |
| 348 |
\ifcsname ext@table\endcsname |
| 349 |
\newfloat@addtolist{table} |
| 350 |
\fi |
| 351 |
\ifcsname @chapter\endcsname |
| 352 |
\providecommand*\@chapterlistsgap{10\p@}% |
| 353 |
\@ifpackageloaded{dgruyter}{\renewcommand*\@chapterlistsgap{13\p@}}{}% |
| 354 |
\providecommand*\@addchapterlistsgap[2]{% |
| 355 |
\@nameuse{@ifchapterlistsgap@#1}{% if switched on |
| 356 |
\@@addchapterlistsgap{#1}{#2}}} |
| 357 |
\providecommand*\@@addchapterlistsgap[2]{% |
| 358 |
\@ifundefined{@addchapterlistsgap@#2}{% only once per extension |
| 359 |
\@namedef{@addchapterlistsgap@#2}{#1}% |
| 360 |
\@@@addchapterlistsgap{#2}}{}} |
| 361 |
\providecommand*\@@@addchapterlistsgap[1]{% |
| 362 |
\ifdim \@chapterlistsgap>\z@ |
| 363 |
\addtocontents{#1}{\protect\addvspace{\@chapterlistsgap}}% |
| 364 |
\fi} |
| 365 |
\ifcsname newfloat@dont@patch@chapter\endcsname |
| 366 |
\let\@addchapterlistsgaps\@undefined % force a re-definition |
| 367 |
\fi |
| 368 |
\providecommand*\@addchapterlistsgaps{% |
| 369 |
\begingroup |
| 370 |
\def\@elt##1{% |
| 371 |
\@expandtwoargs\@addchapterlistsgap{##1}{\newfloat@ext{##1}}}% |
| 372 |
\newfloat@list |
| 373 |
\endgroup} |
| 374 |
\providecommand*\@chapterlistsgap@off[1]{% |
| 375 |
\expandafter\let\csname @ifchapterlistsgap@#1\endcsname\@gobble |
| 376 |
\ifcsname unsettoc\endcsname |
| 377 |
\@expandtwoargs\unsettoc{\newfloat@ext{#1}}{chapteratlist}% |
| 378 |
\fi} |
| 379 |
\providecommand*\@chapterlistsgap@on[1]{% |
| 380 |
\expandafter\let\csname @ifchapterlistsgap@#1\endcsname\@iden |
| 381 |
\ifcsname setuptoc\endcsname |
| 382 |
\@expandtwoargs\setuptoc{\newfloat@ext{#1}}{chapteratlist}% |
| 383 |
\fi} |
| 384 |
\fi |
| 385 |
\define@key{newfloat}{chapterlistsgap}{% |
| 386 |
\renewcommand*\@chapterlistsgap{#1}} |
| 387 |
\define@key{newfloat}{within}{% |
| 388 |
\def\newfloat@within@default{#1}% set new default value |
| 389 |
\def\@elt##1{\newfloat@setwithin{##1}{#1}}% |
| 390 |
\newfloat@list |
| 391 |
\let\@elt\relax} |
| 392 |
\define@key{newfloat}{without}[]{% |
| 393 |
\KV@newfloat@within{none}} |
| 394 |
\def\@elt#1{% |
| 395 |
\define@key{newfloat}{#1name}{% |
| 396 |
\newfloat@setname{#1}{##1}}% |
| 397 |
\define@key{newfloat}{list#1name}{% |
| 398 |
\newfloat@setname{list#1}{##1}}% |
| 399 |
\define@key{newfloat}{#1within}{% |
| 400 |
\newfloat@setwithin{#1}{##1}}% |
| 401 |
\define@key{newfloat}{#1without}[]{% |
| 402 |
\newfloat@setwithout{#1}}% |
| 403 |
}% |
| 404 |
\newfloat@list |
| 405 |
\let\@elt\relax |
| 406 |
\define@key{newfloat}{planb}[true]{% |
| 407 |
\def\@tempa{#1}% |
| 408 |
\def\@tempb{false}% |
| 409 |
\ifx\@tempa\@tempb |
| 410 |
\let\newfloat@ifplanb\@gobble |
| 411 |
\else |
| 412 |
\def\@tempb{true}% |
| 413 |
\ifx\@tempa\@tempb |
| 414 |
\let\newfloat@ifplanb\@iden |
| 415 |
\else |
| 416 |
\newfloat@Error{Invalid value `#1' for option `planb'}% |
| 417 |
\fi |
| 418 |
\fi} |
| 419 |
\define@key{newfloat}{planb-fileext}{% |
| 420 |
\newfloat@Info{Setting Plan B file extension to `#1'} |
| 421 |
\xdef\newfloat@addtocontents@ext{#1}} |
| 422 |
\let\@tempc\relax |
| 423 |
\@expandtwoargs\setkeys{newfloat}{planb,\@ptionlist{\@currname.\@currext}}% |
| 424 |
\AtEndOfPackage{\let\@unprocessedoptions\relax} |
| 425 |
\newcommand*\newfloatsetup{\setkeys{newfloat}} |
| 426 |
\newcommand\newfloat@replace@chapter[3]{% |
| 427 |
\begingroup |
| 428 |
\let\if@twocolumn\iffalse |
| 429 |
\let\if@mainmatter\iffalse |
| 430 |
\let\if@thema\iffalse |
| 431 |
\let\if@chapnum\iffalse |
| 432 |
\def\@tempa[##1]##2{#2}% |
| 433 |
\newfloat@replace@chapter@\@chapter{original}{#1}{#3}% |
| 434 |
\newfloat@replace@chapter@\Hy@org@chapter{hyperref}{#1}{#3}% |
| 435 |
\newfloat@replace@chapter@\algocf@original@chapter{algorithm2e}{#1}{#3}% |
| 436 |
\endgroup} |
| 437 |
\newcommand\newfloat@replace@chapter@[4]{% |
| 438 |
\ifx\@tempa#1% |
| 439 |
\newfloat@InfoNoLine{Document class `#3' detected (#2)}% |
| 440 |
\global\def#1[##1]##2{#4}% |
| 441 |
\global\let\newfloat@replace@chapter\newfloat@dont@replace@chapter |
| 442 |
\global\let\newfloat@replace@chapter@\@gobblefour |
| 443 |
\fi} |
| 444 |
\newcommand\newfloat@dont@replace@chapter[3]{} |
| 445 |
\ifcsname @chapter\endcsname \else |
| 446 |
\let\newfloat@replace@chapter\newfloat@dont@replace@chapter |
| 447 |
\fi |
| 448 |
\ifcsname newfloat@dont@patch@chapter\endcsname |
| 449 |
\newfloat@InfoNoLine{\noexpand\newfloat@dont@patch@chapter is set} |
| 450 |
\let\newfloat@replace@chapter\newfloat@dont@replace@chapter |
| 451 |
\fi |
| 452 |
\newfloat@replace@chapter{report}{% |
| 453 |
\ifnum \c@secnumdepth >\m@ne |
| 454 |
\refstepcounter{chapter}% |
| 455 |
\typeout{\@chapapp\space\thechapter.}% |
| 456 |
\addcontentsline{toc}{chapter}% |
| 457 |
{\protect\numberline{\thechapter}#1}% |
| 458 |
\else |
| 459 |
\addcontentsline{toc}{chapter}{#1}% |
| 460 |
\fi |
| 461 |
\chaptermark{#1}% |
| 462 |
\addtocontents{lof}{\protect\addvspace{10\p@}}% |
| 463 |
\addtocontents{lot}{\protect\addvspace{10\p@}}% |
| 464 |
\if@twocolumn |
| 465 |
\@topnewpage[\@makechapterhead{#2}]% |
| 466 |
\else |
| 467 |
\@makechapterhead{#2}% |
| 468 |
\@afterheading |
| 469 |
\fi |
| 470 |
}{% |
| 471 |
\ifnum \c@secnumdepth >\m@ne |
| 472 |
\refstepcounter{chapter}% |
| 473 |
\typeout{\@chapapp\space\thechapter.}% |
| 474 |
\addcontentsline{toc}{chapter}% |
| 475 |
{\protect\numberline{\thechapter}#1}% |
| 476 |
\else |
| 477 |
\addcontentsline{toc}{chapter}{#1}% |
| 478 |
\fi |
| 479 |
\chaptermark{#1}% |
| 480 |
\@addchapterlistsgaps |
| 481 |
\if@twocolumn |
| 482 |
\@topnewpage[\@makechapterhead{#2}]% |
| 483 |
\else |
| 484 |
\@makechapterhead{#2}% |
| 485 |
\@afterheading |
| 486 |
\fi} |
| 487 |
\newfloat@replace@chapter{book}{% |
| 488 |
\ifnum \c@secnumdepth >\m@ne |
| 489 |
\if@mainmatter |
| 490 |
\refstepcounter{chapter}% |
| 491 |
\typeout{\@chapapp\space\thechapter.}% |
| 492 |
\addcontentsline{toc}{chapter}% |
| 493 |
{\protect\numberline{\thechapter}#1}% |
| 494 |
\else |
| 495 |
\addcontentsline{toc}{chapter}{#1}% |
| 496 |
\fi |
| 497 |
\else |
| 498 |
\addcontentsline{toc}{chapter}{#1}% |
| 499 |
\fi |
| 500 |
\chaptermark{#1}% |
| 501 |
\addtocontents{lof}{\protect\addvspace{10\p@}}% |
| 502 |
\addtocontents{lot}{\protect\addvspace{10\p@}}% |
| 503 |
\if@twocolumn |
| 504 |
\@topnewpage[\@makechapterhead{#2}]% |
| 505 |
\else |
| 506 |
\@makechapterhead{#2}% |
| 507 |
\@afterheading |
| 508 |
\fi |
| 509 |
}{% |
| 510 |
\ifnum \c@secnumdepth >\m@ne |
| 511 |
\if@mainmatter |
| 512 |
\refstepcounter{chapter}% |
| 513 |
\typeout{\@chapapp\space\thechapter.}% |
| 514 |
\addcontentsline{toc}{chapter}% |
| 515 |
{\protect\numberline{\thechapter}#1}% |
| 516 |
\else |
| 517 |
\addcontentsline{toc}{chapter}{#1}% |
| 518 |
\fi |
| 519 |
\else |
| 520 |
\addcontentsline{toc}{chapter}{#1}% |
| 521 |
\fi |
| 522 |
\chaptermark{#1}% |
| 523 |
\@addchapterlistsgaps |
| 524 |
\if@twocolumn |
| 525 |
\@topnewpage[\@makechapterhead{#2}]% |
| 526 |
\else |
| 527 |
\@makechapterhead{#2}% |
| 528 |
\@afterheading |
| 529 |
\fi} |
| 530 |
\newfloat@replace@chapter{amsbook}{% |
| 531 |
\refstepcounter{chapter}% |
| 532 |
\ifnum\c@secnumdepth<\z@ \let\@secnumber\@empty |
| 533 |
\else \let\@secnumber\thechapter \fi |
| 534 |
\typeout{\chaptername\space\@secnumber}% |
| 535 |
\def\@toclevel{0}% |
| 536 |
\ifx\chaptername\appendixname \@tocwriteb\tocappendix{chapter}{#2}% |
| 537 |
\else \@tocwriteb\tocchapter{chapter}{#2}\fi |
| 538 |
\chaptermark{#1}% |
| 539 |
\addtocontents{lof}{\protect\addvspace{10\p@}}% |
| 540 |
\addtocontents{lot}{\protect\addvspace{10\p@}}% |
| 541 |
\@makechapterhead{#2}\@afterheading |
| 542 |
}{% |
| 543 |
\refstepcounter{chapter}% |
| 544 |
\ifnum\c@secnumdepth<\z@ \let\@secnumber\@empty |
| 545 |
\else \let\@secnumber\thechapter \fi |
| 546 |
\typeout{\chaptername\space\@secnumber}% |
| 547 |
\def\@toclevel{0}% |
| 548 |
\ifx\chaptername\appendixname \@tocwriteb\tocappendix{chapter}{#2}% |
| 549 |
\else \@tocwriteb\tocchapter{chapter}{#2}\fi |
| 550 |
\chaptermark{#1}% |
| 551 |
\@addchapterlistsgaps |
| 552 |
\@makechapterhead{#2}\@afterheading} |
| 553 |
\@ifpackageloaded{tocbasic}{% |
| 554 |
\let\newfloat@replace@chapter\newfloat@dont@replace@chapter}{} |
| 555 |
\ifcsname insertchapterspace\endcsname |
| 556 |
\renewcommand*\insertchapterspace{\@addchapterlistsgaps} |
| 557 |
\let\newfloat@replace@chapter\newfloat@dont@replace@chapter |
| 558 |
\fi |
| 559 |
\newfloat@replace@chapter{rapport}{% |
| 560 |
\ifnum \c@secnumdepth >\m@ne |
| 561 |
\refstepcounter{chapter}% |
| 562 |
\typeout{\@chapapp\space\thechapter.}% |
| 563 |
\addcontentsline{toc}{chapter}% |
| 564 |
{\protect\numberline{\thechapter}\toc@font0 #1}% |
| 565 |
\else |
| 566 |
\addcontentsline{toc}{chapter}{\toc@font0 #1}% |
| 567 |
\fi |
| 568 |
\chaptermark{#1}% |
| 569 |
\addtocontents{lof}{\protect\addvspace{10\p@}}% |
| 570 |
\addtocontents{lot}{\protect\addvspace{10\p@}}% |
| 571 |
\if@twocolumn |
| 572 |
\@topnewpage[\@makechapterhead{#2}]% |
| 573 |
\else |
| 574 |
\@makechapterhead{#2}% |
| 575 |
\@afterheading |
| 576 |
\fi |
| 577 |
}{% |
| 578 |
\ifnum \c@secnumdepth >\m@ne |
| 579 |
\refstepcounter{chapter}% |
| 580 |
\typeout{\@chapapp\space\thechapter.}% |
| 581 |
\addcontentsline{toc}{chapter}% |
| 582 |
{\protect\numberline{\thechapter}\toc@font0 #1}% |
| 583 |
\else |
| 584 |
\addcontentsline{toc}{chapter}{\toc@font0 #1}% |
| 585 |
\fi |
| 586 |
\chaptermark{#1}% |
| 587 |
\@addchapterlistsgaps |
| 588 |
\if@twocolumn |
| 589 |
\@topnewpage[\@makechapterhead{#2}]% |
| 590 |
\else |
| 591 |
\@makechapterhead{#2}% |
| 592 |
\@afterheading |
| 593 |
\fi} |
| 594 |
\newfloat@replace@chapter{boek}{% |
| 595 |
\ifnum \c@secnumdepth >\m@ne |
| 596 |
\if@mainmatter |
| 597 |
\refstepcounter{chapter}% |
| 598 |
\typeout{\@chapapp\space\thechapter.}% |
| 599 |
\addcontentsline{toc}{chapter}% |
| 600 |
{\protect\numberline{\thechapter}\toc@font0 #1}% |
| 601 |
\else |
| 602 |
\addcontentsline{toc}{chapter}{\toc@font0 #1}% |
| 603 |
\fi |
| 604 |
\else |
| 605 |
\addcontentsline{toc}{chapter}{\toc@font0 #1}% |
| 606 |
\fi |
| 607 |
\chaptermark{#1}% |
| 608 |
\addtocontents{lof}{\protect\addvspace{10\p@}}% |
| 609 |
\addtocontents{lot}{\protect\addvspace{10\p@}}% |
| 610 |
\if@twocolumn |
| 611 |
\@topnewpage[\@makechapterhead{#2}]% |
| 612 |
\else |
| 613 |
\@makechapterhead{#2}% |
| 614 |
\@afterheading |
| 615 |
\fi |
| 616 |
}{% |
| 617 |
\ifnum \c@secnumdepth >\m@ne |
| 618 |
\if@mainmatter |
| 619 |
\refstepcounter{chapter}% |
| 620 |
\typeout{\@chapapp\space\thechapter.}% |
| 621 |
\addcontentsline{toc}{chapter}% |
| 622 |
{\protect\numberline{\thechapter}\toc@font0 #1}% |
| 623 |
\else |
| 624 |
\addcontentsline{toc}{chapter}{\toc@font0 #1}% |
| 625 |
\fi |
| 626 |
\else |
| 627 |
\addcontentsline{toc}{chapter}{\toc@font0 #1}% |
| 628 |
\fi |
| 629 |
\chaptermark{#1}% |
| 630 |
\@addchapterlistsgaps |
| 631 |
\if@twocolumn |
| 632 |
\@topnewpage[\@makechapterhead{#2}]% |
| 633 |
\else |
| 634 |
\@makechapterhead{#2}% |
| 635 |
\@afterheading |
| 636 |
\fi} |
| 637 |
\newfloat@replace@chapter{thesis}{% |
| 638 |
\ifnum \c@secnumdepth >\m@ne |
| 639 |
\if@mainmatter |
| 640 |
\refstepcounter{chapter}% |
| 641 |
\typeout{\chaptername\space\thechapter.} |
| 642 |
\if@thema |
| 643 |
\ifx\@shortauthor\@empty |
| 644 |
\addcontentsline{toc}{chapter}{% |
| 645 |
\protect\numberline{\thechapter.}#1}% |
| 646 |
\else |
| 647 |
\addcontentsline{toc}{chapter}{% |
| 648 |
\protect\numberline{\thechapter.}% |
| 649 |
\@shortauthor\hfill\mbox{}\vskip\normallineskip #1}% |
| 650 |
\fi |
| 651 |
\else |
| 652 |
\addcontentsline{toc}{chapter}{% |
| 653 |
\protect\numberline{\thechapter.}#1}% |
| 654 |
\fi |
| 655 |
\else |
| 656 |
\addcontentsline{toc}{chapter}{#1} |
| 657 |
\fi |
| 658 |
\else |
| 659 |
\addcontentsline{toc}{chapter}{#1} |
| 660 |
\fi |
| 661 |
\chaptermark{#1} |
| 662 |
\addtocontents{lof}{\protect\addvspace{10pt}} |
| 663 |
\addtocontents{lot}{\protect\addvspace{10pt}} |
| 664 |
\if@twocolumn |
| 665 |
\@topnewpage[\@makechapterhead{#2}] |
| 666 |
\else |
| 667 |
\@makechapterhead{#2} |
| 668 |
\@afterheading |
| 669 |
\fi |
| 670 |
}{% |
| 671 |
\ifnum \c@secnumdepth >\m@ne |
| 672 |
\if@mainmatter |
| 673 |
\refstepcounter{chapter}% |
| 674 |
\typeout{\chaptername\space\thechapter.}% |
| 675 |
\if@thema |
| 676 |
\ifx\@shortauthor\@empty |
| 677 |
\addcontentsline{toc}{chapter}{% |
| 678 |
\protect\numberline{\thechapter.}#1}% |
| 679 |
\else |
| 680 |
\addcontentsline{toc}{chapter}{% |
| 681 |
\protect\numberline{\thechapter.}% |
| 682 |
\@shortauthor\hfill\mbox{}\vskip\normallineskip #1}% |
| 683 |
\fi |
| 684 |
\else |
| 685 |
\addcontentsline{toc}{chapter}{% |
| 686 |
\protect\numberline{\thechapter.}#1}% |
| 687 |
\fi |
| 688 |
\else |
| 689 |
\addcontentsline{toc}{chapter}{#1}% |
| 690 |
\fi |
| 691 |
\else |
| 692 |
\addcontentsline{toc}{chapter}{#1}% |
| 693 |
\fi |
| 694 |
\chaptermark{#1}% |
| 695 |
\@addchapterlistsgaps |
| 696 |
\if@twocolumn |
| 697 |
\@topnewpage[\@makechapterhead{#2}]% |
| 698 |
\else |
| 699 |
\@makechapterhead{#2}% |
| 700 |
\@afterheading |
| 701 |
\fi} |
| 702 |
\newfloat@replace@chapter{svmono}{% |
| 703 |
\if@chapnum % war mal \ifnum \c@secnumdepth >\m@ne |
| 704 |
\refstepcounter{chapter}% |
| 705 |
\if@mainmatter |
| 706 |
\typeout{\@chapapp\space\thechapter.}% |
| 707 |
\addcontentsline{toc}{chapter}{\protect |
| 708 |
\numberline{\thechapter\thechapterend}#1}% |
| 709 |
\else |
| 710 |
\addcontentsline{toc}{chapter}{#1}% |
| 711 |
\fi |
| 712 |
\else |
| 713 |
\addcontentsline{toc}{chapter}{#1}% |
| 714 |
\fi |
| 715 |
\chaptermark{#1}% |
| 716 |
\addtocontents{lof}{\protect\addvspace{10\p@}}% |
| 717 |
\addtocontents{lot}{\protect\addvspace{10\p@}}% |
| 718 |
\if@twocolumn |
| 719 |
\@topnewpage[\@makechapterhead{#2}]% |
| 720 |
\else |
| 721 |
\@makechapterhead{#2}% |
| 722 |
\@afterheading |
| 723 |
\fi |
| 724 |
}{% |
| 725 |
\if@chapnum % war mal \ifnum \c@secnumdepth >\m@ne |
| 726 |
\refstepcounter{chapter}% |
| 727 |
\if@mainmatter |
| 728 |
\typeout{\@chapapp\space\thechapter.}% |
| 729 |
\addcontentsline{toc}{chapter}{\protect |
| 730 |
\numberline{\thechapter\thechapterend}#1}% |
| 731 |
\else |
| 732 |
\addcontentsline{toc}{chapter}{#1}% |
| 733 |
\fi |
| 734 |
\else |
| 735 |
\addcontentsline{toc}{chapter}{#1}% |
| 736 |
\fi |
| 737 |
\chaptermark{#1}% |
| 738 |
\@addchapterlistsgaps |
| 739 |
\if@twocolumn |
| 740 |
\@topnewpage[\@makechapterhead{#2}]% |
| 741 |
\else |
| 742 |
\@makechapterhead{#2}% |
| 743 |
\@afterheading |
| 744 |
\fi} |
| 745 |
\newfloat@replace@chapter{dgruyter}{% |
| 746 |
\let\thesection\theinchapsection |
| 747 |
\let\theequation\theinchapequation |
| 748 |
\let\thefigure\theinchapfigure |
| 749 |
\let\thetable\theinchaptable |
| 750 |
\ifx\bookDOI\@undefined |
| 751 |
\else |
| 752 |
\@tempcnta\numexpr\componentd@i+\@ne\relax |
| 753 |
\xdef\componentd@i{\the\@tempcnta}% |
| 754 |
\xdef\@DOI{% |
| 755 |
https://doi.org/\bookDOI |
| 756 |
-\ifx\thepage\thefrontmatterpage2\else\ifnum\@tempcnta<100 0\fi\fi |
| 757 |
\ifnum\@tempcnta<10 0\fi\componentd@i}% |
| 758 |
\fi |
| 759 |
\ifnum \c@secnumdepth >\m@ne |
| 760 |
\if@mainmatter |
| 761 |
\refstepcounter{chapter}% |
| 762 |
\typeout{\@chapapp\space\thechapter.}% |
| 763 |
\addcontentsline{toc}{chapter}{\protect\numberline{\thechapter}#1}% |
| 764 |
\else |
| 765 |
\addcontentsline{toc}{schapter}{#1}% |
| 766 |
\fi |
| 767 |
\else |
| 768 |
\addcontentsline{toc}{schapter}{#1}% |
| 769 |
\fi |
| 770 |
\chaptermark{#1}% |
| 771 |
\addtocontents{lof}{\protect\addvspace{13\p@}}% |
| 772 |
\addtocontents{lot}{\protect\addvspace{13\p@}}% |
| 773 |
\if@twocolumn |
| 774 |
\@topnewpage[\@makechapterhead{#2}]% |
| 775 |
\else |
| 776 |
\@makechapterhead{#2}% |
| 777 |
\@afterheading |
| 778 |
\fi |
| 779 |
}{% |
| 780 |
\let\thesection\theinchapsection |
| 781 |
\let\theequation\theinchapequation |
| 782 |
\let\thefigure\theinchapfigure |
| 783 |
\let\thetable\theinchaptable |
| 784 |
\ifx\bookDOI\@undefined |
| 785 |
\else |
| 786 |
\@tempcnta\numexpr\componentd@i+\@ne\relax |
| 787 |
\xdef\componentd@i{\the\@tempcnta}% |
| 788 |
\xdef\@DOI{% |
| 789 |
https://doi.org/\bookDOI |
| 790 |
-\ifx\thepage\thefrontmatterpage2\else\ifnum\@tempcnta<100 0\fi\fi |
| 791 |
\ifnum\@tempcnta<10 0\fi\componentd@i}% |
| 792 |
\fi |
| 793 |
\ifnum \c@secnumdepth >\m@ne |
| 794 |
\if@mainmatter |
| 795 |
\refstepcounter{chapter}% |
| 796 |
\typeout{\@chapapp\space\thechapter.}% |
| 797 |
\addcontentsline{toc}{chapter}{\protect\numberline{\thechapter}#1}% |
| 798 |
\else |
| 799 |
\addcontentsline{toc}{schapter}{#1}% |
| 800 |
\fi |
| 801 |
\else |
| 802 |
\addcontentsline{toc}{schapter}{#1}% |
| 803 |
\fi |
| 804 |
\chaptermark{#1}% |
| 805 |
\@addchapterlistsgaps |
| 806 |
\if@twocolumn |
| 807 |
\@topnewpage[\@makechapterhead{#2}]% |
| 808 |
\else |
| 809 |
\@makechapterhead{#2}% |
| 810 |
\@afterheading |
| 811 |
\fi} |
| 812 |
\ifx\newfloat@replace@chapter\newfloat@dont@replace@chapter \else |
| 813 |
\newfloat@InfoNoLine{% |
| 814 |
Unsupported document class, or \noexpand\@chapter\MessageBreak |
| 815 |
was already redefined by another package} |
| 816 |
\newfloat@InfoNoLine{\string\@chapter\space=\space\meaning\@chapter} |
| 817 |
\newfloat@InfoNoLine{\string\Hy@org@chapter\space=\space\meaning\Hy@org@chapter} |
| 818 |
\newfloat@InfoNoLine{\string\algocf@original@chapter\space=\space\meaning\algocf@original@chapter} |
| 819 |
\newfloat@ifplanb{\AtBeginDocument{% |
| 820 |
\newfloat@InfoNoLine{Trying Plan B..}% |
| 821 |
\let\newfloat@addtocontents@ORI\addtocontents |
| 822 |
\long\def\addtocontents#1#2{% |
| 823 |
\newfloat@addtocontents{#1}{#2}#2\addvspace\newfloat@nil}% |
| 824 |
\long\def\newfloat@addtocontents#1#2#3\addvspace#4\newfloat@nil{% |
| 825 |
\def\newfloat@tempa{#4}% |
| 826 |
\ifx\newfloat@tempa\@empty |
| 827 |
\newfloat@addtocontents@ORI{#1}{#2}% |
| 828 |
\else |
| 829 |
\ifx\newfloat@addtocontents@ext\@undefined |
| 830 |
\newfloat@Info{Setting Plan B file extension to `#1'...}% |
| 831 |
\xdef\newfloat@addtocontents@ext{#1}% |
| 832 |
\fi |
| 833 |
\edef\newfloat@tempa{#1}% |
| 834 |
\ifx\newfloat@tempa\newfloat@addtocontents@ext |
| 835 |
\begingroup |
| 836 |
\let\addtocontents\newfloat@addtocontents@ORI |
| 837 |
\@addchapterlistsgaps |
| 838 |
\endgroup |
| 839 |
\fi |
| 840 |
\fi}}} |
| 841 |
\fi |
| 842 |
\ifcsname beamer@float\endcsname \else |
| 843 |
\def\beamer@float#1{% |
| 844 |
\ifcsname caption@settype\endcsname |
| 845 |
\caption@settype{#1}% |
| 846 |
\else |
| 847 |
\def\@captype{#1}% |
| 848 |
\fi |
| 849 |
\par\nobreak\begin{center}\nobreak} |
| 850 |
\def\end@beamer@float{% |
| 851 |
\par\nobreak\end{center}} |
| 852 |
\fi |
| 853 |
\newcommand\newfloat@IfPackageLoaded[3]{% |
| 854 |
\@ifpackageloaded{#1}{% |
| 855 |
\newfloat@@IfPackageLoaded{#1}{#2}{#3}% |
| 856 |
}{% |
| 857 |
\AtBeginDocument{% |
| 858 |
\@ifpackageloaded{#1}{% |
| 859 |
\newfloat@@IfPackageLoaded{#1}{#2}{#3}% |
| 860 |
}{}}% |
| 861 |
}} |
| 862 |
\@onlypreamble\newfloat@IfPackageLoaded |
| 863 |
\newcommand\newfloat@@IfPackageLoaded[3]{% |
| 864 |
\newfloat@InfoNoLine{`#1' package detected}% |
| 865 |
% Execute code for every previous \DeclareFloatingEnvironment |
| 866 |
\def\@elt##1{\newfloat@@@IfPackageLoaded{#1}{#2}{#3}}% |
| 867 |
\newfloat@@list |
| 868 |
\let\@elt\relax |
| 869 |
% Execute code for every future \DeclareFloatingEnvironment |
| 870 |
\newfloat@addtohook{\newfloat@@@IfPackageLoaded{#1}{#2}{#3}}} |
| 871 |
\@onlypreamble\newfloat@@IfPackageLoaded |
| 872 |
\newcommand\newfloat@@@IfPackageLoaded[3]{% |
| 873 |
\ifcsname#2\endcsname |
| 874 |
\newfloat@WarningNoLine{% |
| 875 |
Command \@backslashchar#2 already defined.\MessageBreak |
| 876 |
(`#1' package support)}% |
| 877 |
\else |
| 878 |
#3% |
| 879 |
\fi} |
| 880 |
\@onlypreamble\newfloat@@@IfPackageLoaded |
| 881 |
\newfloat@IfPackageLoaded{dgruyter}{plist@#1}{% |
| 882 |
\expandafter\newcommand\csname plist@#1\endcsname{% |
| 883 |
\@nameuse{#1name}\space}} |
| 884 |
\AtBeginDocument{% |
| 885 |
\ifcsname float@exts\endcsname |
| 886 |
\newfloat@@IfPackageLoaded{float}{newfloat@undefined}{% |
| 887 |
\@nameuse{@ifchapterlistsgap@#1}{% if switched on |
| 888 |
\let\float@do=\relax |
| 889 |
\edef\@tempa{% |
| 890 |
\noexpand\float@exts{\the\float@exts\float@do{\@nameuse{ext@#1}}}}% |
| 891 |
\@tempa}}% |
| 892 |
\fi} |
| 893 |
\newfloat@IfPackageLoaded{fltpage}{FP#1}{% |
| 894 |
\newcounter{FP@#1C}% |
| 895 |
\newenvironment{FP#1}{\FP@floatBegin{#1}}{\FP@floatEnd}} |
| 896 |
\providecommand*\ext@lstlisting{lol}% |
| 897 |
\newfloat@IfPackageLoaded{rotating}{sideways#1}{% |
| 898 |
\newenvironment{sideways#1}{\@rotfloat{#1}}{\end@rotfloat}% |
| 899 |
\newenvironment{sideways#1*}{\@rotdblfloat{#1}}{\end@rotdblfloat}} |
| 900 |
\newcommand*\newfloat@For@SC[2]{% |
| 901 |
\def#1{b}% = \sidecaptionvpos{#2}{b} (v1.6) |
| 902 |
\newenvironment{SC#2}% |
| 903 |
{\SC@float[{#1}]{#2}}{\endSC@float}% |
| 904 |
\newenvironment{SC#2*}% |
| 905 |
{\SC@dblfloat[{#1}]{#2}}{\endSC@dblfloat}} |
| 906 |
\@onlypreamble\newfloat@For@SC |
| 907 |
\newfloat@IfPackageLoaded{sidecap}{SC#1}{% |
| 908 |
\expandafter\newfloat@For@SC\csname SC@#1@vpos\endcsname{#1}} |
| 909 |
\newfloat@IfPackageLoaded{wrapfig}{wrap#1}{% |
| 910 |
\newenvironment{wrap#1}{\wrapfloat{#1}}{\endwrapfloat}} |
| 911 |
\endinput |
| 912 |
%% |
| 913 |
%% End of file `newfloat.sty'. |