1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215
|
# tocbasic package
# Matthew Bertucci 2025/08/20 for v3.46
#include:scrbase
#include:scrlogo
#keyvals:\usepackage/tocbasic#c
captionposition=#top,bottom
captionabove#true,false
captionbelow#true,false
enablepatch=%<list of patches%>
disablepatch=%<list of patches%>
#endkeyvals
\Ifattoclist{extension}{then code}{else code}#*
\addtotoclist{extension}
\addtotoclist[owner]{extension}
\owneroftoc{arg}#*
\categoryoftoc{arg}#*
\AtAddToTocList{commands}#*
\AtAddToTocList[owner]{commands}#*
\removefromtoclist{extension}
\removefromtoclist[owner]{extension}
\doforeachtocfile{commands}
\doforeachtocfile[owner]{commands}
\addtoeachtocfile{content}
\addtoeachtocfile[owner]{content}
\addcontentslinetoeachtocfile{level}{text}
\addcontentslinetoeachtocfile[owner]{level}{text}
\addxcontentsline{extension}{level}{text}
\addxcontentsline{extension}{level}[section number]{text}
\nonumberline
\addxcontentslinetoeachtocfile{level}{text}
\addxcontentslinetoeachtocfile{level}[section number]{text}
\addxcontentslinetoeachtocfile[owner]{level}{text}
\addxcontentslinetoeachtocfile[owner]{level}[section number]{text}
\BeforeStartingTOC{commands}#*
\BeforeStartingTOC[extension]{commands}#*
\AfterStartingTOC{commands}#*
\AfterStartingTOC[extension]{commands}#*
\listoftoc{extension}
\listoftoc[list-of title]{extension}
\listoftoc*{extension}
\listofname#*
\listofeachtoc
\listofeachtoc[owner]
\BeforeTOCHead{commands}#*
\BeforeTOCHead[extension]{commands}#*
\AfterTOCHead{commands}#*
\AfterTOCHead[extension]{commands}#*
\deftocheading{extension}{definition}#*
\setuptoc{extension}{feature list%keyvals}
\unsettoc{extension}{feature list%keyvals}
\Iftocfeature{extension}{feature%keyvals}{then code}{else code}#*
#keyvals:\setuptoc#c,\unsettoc#c,\Iftocfeature#c
leveldown
nobabel
noindent
noparskipfake
noprotrusion
numbered
numberline
onecolumn
totoc
chapteratlist
#endkeyvals
\tocbasicautomode
\DeclareNewTOC{extension}
\DeclareNewTOC[options%keyvals]{extension}
#keyvals:\DeclareNewTOC#c
atbegin=%<commands%>
atend=%<commands%>
category=%<string%>
counterwithin=%<counter%>
float
floatpos=%<float positions%>
floattype=%<number%>
forcenames
hang=##L
indent=##L
level=%<number%>
listname=%<title%>
name=%<entry name%>
nonfloat
owner=%<string%>
setup={%<list of attributes%>}
tocentrystyle=%<TOC-entry style%>
tocentryafterpar=%<code%>
tocentrybeforeskip=##L
tocentrybreakafternumber=#true,on,yes,false,off,no
tocentrydynindent=#true,on,yes,false,off,no
tocentrydynnumwidth=#true,on,yes,false,off,no
tocentryentryformat=%<command%>
tocentryentrynumberformat=%<command%>
tocentryindent=##L
tocentrylevel=%<integer%>
tocentryindentfollows={%<list of levels%>}
tocentrylinefill=%<code%>
tocentrynumsep=##L
tocentrynumwidth=##L
tocentryonendentry=%<code%>
tocentryonendlastentry=%<code%>
tocentryonstartentry=%<code%>
tocentryonstartfirstentry=%<code%>
tocentryonstarthigherlevel=%<code%>
tocentryonstartlowerlevel=%<code%>
tocentryonstartsamelevel=%<code%>
tocentrypagenumberbox=%<command%>
tocentrypagenumberformat=%<command%>
tocentrypagenumberwidth=##L
tocentryprepagenumber=%<code%>
tocentryraggedentrytext=#true,on,yes,false,off,no
tocentryraggedpagenumber=#true,on,yes,false,off,no
tocentryraggedright=#true,on,yes,false,off,no
tocentryrightindent=##L
type=%<entry type%>
types=%<string%>
unset={%<list of attributes%>}
#endkeyvals
\captionabove[entry]{title%text}
\captionabove{title%text}
\captionaboveof{float type}[entry]{title%text}
\captionaboveof{float type}{title%text}
\captionbelow[entry]{title%text}
\captionbelow{title%text}
\captionbelowof{float type}[entry]{title%text}
\captionbelowof{float type}{title%text}
\captionof{float type}[entry]{title%text}
\captionof{float type}{title%text}
\usetocbasicnumberline
\usetocbasicnumberline[code]
\TOCEntryStyleInitCode{style}{initial code}#*
\TOCEntryStyleInitCode*{style}{initial code}#*
\TOCEntryStyleStartInitCode{style}{initial code}#*
\DefineTOCEntryBooleanOption{option}{prefix}{postfix}{description}#*
\DefineTOCEntryBooleanOption{option}[default]{prefix}{postfix}{description}#*
\DefineTOCEntryCommandOption{option}{prefix}{postfix}{description}#*
\DefineTOCEntryCommandOption{option}[default]{prefix}{postfix}{description}#*
\DefineTOCEntryIfOption{option}{prefix}{postfix}{description}#*
\DefineTOCEntryIfOption{option}[default]{prefix}{postfix}{description}#*
\DefineTOCEntryLengthOption{option}{prefix}{postfix}{description}#*
\DefineTOCEntryLengthOption{option}[default]{prefix}{postfix}{description}#*
\DefineTOCEntryListOption{option}{prefix}{postfix}{description}#*
\DefineTOCEntryListOption{option}[default]{prefix}{postfix}{description}#*
\DefineTOCEntryNumberOption{option}{prefix}{postfix}{description}#*
\DefineTOCEntryNumberOption{option}[default]{prefix}{postfix}{description}#*
\DefineTOCEntryOption{option}{code}#*
\DefineTOCEntryOption{option}[default]{code}#*
\AddToDeclareTOCEntryStylePreCheckNeeds{code}#*
\PreToDeclareTOCEntryStylePreCheckNeeds{code}#*
\TOCEntryStyleNeedsCommandByOption{option}{arg2}{arg3}{arg4}{arg5}#*
\DeclareTOCEntryStyle{style}{command code}#*
\DeclareTOCEntryStyle{style}[initial code]{command code}#*
\CloneTOCEntryStyle{style}{new style}#*
\DeclareTOCStyleEntry{style}{entry level}
\DeclareTOCStyleEntry[option list%keyvals]{style}{entry level}
\DeclareTOCStyleEntries{style}{entry level}
\DeclareTOCStyleEntries[option list%keyvals]{style}{entry level}
#keyvals:\DeclareTOCStyleEntry#c,\DeclareTOCStyleEntries#c
afterpar=%<code%>
beforeskip=##L
breakafternumber=#true,on,yes,false,off,no
dynindent=#true,on,yes,false,off,no
dynnumwidth=#true,on,yes,false,off,no
entryformat=%<command%>
entrynumberformat=%<command%>
indent=##L
level=%<integer%>
indentfollows={%<list of levels%>}
linefill=%<code%>
numsep=##L
numwidth=##L
onendentry=%<code%>
onendlastentry=%<code%>
onstartentry=%<code%>
onstartfirstentry=%<code%>
onstarthigherlevel=%<code%>
onstartlowerlevel=%<code%>
onstartsamelevel=%<code%>
pagenumberbox=%<command%>
pagenumberformat=%<command%>
pagenumberwidth=##L
prepagenumber=%<code%>
raggedentrytext=#true,on,yes,false,off,no
raggedpagenumber=#true,on,yes,false,off,no
raggedright=#true,on,yes,false,off,no
rightindent=##L
#endkeyvals
\LastTOCLevelWasHigher#*
\LastTOCLevelWasSame#*
\LastTOCLevelWasLower#*
\TOCLineLeaderFill#*
\TOCLineLeaderFill[leader]#*
\MakeMarkcase{text}
\parttocdepth#*
\sectiontocdepth#*
\subsectiontocdepth#*
\subsubsectiontocdepth#*
\paragraphtocdepth#*
\subparagraphtocdepth#*
# deprecated
\ifattoclist#S
\iftocfeature#S
|