| 1 |
% !TeX root = tcolorbox.tex |
| 2 |
% include file of tcolorbox.tex (manual of the LaTeX package tcolorbox) |
| 3 |
\clearpage |
| 4 |
\section{Library \mylib{documentation}}\label{sec:documentation}% |
| 5 |
\tcbset{external/prefix=external/documentation_}% |
| 6 |
This library has the single purpose to support \LaTeX\ package documentations |
| 7 |
like this one. Actually, the visual nature follows the approach from |
| 8 |
Till Tantau's \refPkg{pgf} \cite{tantau:tikz_and_pgf} documentation. |
| 9 |
Typically, this library is assumed to be used in conjunction with the |
| 10 |
class \refPkg{ltxdoc} or alike. |
| 11 |
Denis Bitouz\'e, Yukai Chou, and many others provided very valuable input for this library. |
| 12 |
|
| 13 |
The library is loaded by a package option or inside the preamble by: |
| 14 |
\begin{dispListing} |
| 15 |
\tcbuselibrary{documentation} |
| 16 |
\end{dispListing} |
| 17 |
This also loads |
| 18 |
the library \mylib{skins}, see \zvref{sec:skins}, |
| 19 |
the library \mylib{raster}, see \zvref{sec:raster}, |
| 20 |
the library \mylib{listings}, see \zvref{sec:listings}, |
| 21 |
and a bunch of packages, namely |
| 22 |
\refPkg{makeidx}, \refPkg{marginnote}, \refPkg{refcount}, and \refPkg{hyperref}. |
| 23 |
The packages \refPkg{pifont} and \refPkg{marvosym} should be installed for some symbols, but |
| 24 |
need not to be loaded. |
| 25 |
|
| 26 |
\begin{marker} |
| 27 |
The package \refPkg{makeidx} is loaded only, if \docAuxCommand*{printindex} is |
| 28 |
\emph{not} already defined. Therefore, one can include an alternative to \refPkg{makeidx} like |
| 29 |
\refPkg{imakeidx} \emph{before} the library \mylib{documentation} is used. |
| 30 |
\end{marker} |
| 31 |
\begin{marker} |
| 32 |
The package \refPkg{marginnote} is loaded only, if \docAuxCommand*{marginnote} is |
| 33 |
\emph{not} already defined. |
| 34 |
\end{marker} |
| 35 |
\begin{marker} |
| 36 |
In contrast to other |tcolorbox| options, the option |
| 37 |
settings for \mylib{documentation} are typically not |
| 38 |
getting reset by \refKey{/tcb/reset}, i.\,e., they keep their |
| 39 |
values for embedded boxes. |
| 40 |
\end{marker} |
| 41 |
\begin{marker} |
| 42 |
In combination with DocStrip, \refKey{/tcb/verbatim ignore percent} may be helpful. |
| 43 |
\end{marker} |
| 44 |
|
| 45 |
For UTF-8 support load (ignore this when using Xe\LaTeX): |
| 46 |
\begin{dispListing} |
| 47 |
\tcbuselibrary{listingsutf8,documentation} |
| 48 |
\end{dispListing} |
| 49 |
|
| 50 |
For \refPkg{minted} \cite{poore:minted} support, load: |
| 51 |
\begin{dispListing} |
| 52 |
\tcbuselibrary{documentation,minted} |
| 53 |
\tcbset{listing engine=minted} |
| 54 |
\end{dispListing} |
| 55 |
|
| 56 |
|
| 57 |
%\clearpage |
| 58 |
%------------------------------------------------------------------------------- |
| 59 |
\subsection{Macros of the Library} |
| 60 |
|
| 61 |
\begin{docEnvironment}[doclang/environment content=command description,doc updated=2020-04-22] |
| 62 |
{docCommand}{\oarg{options}\marg{name}\marg{parameters}} |
| 63 |
Documents a \LaTeX\ macro with given \meta{name} where \meta{name} is |
| 64 |
written without backslash. The given \meta{options} are set with \refCom{tcbset}. |
| 65 |
This macro takes mandatory or optional \meta{parameters}. |
| 66 |
It is automatically indexed and can be referenced with |
| 67 |
\refCom{refCom}\marg{name}. |
| 68 |
\begin{dispExample} |
| 69 |
\begin{docCommand}{foomakedocSubKey}{\marg{name}\marg{key path}} |
| 70 |
Creates a new environment \meta{name} based on \refEnv{docKey} for the |
| 71 |
documentation of keys with the given \meta{key path}. |
| 72 |
\end{docCommand} |
| 73 |
\end{dispExample} |
| 74 |
\begin{dispExample} |
| 75 |
\begin{docCommand}[doc no index,color definition=blue]{section}% |
| 76 |
{\sarg\marg{title}} |
| 77 |
Starts a section. The star variant is unnumbered. |
| 78 |
\end{docCommand} |
| 79 |
\end{dispExample} |
| 80 |
\end{docEnvironment} |
| 81 |
|
| 82 |
|
| 83 |
\begin{docEnvironment}[doclang/environment content=command description,doc updated=2020-04-22] |
| 84 |
{docCommand*}{\oarg{options}\marg{name}\marg{parameters}} |
| 85 |
Identical to \refEnv{docCommand}, but without index entry. |
| 86 |
\end{docEnvironment} |
| 87 |
|
| 88 |
|
| 89 |
\begin{docEnvironment}[doclang/environment content=command description,doc new=2020-04-22] |
| 90 |
{docCommands}{\oarg{options}\brackets{\marg{variant1},\marg{variant2},...}} |
| 91 |
Documents several (similar) \LaTeX\ macro variants simultaneously. |
| 92 |
The given \meta{options} are set with \refCom{tcbset} and are valid for |
| 93 |
all variants and the documentation text. |
| 94 |
Every variant is described by an option set \meta{variant1}, \meta{variant2}, and so on. |
| 95 |
The most crucial options are \refKey{/tcb/doc name} and \refKey{/tcb/doc parameter}. |
| 96 |
\begin{dispExample} |
| 97 |
\begin{docCommands}[ |
| 98 |
doc no index, % no index entries for this example |
| 99 |
doc name = newtheorem |
| 100 |
] |
| 101 |
{ |
| 102 |
{ doc parameter = \sarg\marg{envname} }, |
| 103 |
{ doc parameter = \marg{envname}\oarg{numbered within} }, |
| 104 |
{ doc parameter = \oarg{numbered like}\marg{envname} } |
| 105 |
} |
| 106 |
example |
| 107 |
\end{docCommands} |
| 108 |
\end{dispExample} |
| 109 |
\end{docEnvironment} |
| 110 |
|
| 111 |
|
| 112 |
|
| 113 |
\clearpage |
| 114 |
{\let\xdocEnvironment\docEnvironment |
| 115 |
\let\endxdocEnvironment\enddocEnvironment |
| 116 |
\begin{xdocEnvironment}[doclang/environment content=environment description,doc updated=2020-04-22] |
| 117 |
{docEnvironment}{\oarg{options}\marg{name}\marg{parameters}} |
| 118 |
Documents a \LaTeX\ environment with given \meta{name}. |
| 119 |
The given \meta{options} are set with \refCom{tcbset}. |
| 120 |
This environment takes mandatory or optional \meta{parameters}. |
| 121 |
It is automatically indexed and can be referenced with |
| 122 |
\refCom{refEnv}\marg{name}. |
| 123 |
\begin{dispExample} |
| 124 |
\begin{docEnvironment}{foocolorbox}{\oarg{options}} |
| 125 |
This is the main environment to create an accentuated colored text box with |
| 126 |
rounded corners and, optionally, two parts. |
| 127 |
\end{docEnvironment} |
| 128 |
\end{dispExample} |
| 129 |
\begin{dispExample} |
| 130 |
\begin{docEnvironment}% |
| 131 |
[doclang/environment content=My content text]% |
| 132 |
{foocolorbox*}{\oarg{options}} |
| 133 |
This is the main environment to create an accentuated colored text box with |
| 134 |
rounded corners and, optionally, two parts. |
| 135 |
\end{docEnvironment} |
| 136 |
\end{dispExample} |
| 137 |
\end{xdocEnvironment}} |
| 138 |
|
| 139 |
{\let\xdocEnvironment\docEnvironment |
| 140 |
\let\endxdocEnvironment\enddocEnvironment |
| 141 |
\begin{xdocEnvironment}[doclang/environment content=environment description,doc updated=2020-04-22] |
| 142 |
{docEnvironment*}{\oarg{options}\marg{name}\marg{parameters}} |
| 143 |
Identical to \refEnv{docEnvironment}, but without index entry. |
| 144 |
\end{xdocEnvironment}} |
| 145 |
|
| 146 |
|
| 147 |
\clearpage |
| 148 |
{\let\xdocEnvironment\docEnvironment |
| 149 |
\let\endxdocEnvironment\enddocEnvironment |
| 150 |
\begin{xdocEnvironment}[doclang/environment content=environment description,doc new=2020-04-22] |
| 151 |
{docEnvironments}{\oarg{options}\brackets{\marg{variant1},\marg{variant2},...}} |
| 152 |
Documents several (similar) \LaTeX\ environment variants simultaneously. |
| 153 |
The given \meta{options} are set with \refCom{tcbset} and are valid for |
| 154 |
all variants and the documentation text. |
| 155 |
Every variant is described by an option set \meta{variant1}, \meta{variant2}, and so on. |
| 156 |
The most crucial options are \refKey{/tcb/doc name} and \refKey{/tcb/doc parameter}. |
| 157 |
\begin{dispExample} |
| 158 |
\begin{docEnvironments}[ |
| 159 |
doc no index, % no index entries for this example |
| 160 |
doc parameter = \oarg{options}\marg{title}, |
| 161 |
doclang/environment content = box content, |
| 162 |
] |
| 163 |
{ |
| 164 |
{ |
| 165 |
doc name = redbox, |
| 166 |
doc description = a red colored box, |
| 167 |
}, |
| 168 |
{ |
| 169 |
doc name = greenbox, |
| 170 |
doc description = a green colored box, |
| 171 |
}, |
| 172 |
{ |
| 173 |
doc name = bluebox, |
| 174 |
doc description = a blue colored box, |
| 175 |
}, |
| 176 |
{ |
| 177 |
doc name = custombox, |
| 178 |
doc parameter = \oarg{options}\marg{color}\marg{title}, |
| 179 |
doc description = a colored box, |
| 180 |
}, |
| 181 |
} |
| 182 |
example |
| 183 |
\end{docEnvironments} |
| 184 |
\end{dispExample} |
| 185 |
\end{xdocEnvironment}} |
| 186 |
|
| 187 |
|
| 188 |
\clearpage |
| 189 |
\begin{docEnvironment}[doclang/environment content=key description,doc updated=2020-04-22] |
| 190 |
{docKey}{\oarg{key path}\oarg{options}\marg{name}\marg{parameters}\marg{description}} |
| 191 |
Documents a key with given \meta{name} and an optional \meta{key path}. |
| 192 |
The given \meta{options} are set with \refCom{tcbset}. |
| 193 |
This key takes mandatory or optional \meta{parameters} as value |
| 194 |
with a short \meta{description}. |
| 195 |
It is automatically indexed and can be referenced with |
| 196 |
\refCom{refKey}\marg{name}. |
| 197 |
\begin{dispExample} |
| 198 |
\begin{docKey}[foo]{footitle}{=\meta{text}}{no default, initially empty} |
| 199 |
Creates a heading line with \meta{text} as content. |
| 200 |
\end{docKey} |
| 201 |
\end{dispExample} |
| 202 |
\end{docEnvironment} |
| 203 |
|
| 204 |
|
| 205 |
\begin{docEnvironment}[doclang/environment content=key description,doc updated=2020-04-22] |
| 206 |
{docKey*}{\oarg{key path}\oarg{options}\marg{name}\marg{parameters}\marg{description}} |
| 207 |
Identical to \refEnv{docKey}, but without index entry. |
| 208 |
\end{docEnvironment} |
| 209 |
|
| 210 |
|
| 211 |
\begin{docEnvironment}[doclang/environment content=key description,doc new=2020-04-22] |
| 212 |
{docKeys}{\oarg{options}\brackets{\marg{variant1},\marg{variant2},...}} |
| 213 |
Documents several (similar) key variants simultaneously. |
| 214 |
The given \meta{options} are set with \refCom{tcbset} and are valid for |
| 215 |
all variants and the documentation text. |
| 216 |
Every variant is described by an option set \meta{variant1}, \meta{variant2}, and so on. |
| 217 |
The most crucial options are |
| 218 |
\refKey{/tcb/doc keypath}, \refKey{/tcb/doc name}, \refKey{/tcb/doc parameter}, |
| 219 |
and \refKey{/tcb/doc description}. |
| 220 |
\begin{dispExample} |
| 221 |
\begin{docKeys}[ |
| 222 |
doc no index, % no index entries for this example |
| 223 |
doc keypath = mykeyroot, |
| 224 |
doc parameter = {=\meta{length}}, |
| 225 |
] |
| 226 |
{ |
| 227 |
{ |
| 228 |
doc name = width, |
| 229 |
doc description = initially \texttt{10cm}, |
| 230 |
}, |
| 231 |
{ |
| 232 |
doc name = height, |
| 233 |
doc description = initially \texttt{7cm}, |
| 234 |
}, |
| 235 |
} |
| 236 |
example |
| 237 |
\end{docKeys} |
| 238 |
\end{dispExample} |
| 239 |
\end{docEnvironment} |
| 240 |
|
| 241 |
|
| 242 |
\clearpage |
| 243 |
\begin{docEnvironment}[doclang/environment content=operation description, |
| 244 |
doc new and updated={2019-09-18}{2020-04-22}]{docPathOperation}{\oarg{options}\marg{name}\marg{parameters}} |
| 245 |
Documents a \tikzname\ path operation with given \meta{name}. |
| 246 |
The given \meta{options} are set with \refCom{tcbset}. |
| 247 |
This \tikzname\ path operation takes mandatory or optional \meta{parameters}. |
| 248 |
It is automatically indexed and can be referenced with |
| 249 |
\refCom{refPathOperation}\marg{name}. |
| 250 |
\begin{dispExample} |
| 251 |
\begin{docPathOperation}{fooop}{\oarg{opt}(\meta{name})\colOpt{at(\meta{coord})}} |
| 252 |
Imaginary path operation for illustration. |
| 253 |
\end{docPathOperation} |
| 254 |
\end{dispExample} |
| 255 |
\end{docEnvironment} |
| 256 |
|
| 257 |
|
| 258 |
\begin{docEnvironment}[doclang/environment content=command description, |
| 259 |
doc new and updated={2019-09-18}{2020-04-22}]{docPathOperation*}{\oarg{options}\marg{name}\marg{parameters}} |
| 260 |
Identical to \refEnv{docPathOperation}, but without index entry. |
| 261 |
\end{docEnvironment} |
| 262 |
|
| 263 |
|
| 264 |
\begin{docEnvironment}[doclang/environment content=command description, |
| 265 |
doc new={2020-04-22}]{docPathOperations}{\oarg{options}\brackets{\marg{variant1},\marg{variant2},...}} |
| 266 |
Documents several (similar) \tikzname\ path operation variants simultaneously. |
| 267 |
The given \meta{options} are set with \refCom{tcbset} and are valid for |
| 268 |
all variants and the documentation text. |
| 269 |
Every variant is described by an option set \meta{variant1}, \meta{variant2}, and so on. |
| 270 |
The most crucial options are \refKey{/tcb/doc name} and \refKey{/tcb/doc parameter}. |
| 271 |
\begin{dispExample} |
| 272 |
\begin{docPathOperations}[ |
| 273 |
doc no index, % no index entries for this example |
| 274 |
] |
| 275 |
{ |
| 276 |
{ |
| 277 |
doc name = rectangle, |
| 278 |
doc parameter = \meta{corner or cycle}, |
| 279 |
}, |
| 280 |
{ |
| 281 |
doc name = circle, |
| 282 |
doc parameter = \oarg{options}, |
| 283 |
}, |
| 284 |
{ |
| 285 |
doc name = ellipse, |
| 286 |
doc parameter = \oarg{options}, |
| 287 |
}, |
| 288 |
} |
| 289 |
example |
| 290 |
\end{docPathOperations} |
| 291 |
\end{dispExample} |
| 292 |
\end{docEnvironment} |
| 293 |
|
| 294 |
|
| 295 |
\clearpage |
| 296 |
\begin{docCommands}[doc parameter=\oarg{options}\marg{name}] |
| 297 |
{ |
| 298 |
{ |
| 299 |
doc name = docValue, |
| 300 |
doc updated=2020-04-23, |
| 301 |
}, |
| 302 |
{ |
| 303 |
doc name = docValue*, |
| 304 |
}, |
| 305 |
} |
| 306 |
Documents a value with given \meta{name}. Typically, this is a value for a key. |
| 307 |
The given \meta{options} are set with \refCom{tcbset}. |
| 308 |
This value is automatically indexed for \refCom{docValue} |
| 309 |
and has no index entry for \refCom{docValue*}. |
| 310 |
\begin{dispExample} |
| 311 |
A feasible value for \refKey{/foo/footitle} is \docValue*{foovalue}. |
| 312 |
\end{dispExample} |
| 313 |
\end{docCommands} |
| 314 |
|
| 315 |
|
| 316 |
|
| 317 |
\begin{docCommands}[doc parameter=\oarg{options}\marg{name}] |
| 318 |
{ |
| 319 |
{ |
| 320 |
doc name = docAuxCommand, |
| 321 |
doc updated = 2020-04-23, |
| 322 |
}, |
| 323 |
{ |
| 324 |
doc name = docAuxCommand*, |
| 325 |
}, |
| 326 |
} |
| 327 |
Documents an auxiliary or minor \LaTeX\ macro with given \meta{name} |
| 328 |
where \meta{name} is written without backslash. |
| 329 |
The given \meta{options} are set with \refCom{tcbset}. |
| 330 |
This macro is automatically indexed for \refCom{docAuxCommand} |
| 331 |
and has no index entry for \refCom{docAuxCommand*}. |
| 332 |
\begin{dispExample} |
| 333 |
The macro \docAuxCommand{fooaux} holds some interesting data. |
| 334 |
\end{dispExample} |
| 335 |
\end{docCommands} |
| 336 |
|
| 337 |
|
| 338 |
|
| 339 |
\begin{docCommands}[doc parameter=\oarg{options}\marg{name}] |
| 340 |
{ |
| 341 |
{ |
| 342 |
doc name = docAuxEnvironment, |
| 343 |
doc updated = 2020-04-23, |
| 344 |
}, |
| 345 |
{ |
| 346 |
doc name = docAuxEnvironment*, |
| 347 |
}, |
| 348 |
} |
| 349 |
Documents an auxiliary or minor \LaTeX\ environment with given \meta{name}. |
| 350 |
The given \meta{options} are set with \refCom{tcbset}. |
| 351 |
This macro is automatically indexed for \refCom{docAuxEnvironment} |
| 352 |
and has no index entry for \refCom{docAuxEnvironment*}. |
| 353 |
\begin{dispExample} |
| 354 |
The environment \docAuxEnvironment{fooauxenv} holds some interesting data. |
| 355 |
\end{dispExample} |
| 356 |
\end{docCommands} |
| 357 |
|
| 358 |
|
| 359 |
\begin{docCommands}[doc parameter=\oarg{key path}\oarg{options}\marg{name}] |
| 360 |
{ |
| 361 |
{ |
| 362 |
doc name = docAuxKey, |
| 363 |
doc updated = 2020-04-23, |
| 364 |
}, |
| 365 |
{ |
| 366 |
doc name = docAuxKey*, |
| 367 |
}, |
| 368 |
} |
| 369 |
Documents an auxiliary key with given \meta{name} and an optional \meta{key path}. |
| 370 |
The given \meta{options} are set with \refCom{tcbset}. |
| 371 |
It is automatically indexed for \refCom{docAuxKey} |
| 372 |
and has no index entry for \refCom{docAuxKey*}. |
| 373 |
\begin{dispExample} |
| 374 |
The key \docAuxKey[foo]{fooaux} holds some interesting data. |
| 375 |
\end{dispExample} |
| 376 |
\end{docCommands} |
| 377 |
|
| 378 |
|
| 379 |
|
| 380 |
\begin{docCommands}[doc parameter=\oarg{options}\marg{name}] |
| 381 |
{ |
| 382 |
{ |
| 383 |
doc name = docCounter, |
| 384 |
doc updated = 2020-04-23, |
| 385 |
}, |
| 386 |
{ |
| 387 |
doc name = docCounter*, |
| 388 |
}, |
| 389 |
} |
| 390 |
Documents a counter with given \meta{name}. |
| 391 |
The given \meta{options} are set with \refCom{tcbset}. |
| 392 |
The counter is automatically indexed for \refCom{docCounter} |
| 393 |
and has no index entry for \refCom{docCounter*}. |
| 394 |
\begin{dispExample} |
| 395 |
The counter \docCounter{foocounter} can be used for computation. |
| 396 |
\end{dispExample} |
| 397 |
\end{docCommands} |
| 398 |
|
| 399 |
|
| 400 |
\clearpage |
| 401 |
\begin{docCommands}[doc parameter=\oarg{options}\marg{name}] |
| 402 |
{ |
| 403 |
{ |
| 404 |
doc name = docLength, |
| 405 |
doc updated = 2020-04-23, |
| 406 |
}, |
| 407 |
{ |
| 408 |
doc name = docLength*, |
| 409 |
}, |
| 410 |
} |
| 411 |
Documents a length with given \meta{name}. |
| 412 |
The given \meta{options} are set with \refCom{tcbset}. |
| 413 |
The length is automatically indexed for \refCom{docLength} |
| 414 |
and has no index entry for \refCom{docLength*}. |
| 415 |
\begin{dispExample} |
| 416 |
The length \docLength{foolength} can be used for computation. |
| 417 |
\end{dispExample} |
| 418 |
\end{docCommands} |
| 419 |
|
| 420 |
|
| 421 |
\begin{docCommands}[doc parameter=\oarg{options}\marg{name}] |
| 422 |
{ |
| 423 |
{ |
| 424 |
doc name = docColor, |
| 425 |
doc updated = 2020-04-23, |
| 426 |
}, |
| 427 |
{ |
| 428 |
doc name = docColor*, |
| 429 |
}, |
| 430 |
} |
| 431 |
Documents a color with given \meta{name}. |
| 432 |
The given \meta{options} are set with \refCom{tcbset}. |
| 433 |
The color is automatically indexed for \refCom{docColor} |
| 434 |
and has no index entry for \refCom{docColor*}. |
| 435 |
\begin{dispExample} |
| 436 |
The color \docColor{foocolor} is available. |
| 437 |
\end{dispExample} |
| 438 |
\end{docCommands} |
| 439 |
|
| 440 |
|
| 441 |
|
| 442 |
\begin{docCommand}{cs}{\marg{name}} |
| 443 |
Macro from \refPkg{ltxdoc} \cite{carlisle:ltxdoc} to typeset a command word \meta{name} |
| 444 |
where the backslash is prefixed. The library overwrites the original macro. |
| 445 |
\begin{dispExample} |
| 446 |
This is a \cs{foocommand}. |
| 447 |
\end{dispExample} |
| 448 |
\end{docCommand} |
| 449 |
|
| 450 |
\begin{docCommand}{meta}{\marg{text}} |
| 451 |
Macro from \refPkg{doc} \cite{mittelbach:doc} to typeset a meta \meta{text}. |
| 452 |
The library overwrites the original macro. |
| 453 |
\begin{dispExample} |
| 454 |
This is a \meta{text}. |
| 455 |
\end{dispExample} |
| 456 |
\end{docCommand} |
| 457 |
|
| 458 |
|
| 459 |
\begin{docCommand}{marg}{\marg{text}} |
| 460 |
Macro from \refPkg{ltxdoc} \cite{carlisle:ltxdoc} to typeset a \meta{text} with |
| 461 |
curly brackets as a mandatory argument. The library overwrites the original macro. |
| 462 |
\begin{dispExample} |
| 463 |
This is a mandatory \marg{argument}. |
| 464 |
\end{dispExample} |
| 465 |
\end{docCommand} |
| 466 |
|
| 467 |
\begin{docCommand}{oarg}{\marg{text}} |
| 468 |
Macro from \refPkg{ltxdoc} \cite{carlisle:ltxdoc} to typeset a \meta{text} with |
| 469 |
square brackets as an optional argument. The library overwrites the original macro. |
| 470 |
\begin{dispExample} |
| 471 |
This is an optional \oarg{argument}. |
| 472 |
\end{dispExample} |
| 473 |
\end{docCommand} |
| 474 |
|
| 475 |
\clearpage |
| 476 |
|
| 477 |
\begin{docCommand}[doc new={2025-05-28}]{pbarg}{\marg{text}} |
| 478 |
Renamed macro from the \refPkg{beamer} \cite{tantau:beamer} documentation to |
| 479 |
typeset a \meta{text} with pointed brackets as a mandatory argument. |
| 480 |
\begin{dispExample} |
| 481 |
This is a |beamer| \pbarg{argument}. |
| 482 |
\end{dispExample} |
| 483 |
\end{docCommand} |
| 484 |
|
| 485 |
|
| 486 |
\begin{docCommand}[doc new=2023-02-16]{sarg}{} |
| 487 |
Macro to typeset \sarg{} as an optional star. |
| 488 |
\begin{dispExample} |
| 489 |
This is an optional \sarg. |
| 490 |
\end{dispExample} |
| 491 |
\end{docCommand} |
| 492 |
|
| 493 |
|
| 494 |
\begin{docCommand}{brackets}{\marg{text}} |
| 495 |
Sets the given \meta{text} with curly brackets. |
| 496 |
\begin{dispExample} |
| 497 |
Here we use \brackets{some text}. |
| 498 |
\end{dispExample} |
| 499 |
\end{docCommand} |
| 500 |
|
| 501 |
|
| 502 |
{\let\xdispExample\dispExample |
| 503 |
\let\endxdispExample\enddispExample |
| 504 |
\begin{docEnvironment}[doc updated=2014-10-10]{dispExample}{} |
| 505 |
Creates a colored box based on a \refEnv{tcolorbox}. |
| 506 |
It displays the environment content as source code in the upper part |
| 507 |
and as compiled text in the lower part of the box. |
| 508 |
The appearance is controlled by \refKey{/tcb/documentation listing style} |
| 509 |
and the style \refKey{/tcb/docexample}. It may be |
| 510 |
changed by redefining this style. |
| 511 |
{ |
| 512 |
%\tcbset{before lower app={\tcbset{docexample/.style={docexample original}}}} |
| 513 |
%\tcbset{docexample/.style={docexample original}}% |
| 514 |
\begin{xdispExample} |
| 515 |
\begin{dispExample} |
| 516 |
This is a \LaTeX\ example. |
| 517 |
\end{dispExample} |
| 518 |
\end{xdispExample} |
| 519 |
} |
| 520 |
\end{docEnvironment}} |
| 521 |
|
| 522 |
|
| 523 |
{\let\xdispExample\dispExample |
| 524 |
\let\endxdispExample\enddispExample |
| 525 |
\begin{docEnvironment}[doc updated=2014-10-10]{dispExample*}{\marg{options}} |
| 526 |
The starred version of \refEnv{dispExample} takes \refEnv{tcolorbox} \meta{options} |
| 527 |
as parameter. These \meta{options} are executed after \refKey{/tcb/docexample}. |
| 528 |
\begin{xdispExample} |
| 529 |
\begin{dispExample*}{sidebyside} |
| 530 |
This is a \LaTeX\ example. |
| 531 |
\end{dispExample*} |
| 532 |
\end{xdispExample} |
| 533 |
\end{docEnvironment}} |
| 534 |
|
| 535 |
|
| 536 |
\clearpage |
| 537 |
\begin{docEnvironment}{dispListing}{} |
| 538 |
Creates a colored box based on a \refEnv{tcolorbox}. |
| 539 |
It displays the environment content as source code. |
| 540 |
The appearance is controlled by \refKey{/tcb/documentation listing style} |
| 541 |
and the style \refKey{/tcb/docexample}. It may be |
| 542 |
changed by redefining this style. |
| 543 |
\begin{dispExample} |
| 544 |
\begin{dispListing} |
| 545 |
This is a \LaTeX\ example. |
| 546 |
\end{dispListing} |
| 547 |
\end{dispExample} |
| 548 |
\end{docEnvironment} |
| 549 |
|
| 550 |
\begin{docEnvironment}{dispListing*}{\marg{options}} |
| 551 |
The starred version of \refEnv{dispListing} takes \refEnv{tcolorbox} \meta{options} |
| 552 |
as parameter. These \meta{options} are executed after \refKey{/tcb/docexample}. |
| 553 |
\begin{dispExample} |
| 554 |
\begin{dispListing*}{title=My listing} |
| 555 |
This is a \LaTeX\ example. |
| 556 |
\end{dispListing*} |
| 557 |
\end{dispExample} |
| 558 |
\end{docEnvironment} |
| 559 |
|
| 560 |
|
| 561 |
\begin{docEnvironment}{absquote}{} |
| 562 |
Used to typeset an abstract as quoted and small text. |
| 563 |
\begin{dispExample} |
| 564 |
\begin{absquote} |
| 565 |
|tcolorbox| provides an environment for colored and framed text boxes with a |
| 566 |
heading line. Optionally, such a box can be split in an upper and a lower part. |
| 567 |
\end{absquote} |
| 568 |
\end{dispExample} |
| 569 |
\end{docEnvironment} |
| 570 |
|
| 571 |
\clearpage |
| 572 |
\begin{docCommand}[doc updated=2023-12-01]{tcbmakedocSubKey}{\oarg{options}\marg{name}\marg{key path}} |
| 573 |
Creates a new environment \meta{name} based on \refEnv{docKey} for the |
| 574 |
documentation of keys with the given \meta{key path} as root. |
| 575 |
The new environment \meta{name} takes the same para\-meters as \refEnv{docKey} itself. |
| 576 |
The given \meta{options} are prepended to options of the \meta{name} environment. |
| 577 |
A second starred environment \meta{name} is also created, which is identical |
| 578 |
to \meta{name} but without index entry. |
| 579 |
\begin{dispExample} |
| 580 |
\tcbmakedocSubKey{docFooKey}{foo} |
| 581 |
|
| 582 |
\begin{docFooKey}{foodummy}{=\meta{nothing}}{no default, initially empty} |
| 583 |
Some key. |
| 584 |
\end{docFooKey} |
| 585 |
|
| 586 |
\begin{docFooKey*}{foo another dummy}{=\meta{nothing}}{no default, initially empty} |
| 587 |
Some key (not indexed). |
| 588 |
\end{docFooKey*} |
| 589 |
\end{dispExample} |
| 590 |
\end{docCommand} |
| 591 |
|
| 592 |
|
| 593 |
\begin{docCommand}[doc new and updated={2020-04-22}{2023-12-01}]{tcbmakedocSubKeys}{\oarg{options}\marg{name}\marg{key path}} |
| 594 |
Creates a new environment \meta{name} based on \refEnv{docKeys} for the |
| 595 |
documentation of keys with the given \meta{key path} as root. |
| 596 |
The new environment \meta{name} takes the same para\-meters as \refEnv{docKeys} itself. |
| 597 |
The given \meta{options} are prepended to options of the \meta{name} environment |
| 598 |
(see \refKey{/tcb/index key formatter} for an example). |
| 599 |
\begin{dispExample} |
| 600 |
\tcbmakedocSubKeys{docFooKeys}{foo} |
| 601 |
|
| 602 |
\begin{docFooKeys}[ |
| 603 |
doc parameter = {=\meta{nothing}}, |
| 604 |
doc description = {no default, initially empty}, |
| 605 |
] |
| 606 |
{ |
| 607 |
{ |
| 608 |
doc name = foodummy 2, |
| 609 |
}, |
| 610 |
{ |
| 611 |
doc name = foo another dummy 2, |
| 612 |
doc no index, |
| 613 |
} |
| 614 |
} |
| 615 |
Some description. |
| 616 |
\end{docFooKeys} |
| 617 |
\end{dispExample} |
| 618 |
\end{docCommand} |
| 619 |
|
| 620 |
|
| 621 |
\clearpage |
| 622 |
|
| 623 |
\begin{docCommand}{refCom}{\marg{name}} |
| 624 |
References a documented \LaTeX\ macro with given \meta{name} where \meta{name} is |
| 625 |
written without backslash. The page reference is suppressed if it links |
| 626 |
to the same page. |
| 627 |
\begin{dispExample} |
| 628 |
We have created \refCom{foomakedocSubKey} as an example. |
| 629 |
\end{dispExample} |
| 630 |
\end{docCommand} |
| 631 |
|
| 632 |
\begin{docCommand}{refCom*}{\marg{name}} |
| 633 |
References a documented \LaTeX\ macro with given \meta{name} where \meta{name} is |
| 634 |
written without backslash. There is no page reference. |
| 635 |
\begin{dispExample} |
| 636 |
We have created \refCom*{foomakedocSubKey} as an example. |
| 637 |
\end{dispExample} |
| 638 |
\end{docCommand} |
| 639 |
|
| 640 |
|
| 641 |
\begin{docCommand}{refEnv}{\marg{name}} |
| 642 |
References a documented \LaTeX\ environment with given \meta{name}. |
| 643 |
The page reference is suppressed if it links to the same page. |
| 644 |
\begin{dispExample} |
| 645 |
We have created \refEnv{foocolorbox} as an example. |
| 646 |
\end{dispExample} |
| 647 |
\end{docCommand} |
| 648 |
|
| 649 |
\begin{docCommand}{refEnv*}{\marg{name}} |
| 650 |
References a documented \LaTeX\ environment with given \meta{name}. |
| 651 |
There is no page reference. |
| 652 |
\begin{dispExample} |
| 653 |
We have created \refEnv*{foocolorbox} as an example. |
| 654 |
\end{dispExample} |
| 655 |
\end{docCommand} |
| 656 |
|
| 657 |
|
| 658 |
\begin{docCommand}{refKey}{\marg{name}} |
| 659 |
References a documented key with given \meta{name} where \meta{name} |
| 660 |
is the full path name of the key. |
| 661 |
The page reference is suppressed if it links to the same page. |
| 662 |
\begin{dispExample} |
| 663 |
We have created \refKey{/foo/footitle} as an example. |
| 664 |
\end{dispExample} |
| 665 |
\end{docCommand} |
| 666 |
|
| 667 |
\begin{docCommand}{refKey*}{\marg{name}} |
| 668 |
References a documented key with given \meta{name} where \meta{name} |
| 669 |
is the full path name of the key. |
| 670 |
There is no page reference. |
| 671 |
\begin{dispExample} |
| 672 |
We have created \refKey*{/foo/footitle} as an example. |
| 673 |
\end{dispExample} |
| 674 |
\end{docCommand} |
| 675 |
|
| 676 |
\clearpage |
| 677 |
|
| 678 |
\begin{docCommand}[doc new=2019-09-17]{refPathOperation}{\marg{name}} |
| 679 |
References a documented \tikzname\ path operation with given \meta{name}. |
| 680 |
The page reference is suppressed if it links to the same page. |
| 681 |
\begin{dispExample} |
| 682 |
We have created \refPathOperation{fooop} as an example. |
| 683 |
\end{dispExample} |
| 684 |
\end{docCommand} |
| 685 |
|
| 686 |
\begin{docCommand}[doc new=2019-09-17]{refPathOperation*}{\marg{name}} |
| 687 |
References a documented \tikzname\ path operation with given \meta{name}. |
| 688 |
There is no page reference. |
| 689 |
\begin{dispExample} |
| 690 |
We have created \refPathOperation*{fooop} as an example. |
| 691 |
\end{dispExample} |
| 692 |
\end{docCommand} |
| 693 |
|
| 694 |
|
| 695 |
|
| 696 |
\begin{docCommand}[doc updated=2020-02-11]{refAux}{\marg{name}} |
| 697 |
References some auxiliary environment, key, value, or color. |
| 698 |
The \meta{name} is colored according to \refKey{/tcb/color hyperlink}, |
| 699 |
if \refPkg{hyperref} colorlinks are set, but there is no real link. |
| 700 |
\begin{dispExample} |
| 701 |
Some pages back, one can see \refAux{/foo/footitle} as an example. |
| 702 |
\end{dispExample} |
| 703 |
\end{docCommand} |
| 704 |
|
| 705 |
\begin{docCommand}[doc updated=2020-02-11]{refAuxcs}{\marg{name}} |
| 706 |
References some auxiliary macro \meta{name} where \meta{name} is |
| 707 |
written without backslash. |
| 708 |
The \meta{name} is colored according to \refKey{/tcb/color hyperlink}, |
| 709 |
if \refPkg{hyperref} colorlinks are set, but there is no real link. |
| 710 |
\begin{dispExample} |
| 711 |
Some pages back, one can see \refAuxcs{fooaux} as an example. |
| 712 |
\end{dispExample} |
| 713 |
\end{docCommand} |
| 714 |
|
| 715 |
|
| 716 |
\begin{docCommand}[doc new and updated={2024-09-18}{2024-11-29}]{refPkg}{\oarg{ctanname}\marg{name}} |
| 717 |
References a package \meta{name} on \href{https://ctan.org}{CTAN} with |
| 718 |
hyperlink \mbox{|https://ctan.org/pkg/|\meta{name}}. |
| 719 |
Using the option \meta{ctanname} creates the hyperlink |
| 720 |
\mbox{|https://ctan.org/pkg/|\meta{ctanname}}. |
| 721 |
The appearance of the \href{https://ctan.org}{CTAN} text can be |
| 722 |
customized by \refKey{/tcb/ctan formatter}. |
| 723 |
\begin{dispExample} |
| 724 |
\tcbset{ctan formatter=\texttt} |
| 725 |
Hyperlinks are created with help of the \refPkg{hyperref} package.\par |
| 726 |
The package \refPkg[frankenstein]{dialogue} is part of the |
| 727 |
\refPkg{frankenstein} bundle of packages. |
| 728 |
\end{dispExample} |
| 729 |
\end{docCommand} |
| 730 |
|
| 731 |
|
| 732 |
\clearpage |
| 733 |
|
| 734 |
\begin{docCommand}{colDef}{\marg{text}} |
| 735 |
Sets \meta{text} with the command color, see \refKey{/tcb/color command}. |
| 736 |
\begin{dispExample} |
| 737 |
This is my \colDef{text}. |
| 738 |
\end{dispExample} |
| 739 |
\end{docCommand} |
| 740 |
|
| 741 |
\begin{docCommand}{colOpt}{\marg{text}} |
| 742 |
Sets \meta{text} with the option color, see \refKey{/tcb/color option}. |
| 743 |
\begin{dispExample} |
| 744 |
This is my \colOpt{text}. |
| 745 |
\end{dispExample} |
| 746 |
\end{docCommand} |
| 747 |
|
| 748 |
\begin{docCommand}[doc new=2019-09-18]{colFade}{\marg{text}} |
| 749 |
Sets \meta{text} with the fade color, see \refKey{/tcb/color fade}. |
| 750 |
\begin{dispExample} |
| 751 |
This is my \colFade{text}. |
| 752 |
\end{dispExample} |
| 753 |
\end{docCommand} |
| 754 |
|
| 755 |
|
| 756 |
\begin{docCommand}[doc new=2014-09-19]{tcbdocmarginnote}{\oarg{options}\marg{text}} |
| 757 |
Creates a |tcolorbox| note with the given \meta{text} inside the margin using |
| 758 |
the \refPkg{marginnote} package. The style of the |tcolorbox| is predefined and can be |
| 759 |
altered by \refKey{/tcb/doc marginnote} and the given \meta{options}. |
| 760 |
\begin{dispExample} |
| 761 |
Some text\tcbdocmarginnote{Note A} |
| 762 |
which is commented by a note inside the margin. |
| 763 |
Alternatively to |\tcbdocmarginnote|, you can always use |
| 764 |
|\marginnote| with a |tcolorbox| directly.\par |
| 765 |
This is further text% |
| 766 |
\tcbdocmarginnote[colframe=blue!50!white,colback=blue!5!white]{Note B} |
| 767 |
with another note. |
| 768 |
\end{dispExample} |
| 769 |
\end{docCommand} |
| 770 |
|
| 771 |
\begin{docCommand}[doc new=2014-09-19]{tcbdocnew}{\marg{date}} |
| 772 |
Auxiliary macro which typesets the \refKey{/tcb/doclang/new} text with |
| 773 |
the given \meta{date}. It may be redefined for customization. |
| 774 |
\makeatletter\renewcommand*{\tcbdocnew}[1]{\kvtcb@text@new: #1}\makeatother% |
| 775 |
\begin{dispExample*}{sidebyside} |
| 776 |
\tcbdocnew{1981-10-29}. |
| 777 |
% Next one is displayed in the margin: |
| 778 |
\tcbdocmarginnote{\tcbdocnew{1978-02-09}} |
| 779 |
\end{dispExample*} |
| 780 |
\end{docCommand} |
| 781 |
|
| 782 |
\begin{docCommand}[doc new=2014-09-19]{tcbdocupdated}{\marg{date}} |
| 783 |
Auxiliary macro which typesets the \refKey{/tcb/doclang/updated} text with |
| 784 |
the given \meta{date}. It may be redefined for customization. |
| 785 |
\makeatletter\renewcommand*{\tcbdocupdated}[1]{\kvtcb@text@updated: #1}\makeatother% |
| 786 |
\begin{dispExample*}{sidebyside} |
| 787 |
\tcbdocupdated{2014-09-19}. |
| 788 |
\end{dispExample*} |
| 789 |
\end{docCommand} |
| 790 |
|
| 791 |
|
| 792 |
\clearpage |
| 793 |
%------------------------------------------------------------------------------- |
| 794 |
\subsection{Lists of Choices for Key Documentation} |
| 795 |
|
| 796 |
\enlargethispage*{10mm} |
| 797 |
\begin{docCommands}[doc parameter=\marg{comma separated list of choices}] |
| 798 |
{ |
| 799 |
{ |
| 800 |
doc name = docKeyChoices, |
| 801 |
doc new = 2025-09-25, |
| 802 |
}, |
| 803 |
{ |
| 804 |
doc name = docKeyChoices*, |
| 805 |
}, |
| 806 |
} |
| 807 |
Inside the parameter list of \refEnv{docKey}, \refEnv{docKey*}, or \refEnv{docKeys} |
| 808 |
to document a key, this macro can be used to give |
| 809 |
a \meta{comma separated list of choices}. |
| 810 |
These choices are typeset with one leading |=| and \refKey{/tcb/doc key choices separator} |
| 811 |
as separator between every value. Long lists are broken automatically at a width |
| 812 |
which is configured by \refKey{/tcb/doc head left width} or \refKey{/tcb/doc head left ratio}.\par |
| 813 |
The star variant is for optional values and uses \refCom{colOpt}. |
| 814 |
\begin{marker} |
| 815 |
Usage of \refCom{docKeyChoices} outside the parameter list of a key |
| 816 |
documentation is not intended and is not supported. |
| 817 |
\end{marker} |
| 818 |
\begin{dispExample} |
| 819 |
\begin{docKey}[foo]{fooexam1}{\docKeyChoices{one,two,three}} |
| 820 |
{no default, initially \texttt{one}} |
| 821 |
Example for mandatory choices. |
| 822 |
\end{docKey} |
| 823 |
\end{dispExample} |
| 824 |
\begin{dispExample} |
| 825 |
\begin{docKey}[foo]{fooexam2}{\docKeyChoices*{ |
| 826 |
zero,one,two,three,four,five,six,seven,eight,nine,ten,eleven,twelve, |
| 827 |
thirteen,fourteen,fiveteen,sixteen,seventeen,eightteen,nineteen,twenty }} |
| 828 |
{default \texttt{one}, initially \texttt{zero}} |
| 829 |
Example for optional choices. |
| 830 |
\end{docKey} |
| 831 |
\end{dispExample} |
| 832 |
\begin{dispExample} |
| 833 |
\begin{docKey}[foo][doc head left ratio=0.8]{fooexam3}{\docKeyChoices*{ |
| 834 |
zero,one,two,three,four,five,six,seven,eight,nine,ten,eleven,twelve, |
| 835 |
thirteen,fourteen,fiveteen,sixteen,seventeen,eightteen,nineteen,twenty }} |
| 836 |
{default \texttt{one},\\ initially \texttt{zero}} |
| 837 |
\end{docKey} |
| 838 |
\end{dispExample} |
| 839 |
\begin{dispExample} |
| 840 |
\begin{docKey}[foo][doc head left ratio=1.0]{fooexam4}{\docKeyChoices*{ |
| 841 |
zero,one,two,three,four,five,six,seven,eight, \\ nine,ten,eleven,twelve, |
| 842 |
thirteen,fourteen,fiveteen,sixteen,seventeen,eightteen,nineteen,twenty }} |
| 843 |
{default \texttt{one}, initially \texttt{zero}} |
| 844 |
\end{docKey} |
| 845 |
\end{dispExample} |
| 846 |
\end{docCommands} |
| 847 |
|
| 848 |
\clearpage |
| 849 |
\enlargethispage*{10mm} |
| 850 |
|
| 851 |
\begin{docTcbKeys}[ |
| 852 |
doc parameter = {=\meta{comma separated list of choices}}, |
| 853 |
doc description = {style, no default}, |
| 854 |
]{ |
| 855 |
{ |
| 856 |
doc new = {2025-09-25}, |
| 857 |
doc name = doc key choices, |
| 858 |
}, |
| 859 |
{ |
| 860 |
doc name = doc key choices*, |
| 861 |
}, |
| 862 |
} |
| 863 |
These options are shortcuts for setting \refKey{/tcb/doc parameter} with |
| 864 |
\refCom{docKeyChoices} or \refCom{docKeyChoices*} respectively, i.\,e., |
| 865 |
to have a \meta{comma separated list of choices} |
| 866 |
inside the parameter list of \refEnv{docKeys}.\par |
| 867 |
The star variant is for optional values and uses \refCom{colOpt}. |
| 868 |
\begin{dispExample} |
| 869 |
\begin{docKeys}[ |
| 870 |
doc keypath = foo, |
| 871 |
doc name = fooexam5, |
| 872 |
doc key choices* = {true,false}, |
| 873 |
doc description = {default \texttt{true}, initially \texttt{true}}, |
| 874 |
]{} |
| 875 |
\end{docKeys} |
| 876 |
\end{dispExample} |
| 877 |
\begin{dispExample} |
| 878 |
\begin{docKeys}[ |
| 879 |
doc keypath = foo, |
| 880 |
doc name = fooexam6, |
| 881 |
doc key choices = { |
| 882 |
zero,one,two,three,four,five,six,seven,eight,nine,ten,eleven,twelve, |
| 883 |
thirteen,fourteen,fiveteen,sixteen,seventeen,eightteen,nineteen,twenty }, |
| 884 |
doc head left ratio = 0.6, |
| 885 |
doc description = {no default, initially \texttt{zero}}, |
| 886 |
]{} |
| 887 |
\end{docKeys} |
| 888 |
\end{dispExample} |
| 889 |
\end{docTcbKeys} |
| 890 |
|
| 891 |
\begin{docTcbKeys}[ |
| 892 |
doc new = {2025-09-25}, |
| 893 |
doc name = doc key choices separator, |
| 894 |
doc parameter = {=\meta{separator}}, |
| 895 |
doc description = {no default, initially \texttt{\textbackslash textbar}}, |
| 896 |
]{} |
| 897 |
Sets the \meta{separator} sign which used for typsetting lists of choices |
| 898 |
from \refCom{docKeyChoices}, \refKey{/tcb/doc key choices}, and friends. |
| 899 |
\begin{dispExample} |
| 900 |
\begin{docKeys}[ |
| 901 |
doc key choices separator = \textbullet, |
| 902 |
doc keypath = foo, |
| 903 |
doc name = fooexam7, |
| 904 |
doc key choices* = {true,false,maybe,unlikely}, |
| 905 |
doc description = {default \texttt{true}, initially \texttt{true}}, |
| 906 |
]{} |
| 907 |
\end{docKeys} |
| 908 |
\end{dispExample} |
| 909 |
\end{docTcbKeys} |
| 910 |
|
| 911 |
|
| 912 |
\begin{docTcbKeys}[ |
| 913 |
doc new = {2025-09-25}, |
| 914 |
doc name = doc head left width, |
| 915 |
doc parameter = {=\meta{length}}, |
| 916 |
doc description = {no default, initially \texttt{0.7\textbackslash columnwidth}}, |
| 917 |
]{} |
| 918 |
The given \meta{length} is the maximal width of a box consisting of |
| 919 |
key name, |=| sign, and a list of choices. See also \refKey{/tcb/doc head left ratio}. |
| 920 |
\end{docTcbKeys} |
| 921 |
|
| 922 |
|
| 923 |
\begin{docTcbKeys}[ |
| 924 |
doc new = {2025-09-25}, |
| 925 |
doc name = doc head left ratio, |
| 926 |
doc parameter = {=\meta{number}}, |
| 927 |
doc description = {style, initially \texttt{0.7}}, |
| 928 |
]{} |
| 929 |
The given rational \meta{number} should be in the range between |0.0| and |1.0|. |
| 930 |
This option sets \refKey{/tcb/doc head left width} to |
| 931 |
\texttt{\meta{number}\textbackslash columnwidth}. |
| 932 |
See examples of \refCom{docKeyChoices} and \refKey{/tcb/doc key choices}. |
| 933 |
\end{docTcbKeys} |
| 934 |
|
| 935 |
|
| 936 |
|
| 937 |
\clearpage |
| 938 |
%------------------------------------------------------------------------------- |
| 939 |
\subsection{Entry Content Option Keys} |
| 940 |
|
| 941 |
|
| 942 |
\begin{docTcbKey}[][doc new={2020-04-22}]{doc name}{=\meta{name}}{no default, initially empty} |
| 943 |
Sets the \meta{name} of the entry to document, i.\,e., the \meta{name} of the |
| 944 |
command, environment, key, etc. For \refEnv{docCommand}, \refEnv{docEnvironment}, etc. |
| 945 |
the \meta{name} is set by a mandatory parameter, but can also be set |
| 946 |
by \refKey{/tcb/doc name}. |
| 947 |
\refKey{/tcb/doc name} also sets \meta{name} to |
| 948 |
\refKey{/tcb/doc label}, \refKey{/tcb/doc index}, |
| 949 |
and \refKey{/tcb/doc sort index}. |
| 950 |
\begin{dispExample} |
| 951 |
\begin{docCommands}[ |
| 952 |
doc no index, % no index entries for this example |
| 953 |
doc name = bfseries, |
| 954 |
] {} |
| 955 |
Font setting to bold face. |
| 956 |
\end{docCommands} |
| 957 |
\end{dispExample} |
| 958 |
\end{docTcbKey} |
| 959 |
|
| 960 |
|
| 961 |
\begin{docTcbKey}[][doc new={2020-04-22}]{doc parameter}{=\meta{parameters}}{no default, initially empty} |
| 962 |
Sets the \meta{parameters} of the entry to document, i.\,e., the \meta{parameters} of the |
| 963 |
command, environment, key, etc. For \refEnv{docCommand}, \refEnv{docEnvironment}, etc. |
| 964 |
the \meta{parameters} is set by a mandatory option, but can also be set |
| 965 |
by \refKey{/tcb/doc parameter}. |
| 966 |
\begin{dispExample} |
| 967 |
\begin{docCommands}[ |
| 968 |
doc no index, % no index entries for this example |
| 969 |
doc name = textbf, |
| 970 |
doc parameter = \marg{text}, |
| 971 |
] {} |
| 972 |
Sets \meta{text} in bold face. |
| 973 |
\end{docCommands} |
| 974 |
\end{dispExample} |
| 975 |
\end{docTcbKey} |
| 976 |
|
| 977 |
|
| 978 |
|
| 979 |
\begin{docTcbKey}[][doc new={2020-04-22}]{doc keypath}{=\meta{key path}}{no default, initially empty} |
| 980 |
Sets the \meta{key path} of the key to document. For \refEnv{docKey} |
| 981 |
and \refEnv{docKey*} the \meta{key path} is set by a specialized option, |
| 982 |
but can also be set by \refKey{/tcb/doc keypath}. |
| 983 |
\begin{dispExample} |
| 984 |
\begin{docKeys}[ |
| 985 |
doc no index, % no index entries for this example |
| 986 |
doc keypath = tikz, |
| 987 |
doc name = fill, |
| 988 |
doc parameter = \colOpt{=\meta{color}}, |
| 989 |
doc description = default is scope's color setting, |
| 990 |
] {} |
| 991 |
This option causes the path to be filled. |
| 992 |
\end{docKeys} |
| 993 |
\end{dispExample} |
| 994 |
\end{docTcbKey} |
| 995 |
|
| 996 |
\clearpage |
| 997 |
|
| 998 |
\begin{docTcbKeys}[ |
| 999 |
doc new = {2023-12-01}, |
| 1000 |
doc name = doc key prefix, |
| 1001 |
doc parameter = {=\meta{key prefix}}, |
| 1002 |
doc description = {no default, initially |/|}, |
| 1003 |
]{} |
| 1004 |
Sets the \meta{key prefix} (root path) of the key to document. |
| 1005 |
This prefix is prepended to \refKey{/tcb/doc keypath}, if |
| 1006 |
\refKey{/tcb/doc keypath} is not empty. |
| 1007 |
The default |/| setting is intended for \refPkg{pgfkeys}. |
| 1008 |
For \refPkg[l3kernel]{l3keys}, setting \refKey{/tcb/doc key prefix} to be |
| 1009 |
empty is more appropriate, since their path starts with a module name |
| 1010 |
without |/|. |
| 1011 |
\begin{dispExample} |
| 1012 |
\begin{docKeys}[ |
| 1013 |
doc no index, % no index entries for this example |
| 1014 |
doc key prefix = , |
| 1015 |
doc keypath = tcobox,% module name |
| 1016 |
doc name = my_l3_key, |
| 1017 |
doc parameter = {=\meta{some value}}, |
| 1018 |
doc description = example, |
| 1019 |
] {} |
| 1020 |
Documentation of a key using |l3keys|. |
| 1021 |
\end{docKeys} |
| 1022 |
\end{dispExample} |
| 1023 |
\end{docTcbKeys} |
| 1024 |
|
| 1025 |
|
| 1026 |
|
| 1027 |
\begin{docTcbKeys}[ |
| 1028 |
doc new = {2023-12-01}, |
| 1029 |
doc parameter = \colOpt{=\meta{macro}}, |
| 1030 |
doc description = {no default, initially empty}, |
| 1031 |
]{ |
| 1032 |
{ |
| 1033 |
doc name = index key formatter, |
| 1034 |
}, |
| 1035 |
{ |
| 1036 |
doc name = index keys formatter, |
| 1037 |
} |
| 1038 |
} |
| 1039 |
Sets \meta{macro} as formatter for the text given by |
| 1040 |
\refKey{/tcb/doclang/key} or |
| 1041 |
\refKey{/tcb/doclang/keys} inside the index. |
| 1042 |
The \meta{macro} has to take one mandatory |
| 1043 |
argument (the language text). |
| 1044 |
The intended purpose is to differentiate between different sorts of keys, |
| 1045 |
if necessary, e.\,g.\ between \refPkg{pgfkeys} and \refPkg[l3kernel]{l3keys}. |
| 1046 |
If these options are used without value, the formatters are reset to |
| 1047 |
their standard behavior. |
| 1048 |
|
| 1049 |
\begin{dispExample} |
| 1050 |
% See index of this documentation to recognize the effect |
| 1051 |
\newcommand{\myFormatPgfkeysIndex}[1]{#1 (\textsf{pgfkeys})} |
| 1052 |
\newcommand{\myFormatExplkeysIndex}[1]{#1 (\textsf{l3keys})} |
| 1053 |
|
| 1054 |
\tcbmakedocSubKey[ |
| 1055 |
index key formatter=\myFormatPgfkeysIndex, |
| 1056 |
index keys formatter=\myFormatPgfkeysIndex |
| 1057 |
]{docFooPgfkey}{foopgf} |
| 1058 |
\tcbmakedocSubKey[ |
| 1059 |
doc key prefix=, |
| 1060 |
index key formatter=\myFormatExplkeysIndex, |
| 1061 |
index keys formatter=\myFormatExplkeysIndex |
| 1062 |
]{docFooExplkey}{fooexpl} |
| 1063 |
|
| 1064 |
\begin{docFooPgfkey}{foo pgf}{=\meta{name}}{no default, initially empty} |
| 1065 |
content |
| 1066 |
\end{docFooPgfkey} |
| 1067 |
|
| 1068 |
\begin{docFooExplkey}{foo expl}{=\meta{name}}{no default, initially empty} |
| 1069 |
content |
| 1070 |
\end{docFooExplkey} |
| 1071 |
\end{dispExample} |
| 1072 |
\end{docTcbKeys} |
| 1073 |
|
| 1074 |
|
| 1075 |
|
| 1076 |
\clearpage |
| 1077 |
|
| 1078 |
\begin{docTcbKey}{doc description}{=\meta{description}}{no default, initially empty} |
| 1079 |
Sets a (short!) additional \meta{description} for |
| 1080 |
\refEnv{docCommand}, \refEnv{docEnvironment}, or \refEnv{docPathOperation}. |
| 1081 |
Such a description is |
| 1082 |
mandatory for \refEnv{docKey}. |
| 1083 |
\begin{dispExample} |
| 1084 |
\begin{docCommand*}[doc description=my description]{myCommandF}{\marg{argument}} |
| 1085 |
This is the documentation of \refCom{myCommandF} which takes one \meta{argument}. |
| 1086 |
\refCom{myCommandF} does some funny things with its \meta{argument}. |
| 1087 |
\end{docCommand*} |
| 1088 |
\end{dispExample} |
| 1089 |
\begin{marker} |
| 1090 |
Note that the description \meta{text} may overlap with the text on the left |
| 1091 |
hand side if too long. Linebreaks can be used inside the \meta{text}. |
| 1092 |
\end{marker} |
| 1093 |
\end{docTcbKey} |
| 1094 |
|
| 1095 |
|
| 1096 |
\begin{docTcbKey}[][doc new={2019-09-18}]{doc label}{=\meta{text}}{no default, initially unset} |
| 1097 |
If used inside the option list of \refEnv{docCommand}, \refEnv{docEnvironment}, |
| 1098 |
\refEnv{docKey}, etc, then \meta{text} is used |
| 1099 |
for labeling instead of the name of the definition. |
| 1100 |
\begin{dispExample} |
| 1101 |
\begin{docPathOperation*}[doc label=pathline]{-{}-}{\meta{coordinate or cycle}} |
| 1102 |
This is the documentation of \refPathOperation{pathline}. |
| 1103 |
\end{docPathOperation*} |
| 1104 |
\end{dispExample} |
| 1105 |
\end{docTcbKey} |
| 1106 |
|
| 1107 |
\begin{docTcbKey}[][doc new={2020-01-07}]{doc index}{=\meta{text}}{no default, initially unset} |
| 1108 |
If used inside the option list of \refEnv{docCommand}, \refEnv{docEnvironment}, |
| 1109 |
\refEnv{docKey}, etc, then \meta{text} is used |
| 1110 |
for the index instead of the name of the definition. |
| 1111 |
\begin{dispExample} |
| 1112 |
\begin{docPathOperation}[doc index=foo path (horizontal then vertical), |
| 1113 |
doc label=pathline2]{-\textbar}{\meta{coordinate or cycle}} |
| 1114 |
This is the documentation of \refPathOperation{pathline2}. |
| 1115 |
\end{docPathOperation} |
| 1116 |
\end{dispExample} |
| 1117 |
\end{docTcbKey} |
| 1118 |
|
| 1119 |
|
| 1120 |
\begin{docTcbKey}[][doc new={2020-04-23}]{doc sort index}{=\meta{text}}{no default, initially unset} |
| 1121 |
If used inside the option list of \refEnv{docCommand}, \refEnv{docEnvironment}, |
| 1122 |
\refEnv{docKey}, etc, then \meta{text} is used |
| 1123 |
as sort key for the index instead of the name of the definition. |
| 1124 |
\begin{dispListing} |
| 1125 |
\begin{docCommands}[ |
| 1126 |
doc name = l_tcobox_example_tl, |
| 1127 |
doc sort index = example_tl, % sorted under e like example |
| 1128 |
]{} |
| 1129 |
\end{docCommands} |
| 1130 |
\end{dispListing} |
| 1131 |
\end{docTcbKey} |
| 1132 |
|
| 1133 |
\clearpage |
| 1134 |
|
| 1135 |
\begin{docTcbKey}{doc into index}{\colOpt{=true\textbar false}}{default |true|, initially |true|} |
| 1136 |
If set to |false|, no index entries are written for the main documentation |
| 1137 |
environments. The same effect is achieved by using e.\,g.\ \refEnv{docCommand*} |
| 1138 |
instead of \refEnv{docCommand}. |
| 1139 |
\end{docTcbKey} |
| 1140 |
|
| 1141 |
|
| 1142 |
\begin{docTcbKey}[][doc new={2020-04-22}]{doc no index}{}{style, initially unset} |
| 1143 |
If set, no index entries are written for the main documentation |
| 1144 |
environments. This is a shortcut for using \refKey{/tcb/doc into index}|=false|. |
| 1145 |
\end{docTcbKey} |
| 1146 |
|
| 1147 |
|
| 1148 |
|
| 1149 |
\begin{docTcbKey}[][doc new=2014-09-19]{doc marginnote}{=\meta{options}}{no default, initially empty} |
| 1150 |
Sets style \meta{options} for the displayed box of the \refCom{tcbdocmarginnote} command. |
| 1151 |
\begin{dispExample} |
| 1152 |
\tcbset{doc marginnote={colframe=blue!50!white,colback=blue!5!white}}% |
| 1153 |
This is some text\tcbdocmarginnote{Note A} |
| 1154 |
which is commented by a note inside the margin. |
| 1155 |
\end{dispExample} |
| 1156 |
\end{docTcbKey} |
| 1157 |
|
| 1158 |
\begin{docTcbKey}[][doc new=2014-09-19]{doc new}{=\meta{date}}{style, no default} |
| 1159 |
Adds a marginnote with a \enquote{New: \meta{date}} message at the beginning of |
| 1160 |
the upper box part. The intended use is inside the option list of |
| 1161 |
\refEnv{docCommand}, \refEnv{docEnvironment}, etc. |
| 1162 |
\makeatletter\renewcommand*{\tcbdocnew}[1]{\kvtcb@text@new: #1}\makeatother% |
| 1163 |
\begin{dispExample} |
| 1164 |
\begin{docCommand}[doc new=2000-01-01]{foosomething}{\marg{text}} |
| 1165 |
Some command for something. |
| 1166 |
\end{docCommand} |
| 1167 |
\end{dispExample} |
| 1168 |
\end{docTcbKey} |
| 1169 |
|
| 1170 |
|
| 1171 |
\begin{docTcbKey}[][doc new=2014-09-19]{doc updated}{=\meta{date}}{style, no default} |
| 1172 |
Adds a marginnote with a \enquote{Updated: \meta{date}} message at the beginning of |
| 1173 |
the upper box part. See \refKey{/tcb/doc new}. |
| 1174 |
\end{docTcbKey} |
| 1175 |
|
| 1176 |
|
| 1177 |
\begin{docTcbKey}[][doc new=2014-09-19]{doc new and updated}{=\marg{new date}\marg{update date}}{style, no default} |
| 1178 |
Adds a marginnote with \enquote{New: \meta{new date}} and \enquote{Updated: \meta{update date}} messages at the beginning of |
| 1179 |
the upper box part. See \refKey{/tcb/doc new}. |
| 1180 |
\end{docTcbKey} |
| 1181 |
|
| 1182 |
|
| 1183 |
|
| 1184 |
\clearpage |
| 1185 |
%------------------------------------------------------------------------------- |
| 1186 |
\subsection{Entry Customization Option Keys} |
| 1187 |
|
| 1188 |
|
| 1189 |
\begin{docTcbKey}{doc left}{=\meta{length}}{no default, initially |2em|} |
| 1190 |
Sets the left hand offset of the documentation texts from |
| 1191 |
\refEnv{docCommand}, \refEnv{docEnvironment}, \refEnv{docKey}, etc, to \meta{length}. |
| 1192 |
\begin{dispExample} |
| 1193 |
\begin{docCommand*}[doc left=2cm,doc left indent=-2cm]{myCommandA}{\marg{argument}} |
| 1194 |
This is the documentation of \refCom{myCommandA} which takes one \meta{argument}. |
| 1195 |
\refCom{myCommandA} does some funny things with its \meta{argument}. |
| 1196 |
\end{docCommand*} |
| 1197 |
\end{dispExample} |
| 1198 |
\end{docTcbKey} |
| 1199 |
|
| 1200 |
\begin{docTcbKey}{doc right}{=\meta{length}}{no default, initially |0em|} |
| 1201 |
Sets the right hand offset of the documentation texts from |
| 1202 |
\refEnv{docCommand}, \refEnv{docEnvironment}, \refEnv{docKey}, etc, to \meta{length}. |
| 1203 |
\begin{dispExample} |
| 1204 |
\begin{docCommand*}[doc right=2cm]{myCommandB}{\marg{argument}} |
| 1205 |
This is the documentation of \refCom{myCommandB} which takes one \meta{argument}. |
| 1206 |
\refCom{myCommandB} does some funny things with its \meta{argument}. |
| 1207 |
\end{docCommand*} |
| 1208 |
\end{dispExample} |
| 1209 |
\end{docTcbKey} |
| 1210 |
|
| 1211 |
\begin{docTcbKey}{doc left indent}{=\meta{length}}{no default, initially |-2em|} |
| 1212 |
Sets the left hand indent of documentation heads from |
| 1213 |
\refEnv{docCommand}, \refEnv{docEnvironment}, \refEnv{docKey}, etc, to \meta{length}. |
| 1214 |
\begin{dispExample} |
| 1215 |
\begin{docCommand*}[doc left indent=2cm]{myCommandC}{\marg{argument}} |
| 1216 |
This is the documentation of \refCom{myCommandC} which takes one \meta{argument}. |
| 1217 |
\refCom{myCommandC} does some funny things with its \meta{argument}. |
| 1218 |
\end{docCommand*} |
| 1219 |
\end{dispExample} |
| 1220 |
\end{docTcbKey} |
| 1221 |
|
| 1222 |
|
| 1223 |
\begin{docTcbKey}{doc right indent}{=\meta{length}}{no default, initially |0pt|} |
| 1224 |
Sets the right hand indent of documentation heads from |
| 1225 |
\refEnv{docCommand}, \refEnv{docEnvironment}, \refEnv{docKey}, etc, to \meta{length}. |
| 1226 |
\begin{dispExample} |
| 1227 |
\begin{docCommand*}[doc right indent=-10mm,doc right=10mm, |
| 1228 |
doc description=test value]{myCommandD}{\marg{argument}} |
| 1229 |
This is the documentation of \refCom{myCommandD} which takes one \meta{argument}. |
| 1230 |
\refCom{myCommandD} does some funny things with its \meta{argument}. |
| 1231 |
\end{docCommand*} |
| 1232 |
\end{dispExample} |
| 1233 |
\end{docTcbKey} |
| 1234 |
|
| 1235 |
\clearpage |
| 1236 |
The head lines of the main documentation environments \refEnv{docCommand}, |
| 1237 |
\refEnv{docEnvironment}, \refEnv{docKey}, etc, are |tcolorbox|es inside a |
| 1238 |
\refEnv{tcbraster}. |
| 1239 |
Options to the surrounding |tcbraster|s and the embedded |
| 1240 |
|tcolorbox|es can be given using the following keys. |
| 1241 |
|
| 1242 |
|
| 1243 |
\begin{docTcbKeys}[ |
| 1244 |
doc name = doc raster command, |
| 1245 |
doc parameter = {=\meta{options}}, |
| 1246 |
doc description = {no default, initially empty}, |
| 1247 |
doc new = 2020-04-24, |
| 1248 |
]{} |
| 1249 |
Sets \meta{options} for the surrounding \refEnv{tcbraster} of\\ |
| 1250 |
\refEnv{docCommand}, \refEnv{docCommand*}, and \refEnv{docCommands}. |
| 1251 |
|
| 1252 |
\begin{dispExample} |
| 1253 |
\tcbset{doc raster command={raster before skip=7mm,raster after skip=0mm}} |
| 1254 |
|
| 1255 |
The is an example text. |
| 1256 |
|
| 1257 |
\begin{docCommand*}{myCommandI}{\marg{argument}} |
| 1258 |
This is the documentation of \refCom{myCommandI} which takes one \meta{argument}. |
| 1259 |
\refCom{myCommandI} does some funny things with its \meta{argument}. |
| 1260 |
\end{docCommand*} |
| 1261 |
\end{dispExample} |
| 1262 |
|
| 1263 |
\end{docTcbKeys} |
| 1264 |
|
| 1265 |
|
| 1266 |
\begin{docTcbKeys}[ |
| 1267 |
doc name = doc raster environment, |
| 1268 |
doc parameter = {=\meta{options}}, |
| 1269 |
doc description = {no default, initially empty}, |
| 1270 |
doc new = 2020-04-24, |
| 1271 |
]{} |
| 1272 |
Sets \meta{options} for the surrounding \refEnv{tcbraster} of\\ |
| 1273 |
\refEnv{docEnvironment}, \refEnv{docEnvironment*}, and \refEnv{docEnvironments}. |
| 1274 |
\end{docTcbKeys} |
| 1275 |
|
| 1276 |
|
| 1277 |
\begin{docTcbKeys}[ |
| 1278 |
doc name = doc raster key, |
| 1279 |
doc parameter = {=\meta{options}}, |
| 1280 |
doc description = {no default, initially empty}, |
| 1281 |
doc new = 2020-04-24, |
| 1282 |
]{} |
| 1283 |
Sets \meta{options} for the surrounding \refEnv{tcbraster} of\\ |
| 1284 |
\refEnv{docKey}, \refEnv{docKey*}, and \refEnv{docKeys}. |
| 1285 |
\end{docTcbKeys} |
| 1286 |
|
| 1287 |
|
| 1288 |
\begin{docTcbKeys}[ |
| 1289 |
doc name = doc raster path, |
| 1290 |
doc parameter = {=\meta{options}}, |
| 1291 |
doc description = {no default, initially empty}, |
| 1292 |
doc new = 2020-04-24, |
| 1293 |
]{} |
| 1294 |
Sets \meta{options} for the surrounding \refEnv{tcbraster} of\\ |
| 1295 |
\refEnv{docPathOperation}, \refEnv{docPathOperation*}, and \refEnv{docPathOperations}. |
| 1296 |
\end{docTcbKeys} |
| 1297 |
|
| 1298 |
|
| 1299 |
\begin{docTcbKeys}[ |
| 1300 |
doc name = doc raster, |
| 1301 |
doc parameter = {=\meta{options}}, |
| 1302 |
doc description = {no default, initially empty}, |
| 1303 |
doc new = 2020-04-24, |
| 1304 |
]{} |
| 1305 |
Shortcut for setting the same \meta{options} for |
| 1306 |
\refKey{/tcb/doc raster command}, \refKey{/tcb/doc raster environment}, |
| 1307 |
\refKey{/tcb/doc raster key}, and \refKey{/tcb/doc raster path}. |
| 1308 |
\end{docTcbKeys} |
| 1309 |
|
| 1310 |
|
| 1311 |
\begin{docTcbKey}{doc head command}{=\meta{options}}{no default, initially empty} |
| 1312 |
Sets \meta{options} for the head line of |
| 1313 |
\refEnv{docCommand}, \refEnv{docCommand*}, and \refEnv{docCommands}. |
| 1314 |
\begin{dispExample} |
| 1315 |
\tcbset{doc head command={interior style={fill,left color=red!20!white, |
| 1316 |
right color=blue!20!white}}} |
| 1317 |
|
| 1318 |
\begin{docCommand*}{myCommandE}{\marg{argument}} |
| 1319 |
This is the documentation of \refCom{myCommandE} which takes one \meta{argument}. |
| 1320 |
\refCom{myCommandE} does some funny things with its \meta{argument}. |
| 1321 |
\end{docCommand*} |
| 1322 |
\end{dispExample} |
| 1323 |
\end{docTcbKey} |
| 1324 |
|
| 1325 |
|
| 1326 |
\clearpage |
| 1327 |
|
| 1328 |
\begin{docTcbKey}{doc head environment}{=\meta{options}}{no default, initially empty} |
| 1329 |
Sets \meta{options} for the head line of |
| 1330 |
\refEnv{docEnvironment}, \refEnv{docEnvironment*}, and \refEnv{docEnvironments}. |
| 1331 |
\begin{dispExample} |
| 1332 |
\tcbset{doc head environment={beamer,boxsep=2pt,arc=2pt,colback=green!20!white}} |
| 1333 |
|
| 1334 |
\begin{docEnvironment*}{myEnvironment}{\marg{argument}} |
| 1335 |
This is the documentation of \refEnv{myEnvironment} which |
| 1336 |
takes one \meta{argument}. |
| 1337 |
\end{docEnvironment*} |
| 1338 |
\end{dispExample} |
| 1339 |
\end{docTcbKey} |
| 1340 |
|
| 1341 |
\begin{docTcbKey}{doc head key}{=\meta{options}}{no default, initially empty} |
| 1342 |
Sets \meta{options} for the head line of |
| 1343 |
\refEnv{docKey}, \refEnv{docKey*}, and \refEnv{docKeys}. |
| 1344 |
\begin{dispExample} |
| 1345 |
\tcbset{doc head key={boxsep=4pt,arc=4pt,boxrule=0.6pt, |
| 1346 |
frame style=fill,interior style=fill,colframe=green!50!black}} |
| 1347 |
|
| 1348 |
\begin{docKey}[foo]{myKey}{}{no value} |
| 1349 |
This is the documentation of \refKey{/foo/myKey}. |
| 1350 |
\end{docKey} |
| 1351 |
\end{dispExample} |
| 1352 |
\end{docTcbKey} |
| 1353 |
|
| 1354 |
|
| 1355 |
\begin{docTcbKey}[][doc new=2019-09-18]{doc head path}{=\meta{options}}{no default, initially empty} |
| 1356 |
Sets \meta{options} for the head line of |
| 1357 |
\refEnv{docPathOperation}, \refEnv{docPathOperation*}, and \refEnv{docPathOperations}. |
| 1358 |
\begin{dispExample} |
| 1359 |
\tcbset{doc head command={interior style={fill,left color=red!7!white, |
| 1360 |
right color=blue!7!white}}} |
| 1361 |
|
| 1362 |
\begin{docPathOperation*}{-{}-}{\meta{coordinate or cycle}} |
| 1363 |
This is the documentation of \refPathOperation{-{}-}. |
| 1364 |
\end{docPathOperation*} |
| 1365 |
\end{dispExample} |
| 1366 |
\end{docTcbKey} |
| 1367 |
|
| 1368 |
|
| 1369 |
\begin{docTcbKey}[][doc updated=2019-09-18]{doc head}{=\meta{options}}{no default, initially empty} |
| 1370 |
Shortcut for setting the same \meta{options} for |
| 1371 |
\refKey{/tcb/doc head command}, \refKey{/tcb/doc head environment}, |
| 1372 |
\refKey{/tcb/doc head key}, and \refKey{/tcb/doc head path}. |
| 1373 |
\end{docTcbKey} |
| 1374 |
|
| 1375 |
|
| 1376 |
\clearpage |
| 1377 |
|
| 1378 |
The description texts of the main documentation environments \refEnv{docCommand}, |
| 1379 |
\refEnv{docEnvironment}, \refEnv{docKey}, etc, are set in a compact form without |
| 1380 |
indention and |parskip=0pt|. This settings can overruled by using the following |
| 1381 |
keys to insert code before (or after) the description texts. |
| 1382 |
|
| 1383 |
\begin{docTcbKey}[][doc new=2015-10-09]{before doc body command}{=\meta{code}}{no default, initially empty} |
| 1384 |
Executes \meta{code} before the description texts |
| 1385 |
of \refEnv{docCommand} and \refEnv{docCommand*}. |
| 1386 |
\begin{dispExample} |
| 1387 |
\tcbset{before doc body command={% |
| 1388 |
\setlength{\parindent}{2.5em}% |
| 1389 |
\setlength{\parskip}{1ex plus 0.75ex minus 0.25ex}% |
| 1390 |
}} |
| 1391 |
|
| 1392 |
\begin{docCommand*}{myCommandG}{\marg{argument}} |
| 1393 |
This is the documentation of \refCom{myCommandG} which takes one \meta{argument}. |
| 1394 |
\refCom{myCommandG} does some funny things with its \meta{argument}. |
| 1395 |
\end{docCommand*} |
| 1396 |
\end{dispExample} |
| 1397 |
\end{docTcbKey} |
| 1398 |
|
| 1399 |
|
| 1400 |
\begin{docTcbKey}[][doc new=2015-10-09]{after doc body command}{=\meta{code}}{no default, initially empty} |
| 1401 |
Executes \meta{code} after the description texts |
| 1402 |
of \refEnv{docCommand} and \refEnv{docCommand*}. |
| 1403 |
\begin{dispExample} |
| 1404 |
\tcbset{after doc body command={% |
| 1405 |
\hfill\nolinebreak[1]\hspace*{\fill}\textcolor{red}{$\diamondsuit$}% |
| 1406 |
}} |
| 1407 |
|
| 1408 |
\begin{docCommand*}{myCommandH}{\marg{argument}} |
| 1409 |
This is the documentation of \refCom{myCommandH} which takes one \meta{argument}. |
| 1410 |
\refCom{myCommandH} does some funny things with its \meta{argument}. |
| 1411 |
\end{docCommand*} |
| 1412 |
\end{dispExample} |
| 1413 |
\end{docTcbKey} |
| 1414 |
|
| 1415 |
|
| 1416 |
\begin{docTcbKey}[][doc new=2015-10-09]{before doc body environment}{=\meta{code}}{no default, initially empty} |
| 1417 |
Executes \meta{code} before the description texts |
| 1418 |
of \refEnv{docEnvironment} and \refEnv{docEnvironment*}. |
| 1419 |
\end{docTcbKey} |
| 1420 |
|
| 1421 |
\begin{docTcbKey}[][doc new=2015-10-09]{after doc body environment}{=\meta{code}}{no default, initially empty} |
| 1422 |
Executes \meta{code} after the description texts |
| 1423 |
of \refEnv{docEnvironment} and \refEnv{docEnvironment*}. |
| 1424 |
\end{docTcbKey} |
| 1425 |
|
| 1426 |
|
| 1427 |
\begin{docTcbKey}[][doc new=2015-10-09]{before doc body key}{=\meta{code}}{no default, initially empty} |
| 1428 |
Executes \meta{code} before the description texts |
| 1429 |
of \refEnv{docKey} and \refEnv{docKey*}. |
| 1430 |
\end{docTcbKey} |
| 1431 |
|
| 1432 |
\begin{docTcbKey}[][doc new=2015-10-09]{after doc body key}{=\meta{code}}{no default, initially empty} |
| 1433 |
Executes \meta{code} after the description texts |
| 1434 |
of \refEnv{docKey} and \refEnv{docKey*}. |
| 1435 |
\end{docTcbKey} |
| 1436 |
|
| 1437 |
\clearpage |
| 1438 |
|
| 1439 |
\begin{docTcbKey}[][doc new=2019-09-18]{before doc body path}{=\meta{code}}{no default, initially empty} |
| 1440 |
Executes \meta{code} before the description texts |
| 1441 |
of \refEnv{docPathOperation} and \refEnv{docPathOperation*}. |
| 1442 |
\end{docTcbKey} |
| 1443 |
|
| 1444 |
\begin{docTcbKey}[][doc new=2019-09-18]{after doc body path}{=\meta{code}}{no default, initially empty} |
| 1445 |
Executes \meta{code} after the description texts |
| 1446 |
of \refEnv{docPathOperation} and \refEnv{docPathOperation*}. |
| 1447 |
\end{docTcbKey} |
| 1448 |
|
| 1449 |
|
| 1450 |
\begin{docTcbKey}[][doc new and updated={2015-10-09}{2019-09-18}]{before doc body}{=\meta{options}}{no default, initially empty} |
| 1451 |
Shortcut for setting the same \meta{options} for |
| 1452 |
\refKey{/tcb/before doc body command}, \refKey{/tcb/before doc body environment}, |
| 1453 |
\refKey{/tcb/before doc body key}, and \refKey{/tcb/before doc body path}. |
| 1454 |
\end{docTcbKey} |
| 1455 |
|
| 1456 |
\begin{docTcbKey}[][doc new and updated={2015-10-09}{2019-09-18}]{after doc body}{=\meta{options}}{no default, initially empty} |
| 1457 |
Shortcut for setting the same \meta{options} for |
| 1458 |
\refKey{/tcb/after doc body command}, \refKey{/tcb/after doc body environment}, |
| 1459 |
\refKey{/tcb/after doc body key}, and \refKey{/tcb/after doc body path}. |
| 1460 |
\end{docTcbKey} |
| 1461 |
|
| 1462 |
|
| 1463 |
|
| 1464 |
|
| 1465 |
|
| 1466 |
|
| 1467 |
|
| 1468 |
\clearpage |
| 1469 |
\subsection{General Customization Option Keys} |
| 1470 |
|
| 1471 |
\begin{docTcbKey}[][doc updated=2015-03-16]{docexample}{}{style, no value} |
| 1472 |
Sets the style for \refEnv{dispExample} and \refEnv{dispListing} |
| 1473 |
with the colors |ExampleBack| and |ExampleFrame|. |
| 1474 |
To change the appearance of the examples, this style can be |
| 1475 |
redefined. |
| 1476 |
\begin{dispListing} |
| 1477 |
% Predefined style: |
| 1478 |
\tcbset{ |
| 1479 |
docexample/.style={colframe=ExampleFrame,colback=ExampleBack, |
| 1480 |
before skip=\medskipamount,after skip=\medskipamount, |
| 1481 |
fontlower=\footnotesize} |
| 1482 |
} |
| 1483 |
\end{dispListing} |
| 1484 |
\end{docTcbKey} |
| 1485 |
|
| 1486 |
\begin{docTcbKey}{documentation listing options}{=\meta{key list}}{no default,\\\hspace*{\fill} initially |style=tcbdocumentation|} |
| 1487 |
Sets the options from the package \refPkg{listings} \cite{hoffmann:listings}. |
| 1488 |
They are used inside \refEnv{dispExample} and \refEnv{dispListing} to typeset |
| 1489 |
the listings. Note that this is not identical to the key |
| 1490 |
\refKey{/tcb/listing options} which is used for \enquote{normal} listings.\\ |
| 1491 |
Used for \refKey{/tcb/listing engine}|=listings| only. |
| 1492 |
\end{docTcbKey} |
| 1493 |
|
| 1494 |
\begin{docTcbKey}{documentation listing style}{=\meta{listing style}}{no default, initially |tcbdocumentation|} |
| 1495 |
Abbreviation for |documentation listing options={style=...}|. |
| 1496 |
This key sets a \meta{style} |
| 1497 |
for the \refPkg{listings} package, see \cite{hoffmann:listings}. |
| 1498 |
Note that this is not identical to the key |
| 1499 |
\refKey{/tcb/listing style} which is used for \enquote{normal} listings.\\ |
| 1500 |
Used for \refKey{/tcb/listing engine}|=listings| only. |
| 1501 |
\end{docTcbKey} |
| 1502 |
|
| 1503 |
\begin{docTcbKey}{documentation minted options}{=\meta{key list}}{no default,\\\hspace*{\fill} initially |tabsize=2,fontsize=\textbackslash small|} |
| 1504 |
Sets the options from the package \refPkg{minted} \cite{poore:minted} |
| 1505 |
which are used during typesetting of the listing, if used. |
| 1506 |
Note that this is not identical to the key |
| 1507 |
\refKey{/tcb/minted options} which is used for \enquote{normal} listings.\\ |
| 1508 |
Used for \refKey{/tcb/listing engine}|=minted| only. |
| 1509 |
\end{docTcbKey} |
| 1510 |
|
| 1511 |
\begin{docTcbKey}{documentation minted style}{=\meta{key list}}{no default, initially unset} |
| 1512 |
Sets a \meta{style} known to |Pygments| \cite{pygments:web} for |
| 1513 |
the package \refPkg{minted} \cite{poore:minted}, if used. |
| 1514 |
Note that this is not identical to the key |
| 1515 |
\refKey{/tcb/minted style} which is used for \enquote{normal} listings.\\ |
| 1516 |
Used for \refKey{/tcb/listing engine}|=minted| only. |
| 1517 |
\end{docTcbKey} |
| 1518 |
|
| 1519 |
\begin{docTcbKey}[][doc new=2017-04-24]{documentation minted language}{=\meta{programming language}}{no default, initially |latex|} |
| 1520 |
Sets a \meta{programming language} known to |Pygments| \cite{pygments:web} |
| 1521 |
for the package \refPkg{minted} \cite{poore:minted}, if used. |
| 1522 |
Note that this is not identical to the key |
| 1523 |
\refKey{/tcb/minted language} which is used for \enquote{normal} listings.\\ |
| 1524 |
Used for \refKey{/tcb/listing engine}|=minted| only. |
| 1525 |
\end{docTcbKey} |
| 1526 |
|
| 1527 |
\clearpage |
| 1528 |
|
| 1529 |
\begin{docTcbKey}[][doc new=2017-04-25]{keywords bold}{\colOpt{=true\textbar false}}{default |true|, initially |true|} |
| 1530 |
Keyword used in \refEnv{docEnvironment}, \refEnv{docCommand}, etc. are printed |
| 1531 |
boldface (or not). Since the typewriter font is used, the effect may be |
| 1532 |
invisible with Computer Modern fonts or similar which do not |
| 1533 |
have a bold variant. Note that references to keywords are not printed boldface at all. |
| 1534 |
\begin{dispExample*}{sidebyside} |
| 1535 |
\LARGE |
| 1536 |
\docAuxCommand{fooaux}, \refCom{tcbset} |
| 1537 |
|
| 1538 |
\tcbset{keywords bold=false} |
| 1539 |
\docAuxCommand{fooaux}, \refCom{tcbset} |
| 1540 |
\end{dispExample*} |
| 1541 |
\end{docTcbKey} |
| 1542 |
|
| 1543 |
|
| 1544 |
\begin{docTcbKeys} |
| 1545 |
{ |
| 1546 |
{ |
| 1547 |
doc name = page ref formatter, |
| 1548 |
doc new = {2024-03-13}, |
| 1549 |
doc parameter = \colOpt{=\meta{macro}}, |
| 1550 |
doc description = {no default, initially \texttt{\textbackslash textsuperscript}}, |
| 1551 |
} |
| 1552 |
} |
| 1553 |
Sets \meta{macro} as formatter for page references like the |
| 1554 |
reference to \refEnv{tcolorbox}. |
| 1555 |
The default setting puts the page reference in a |\textsuperscript|. |
| 1556 |
It may be changed to |\fakesuperscript| to cope with superiors problems |
| 1557 |
in combination with the \refPkg{realscripts} package or just otherwise for user customization. |
| 1558 |
\end{docTcbKeys} |
| 1559 |
|
| 1560 |
|
| 1561 |
\begin{docTcbKeys} |
| 1562 |
{ |
| 1563 |
{ |
| 1564 |
doc name = ctan formatter, |
| 1565 |
doc new = {2024-11-29}, |
| 1566 |
doc parameter = \colOpt{=\meta{macro}}, |
| 1567 |
doc description = {no default, initially empty}, |
| 1568 |
} |
| 1569 |
} |
| 1570 |
Sets \meta{macro} as formatter for the string CTAN inside \refCom{refPkg}. |
| 1571 |
The \meta{macro} has to take one mandatory argument (the string CTAN) and |
| 1572 |
is typically some font setting. |
| 1573 |
\begin{dispExample} |
| 1574 |
\tcbset{ctan formatter=\textsf} |
| 1575 |
Images are included using the \refPkg{graphicx} package.\par |
| 1576 |
\newcommand{\myformatter}[1]{\textbf{\ttfamily\color{red}\TeX-Archive}} |
| 1577 |
\tcbset{ctan formatter=\myformatter} |
| 1578 |
Draw your own picture with help of the \refPkg{tikz} package. |
| 1579 |
\end{dispExample} |
| 1580 |
\end{docTcbKeys} |
| 1581 |
|
| 1582 |
|
| 1583 |
|
| 1584 |
\begin{docTcbKey}[][doc new=2015-01-09]{index command}{=\meta{macro}}{no default, initially \cs{index}} |
| 1585 |
Replaces the internally used \cs{index} macro by the given \meta{macro}. |
| 1586 |
The \meta{macro} has to take one mandatory argument like \cs{index}. |
| 1587 |
This option is mutually exclusive with \refKey{/tcb/index command name}. |
| 1588 |
\begin{dispListing} |
| 1589 |
\tcbset{index command=\myindexcommand} |
| 1590 |
\end{dispListing} |
| 1591 |
\end{docTcbKey} |
| 1592 |
|
| 1593 |
|
| 1594 |
\begin{docTcbKey}[][doc new=2015-01-09]{index command name}{=\meta{name}}{no default, initially unset} |
| 1595 |
Replaces the internally used \cs{index} macro by |
| 1596 |
\mbox{\cs{index}\texttt{[\meta{name}]}}, i.\,e., |
| 1597 |
\mbox{\cs{index}\texttt{\textbraceleft\ldots\textbraceright}} is replaced by |
| 1598 |
\mbox{\cs{index}\texttt{[\meta{name}]\textbraceleft\ldots\textbraceright}}. |
| 1599 |
This option is intended to be used with \refPkg{imakeidx} and is |
| 1600 |
mutually exclusive with \refKey{/tcb/index command}. |
| 1601 |
\begin{dispListing} |
| 1602 |
\tcbset{index command name=mydoc} |
| 1603 |
\end{dispListing} |
| 1604 |
\end{docTcbKey} |
| 1605 |
|
| 1606 |
\clearpage |
| 1607 |
|
| 1608 |
\begin{docTcbKey}{index format}{=\meta{format}}{no default, initially |pgf|} |
| 1609 |
Determines the basic \meta{format} of the generated index. |
| 1610 |
Feasible values are: |
| 1611 |
\begin{itemize} |
| 1612 |
\item\docValue{pgfsection}: The index is formatted like in the \refPkg{pgf} documentation (as a section). |
| 1613 |
\item\docValue{pgfchapter}: The index is formatted like in the \refPkg{pgf} documentation (as a chapter). |
| 1614 |
\item\docValue{pgf}: Alias for \docValue{pgfsection}. |
| 1615 |
\item\docValue{doc}: The index is assumed to be formatted by \refPkg{doc} or |
| 1616 |
\refPkg{ltxdoc}. The usage of \refPkg{makeindex} |
| 1617 |
with |-s gind.ist| is assumed. The package \refPkg{hypdoc} has to be loaded |
| 1618 |
\emph{before} |tcolorbox|. Only a limited set of customizations will |
| 1619 |
work! This option cannot be unset when used! |
| 1620 |
\item\docValue{off}: The index is not formatted by |tcolorbox|. Use this, if |
| 1621 |
the index is formatted by other package like \refPkg{imakeidx}. |
| 1622 |
\end{itemize} |
| 1623 |
\end{docTcbKey} |
| 1624 |
|
| 1625 |
|
| 1626 |
\begin{docTcbKey}{index actual}{=\meta{character}}{no default, initially |@|} |
| 1627 |
Sets the character for \enquote{actual} in automatic indexing. |
| 1628 |
\end{docTcbKey} |
| 1629 |
|
| 1630 |
\begin{docTcbKey}{index quote}{=\meta{character}}{no default, initially |"|} |
| 1631 |
Sets the character for \enquote{quote} in automatic indexing. |
| 1632 |
\end{docTcbKey} |
| 1633 |
|
| 1634 |
\begin{docTcbKey}{index level}{=\meta{character}}{no default, initially |!|} |
| 1635 |
Sets the character for \enquote{level} in automatic indexing. |
| 1636 |
\end{docTcbKey} |
| 1637 |
|
| 1638 |
\begin{docTcbKey}{index default settings}{}{style, no value} |
| 1639 |
Sets the \refPkg{makeindex} default values for |
| 1640 |
\refKey{/tcb/index actual}, |
| 1641 |
\refKey{/tcb/index quote}, and |
| 1642 |
\refKey{/tcb/index level}. |
| 1643 |
\end{docTcbKey} |
| 1644 |
|
| 1645 |
|
| 1646 |
\begin{docTcbKey}{index german settings}{}{style, no value} |
| 1647 |
Sets the \refPkg{makeindex} values recommended for German language texts. |
| 1648 |
This is identical to setting the following: |
| 1649 |
\begin{dispListing} |
| 1650 |
\tcbset{index actual={=},index quote={!},index level={>}} |
| 1651 |
\end{dispListing} |
| 1652 |
\end{docTcbKey} |
| 1653 |
|
| 1654 |
|
| 1655 |
\begin{docTcbKey}{index annotate}{\colOpt{=true\textbar false}}{default |true|, initially |true|} |
| 1656 |
If set to |true|, the index entries are annotated with short descriptions |
| 1657 |
given by \refKey{/tcb/doclang/environment}, \refKey{/tcb/doclang/key}, |
| 1658 |
and others. |
| 1659 |
\end{docTcbKey} |
| 1660 |
|
| 1661 |
\begin{docTcbKey}{index colorize}{\colOpt{=true\textbar false}}{default |true|, initially |false|} |
| 1662 |
If set to |true|, the index entries colorized according to the color |
| 1663 |
settings given by \refKey{/tcb/color environment}, \refKey{/tcb/color key}, |
| 1664 |
and others. |
| 1665 |
\end{docTcbKey} |
| 1666 |
|
| 1667 |
|
| 1668 |
\begin{docTcbKeys}[ |
| 1669 |
doc new={2022-06-20}, |
| 1670 |
doc parameter = {\colOpt{=true\textbar false}}, |
| 1671 |
doc description = {default |true|, initially |true|} |
| 1672 |
] |
| 1673 |
{ |
| 1674 |
{ |
| 1675 |
doc name = index gather colors, |
| 1676 |
}, |
| 1677 |
{ |
| 1678 |
doc name = index gather commands, |
| 1679 |
}, |
| 1680 |
{ |
| 1681 |
doc name = index gather counters, |
| 1682 |
}, |
| 1683 |
{ |
| 1684 |
doc name = index gather environments, |
| 1685 |
}, |
| 1686 |
{ |
| 1687 |
doc name = index gather keys, |
| 1688 |
}, |
| 1689 |
{ |
| 1690 |
doc name = index gather lengths, |
| 1691 |
}, |
| 1692 |
{ |
| 1693 |
doc name = index gather paths, |
| 1694 |
}, |
| 1695 |
{ |
| 1696 |
doc name = index gather values, |
| 1697 |
} |
| 1698 |
} |
| 1699 |
If set to |true|, an additional index grouping is created where entries |
| 1700 |
are gathered, e.\,g.\ \refKey{/tcb/index gather counters} creates an index |
| 1701 |
entry `Colors', see \refKey{/tcb/doclang/colors}, which gets all colors |
| 1702 |
as sub entries. |
| 1703 |
\end{docTcbKeys} |
| 1704 |
|
| 1705 |
|
| 1706 |
\begin{docTcbKeys}[ |
| 1707 |
doc new={2022-06-20}, |
| 1708 |
doc parameter = {}, |
| 1709 |
] |
| 1710 |
{ |
| 1711 |
{ |
| 1712 |
doc name = index gather all, |
| 1713 |
doc description = {style, initially set} |
| 1714 |
}, |
| 1715 |
{ |
| 1716 |
doc name = index gather none, |
| 1717 |
doc description = {style} |
| 1718 |
}, |
| 1719 |
} |
| 1720 |
Switches all index gather options from above to |true| (all) or |false| (none). |
| 1721 |
\end{docTcbKeys} |
| 1722 |
|
| 1723 |
\clearpage |
| 1724 |
|
| 1725 |
\begin{docTcbKey}{color command}{=\meta{color}}{no default, initially |Definition|} |
| 1726 |
Sets the highlight color used by macro definitions. |
| 1727 |
\end{docTcbKey} |
| 1728 |
|
| 1729 |
\begin{docTcbKey}{color environment}{=\meta{color}}{no default, initially |Definition|} |
| 1730 |
Sets the highlight color used by environment definitions. |
| 1731 |
\end{docTcbKey} |
| 1732 |
|
| 1733 |
\begin{docTcbKey}{color key}{=\meta{color}}{no default, initially |Definition|} |
| 1734 |
Sets the highlight color used by key definitions. |
| 1735 |
\end{docTcbKey} |
| 1736 |
|
| 1737 |
\begin{docTcbKey}[][doc new={2019-09-18}]{color path}{=\meta{color}}{no default, initially |Definition|} |
| 1738 |
Sets the highlight color used by \tikzname\ path operation definitions. |
| 1739 |
\end{docTcbKey} |
| 1740 |
|
| 1741 |
\begin{docTcbKey}{color value}{=\meta{color}}{no default, initially |Definition|} |
| 1742 |
Sets the highlight color used by value definitions. |
| 1743 |
\end{docTcbKey} |
| 1744 |
|
| 1745 |
\begin{docTcbKey}[][doc new={2015-01-08}]{color counter}{=\meta{color}}{no default, initially |Definition|} |
| 1746 |
Sets the highlight color used by counter definitions. |
| 1747 |
\end{docTcbKey} |
| 1748 |
|
| 1749 |
\begin{docTcbKey}[][doc new={2015-01-08}]{color length}{=\meta{color}}{no default, initially |Definition|} |
| 1750 |
Sets the highlight color used by length definitions. |
| 1751 |
\end{docTcbKey} |
| 1752 |
|
| 1753 |
\begin{docTcbKey}{color color}{=\meta{color}}{no default, initially |Definition|} |
| 1754 |
Sets the highlight color used by color definitions. |
| 1755 |
\end{docTcbKey} |
| 1756 |
|
| 1757 |
\begin{docTcbKey}[][doc updated={2019-09-18}]{color definition}{=\meta{color}}{no default, initially |Definition|} |
| 1758 |
Sets the highlight color for \refKey{/tcb/color command}, \refKey{/tcb/color environment}, |
| 1759 |
\refKey{/tcb/color key}, \refKey{/tcb/color path}, \refKey{/tcb/color value}, \refKey{/tcb/color counter}, |
| 1760 |
\refKey{/tcb/color length}, and \refKey{/tcb/color color}. |
| 1761 |
\end{docTcbKey} |
| 1762 |
|
| 1763 |
\begin{docTcbKey}{color option}{=\meta{color}}{no default, initially |Option|} |
| 1764 |
Sets the color used for optional arguments. |
| 1765 |
\end{docTcbKey} |
| 1766 |
|
| 1767 |
\begin{docTcbKey}{color fade}{=\meta{color}}{no default, initially |Fade|} |
| 1768 |
Sets the color used for faded text like \colFade{\textbackslash path} |
| 1769 |
in \refEnv{docPathOperation}. |
| 1770 |
\end{docTcbKey} |
| 1771 |
|
| 1772 |
|
| 1773 |
\begin{docTcbKey}{color hyperlink}{=\meta{color}}{no default, initially |Hyperlink|} |
| 1774 |
Sets the color for all hyper-links, i.\,e., all internal and external links. |
| 1775 |
\end{docTcbKey} |
| 1776 |
|
| 1777 |
|
| 1778 |
\clearpage |
| 1779 |
%------------------------------------------------------------------------------- |
| 1780 |
\subsection{Language Option Keys} |
| 1781 |
|
| 1782 |
The following keys are provided for language specific settings. |
| 1783 |
The English language is predefined. |
| 1784 |
|
| 1785 |
\begin{docTcbKey}{english language}{}{style, no value} |
| 1786 |
Sets all language specific settings to English. |
| 1787 |
\end{docTcbKey} |
| 1788 |
|
| 1789 |
\begin{langTcbKey}{color}{=\meta{text}}{no default, initially |color|} |
| 1790 |
Text used in the index for colors. |
| 1791 |
\end{langTcbKey} |
| 1792 |
|
| 1793 |
\begin{langTcbKey}{colors}{=\meta{text}}{no default, initially |Colors|} |
| 1794 |
Heading text in the index for colors. |
| 1795 |
\end{langTcbKey} |
| 1796 |
|
| 1797 |
\begin{langTcbKey}[][doc new={2022-06-20}]{commands}{=\meta{text}}{no default, initially |Commands|} |
| 1798 |
Heading text in the index for commands. |
| 1799 |
\end{langTcbKey} |
| 1800 |
|
| 1801 |
\begin{langTcbKey}[][doc new={2015-01-08}]{counter}{=\meta{text}}{no default, initially |counter|} |
| 1802 |
Text used in the index for counters. |
| 1803 |
\end{langTcbKey} |
| 1804 |
|
| 1805 |
\begin{langTcbKey}[][doc new={2015-01-08}]{counters}{=\meta{text}}{no default, initially |Counters|} |
| 1806 |
Heading text in the index for counters. |
| 1807 |
\end{langTcbKey} |
| 1808 |
|
| 1809 |
\begin{langTcbKey}{environment}{=\meta{text}}{no default, initially |environment|} |
| 1810 |
Text used in the index for environments. |
| 1811 |
\end{langTcbKey} |
| 1812 |
|
| 1813 |
\begin{langTcbKey}{environments}{=\meta{text}}{no default, initially |Environments|} |
| 1814 |
Heading text in the index for environments. |
| 1815 |
\end{langTcbKey} |
| 1816 |
|
| 1817 |
\begin{langTcbKey}{environment content}{=\meta{text}}{no default, initially |environment content|} |
| 1818 |
Text used in \refEnv{docEnvironment}. |
| 1819 |
\end{langTcbKey} |
| 1820 |
|
| 1821 |
\begin{langTcbKey}{index}{=\meta{text}}{no default, initially |Index|} |
| 1822 |
Heading text for the index. |
| 1823 |
\end{langTcbKey} |
| 1824 |
|
| 1825 |
\begin{langTcbKey}{key}{=\meta{text}}{no default, initially |key|} |
| 1826 |
Text used in the index for keys. |
| 1827 |
\end{langTcbKey} |
| 1828 |
|
| 1829 |
\begin{langTcbKey}{keys}{=\meta{text}}{no default, initially |Keys|} |
| 1830 |
Heading text used in the index for keys. |
| 1831 |
\end{langTcbKey} |
| 1832 |
|
| 1833 |
\begin{langTcbKey}[][doc new={2015-01-08}]{length}{=\meta{text}}{no default, initially |length|} |
| 1834 |
Text used in the index for lengths. |
| 1835 |
\end{langTcbKey} |
| 1836 |
|
| 1837 |
\begin{langTcbKey}[][doc new={2015-01-08}]{lengths}{=\meta{text}}{no default, initially |Lengths|} |
| 1838 |
Heading text in the index for lengths. |
| 1839 |
\end{langTcbKey} |
| 1840 |
|
| 1841 |
\begin{langTcbKey}[][doc new={2014-09-19}]{new}{=\meta{text}}{no default, initially |New|} |
| 1842 |
Announcement text for new content. |
| 1843 |
\end{langTcbKey} |
| 1844 |
|
| 1845 |
\begin{langTcbKey}[][doc new={2019-09-18}]{path}{=\meta{text}}{no default, initially |path operation|} |
| 1846 |
Text used in the index for path operations. |
| 1847 |
\end{langTcbKey} |
| 1848 |
|
| 1849 |
\begin{langTcbKey}[][doc new={2019-09-18}]{paths}{=\meta{text}}{no default, initially |Path operations|} |
| 1850 |
Heading text in the index for path operations. |
| 1851 |
\end{langTcbKey} |
| 1852 |
|
| 1853 |
\begin{langTcbKey}{pageshort}{=\meta{text}}{no default, initially |P.|} |
| 1854 |
Short text for page references. |
| 1855 |
\end{langTcbKey} |
| 1856 |
|
| 1857 |
\begin{langTcbKey}[][doc new={2014-09-19}]{updated}{=\meta{text}}{no default, initially |Updated|} |
| 1858 |
Announcement text for updated content. |
| 1859 |
\end{langTcbKey} |
| 1860 |
|
| 1861 |
\clearpage |
| 1862 |
|
| 1863 |
\begin{langTcbKey}{value}{=\meta{text}}{no default, initially |value|} |
| 1864 |
Text used in the index for values. |
| 1865 |
\end{langTcbKey} |
| 1866 |
|
| 1867 |
\begin{langTcbKey}{values}{=\meta{text}}{no default, initially |Values|} |
| 1868 |
Heading text in the index for values. |
| 1869 |
\end{langTcbKey} |
| 1870 |
|
| 1871 |
|
| 1872 |
|
| 1873 |
\subsection{Predefined Colors of the Library}\tcbdocmarginnote{\tcbdocupdated{2019-09-18}} |
| 1874 |
The following colors are predefined. They are used as default colors |
| 1875 |
in some library commands. |
| 1876 |
|
| 1877 |
\def\dispColor#1{\docColor{#1}~\tikz[baseline=1mm]\path[fill=#1,draw] (0,0) rectangle (0.4,0.4);~} |
| 1878 |
|
| 1879 |
\dispColor{Option}, |
| 1880 |
\dispColor{Definition}, |
| 1881 |
\dispColor{ExampleFrame}, |
| 1882 |
\dispColor{ExampleBack}, |
| 1883 |
\dispColor{Hyperlink}, |
| 1884 |
\dispColor{Fade}. |
| 1885 |
|
| 1886 |
|