| 1 |
%% |
| 2 |
%% This is file `lwarp-tocbasic.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% lwarp.dtx (with options: `tocbasic') |
| 8 |
%% This is a generated file. |
| 9 |
%% Copyright 2016-2026 Brian Dunn |
| 10 |
%% |
| 11 |
%% This work may be distributed and/or modified under the |
| 12 |
%% conditions of the LaTeX Project Public License, either version 1.3 |
| 13 |
%% of this license or (at your option) any later version. |
| 14 |
%% The latest version of this license is in |
| 15 |
%% http://www.latex-project.org/lppl.txt |
| 16 |
%% and version 1.3 or later is part of all distributions of LaTeX |
| 17 |
%% version 2005/12/01 or later. |
| 18 |
|
| 19 |
|
| 20 |
\LWR@ProvidesPackageDrop{tocbasic}[2025/09/09] |
| 21 |
|
| 22 |
\DeclareDocumentCommand\addtotoclist{om}{} |
| 23 |
\DeclareDocumentCommand\AtAddToTocList{o}{} |
| 24 |
\DeclareDocumentCommand\removefromtoclist{om}{} |
| 25 |
\DeclareDocumentCommand\doforeachtocfile{o+m}{} |
| 26 |
\DeclareDocumentCommand\addtoeachtocfile{o+m}{} |
| 27 |
\DeclareDocumentCommand\addcontentslinetoeachtocfile{omm}{} |
| 28 |
|
| 29 |
\DeclareDocumentCommand\addxcontentsline{mmO{}m}{% |
| 30 |
\ifblank{#3}% |
| 31 |
{\addcontentsline{#1}{#2}{\protect\nonumberline#4}}% |
| 32 |
{\addcontentsline{#1}{#2}{\protect\numberline{#3}#4}}% |
| 33 |
} |
| 34 |
|
| 35 |
\DeclareDocumentCommand\addxcontentslinetoeachtocfile{omom}{} |
| 36 |
\DeclareDocumentCommand\listofeachtoc{o}{} |
| 37 |
|
| 38 |
\DeclareDocumentCommand \captionabove { s O{#3} m }{\caption[#2]{#3}} |
| 39 |
\DeclareDocumentCommand \captionbelow { s O{#3} m }{\caption[#2]{#3}} |
| 40 |
\DeclareDocumentCommand \captionaboveof { s m O{#4} m }{\captionof{#2}[#3]{#4}} |
| 41 |
\DeclareDocumentCommand \captionbelowof { s m O{#4} m }{\captionof{#2}[#3]{#4}} |
| 42 |
|
| 43 |
\DeclareDocumentCommand\TOCEntryStyleInitCode{sm+m}{} |
| 44 |
\DeclareDocumentCommand\TOCEntryStyleStartInitCode{sm+m}{} |
| 45 |
\DeclareDocumentCommand{\DeclareTOCStyleEntry}{+omm}{} |
| 46 |
\DeclareDocumentCommand{\DeclareTOCStyleEntries}{+omm}{} |
| 47 |
\DeclareDocumentCommand{\DeclareTOCEntryStyle}{m+O{}+m}{} |
| 48 |
|
| 49 |
\let\Ifattoclist\relax |
| 50 |
\let\owneroftoc\relax |
| 51 |
\let\categoryoftoc\relax |
| 52 |
\let\nonumberline\relax |
| 53 |
\let\BeforeStartingTOC\relax |
| 54 |
\let\AfterStartingTOC\relax |
| 55 |
\newcommand{\Ifattoclist}[1]{\@firstoftwo}% takes 3 args |
| 56 |
\newcommand*{\owneroftoc}[2][\@firstofone]{} |
| 57 |
\newcommand*{\categoryoftoc}{\owneroftoc} |
| 58 |
\newcommand*{\nonumberline}{} |
| 59 |
\newcommand{\BeforeStartingTOC}[2][]{} |
| 60 |
\newcommand{\AfterStartingTOC}[2][]{} |
| 61 |
|
| 62 |
\let\listofname\relax |
| 63 |
\newcommand*{\listofname}{List of} |
| 64 |
|
| 65 |
\newcommand*{\LWR@tocbasic@starttoc}[1]{% |
| 66 |
\begingroup |
| 67 |
\edef\@currext{#1}% |
| 68 |
\@starttoc{#1}% |
| 69 |
\endgroup% |
| 70 |
} |
| 71 |
|
| 72 |
\DeclareDocumentCommand{\listoftoc}{som} |
| 73 |
{% |
| 74 |
\IfBooleanTF{#1}% star? |
| 75 |
{\LWR@listof{#3}{}}% star |
| 76 |
{% no star |
| 77 |
\IfValueTF{#2}% title given? |
| 78 |
{% |
| 79 |
\LWR@listof{#3}{#2}% |
| 80 |
}% title given |
| 81 |
{% no title given |
| 82 |
\ifcsdef{listof#3name}% |
| 83 |
{\LWR@listof{#3}{\csuse{listof#3name}}}% |
| 84 |
{\LWR@listof{#3}{\listofname~#3}}% |
| 85 |
}% |
| 86 |
}% |
| 87 |
} |
| 88 |
|
| 89 |
\let\BeforeTOCHead\relax |
| 90 |
\let\AfterTOCHead\relax |
| 91 |
\let\deftocheading\relax |
| 92 |
\let\setuptoc\relax |
| 93 |
\let\unsettoc\relax |
| 94 |
\let\Iftocfeature\relax |
| 95 |
\let\tocbasicautomode\relax |
| 96 |
\let\DeclareNewTOC\relax |
| 97 |
\let\usetocbasicnumberline\relax |
| 98 |
\let\CloneTOCEntryStyle\relax |
| 99 |
\let\LastTOCLevelWasHigher\relax |
| 100 |
\let\LastTOCLevelWasSame\relax |
| 101 |
\let\LastTOCLevelWasLower\relax |
| 102 |
\let\TOCLineLeaderFill\relax |
| 103 |
\newcommand{\BeforeTOCHead}[2][]{} |
| 104 |
\newcommand{\AfterTOCHead}[2][]{} |
| 105 |
\newcommand*{\deftocheading}[2]{}% takes two args |
| 106 |
\newcommand*{\setuptoc}[2]{} |
| 107 |
\newcommand*{\unsettoc}[2]{} |
| 108 |
\newcommand*{\Iftocfeature}[2]{\@secondoftwo}% takes 4 args |
| 109 |
\newcommand*{\tocbasicautomode}{} |
| 110 |
\newcommand*{\DeclareNewTOC}[2][]{} |
| 111 |
\newcommand*{\usetocbasicnumberline}[1][]{}% opt arg |
| 112 |
\newcommand*{\CloneTOCEntryStyle}[2]{} |
| 113 |
\newcommand*{\LastTOCLevelWasHigher}{} |
| 114 |
\newcommand*{\LastTOCLevelWasSame}{} |
| 115 |
\newcommand*{\LastTOCLevelWasLower}{} |
| 116 |
\newcommand*{\TOCLineLeaderFill}[1][.]{} |
| 117 |
|
| 118 |
\DeclareDocumentCommand{\DefineTOCEntryBooleanOption}{mommm}{} |
| 119 |
\DeclareDocumentCommand{\DefineTOCEntryCommandOption}{mommm}{}% |
| 120 |
\DeclareDocumentCommand{\DefineTOCEntryIfOption}{mommm}{}% |
| 121 |
\DeclareDocumentCommand{\DefineTOCEntryLengthOption}{mommm}{}% |
| 122 |
\DeclareDocumentCommand{\DefineTOCEntryListOption}{mommm}{}% |
| 123 |
\DeclareDocumentCommand{\DefineTOCEntryNumberOption}{mommm}{}% |
| 124 |
\DeclareDocumentCommand{\DefineTOCEntryOption}{mom}{}% |
| 125 |
\DeclareDocumentCommand{\AddToDeclareTOCEntryStylePreCheckNeeds}{}{} |
| 126 |
\DeclareDocumentCommand{\PreToDeclareTOCEntryStylePreCheckNeeds}{}{} |
| 127 |
\DeclareDocumentCommand{\TOCEntryStyleNeedsCommandByOption}{}{} |
| 128 |
|
| 129 |
\endinput |
| 130 |
%% |
| 131 |
%% End of file `lwarp-tocbasic.sty'. |