| 1 |
% \iffalse meta-comment |
| 2 |
%<*internal> |
| 3 |
\iffalse |
| 4 |
%</internal> |
| 5 |
%<*readme> |
| 6 |
denisbdoc - A personal package for documenting classes and packages, v. 0.9.6 |
| 7 |
============================================================================= |
| 8 |
|
| 9 |
**The sole purpose of this (quick 'n dirty) `denisbdoc` package is for |
| 10 |
documenting the classes written by their author (Denis Bitouzé).** |
| 11 |
|
| 12 |
The package is supplied in `.dtx` format. If you want to unpack the `.dtx` |
| 13 |
yourself, running: |
| 14 |
|
| 15 |
tex denisbdoc.dtx |
| 16 |
|
| 17 |
will extract the package. |
| 18 |
|
| 19 |
This package is currently not documented. |
| 20 |
%</readme> |
| 21 |
%<*ctanomat> |
| 22 |
% This is a description file for ctan-o-mat. |
| 23 |
% It manages uploads of a package to |
| 24 |
% CTAN -- the Comprehensive TeX Archive Network. |
| 25 |
% |
| 26 |
% The syntax is roughly oriented towards (La)TeX. |
| 27 |
% Two form of the macros are used. The simple macros take one argument |
| 28 |
% in braces. Here the argument may not contain embedded macros. |
| 29 |
% |
| 30 |
% The second form uses an environment enclosed in \begin{}/\end{}. |
| 31 |
% In the long text fields logo macros can be used. |
| 32 |
% |
| 33 |
% You should enter your values between the begin and the end of the |
| 34 |
% named type. |
| 35 |
% ------------------------------------------------------------------------- |
| 36 |
% This field contains the CTAN id of the package. |
| 37 |
% The value is optional. |
| 38 |
% The value is restricted to 32 characters. |
| 39 |
\pkg{denisbdoc} |
| 40 |
% ------------------------------------------------------------------------- |
| 41 |
% This field contains the version of the package. |
| 42 |
% The value is optional. |
| 43 |
% The value is restricted to 32 characters. |
| 44 |
\version{0.9.6 2026-02-18} |
| 45 |
% ------------------------------------------------------------------------- |
| 46 |
% This field contains the name of the author(s). |
| 47 |
% The value is optional. |
| 48 |
% The value is restricted to 128 characters. |
| 49 |
\author{Denis Bitouzé} |
| 50 |
% ------------------------------------------------------------------------- |
| 51 |
% This field contains the email address of the uploader. |
| 52 |
% The value is an email address. |
| 53 |
% The value is restricted to 255 characters. |
| 54 |
\email{[email protected]} |
| 55 |
% ------------------------------------------------------------------------- |
| 56 |
% This field contains the name of the uploader. |
| 57 |
% The value is restricted to 255 characters. |
| 58 |
\uploader{Denis Bitouzé} |
| 59 |
% ------------------------------------------------------------------------- |
| 60 |
% This field contains the directory on CTAN. |
| 61 |
% The value is optional. |
| 62 |
% The value is restricted to 255 characters. |
| 63 |
\ctanPath{/macros/latex/contrib/denisbdoc} |
| 64 |
% ------------------------------------------------------------------------- |
| 65 |
% This field contains the license. |
| 66 |
% The value is optional. |
| 67 |
% The value is restricted to 2048 characters. |
| 68 |
% Multiple values are allowed. |
| 69 |
\license{lppl1.3c} |
| 70 |
% ------------------------------------------------------------------------- |
| 71 |
% This field contains the URL of the home page. |
| 72 |
% The value is optional. |
| 73 |
% The value is a URL. |
| 74 |
% The value is restricted to 255 characters. |
| 75 |
% Multiple values are allowed. |
| 76 |
\home{} |
| 77 |
% ------------------------------------------------------------------------- |
| 78 |
% This field contains the URL of the bug tracker. |
| 79 |
% The value is optional. |
| 80 |
% The value is a URL. |
| 81 |
% The value is restricted to 255 characters. |
| 82 |
% Multiple values are allowed. |
| 83 |
\bugtracker{} |
| 84 |
% ------------------------------------------------------------------------- |
| 85 |
% This field contains the support channel. |
| 86 |
% The value is optional. |
| 87 |
% The value is a URL. |
| 88 |
% The value is restricted to 255 characters. |
| 89 |
% Multiple values are allowed. |
| 90 |
\support{} |
| 91 |
% ------------------------------------------------------------------------- |
| 92 |
% This field contains the version management. |
| 93 |
% The value is optional. |
| 94 |
% The value is a URL. |
| 95 |
% The value is restricted to 255 characters. |
| 96 |
% Multiple values are allowed. |
| 97 |
\repository{} |
| 98 |
% ------------------------------------------------------------------------- |
| 99 |
% This field contains the developer's channel. |
| 100 |
% The value is optional. |
| 101 |
% The value is a URL. |
| 102 |
% The value is restricted to 255 characters. |
| 103 |
% Multiple values are allowed. |
| 104 |
\development{} |
| 105 |
% ------------------------------------------------------------------------- |
| 106 |
% This field contains the update indicator; true for update. |
| 107 |
% The value is optional. |
| 108 |
% The value is restricted to 8 characters. |
| 109 |
\update{true} |
| 110 |
% ------------------------------------------------------------------------- |
| 111 |
% This field contains the topics id. |
| 112 |
% The value is optional. |
| 113 |
% The value is restricted to 1024 characters. |
| 114 |
% Multiple values are allowed. |
| 115 |
\topic{} |
| 116 |
% ------------------------------------------------------------------------- |
| 117 |
% This field contains the text for the mail announcement. |
| 118 |
% The value is optional. |
| 119 |
% The value is restricted to 8192 characters. |
| 120 |
\begin{announcement} |
| 121 |
\end{announcement} |
| 122 |
% ------------------------------------------------------------------------- |
| 123 |
% This field contains the one-liner for the package. |
| 124 |
% The value is optional. |
| 125 |
% The value is restricted to 128 characters. |
| 126 |
\summary{A personal dirty package for documenting classes and packages} |
| 127 |
% ------------------------------------------------------------------------- |
| 128 |
% This field contains the descriptive abstract for the package. |
| 129 |
% The value is optional. |
| 130 |
% The value is restricted to 4096 characters. |
| 131 |
\begin{description} |
| 132 |
A personal dirty package for documenting classes and packages. |
| 133 |
\end{description} |
| 134 |
% ------------------------------------------------------------------------- |
| 135 |
% This field contains the note to the CTAN upload managers. |
| 136 |
% The value is optional. |
| 137 |
% The value is restricted to 2048 characters. |
| 138 |
\begin{note} |
| 139 |
\end{note} |
| 140 |
% ------------------------------------------------------------------------- |
| 141 |
% This field contains the archive file. |
| 142 |
% The value is the file name of the archive to be uploaded. |
| 143 |
% It may have a relative or absolute directory. |
| 144 |
\file{../dtx-forge/denisbdoc.zip} |
| 145 |
%</ctanomat> |
| 146 |
%<*internal> |
| 147 |
\fi |
| 148 |
\def\nameofplainTeX{plain} |
| 149 |
\ifx\fmtname\nameofplainTeX\else |
| 150 |
\expandafter\begingroup |
| 151 |
\fi |
| 152 |
%</internal> |
| 153 |
%<*install> |
| 154 |
\input l3docstrip.tex |
| 155 |
\askforoverwritefalse |
| 156 |
\preamble |
| 157 |
------------------------------------------------------------------------------------- |
| 158 |
denisbdoc --- A personal dirty package for documenting personal classes and packages, |
| 159 |
version 0.9.6 |
| 160 |
|
| 161 |
Maintained by Denis Bitouzé |
| 162 |
E-mail: [email protected] |
| 163 |
Released under the LaTeX Project Public License v1.3c or later |
| 164 |
See https://latex-project.org/lppl.txt |
| 165 |
----------------------------------------------------------------------------- |
| 166 |
|
| 167 |
\endpreamble |
| 168 |
\postamble |
| 169 |
Copyright (C) 2015-2026 by |
| 170 |
Denis Bitouzé <[email protected]> |
| 171 |
|
| 172 |
It may be distributed and/or modified under the conditions of |
| 173 |
the LaTeX Project Public License (LPPL), either version 1.3c of |
| 174 |
this license or (at your option) any later version. The latest |
| 175 |
version of this license is in the file: |
| 176 |
https://latex-project.org/lppl.txt |
| 177 |
|
| 178 |
This work is "maintained" (as per LPPL maintenance status) by |
| 179 |
Denis Bitouzé. |
| 180 |
|
| 181 |
This work consists of the file denisbdoc.dtx |
| 182 |
denisbdoc.sty and |
| 183 |
denisbdoc.ins. |
| 184 |
\endpostamble |
| 185 |
\usedir{tex/latex/denisbdoc} |
| 186 |
\generate{ |
| 187 |
\file{\jobname.sty}{\from{\jobname.dtx}{package}} |
| 188 |
} |
| 189 |
\nopreamble\nopostamble |
| 190 |
\generate{ |
| 191 |
\file{\jobname.xdy}{\from{\jobname.dtx}{xindy-style}} |
| 192 |
\file{\jobname-chng.xdy}{\from{\jobname.dtx}{xindy-style-chng}} |
| 193 |
} |
| 194 |
%</install> |
| 195 |
%<install>\endbatchfile |
| 196 |
%<*internal> |
| 197 |
\usedir{.} |
| 198 |
\generate{ |
| 199 |
\nopreamble\nopostamble |
| 200 |
\file{\jobname.pkg}{\from{\jobname.dtx}{ctanomat}} |
| 201 |
}% |
| 202 |
\usedir{source/latex/denisbdoc} |
| 203 |
\generate{ |
| 204 |
\file{\jobname.ins}{\from{\jobname.dtx}{install}} |
| 205 |
} |
| 206 |
\nopreamble\nopostamble |
| 207 |
\usedir{doc/latex/denisbdoc} |
| 208 |
\generate{ |
| 209 |
\file{README.md}{\from{\jobname.dtx}{readme}} |
| 210 |
}% |
| 211 |
\ifx\fmtname\nameofplainTeX |
| 212 |
\expandafter\endbatchfile |
| 213 |
\else |
| 214 |
\expandafter\endgroup |
| 215 |
\fi |
| 216 |
%</internal> |
| 217 |
%<*driver|package> |
| 218 |
\RequirePackage{expl3,l3keys2e,xparse} |
| 219 |
%</driver|package> |
| 220 |
%<*driver> |
| 221 |
% \documentclass[english,french]{ltxdoc} |
| 222 |
% \usepackage{denisbdoc} |
| 223 |
% % Silence annoying fp package messages |
| 224 |
% %\DisableImplementation |
| 225 |
% \begin{document} |
| 226 |
% \DocInput{\jobname.dtx} |
| 227 |
% \end{document} |
| 228 |
%</driver> |
| 229 |
% \fi |
| 230 |
% |
| 231 |
% \GetFileInfo{\jobname.sty} |
| 232 |
% |
| 233 |
%\title{^^A |
| 234 |
% \textsf{denisbdoc} --- A personal package for documenting packages\thanks{^^A |
| 235 |
% This file describes \fileversion, last revised \filedate.^^A |
| 236 |
% }^^A |
| 237 |
%} |
| 238 |
%\author{^^A |
| 239 |
% Denis Bitouzé\thanks |
| 240 |
% {^^A |
| 241 |
% E-mail: \href{mailto:[email protected]} |
| 242 |
% {\texttt{[email protected]}}^^A |
| 243 |
% }^^A |
| 244 |
%} |
| 245 |
%\date{Released \filedate} |
| 246 |
% |
| 247 |
%\maketitle |
| 248 |
% |
| 249 |
%\changes{v0.1}{2015/03/15}{First CTAN version} |
| 250 |
%\changes{v0.2}{2016/04/04}{Second CTAN version} |
| 251 |
%\changes{v0.3}{2016/06/10}{Third CTAN version} |
| 252 |
%\changes{v0.4}{2016/10/24}{Fourth CTAN version} |
| 253 |
%\changes{v0.5}{2016/10/30}{Fifth CTAN version} |
| 254 |
%\changes{v0.6}{2016/12/08}{Sixth CTAN version} |
| 255 |
%\changes{v0.7}{2017/01/01}{Seventh CTAN version} |
| 256 |
%\changes{v0.8}{2020/03/27}{Eighth CTAN version} |
| 257 |
%\changes{v0.9}{2020/05/31}{Nineth CTAN version} |
| 258 |
%\changes{v0.9.1}{2020/10/14}{Further CTAN version} |
| 259 |
%\changes{v0.9.2}{2021-10-13}{Further CTAN version} |
| 260 |
%\changes{v0.9.3}{2021-12-01}{Further CTAN version} |
| 261 |
%\changes{v0.9.4}{2022-06-13}{Further CTAN version} |
| 262 |
%\changes{v0.9.5}{2024-03-10}{Further CTAN version} |
| 263 |
%\changes{v0.9.6}{2026-02-18}{Further CTAN version} |
| 264 |
% |
| 265 |
%\begin{abstract} |
| 266 |
% ... |
| 267 |
%\end{abstract} |
| 268 |
% |
| 269 |
%\tableofcontents |
| 270 |
% |
| 271 |
%\begin{documentation} |
| 272 |
% |
| 273 |
%\section{Introduction} |
| 274 |
% |
| 275 |
% ... |
| 276 |
% |
| 277 |
%\section{Installation} |
| 278 |
% |
| 279 |
% The package is supplied in \file{dtx} format and as a pre-extracted |
| 280 |
% zip file, \file{\jobname.tds.zip}. The later is most convenient for |
| 281 |
% most users: simply unzip this in your local texmf directory and |
| 282 |
% run \texttt{texhash} to update the database of file locations. If |
| 283 |
% you want to unpack the \file{dtx} yourself, running |
| 284 |
% \texttt{tex \jobname.dtx} will extract the package whereas |
| 285 |
% \texttt{latex \jobname.dtx} will extract it and also typeset the |
| 286 |
% documentation. |
| 287 |
% |
| 288 |
% The package requires \LaTeX3 support as provided in the |
| 289 |
% \pkg{l3kernel} and \pkg{l3packages} bundles. Both of these are available |
| 290 |
% on \href{https://ctan.org}{\textsc{ctan}} as ready-to-install |
| 291 |
% zip files. Suitable versions are available in MiK\TeX{}~2.9 and |
| 292 |
% \TeX{}~Live 2014 (updating the relevant packages online may be |
| 293 |
% necessary). \LaTeX3, and so \pkg{denisbdoc}, requires the \eTeX{} |
| 294 |
% extensions: these are available on all modern \TeX{} systems. |
| 295 |
% |
| 296 |
% Typesetting the documentation requires a number of packages in |
| 297 |
% addition to those needed to use the package. This is mainly |
| 298 |
% because of the number of demonstration items included in the text. To |
| 299 |
% compile the documentation without error, you will need the packages: |
| 300 |
%\begin{itemize} |
| 301 |
% \item \pkg{amsmath} |
| 302 |
% \item \pkg{booktabs} |
| 303 |
% \item \pkg{cancel} |
| 304 |
% \item \pkg{caption} |
| 305 |
% \item \pkg{colortbl} |
| 306 |
% \item \pkg{csquotes} |
| 307 |
% \item \pkg{helvet} |
| 308 |
% \item \pkg{mathpazo} |
| 309 |
% \item \pkg{multirow} |
| 310 |
% \item \pkg{listings} |
| 311 |
% \item \pkg{pgfplots} |
| 312 |
% \item \pkg{xcolor} |
| 313 |
% \item \pkg{zref-clever} |
| 314 |
%\end{itemize} |
| 315 |
% |
| 316 |
%\end{documentation} |
| 317 |
% |
| 318 |
%\begin{implementation} |
| 319 |
% |
| 320 |
% \chapter{Implementation} |
| 321 |
% |
| 322 |
% \begin{macrocode} |
| 323 |
%<*package> |
| 324 |
% \end{macrocode} |
| 325 |
% |
| 326 |
% \begin{macrocode} |
| 327 |
%<@@=denisbdoc> |
| 328 |
% \end{macrocode} |
| 329 |
% |
| 330 |
% \section{Preliminaries} |
| 331 |
% |
| 332 |
% The usual preliminaries. |
| 333 |
% \begin{macrocode} |
| 334 |
\ProvidesExplPackage {denisbdoc} {2026-02-18} {0.9.6} |
| 335 |
{A personal package for documenting packages} |
| 336 |
% \end{macrocode} |
| 337 |
% |
| 338 |
% Make sure that the version of \pkg{l3kernel} in use is sufficiently new. |
| 339 |
% This will also trap any problems with \pkg{l3packages} (as the two are now |
| 340 |
% tied together, version-wise). |
| 341 |
% \begin{macrocode} |
| 342 |
\@ifpackagelater { expl3 } { 2012/11/21 } |
| 343 |
{ } |
| 344 |
{ |
| 345 |
\PackageError { denisbdoc } { Support~package~expl3~too~old } |
| 346 |
{ |
| 347 |
You~need~to~update~your~installation~of~the~bundles~'l3kernel'~and~ |
| 348 |
'l3packages'.\MessageBreak |
| 349 |
Loading~denisbdoc~will~abort! |
| 350 |
} |
| 351 |
\tex_endinput:D |
| 352 |
} |
| 353 |
% \end{macrocode} |
| 354 |
% |
| 355 |
% \section{Options} |
| 356 |
% |
| 357 |
% \begin{macrocode} |
| 358 |
\keys_define:nn { denisbdoc } |
| 359 |
{ |
| 360 |
yad .bool_gset:N = \g_@@_yad_bool, |
| 361 |
gzt .bool_gset:N = \g_@@_gzt_bool, |
| 362 |
nwejm .bool_gset:N = \g_@@_nwejm_bool, |
| 363 |
bthulco .bool_gset:N = \g_@@_bthulco_bool, |
| 364 |
studentreport .bool_gset:N = \g_@@_studentreport_bool, |
| 365 |
lscape .bool_gset:N = \g_@@_lscape_bool, |
| 366 |
} |
| 367 |
% \end{macrocode} |
| 368 |
% |
| 369 |
% \begin{macrocode} |
| 370 |
\ProcessKeysOptions { denisbdoc } |
| 371 |
% \end{macrocode} |
| 372 |
% |
| 373 |
% \section{Packages} |
| 374 |
% |
| 375 |
% \begin{macrocode} |
| 376 |
\PassOptionsToPackage{obeyspaces}{url} |
| 377 |
% \end{macrocode} |
| 378 |
% |
| 379 |
% \begin{macrocode} |
| 380 |
\sys_if_engine_pdftex:TF |
| 381 |
{ |
| 382 |
% \RequirePackage{cmap} % Necessary for the angle brackets generated by ×\meta× |
| 383 |
% % to be copied and pasted as they are, and not replaced |
| 384 |
% % by "h" and "i" |
| 385 |
\RequirePackage[T1]{fontenc} |
| 386 |
% \end{macrocode} |
| 387 |
% |
| 388 |
% In order to get rid of the warning "PDF inclusion: multiple pdfs with page |
| 389 |
% group included in a single page" (see |
| 390 |
% \url{https://tex.stackexchange.com/q/183149/18401}). |
| 391 |
% \begin{macrocode} |
| 392 |
\pdfsuppresswarningpagegroup=1 |
| 393 |
}{ |
| 394 |
\RequirePackage{fontspec} |
| 395 |
} |
| 396 |
\RequirePackage{xpatch}% |
| 397 |
\AtEndPreamble{% |
| 398 |
\RequirePackage{mweights}% |
| 399 |
}% |
| 400 |
% |
| 401 |
% \let\denisbdoc@ORI@task\task |
| 402 |
% \let\task\relax |
| 403 |
% \RequirePackage{exsheets} |
| 404 |
% \let\task\denisbdoc@ORI@task |
| 405 |
\RequirePackage{fixfoot}% |
| 406 |
% |
| 407 |
% \end{macrocode} |
| 408 |
% |
| 409 |
% For all the conditional ×\@ifclassloaded{beamer}{...}{...}× , we the following |
| 410 |
% trick needed because patching commands when ×#× is involved can't happen in |
| 411 |
% the argument to another command (see |
| 412 |
% \url{https://tex.stackexchange.com/a/167107/18401}). |
| 413 |
% \begin{macrocode} |
| 414 |
\newif\if@DBD@beamer@not@loaded@ |
| 415 |
\@DBD@beamer@not@loaded@true |
| 416 |
\@ifclassloaded{beamer}{\@DBD@beamer@not@loaded@false}{\@DBD@beamer@not@loaded@true} |
| 417 |
% |
| 418 |
\if@DBD@beamer@not@loaded@ |
| 419 |
\RequirePackage{parskip}% |
| 420 |
\RequirePackage{marginnote} |
| 421 |
\RequirePackage{mparhack} |
| 422 |
% \RequirePackage[inline]{enumitem} |
| 423 |
\RequirePackage{enumitem} |
| 424 |
\fi% |
| 425 |
\RequirePackage{afterpage}% |
| 426 |
\RequirePackage{calc}% |
| 427 |
% \RequirePackage[lining]{libertine}% |
| 428 |
\RequirePackage{siunitx}% |
| 429 |
\RequirePackage{pifont} |
| 430 |
% \RequirePackage[a4paper]{geometry}% |
| 431 |
\RequirePackage{booktabs}% |
| 432 |
\RequirePackage{multirow}% |
| 433 |
\RequirePackage[xr]{zref}% |
| 434 |
\if@DBD@beamer@not@loaded@ |
| 435 |
\RequirePackage[multiple]{footmisc}% |
| 436 |
\RequirePackage{rotating}% |
| 437 |
\fi% |
| 438 |
\bool_if:nTF {\g_@@_lscape_bool} {% |
| 439 |
\RequirePackage{lscape}% |
| 440 |
}{% |
| 441 |
\RequirePackage{pdflscape}% |
| 442 |
} |
| 443 |
\RequirePackage{accsupp} |
| 444 |
\RequirePackage{newunicodechar} |
| 445 |
\RequirePackage{hologo}% |
| 446 |
\RequirePackage{xifthen}% |
| 447 |
\RequirePackage{refcount}% |
| 448 |
\RequirePackage{etoolbox}% |
| 449 |
\RequirePackage{iflang}% |
| 450 |
\RequirePackage{ifpdf}% |
| 451 |
\sys_if_engine_pdftex:T |
| 452 |
{ |
| 453 |
\RequirePackage{amssymb}% |
| 454 |
} |
| 455 |
\if@DBD@beamer@not@loaded@ |
| 456 |
\RequirePackage{tocvsec2}% |
| 457 |
\fi |
| 458 |
\RequirePackage{ltxcmds}% |
| 459 |
\RequirePackage{csquotes}% |
| 460 |
\RequirePackage{tikz}% |
| 461 |
\RequirePackage{translator}% |
| 462 |
% \RequirePackage{scrlfile} |
| 463 |
% |
| 464 |
\let\EUR\relax |
| 465 |
\RequirePackage{comment}% |
| 466 |
\RequirePackage{path}% |
| 467 |
\RequirePackage{textcase}% |
| 468 |
\RequirePackage{fontawesome5}% |
| 469 |
\@ifpackageloaded{biblatex}{% |
| 470 |
% \end{macrocode} |
| 471 |
% |
| 472 |
% Réglage nécessaire sans quoi le titre courant \textquote{BIBLIOGRAPHIE} |
| 473 |
% apparaît en trop en entête et en pied de page |
| 474 |
% \begin{macrocode} |
| 475 |
\AtEndPreamble{% |
| 476 |
\bool_if:nT {\g_@@_yad_bool} {% |
| 477 |
% \defbibheading{bibintoc}[\bibname]{\chapter*{#1}}% |
| 478 |
% % \defbibheading{subbibintoc}[\bibname]{\section*{#1}}% |
| 479 |
% \defbibheading{YAD@localbibs@heading}[\translate{lbl-localbibname}]{% |
| 480 |
% % \YAD@setsecnumdepth{none}% |
| 481 |
% \section*{#1}% |
| 482 |
% % \YAD@setsecnumdepth{\YAD@secnumdepth}% |
| 483 |
% }% |
| 484 |
% \end{macrocode} |
| 485 |
% |
| 486 |
% Redéfinition de la commande d'insertion de la bibliographie et ce, |
| 487 |
% seulement si le \Package{biblatex} est chargé |
| 488 |
% \begin{macro}{\printbibliography} |
| 489 |
% \begin{macrocode} |
| 490 |
\let\_@@_printbibliography_ORI\printbibliography% |
| 491 |
\renewcommand{\printbibliography}[1][]{% |
| 492 |
\@ifpackageloaded{setspace}{% |
| 493 |
\singlespacing% |
| 494 |
}{% |
| 495 |
} |
| 496 |
\chapter*{\bibname}% |
| 497 |
\_@@_printbibliography_ORI[heading=none,#1]% |
| 498 |
}% |
| 499 |
}% |
| 500 |
}% |
| 501 |
}{% |
| 502 |
\RequirePackage[%backend=biber% |
| 503 |
,style=authortitle,dashed=false |
| 504 |
,autopunct=false,useprefix=true,backref]{biblatex}% |
| 505 |
}% |
| 506 |
% \end{macrocode} |
| 507 |
% |
| 508 |
% In order to as many write \enquote{streams} in auxiliary files as needed. It |
| 509 |
% has to be loaded not too late (otherwise it cannot fix troubles it is used |
| 510 |
% for), but not too early (otherwise the compilation stops a long time at the |
| 511 |
% line: |
| 512 |
% ×/usr/local/texlive/.../texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg×, |
| 513 |
% trouble reported to the author). |
| 514 |
% \begin{macrocode} |
| 515 |
\RequirePackage{morewrites}% |
| 516 |
\RequirePackage{babel}% |
| 517 |
\RequirePackage[useregional]{datetime2}% |
| 518 |
% \RequirePackage[nodayofweek]{datetime}% |
| 519 |
% \RequirePackage{floatrow}% |
| 520 |
\RequirePackage{subcaption}% |
| 521 |
% |
| 522 |
% \Pkg{tocbibind} should be loaded before \pkg{imakeidx}, otherwise it would |
| 523 |
% destroy the |\indexprologue| feature of the latter. |
| 524 |
\if@DBD@beamer@not@loaded@ |
| 525 |
\RequirePackage[nottoc]{tocbibind}% |
| 526 |
\RequirePackage[xindy]{imakeidx} |
| 527 |
\fi% |
| 528 |
% |
| 529 |
% \@ifpackageloaded{hypdoc}{% |
| 530 |
% }{% |
| 531 |
% \let\oldmaketitle\maketitle |
| 532 |
% \RequirePackage{hypdoc}% |
| 533 |
% \let\maketitle\oldmaketitle |
| 534 |
% }% |
| 535 |
\RequirePackage{varioref}% |
| 536 |
\@ifpackageloaded{tcolorbox}{% |
| 537 |
}{% |
| 538 |
\RequirePackage{tcolorbox}% |
| 539 |
}% |
| 540 |
\@ifpackageloaded{hyperref}{% |
| 541 |
}{% |
| 542 |
\RequirePackage[hyperfootnotes=false,hyperindex=false]{hyperref}% |
| 543 |
}% |
| 544 |
\RequirePackage{attachfile2}% |
| 545 |
\@ifpackageloaded{nameref}{% |
| 546 |
}{% |
| 547 |
\RequirePackage{nameref}% |
| 548 |
}% |
| 549 |
\@ifpackageloaded{hypcap}{% |
| 550 |
}{% |
| 551 |
\if@DBD@beamer@not@loaded@ |
| 552 |
\RequirePackage[all]{hypcap}% |
| 553 |
\fi% |
| 554 |
}% |
| 555 |
\@ifpackageloaded{bookmark}{% |
| 556 |
}{% |
| 557 |
\RequirePackage[numbered]{bookmark}% |
| 558 |
}% |
| 559 |
\@ifpackageloaded{glossaries}{% |
| 560 |
}{% |
| 561 |
\RequirePackage[xindy,hyperfirst=false,toc=false]{glossaries-extra}% |
| 562 |
\makeglossaries% |
| 563 |
\newglossaryentry{zip}{% |
| 564 |
name=zip,% |
| 565 |
category={format},% |
| 566 |
description={format~ de~ fichier~ permettant~ l'archivage~ (utilisation~ |
| 567 |
d'un~ seul~ fichier~ pour~ stocker~ plusieurs~ fichiers)~ et~ la~ |
| 568 |
compression~ de~ données~ (diminution~ de~ l'espace~ occupé~ sur~ le~ |
| 569 |
support~ numérique)~ sans~ perte~ de~ qualité},% |
| 570 |
text={zip}% |
| 571 |
}% |
| 572 |
\setglossarystyle{indexhypergroup}% |
| 573 |
\setabbreviationstyle{long-short-sc}% |
| 574 |
\newcommand*{\formatfont}[1]{\textsc{#1}}% |
| 575 |
\glssetcategoryattribute{format}{glossnamefont}{formatfont}% |
| 576 |
\glssetcategoryattribute{format}{font}{formatfont}% |
| 577 |
\renewcommand*{\glsxtrregularfont}[1]{% |
| 578 |
\glshasattribute{\glslabel}{font}% |
| 579 |
{\csuse{\glsgetattribute{\glslabel}{font}}{#1}}% |
| 580 |
{#1}% |
| 581 |
}% |
| 582 |
}% |
| 583 |
% \end{macrocode} |
| 584 |
% |
| 585 |
% Some code stolen from \pkg{hypdoc} in order page numbers in change history are |
| 586 |
% hyperlinks. |
| 587 |
% \begin{macrocode} |
| 588 |
\if@DBD@beamer@not@loaded@ |
| 589 |
\def\hdpindex#1#2{% |
| 590 |
\csname\ifx\\#1\\relax\else#1\fi\endcsname{% |
| 591 |
\hyperpage{#2}% |
| 592 |
}% |
| 593 |
} |
| 594 |
\let\HDorg@wrglossary\@wrglossary |
| 595 |
\def\@wrglossary#1{% |
| 596 |
\let\HDorg@encapchar\encapchar |
| 597 |
\def\encapchar##1\encapchar##2\@nil{% |
| 598 |
\HDorg@encapchar |
| 599 |
hdpindex{##1}% |
| 600 |
}% |
| 601 |
\HDorg@wrglossary{#1\encapchar\encapchar\@nil}% |
| 602 |
} |
| 603 |
\fi% |
| 604 |
% \end{macrocode} |
| 605 |
% |
| 606 |
% \begin{macrocode} |
| 607 |
\@ifpackageloaded{glossaries-extra}{% |
| 608 |
\renewcommand*{\glsxtrabbrvpluralsuffix}{} |
| 609 |
}{% |
| 610 |
} |
| 611 |
% \end{macrocode} |
| 612 |
% |
| 613 |
% % Some hacks to avoid issues of \pkg{hypdoc} reported by me at |
| 614 |
% % \url{https://github.com/ho-tex/oberdiek/issues} (currently not used because |
| 615 |
% % this package has to much issues). |
| 616 |
% % \begin{macrocode} |
| 617 |
% \@ifpackageloaded{hypdoc}{% |
| 618 |
% % \let\theglossary\HDorg@theglossary |
| 619 |
% \def\listoftables{% |
| 620 |
% % \end{macrocode} |
| 621 |
% % |
| 622 |
% % Hack against point 2 of this issue: |
| 623 |
% % \url{https://github.com/ho-tex/oberdiek/issues/12}. |
| 624 |
% % \begin{macrocode} |
| 625 |
% \bookmarksetup{startatroot}% |
| 626 |
% \cleardoublepage |
| 627 |
% % \end{macrocode} |
| 628 |
% % |
| 629 |
% % \begin{macrocode} |
| 630 |
% \ifHD@numbered |
| 631 |
% \else |
| 632 |
% \stepcounter{HD@unique}% |
| 633 |
% \pdfbookmark[\HD@guesstoclevel{\HDorg@listoftables}]% |
| 634 |
% % \end{macrocode} |
| 635 |
% % |
| 636 |
% % Hack against of this issue: |
| 637 |
% % \url{https://github.com/ho-tex/oberdiek/issues/8}. |
| 638 |
% % \begin{macrocode} |
| 639 |
% {\listtablename}% |
| 640 |
% % \end{macrocode} |
| 641 |
% % |
| 642 |
% % \begin{macrocode} |
| 643 |
% {toc\theHD@unique}% |
| 644 |
% \fi |
| 645 |
% \begingroup |
| 646 |
% \HD@sectionpatch |
| 647 |
% \HDorg@listoftables |
| 648 |
% \endgroup |
| 649 |
% } |
| 650 |
% \def\listoffigures{% |
| 651 |
% % \end{macrocode} |
| 652 |
% % |
| 653 |
% % Hack against point 2 of this issue: |
| 654 |
% % \url{https://github.com/ho-tex/oberdiek/issues/12}. |
| 655 |
% % \begin{macrocode} |
| 656 |
% \bookmarksetup{startatroot}% |
| 657 |
% \cleardoublepage |
| 658 |
% % \end{macrocode} |
| 659 |
% % |
| 660 |
% % \begin{macrocode} |
| 661 |
% \ifHD@numbered |
| 662 |
% \else |
| 663 |
% \stepcounter{HD@unique}% |
| 664 |
% \pdfbookmark[\HD@guesstoclevel{\HDorg@listoffigures}]% |
| 665 |
% % \end{macrocode} |
| 666 |
% % |
| 667 |
% % Hack against of this issue: |
| 668 |
% % \url{https://github.com/ho-tex/oberdiek/issues/8}. |
| 669 |
% % \begin{macrocode} |
| 670 |
% {\listfigurename}% |
| 671 |
% % \end{macrocode} |
| 672 |
% % |
| 673 |
% % \begin{macrocode} |
| 674 |
% {toc\theHD@unique}% |
| 675 |
% \fi |
| 676 |
% \begingroup |
| 677 |
% \HD@sectionpatch |
| 678 |
% \HDorg@listoffigures |
| 679 |
% \endgroup |
| 680 |
% } |
| 681 |
% \patchcmd{\HDorg@listoffigures} |
| 682 |
% {\chapter*{\listfigurename}}% |
| 683 |
% {% |
| 684 |
% \setsecnumdepth{none}% |
| 685 |
% \chapter{\listfigurename}% |
| 686 |
% \resetsecnumdepth*% |
| 687 |
% }% |
| 688 |
% {}% |
| 689 |
% {} |
| 690 |
% \patchcmd{\HDorg@listoftables} |
| 691 |
% {\chapter*{\listtablename}}% |
| 692 |
% {% |
| 693 |
% \setsecnumdepth{none}% |
| 694 |
% \chapter{\listtablename}% |
| 695 |
% \resetsecnumdepth*% |
| 696 |
% }% |
| 697 |
% {}% |
| 698 |
% {} |
| 699 |
% }{% |
| 700 |
% } |
| 701 |
% % \end{macrocode} |
| 702 |
% |
| 703 |
% A trouble with ×\NoAutoSpacing× from \package{frenchb} has been fixed since |
| 704 |
% version 3.2b 2016-04-18. But this cannot be discriminated directly (see |
| 705 |
% \url{https://tex.stackexchange.com/q/309680/18401}), hence we rely on |
| 706 |
% \Package{ltxcmds} for this: |
| 707 |
% \begin{macrocode} |
| 708 |
\ltx@iffilelater{french.ldf}{2016/03/20}{% |
| 709 |
}{% |
| 710 |
\DeclareRobustCommand*{\NoAutoSpacing}{\FBAutoSpaceGuillfalse% |
| 711 |
\ifFB@active@punct\noautospace@beforeFDP\shorthandoff{;:!?}\fi% |
| 712 |
\ifFB@xetex@punct\XeTeXinterchartokenstate=0 \fi% |
| 713 |
\ifFB@luatex@punct\FB@addDPspace=0 \FB@addGUILspace=0 \fi% |
| 714 |
}% |
| 715 |
} |
| 716 |
% \end{macrocode} |
| 717 |
% |
| 718 |
% We momentarily switch to a \enquote{normal} category code régime in which the |
| 719 |
% colon (:) is treated as \enquote{letter}, which is necessary when colon is |
| 720 |
% used in code (here \pkg{TikZ} and \pkg{tcolorbox}). |
| 721 |
% \begin{macrocode} |
| 722 |
\ExplSyntaxOff |
| 723 |
\ifpdf |
| 724 |
\tcbuselibrary{listingsutf8} |
| 725 |
\else |
| 726 |
\tcbuselibrary{listings} |
| 727 |
\fi |
| 728 |
\tcbuselibrary{% |
| 729 |
documentation,theorems,breakable,skins,xparse% |
| 730 |
} |
| 731 |
\tcbset{% |
| 732 |
commandshell/.style={% |
| 733 |
colback=black, |
| 734 |
colupper=white, |
| 735 |
colframe=yellow!75!black, |
| 736 |
breakable, |
| 737 |
listing only, |
| 738 |
listing options={style=tcblatex,language=bash,escapeinside={(*@}{@*)}}, |
| 739 |
every listing line={% |
| 740 |
\textcolor{red}{% |
| 741 |
\small\ttfamily\bfseries% |
| 742 |
\BeginAccSupp{method=plain,ActualText={}} |
| 743 |
\$ |
| 744 |
\EndAccSupp{}% |
| 745 |
} |
| 746 |
}, |
| 747 |
} |
| 748 |
} |
| 749 |
% \end{macrocode} |
| 750 |
% |
| 751 |
% We patch some \pkg{marginnote}'s internal macro in order |doc new| and |doc |
| 752 |
% update| margin notes provided by \pkg{tcolorbox} are always on the left hand |
| 753 |
% size and typesetted correctly. |
| 754 |
% \begin{macrocode} |
| 755 |
% \renewcommand{\tcbdocmarginnote}[2][]{% |
| 756 |
% \marginnote{% |
| 757 |
% \begin{tcolorbox}[enhanced jigsaw,size=fbox,boxrule=1pt,leftrule=0pt,rightrule=0pt, |
| 758 |
% arc=0pt,outer arc=1pt,boxsep=1pt,top=1pt,bottom=1pt, |
| 759 |
% nobeforeafter,width=\marginparwidth, |
| 760 |
% colframe=red!50!white,colback=red!25!yellow!5!white,fontupper=\scriptsize, |
| 761 |
% if odd page or oneside={flushright upper}{flushright upper}, |
| 762 |
% doc@marginnote,#1]#2\end{tcolorbox}}} |
| 763 |
\tcbset{doc marginnote={if odd page or oneside={flushright upper}{flushright upper}}} |
| 764 |
\reversemarginpar |
| 765 |
\pretocmd{\tcbdocmarginnote}{% |
| 766 |
\patchcmd{\@mn@margintest}{\@tempswafalse}{\@tempswatrue}{}{} |
| 767 |
\patchcmd{\@mn@margintest}{\@tempswafalse}{\@tempswatrue}{}{} |
| 768 |
\reversemarginpar% |
| 769 |
}{}{} |
| 770 |
\@ifpackageloaded{geometry}{% |
| 771 |
\geometry{marginparwidth=.65in}% |
| 772 |
}{} |
| 773 |
% \end{macrocode} |
| 774 |
% |
| 775 |
% \begin{macrocode} |
| 776 |
\DeclareTotalTCBox{\commandshell}{ v }{ commandshell}{#1} |
| 777 |
\newtcblisting{listingshell}[1][]{% |
| 778 |
% colback=black, |
| 779 |
% colupper=white, |
| 780 |
colback=white, |
| 781 |
colupper=black, |
| 782 |
colframe=yellow!75!black, |
| 783 |
breakable, |
| 784 |
listing only, |
| 785 |
listing options={% |
| 786 |
style=tcblatex, |
| 787 |
language=bash, |
| 788 |
escapeinside={(*@}{@*)}, |
| 789 |
upquote=true, |
| 790 |
showstringspaces=false |
| 791 |
}, |
| 792 |
every listing line={% |
| 793 |
\textcolor{red}{% |
| 794 |
\small\ttfamily\bfseries% |
| 795 |
\BeginAccSupp{method=plain,ActualText={}} |
| 796 |
\$ |
| 797 |
\EndAccSupp{}% |
| 798 |
} |
| 799 |
}, |
| 800 |
#1 |
| 801 |
} |
| 802 |
\usetikzlibrary{trees,backgrounds,fit,calc,positioning} |
| 803 |
% \end{macrocode} |
| 804 |
% |
| 805 |
% The color of \package{attachfile(2)}'s links is by default too pale. We make |
| 806 |
% it the same as the \package{tcolorbox}' one: |
| 807 |
% \begin{macrocode} |
| 808 |
\attachfilesetup{color=Hyperlink} |
| 809 |
% \end{macrocode} |
| 810 |
% |
| 811 |
% In order to get \pkg{titleps}' header in index to include current index entry, |
| 812 |
% we define the following |\indexmark| command |
| 813 |
% (cf. \url{https://tex.stackexchange.com/q/335522/18401}) that will be inserted |
| 814 |
% inside the (level 0) |\targetindexentry| command below. |
| 815 |
% \begin{macrocode} |
| 816 |
\if@DBD@beamer@not@loaded@ |
| 817 |
\newcommand{\indexmark}[1]{\hypertarget{index:#1}{#1}\markboth{#1}{#1}} |
| 818 |
% \end{macrocode} |
| 819 |
% |
| 820 |
% In order to get \pkg{hyperref} and \pkg{xindy} work nicely together |
| 821 |
% (cf. \url{https://geekographie.maieul.net/172}). |
| 822 |
% \begin{macrocode} |
| 823 |
% \newcommand{\targetindexentry}[1]{\hypertarget{index:#1}{#1}} |
| 824 |
\newcommand{\targetindexentry}[1]{\indexmark{#1}} |
| 825 |
\newcounter{targeti} |
| 826 |
\newcommand{\targetindexentryi}[1]{\stepcounter{targeti}\hypertarget{\thetargeti:index:#1}{#1}} |
| 827 |
\newcounter{targetii} |
| 828 |
\newcommand{\targetindexentryii}[1]{\stepcounter{targetii}\hypertarget{\thetargetii:index:#1}{#1}} |
| 829 |
\newcommand{\seelink}[1]{\see{\hyperlink{index:#1}{#1}}} |
| 830 |
\newcommand{\indexdef}[1]{\index{#1|definition}} |
| 831 |
\newcommand{\indexex}[1]{% |
| 832 |
\index{#1|example}% |
| 833 |
\index{exemple!#1|example}% |
| 834 |
} |
| 835 |
\newcommand{\indexsee}[2]{\index{#1|see{#2}}} |
| 836 |
% \end{macrocode} |
| 837 |
% |
| 838 |
% We patch the |\printindex| command in order to store the symbolic name of the |
| 839 |
% current index in the |\DBD@index@symbolic@name| dedicated command that will be |
| 840 |
% used to uniquify the |\belowpdfbookmark| added at the beginning of each |
| 841 |
% |\lettergroup| in the customized |theindex| environment (defined in the |
| 842 |
% customized index style \File{denisbdoc.xdy}). |
| 843 |
% \begin{macrocode} |
| 844 |
\xpretocmd{\printindex}{\edef\DBD@index@symbolic@name{#1}}{}{\aaa} |
| 845 |
% \xpretocmd{\printindex}{\edef\DBD@index@symbolic@name{#1}}{}{\aaa} |
| 846 |
% \end{macrocode} |
| 847 |
% |
| 848 |
% We patch the |\indexprologue| command in order to provide a navigation line at |
| 849 |
% the start of the index with links to each group that is present in the index |
| 850 |
% (see \url{https://tex.stackexchange.com/q/334200/18401}). |
| 851 |
% \begin{macrocode} |
| 852 |
% \renewcommand*{\marginfont}{\normalsize} |
| 853 |
% \renewcommand*{\marginnotevadjust}{.625\baselineskip} |
| 854 |
% % |
| 855 |
% \xpatchcmd{\theindex}{\imki@indexlevel{\indexname}}{% |
| 856 |
% \imki@indexlevel{% |
| 857 |
% \marginnote{\normalsize\csuse{DBD@indexnavigation@\csuse{DBD@index@symbolic@name}}}% |
| 858 |
% \indexname% |
| 859 |
% } |
| 860 |
% }{}{}% |
| 861 |
\xpatchcmd{\indexprologue}{#2}{% |
| 862 |
#2 |
| 863 |
\par\bigskip |
| 864 |
\csuse{DBD@indexnavigation@\csuse{DBD@index@symbolic@name}}% |
| 865 |
}{}{\aaa}% |
| 866 |
% \end{macrocode} |
| 867 |
% |
| 868 |
% \begin{macrocode} |
| 869 |
\newcommand*{\indexheading}[2]{% |
| 870 |
\hypertarget{#2:#1}{\textbf{#1}}% |
| 871 |
\protected@write\@auxout{}{\string\DBD@indexgroup{#1}{#2}}% |
| 872 |
} |
| 873 |
% \end{macrocode} |
| 874 |
% |
| 875 |
% We create a boolean which tests whether the letter in the navigation bar is |
| 876 |
% the 1st one or not (in the latter case, a newline is added). |
| 877 |
% \begin{macrocode} |
| 878 |
\newtoggle{@DBD@no@first@letter} |
| 879 |
\newcommand*{\DBD@indexgroup}[2]{% |
| 880 |
\csgappto{DBD@indexnavigation@#2}{% |
| 881 |
\iftoggle{@DBD@no@first@letter}{% |
| 882 |
\,\textbar\,% |
| 883 |
% \\ |
| 884 |
}{% |
| 885 |
\toggletrue{@DBD@no@first@letter}% |
| 886 |
\noindent% |
| 887 |
}% |
| 888 |
\hyperlink{#2:#1}{\textbf{#1}}% |
| 889 |
}% |
| 890 |
}% |
| 891 |
\fi |
| 892 |
% \end{macrocode} |
| 893 |
% |
| 894 |
% \begin{macrocode} |
| 895 |
\DeclareUrlCommand\urldirectory{\urlstyle{tt}} |
| 896 |
% \end{macrocode} |
| 897 |
% |
| 898 |
% We switch to the category code régime of LaTeX3. |
| 899 |
% \begin{macrocode} |
| 900 |
\ExplSyntaxOn |
| 901 |
% \end{macrocode} |
| 902 |
% |
| 903 |
% \section{Strings and keywords} |
| 904 |
% |
| 905 |
% We now declare some private string constants. |
| 906 |
% |
| 907 |
% \begin{macro}{\c_@@_template_string_tl} |
| 908 |
% \begin{macro}{\c_@@_sample_string_tl} |
| 909 |
% \begin{macro}{\c_@@_flattemplate_string_tl} |
| 910 |
% \begin{macro}{\c_@@_flatsample_string_tl} |
| 911 |
% \begin{macro}{\c_@@_treetemplate_string_tl} |
| 912 |
% \begin{macro}{\c_@@_treesample_string_tl} |
| 913 |
% \begin{macrocode} |
| 914 |
\tl_const:Nn \c_@@_examples_path_tl {../exemples} |
| 915 |
\tl_const:Nn \c_@@_template_string_tl {\c_@@_examples_path_tl/canevas} |
| 916 |
\tl_const:Nn \c_@@_sample_string_tl {\c_@@_examples_path_tl/specimen} |
| 917 |
\tl_const:Nn \c_@@_flattemplate_string_tl {\c_@@_template_string_tl/a-plat} |
| 918 |
\tl_const:Nn \c_@@_flatsample_string_tl {\c_@@_sample_string_tl/a-plat} |
| 919 |
\tl_const:Nn \c_@@_treetemplate_string_tl {\c_@@_template_string_tl/en-arborescence} |
| 920 |
\tl_const:Nn \c_@@_treesample_string_tl {\c_@@_sample_string_tl/en-arborescence} |
| 921 |
\tl_const:Nn \c_@@_template_sample_zip_string_tl {canevas-specimen.zip} |
| 922 |
\tl_const:Nn \c_@@_these_aux_string_tl {these.aux} |
| 923 |
\tl_const:Nn \c_@@_these_snippets_directory_tl {extraits-these} |
| 924 |
% \end{macrocode} |
| 925 |
% \end{macro} |
| 926 |
% \end{macro} |
| 927 |
% \end{macro} |
| 928 |
% \end{macro} |
| 929 |
% \end{macro} |
| 930 |
% \end{macro} |
| 931 |
% |
| 932 |
% \begin{macro}{\c_@@_unixtldirectory_string_tl} |
| 933 |
% \begin{macro}{\c_@@_tlversion_string_tl} |
| 934 |
% \begin{macro}{\c_@@_wintldirectory_string_tl} |
| 935 |
% \begin{macro}{\c_@@_tldistdirectory_string_tl} |
| 936 |
% \begin{macro}{\c_@@_docdirectory_string_tl} |
| 937 |
% \begin{macro}{\c_@@_texdirectory_string_tl} |
| 938 |
% \begin{macro}{\c_@@_sourcedirectory_string_tl} |
| 939 |
% \begin{macro}{\c_@@_jobdirectory_string_tl} |
| 940 |
% \begin{macro}{\c_@@_jobdocdirectory_string_tl} |
| 941 |
% \begin{macro}{\c_@@_miktexdistdirectory_string_tl} |
| 942 |
% \begin{macrocode} |
| 943 |
\tl_const:Nn \c_@@_unixtldirectory_string_tl {/usr/local/} |
| 944 |
\tl_const:Nn \c_@@_tlversion_string_tl {2016} |
| 945 |
\tl_const:Nn \c_@@_wintldirectory_string_tl {c:/} |
| 946 |
\tl_const:Nn \c_@@_tldistdirectory_string_tl {texlive/\tlversion/texmf-dist/} |
| 947 |
\tl_const:Nn \c_@@_miktexdistdirectory_string_tl {[TODO]} |
| 948 |
\tl_const:Nn \c_@@_docdirectory_string_tl {doc/} |
| 949 |
\tl_const:Nn \c_@@_texdirectory_string_tl {tex/} |
| 950 |
\tl_const:Nn \c_@@_sourcedirectory_string_tl {source/} |
| 951 |
\tl_const:Nn \c_@@_jobdirectory_string_tl {latex/\jobname} |
| 952 |
\tl_const:Nn \c_@@_jobdocdirectory_string_tl {\docdirectory\jobdirectory} |
| 953 |
% \end{macrocode} |
| 954 |
% \end{macro} |
| 955 |
% \end{macro} |
| 956 |
% \end{macro} |
| 957 |
% \end{macro} |
| 958 |
% \end{macro} |
| 959 |
% \end{macro} |
| 960 |
% \end{macro} |
| 961 |
% \end{macro} |
| 962 |
% \end{macro} |
| 963 |
% \end{macro} |
| 964 |
% |
| 965 |
% For the asides opening and eventuelly closing punctuation marks. |
| 966 |
% \begin{macrocode} |
| 967 |
\tl_const:Nn \c_@@_aside_string_tl {---} |
| 968 |
% \end{macrocode} |
| 969 |
% |
| 970 |
% \subsection{Colors} |
| 971 |
% |
| 972 |
% \begin{macrocode} |
| 973 |
\colorlet{specimens}{yellow!30} |
| 974 |
\colorlet{canevas}{green!30} |
| 975 |
\colorlet{doc}{specimens!50!canevas} |
| 976 |
\colorlet{en-arborescence}{red!20} |
| 977 |
\colorlet{a-plat}{blue!20} |
| 978 |
\colorlet{texcs}{blue} |
| 979 |
\colorlet{directive}{texcs} |
| 980 |
\colorlet{mandatory-argument}{red} |
| 981 |
\colorlet{environment}{teal} |
| 982 |
\colorlet{key}{purple} |
| 983 |
\colorlet{value}{violet} |
| 984 |
\colorlet{keyword4}{key} |
| 985 |
\colorlet{keyword5}{magenta} |
| 986 |
\colorlet{comment}{gray} |
| 987 |
\colorlet{string}{cyan} |
| 988 |
\colorlet{math}{green!50!black} |
| 989 |
\colorlet{meta}{brown} |
| 990 |
\colorlet{preamble}{violet} |
| 991 |
% \end{macrocode} |
| 992 |
% |
| 993 |
% \subsection{Skips} |
| 994 |
% |
| 995 |
% \begin{macrocode} |
| 996 |
\skip_const:Nn \c_@@_listings_aboveskip_skip { \c_zero_dim plus 6pt }% |
| 997 |
\skip_const:Nn \c_@@_listings_belowskip_skip { \c_zero_dim plus 6pt }% |
| 998 |
% \end{macrocode} |
| 999 |
% |
| 1000 |
% \section{Local languages definitions for \Package{listings}} |
| 1001 |
% |
| 1002 |
% Now, we extend (or define new) local languages for the \Package{listings}. |
| 1003 |
% |
| 1004 |
% \subsubsection{Extension of the \enquote{LaTeX} TeX dialect} |
| 1005 |
% |
| 1006 |
% \begin{macrocode} |
| 1007 |
\lstdefinelanguage[extLaTeX]{TeX}[LaTeX]{TeX}{% |
| 1008 |
moretexcs={% |
| 1009 |
footnotesize,huge,Huge,large,Large,LARGE,large,Large,scriptsize,tiny,% |
| 1010 |
includegraphics,cite,ttwplink,cref,vref,LTXtable,tableofcontents,frontmatter,mainmatter,% |
| 1011 |
part,chapter,section,subsection,subsubsection,paragraph,subparagraph,RequirePackage,% |
| 1012 |
listoftables,listoffigures,lstlistingname,si,SI,ohm,num,space,shorthandon,shorthandoff,% |
| 1013 |
abstractname,appendixname,contentsname,listfigurename,listtablename,indexname,% |
| 1014 |
figurename,tablename,chaptername,pagename,seename,alsoname,proofname,bibname,glossaryname,% |
| 1015 |
addto,captionsenglish,captionsfrench,lipsum,partname,refname,renewcommand*,% |
| 1016 |
appendix,lstlistoflistings,graphicpath,loadglsentries,hypersetup,detect-all,SetWatermarkColor,% |
| 1017 |
@pnumwidth,bookmarksetup,DeclareTextCommand,text,iiint,NewPairedDelimiter,% |
| 1018 |
norm,lnorm,llnorm,lpnorm,supnorm,abs,prt,brk,brc,lrangle,leqgeq,% |
| 1019 |
norm*,lnorm*,llnorm*,lpnorm*,supnorm*,abs*,prt*,brk*,brc*,lrangle*,leqgeq*,% |
| 1020 |
pdfobjcompresslevel,chaptermark,PassOptionsToClass% |
| 1021 |
},% |
| 1022 |
morekeywords=[1]{% Environments' names |
| 1023 |
tabular,tabulary,math,document,minipage,eqnarray,eqnarray*,align,align*,% |
| 1024 |
equation,gather,multline,flalign,equation*,gather*,multline*,flalign*,% |
| 1025 |
itemize,itemize*,enumerate,enumerate*,description,description*,% |
| 1026 |
},% |
| 1027 |
morekeywords=[2]{% Keys of key-value lists and packages' names |
| 1028 |
bookmarksdepth,see,babel,colorlinks,linktoc,width,left,right,subscript% |
| 1029 |
},% |
| 1030 |
morekeywords=[3]{% Values of key-value lists |
| 1031 |
german,ngerman,french,english,spanish% |
| 1032 |
}, alsoletter={-*@1234560}% |
| 1033 |
}% |
| 1034 |
\lstdefinelanguage[glossaries]{TeX}[LaTeX]{TeX}% |
| 1035 |
{% |
| 1036 |
% Séquences de contrôles (communément appelées commandes ou macros) |
| 1037 |
moretexcs={% |
| 1038 |
makeglossaries,printglossaries,printglossary,newglossaryentry,gls,Gls,GLS,glspl,Glspl,% |
| 1039 |
GLSpl,newacronym,% |
| 1040 |
glsuseri,glsuserii,glsuseriii,glsuseriv,glsuserv,glsuservi,glsshortpluralkey,glslongpluralkey,% |
| 1041 |
loadglsentries,% |
| 1042 |
glsadd,glstextformat,glsnamefont,glossarypreamble,glossarypostamble,acrshort,acrshort*,% |
| 1043 |
acrlong,acrfull,% |
| 1044 |
Acrshort,ACRshort,Acrlong,ACRlong,Acrfull,ACRfull,acrshortpl,Acrshortpl,acrlongpl,Acrlongpl,% |
| 1045 |
acrfullpl,Acrfullpl,% |
| 1046 |
Acrlong*,acronymtype,printacronyms,printsymbols% |
| 1047 |
},% |
| 1048 |
% Mandatory arguments (other than environments' names) |
| 1049 |
morekeywords={% |
| 1050 |
},% |
| 1051 |
% Mots-clés de niveau 2 : arguments obligatoires et environnements |
| 1052 |
morekeywords=[2]{% |
| 1053 |
first,firstplural,plural,sort,nonumberlist,name,acronym,acronyms,symbols,% |
| 1054 |
user1,user2,user3,user4,user5,user6,hyper,style,xindy,toc,title,% |
| 1055 |
useri,userii,useriii,useriv,userv,uservi% |
| 1056 |
},% |
| 1057 |
% Mots-clés de niveau 3 : arguments optionnels clés dans clé=valeur |
| 1058 |
morekeywords=[3]{% |
| 1059 |
listgroup,listhypergroup,% |
| 1060 |
% textrm,textit,textsf,textsl,texttt,textup,textbf,textsc,textmd,emph,% |
| 1061 |
hyperrm,hyperit,hypersf,hypersl,hypertt,hyperup,hyperbf,hypersc,hypermd,hyperemph% |
| 1062 |
},% |
| 1063 |
sensitive% |
| 1064 |
}[keywords,tex,comments]% |
| 1065 |
% |
| 1066 |
\lstdefinelanguage[biblatex]{TeX}[LaTeX]{TeX}% |
| 1067 |
{% |
| 1068 |
% Séquences de contrôles (communément appelées commandes ou macros) |
| 1069 |
moretexcs={% |
| 1070 |
cite,Cite,parencite,Parencite,footcite,footcitetext,% |
| 1071 |
smartcite,Smartcite,% |
| 1072 |
textcite,Textcite,supercite,cites,Cites,parencites,% |
| 1073 |
Parencites,footcitesfootcitetexts,textcites,Textcites,% |
| 1074 |
supercites,autocite,Autocite,autocite*,Autocite*,autocites,% |
| 1075 |
Autocites,citeauthor,Citeauthor,citetitle,citetitle*,% |
| 1076 |
citeyear,citeurl,parentext,brackettext,nocite,fullcite,% |
| 1077 |
footfullcite,volcite,Volcite,pvolcite,Pvolcite,fvolcite,% |
| 1078 |
ftvolcite,tvolcite,Tvolcite,avolcite,Avolcite,notecite,% |
| 1079 |
Notecite,pnotecite,Pnotecite,fnotecite,citename,citelist,% |
| 1080 |
citefield,printbibliography,bibliography,citedate,% |
| 1081 |
ExecuteBibliographyOptions,defbibnote,psq,psqq,addbibresource% |
| 1082 |
},% |
| 1083 |
% morekeywords={% |
| 1084 |
% @article,@book,@inbook,@bookinbook,@suppbook,@booklet,@collection,% |
| 1085 |
% @conference,@incollection,@suppcollection,@manual,@misc,@online,% |
| 1086 |
% @patent,@periodical,@suppperiodical,@proceedings,@inproceedings,% |
| 1087 |
% @reference,@inreference,@report,@thesis,@unpublished,@masterthesis,% |
| 1088 |
% @phdthesis,% |
| 1089 |
% @Article,@Book,@Inbook,@Bookinbook,@Suppbook,@Booklet,@Collection,% |
| 1090 |
% @conference,@Incollection,@Suppcollection,@Manual,@Misc,@Online,% |
| 1091 |
% @patent,@Periodical,@Suppperiodical,@Proceedings,@Inproceedings,% |
| 1092 |
% @reference,@Inreference,@Report,@Thesis,@Unpublished,@Masterthesis,% |
| 1093 |
% @Phdthesis,% |
| 1094 |
% @ARTICLE,@BOOK,@INBOOK,@BOOKINBOOK,@SUPPBOOK,@BOOKLET,@COLLECTION,% |
| 1095 |
% @CONFERENCE,@INCOLLECTION,@SUPPCOLLECTION,@MANUAL,@MISC,@ONLINE,% |
| 1096 |
% @PATENT,@PERIODICAL,@SUPPPERIODICAL,@PROCEEDINGS,@INPROCEEDINGS,% |
| 1097 |
% @REFERENCE,@INREFERENCE,@REPORT,@THESIS,@UNPUBLISHED,@MASTERTHESIS,% |
| 1098 |
% @PHDTHESIS,% |
| 1099 |
% @string,@String,@STRING,@comment% |
| 1100 |
% },% |
| 1101 |
% directives |
| 1102 |
directives={% |
| 1103 |
article,book,inbook,bookinbook,suppbook,booklet,collection,% |
| 1104 |
conference,incollection,suppcollection,manual,misc,online,% |
| 1105 |
patent,periodical,suppperiodical,proceedings,inproceedings,% |
| 1106 |
reference,inreference,report,thesis,unpublished,masterthesis,% |
| 1107 |
phdthesis,% |
| 1108 |
Article,Book,Inbook,Bookinbook,Suppbook,Booklet,Collection,% |
| 1109 |
conference,Incollection,Suppcollection,Manual,Misc,Online,% |
| 1110 |
patent,Periodical,Suppperiodical,Proceedings,Inproceedings,% |
| 1111 |
reference,Inreference,Report,Thesis,Unpublished,Masterthesis,% |
| 1112 |
Phdthesis,% |
| 1113 |
ARTICLE,BOOK,INBOOK,BOOKINBOOK,SUPPBOOK,BOOKLET,COLLECTION,% |
| 1114 |
CONFERENCE,INCOLLECTION,SUPPCOLLECTION,MANUAL,MISC,ONLINE,% |
| 1115 |
PATENT,PERIODICAL,SUPPPERIODICAL,PROCEEDINGS,INPROCEEDINGS,% |
| 1116 |
REFERENCE,INREFERENCE,REPORT,THESIS,UNPUBLISHED,MASTERTHESIS,% |
| 1117 |
PHDTHESIS,% |
| 1118 |
string,String,STRING,comment% |
| 1119 |
},% |
| 1120 |
% Mots-clés de niveau 1 : attributs et options de biblatex |
| 1121 |
morekeywords=[2]{% |
| 1122 |
abstract,addendum,afterword,annotation,annotator,author,authortype,% |
| 1123 |
bookauthor,bookpagination,booksubtitle,booktitle,booktitleaddon,% |
| 1124 |
chapter,commentator,date,doi,edition,editor,editora,editorb,% |
| 1125 |
editorc,editortype,editoratype,editorbtype,editorctype,eid,eprint,% |
| 1126 |
eprintclass,eprinttype,eventdate,eventtitle,file,foreword,holder,% |
| 1127 |
howpublished,indextitle,institution,introduction,isan,isbn,ismn,% |
| 1128 |
isrn,issn,issue,issuesubtitle,issuetitle,iswc,journalsubtitle,% |
| 1129 |
journaltitle,label,language,library,location,mainsubtitle,% |
| 1130 |
maintitle,maintitleaddon,month,nameaddon,note,number,organization,% |
| 1131 |
origdate,origlanguage,origlocation,origpublisher,origtitle,pages,% |
| 1132 |
pagetotal,pagination,part,publisher,pubstate,reprinttitle,series,% |
| 1133 |
shortauthor,shorteditor,shorthand,shorthandintro,shortjournal,% |
| 1134 |
shortseries,shorttitle,subtitle,title,titleaddon,translator,type,% |
| 1135 |
url,urldate,venue,version,volume,volumes,year,crossref,entryset,% |
| 1136 |
entrysubtype,execute,gender,hyphenation,indexsorttitle,keywords,% |
| 1137 |
options,presort,sortkey,sortname,sorttitle,sortyear,xref,annote,% |
| 1138 |
archiveprefix,journal,key,pdf,primaryclass,school,address,% |
| 1139 |
% |
| 1140 |
backend,style,citestyle,bibstyle,sorting,maxnames,minnames,maxitems,minitems,% |
| 1141 |
backref,abbreviate,firstinits,prenote,postnote,useprefix,autopunct% |
| 1142 |
},% |
| 1143 |
% Mots-clés de niveau 3 : valeurs des attributs identifiées |
| 1144 |
morekeywords=[3]{% |
| 1145 |
submitted,inpress,danish dutch,american,USenglish,english,% |
| 1146 |
british,UKenglish,canadian,australian,newzealand,finnish,french,% |
| 1147 |
francais,canadien,german,ngerman,austrian,naustrian,greek,% |
| 1148 |
italian,norsk,nynorsk,brazil,portuges,spanish,swedish,% |
| 1149 |
% |
| 1150 |
biber,numeric,numeric-comp,numeric-verb,alphabetic,% |
| 1151 |
alphabetic-verb,authoryear,authoryear-comp,authoryear-ibid,% |
| 1152 |
authoryear-icomp,authortitle,authortitle-comp,authortitle-ibid,% |
| 1153 |
authortitle-icomp,authortitle-terse,authortitle-tcomp,% |
| 1154 |
authortitle-ticomp,verbose,verbose-ibid,verbose-note,% |
| 1155 |
verbose-inote,verbose-trad1,verbose-trad2,verbose-trad3,% |
| 1156 |
reading,draft,debug,% |
| 1157 |
inline,footnote,superscript,plain,% |
| 1158 |
nyt,ynt,none,false% |
| 1159 |
},% |
| 1160 |
alsoletter={-123},% |
| 1161 |
sensitive,% |
| 1162 |
delim=*[directive]@ |
| 1163 |
% |
| 1164 |
}[keywords,directives,tex,comments]% |
| 1165 |
% |
| 1166 |
\lstdefinelanguage[csquotes]{TeX}[LaTeX]{TeX}% |
| 1167 |
{% |
| 1168 |
% Séquences de contrôles (communément appelées commandes ou macros) |
| 1169 |
moretexcs={% |
| 1170 |
enquote,textelp,textins,blockcquote,SetCiteCommand% |
| 1171 |
},% |
| 1172 |
% Mots-clés de niveau 1 : arguments optionnels |
| 1173 |
morekeywords={% |
| 1174 |
},% |
| 1175 |
% Mots-clés de niveau 2 : arguments obligatoires et environnements |
| 1176 |
morekeywords=[2]{% |
| 1177 |
% title, |
| 1178 |
},% |
| 1179 |
% Mots-clés de niveau 3 : arguments optionnels clés dans clé=valeur |
| 1180 |
morekeywords=[3]{% |
| 1181 |
skipbib% |
| 1182 |
},% |
| 1183 |
% Mots-clés de niveau 4 : arguments optionnels valeurs de clés dans clé=valeur |
| 1184 |
morekeywords=[4]{% |
| 1185 |
},% |
| 1186 |
sensitive% |
| 1187 |
}[keywords,tex,comments]% |
| 1188 |
% |
| 1189 |
\lstdefinelanguage[keytheorems]{TeX}[LaTeX]{TeX}% |
| 1190 |
{% |
| 1191 |
% Séquences de contrôles (communément appelées commandes ou macros) |
| 1192 |
moretexcs={% |
| 1193 |
},% |
| 1194 |
% Mots-clés de niveau 1 : arguments optionnels |
| 1195 |
morekeywords={% |
| 1196 |
},% |
| 1197 |
% Mots-clés de niveau 2 : arguments obligatoires et environnements |
| 1198 |
morekeywords=[2]{% |
| 1199 |
refname |
| 1200 |
},% |
| 1201 |
% Mots-clés de niveau 3 : arguments optionnels clés dans clé=valeur |
| 1202 |
morekeywords=[3]{% |
| 1203 |
},% |
| 1204 |
% Mots-clés de niveau 4 : arguments optionnels valeurs de clés dans clé=valeur |
| 1205 |
morekeywords=[4]{% |
| 1206 |
},% |
| 1207 |
sensitive% |
| 1208 |
}[keywords,tex,comments]% |
| 1209 |
% |
| 1210 |
\lstdefinelanguage[colophon]{TeX}[LaTeX]{TeX}% |
| 1211 |
{% |
| 1212 |
% Séquences de contrôles (communément appelées commandes ou macros) |
| 1213 |
moretexcs={% |
| 1214 |
colophontitle,colophontitlestyle,colophontitlesize,colophonmidspace,% |
| 1215 |
colophonpagestyle,colophontitlealign,colophonpretitlehook,colophonposttitlehook,% |
| 1216 |
colophonparstyle,colophonparsize,colophonparlead,colophonnofirstindent,colophonpreparhook,% |
| 1217 |
colophonpostparhook,colophonparalign,colophonnofullpage,colophonnoclrdblpg,colophonclrpg,% |
| 1218 |
colophontopspace,colophonbotspace% |
| 1219 |
},% |
| 1220 |
% Mots-clés de niveau 1 : arguments optionnels |
| 1221 |
morekeywords={% |
| 1222 |
},% |
| 1223 |
% Mots-clés de niveau 2 : arguments obligatoires et environnements |
| 1224 |
morekeywords=[2]{% |
| 1225 |
colophon, |
| 1226 |
},% |
| 1227 |
% Mots-clés de niveau 3 : arguments optionnels clés dans clé=valeur |
| 1228 |
morekeywords=[3]{% |
| 1229 |
titlestyle,titlesize,aftertitle,pagestyle,titlealign,% |
| 1230 |
parstyle,parsize,parlead,nofirstindent,nofullpage,noclrdblpg,% |
| 1231 |
clrpg,topspace,botspace% |
| 1232 |
},% |
| 1233 |
% Mots-clés de niveau 4 : arguments optionnels valeurs de clés dans clé=valeur |
| 1234 |
morekeywords=[4]{% |
| 1235 |
},% |
| 1236 |
sensitive% |
| 1237 |
}[keywords,tex,comments]% |
| 1238 |
% |
| 1239 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1240 |
% beamer |
| 1241 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1242 |
\lstdefinelanguage[beamer]{TeX}[LaTeX]{TeX}% |
| 1243 |
{moretexcs={% |
| 1244 |
action,addfootbox,addheadbox,addtobeamertemplate,institut,inst,% |
| 1245 |
againframe,alert,alt,animate,animatevalue,appendix,% |
| 1246 |
AtBeginLecture,AtBeginPart,AtBeginSection,AtBeginSubsection,% |
| 1247 |
author,beamerbutton,beamerdefaultoverlayspecification,% |
| 1248 |
beamergotobutton,beamerreturnbutton,beamerskipbutton,bibitem,% |
| 1249 |
blue,bm,bmstyle,boxedsteps,bstep,code,codeswitch,date,% |
| 1250 |
defbeamertemplate,defbeamertemplatealias,defbeamertemplateparent,% |
| 1251 |
dstep,dualslide,email,endfoil,expandbeamertemplate,foilhead,% |
| 1252 |
FoilTeX,fontText,fontTitle,footnote,framesubtitle,frametitle,% |
| 1253 |
framezoom,FromSlide,fromSlide,green,hiddenitem,hyperlink,% |
| 1254 |
hyperlinkappendixend,hyperlinkappendixstart,hyperlinkdocumentend,% |
| 1255 |
hyperlinkdocumentstart,hyperlinkframeend,hyperlinkframeendprev,% |
| 1256 |
hyperlinkframestart,hyperlinkframestartnext,hyperlinkmovie,% |
| 1257 |
hyperlinkmute,hyperlinkpresentationend,hyperlinkpresentationstart,% |
| 1258 |
hyperlinkslidenext,hyperlinkslideprev,hyperlinksound,hypertarget,% |
| 1259 |
ifarticle,ifbeamercolorempty,ifbeamertemplateempty,ifportrait,% |
| 1260 |
ifslide,ifslidesonly,includeonlyframes,includeonlylecture,includeslide,% |
| 1261 |
insertappendixendpage,insertappendixstartpage,insertauthor,% |
| 1262 |
insertbackfindforwardnavigationsymbol,insertbiblabel,insertblocktitle,% |
| 1263 |
insertbuttontext,insertcaption,insertcaptionname,insertcaptionnumber,% |
| 1264 |
insertcontinuationcount,insertcontinuationcountroman,% |
| 1265 |
insertcontinuationtext,insertdate,insertdescriptionitem,% |
| 1266 |
insertdocnavigationsymbol,insertdocumentendpage,insertdocumentstartpage,% |
| 1267 |
insertenumlabel,insertfootnotemark,insertfootnotetext,% |
| 1268 |
insertframeendpage,insertframenavigationsymbol,insertframenumber,% |
| 1269 |
insertframestartpage,insertframesubtitle,insertframetitle,% |
| 1270 |
insertgotosymbol,insertinstitute,insertlogo,insertnavigation,% |
| 1271 |
insertnote,insertpagenumber,insertpart,insertpartendpage,% |
| 1272 |
insertpartheadnumber,insertpartnumber,insertpartromannumber,% |
| 1273 |
insertpartstartpage,insertpresentationendpage,insertpresentationstartpage,% |
| 1274 |
insertreturnsymbol,insertsection,insertsectionendpage,insertsectionhead,% |
| 1275 |
insertsectionheadnumber,insertsectionnavigation,insertsectionnavigationhorizontal,% |
| 1276 |
insertsectionnavigationsymbol,insertsectionstartpage,insertshortauthor,% |
| 1277 |
insertshortdate,insertshortinstitute,insertshortpart,insertshortsubtitle,% |
| 1278 |
insertshorttitle,insertskipsymbol,insertslideintonotes,insertslidenavigationsymbol,% |
| 1279 |
insertsubenumlabel,insertsubsection,insertsubsectionendpage,insertsubsectionhead,% |
| 1280 |
insertsubsectionheadnumber,insertsubsectionnavigation,% |
| 1281 |
insertsubsectionnavigationhorizontal,insertsubsectionnavigationsymbol,% |
| 1282 |
insertsubsectionstartpage,insertsubsubenumlabel,insertsubtitle,% |
| 1283 |
inserttheoremaddition,inserttheoremblockenv,inserttheoremheadfont,% |
| 1284 |
inserttheoremname,inserttheoremnumber,inserttheorempunctuation,% |
| 1285 |
inserttitle,inserttitlegraphic,inserttocsection,inserttocsectionnumber,% |
| 1286 |
inserttocsubsection,inserttocsubsectionnumber,inserttotalframenumber,% |
| 1287 |
insertverticalnavigation,institute,institution,invisible,item,keywords,% |
| 1288 |
label,lecture,liststepwise,Logo,logo,LogoOff,LogoOn,maketitle,mode,movie,% |
| 1289 |
multiinclude,MyLogo,newcommand,newenvironment,newtheorem,nonboxedsteps,% |
| 1290 |
note,only,onlyInPDF,onlyInPS,OnlySlide,onlySlide,onslide,opaqueness,% |
| 1291 |
overlay,overlays,page,parstepwise,part,partpage,pause,PDForPS,PDFtransition,% |
| 1292 |
prosperpart,rebstep,red,redstep,renewcommand,renewenvironment,% |
| 1293 |
resetcounteronoverlays,resetcountonoverlays,restep,reswitch,revstep,% |
| 1294 |
rotatefoilhead,section,setbeamercolor,setbeamercovered,setbeamerfont,% |
| 1295 |
setbeamersize,setbeamertemplate,setjobnamebeamerversion,slideCaption,% |
| 1296 |
sound,step,steponce,stepwise,structure,subject,subsection,subtitle,% |
| 1297 |
switch,tableofcontents,temporal,title,titlegraphic,titlepage,% |
| 1298 |
transblindshorizontal,transblindsvertical,transboxin,transboxout,% |
| 1299 |
transdissolve,transduration,transglitter,transsplithorizontalin,% |
| 1300 |
transsplithorizontalout,transsplitverticalin,transsplitverticalout,% |
| 1301 |
transwipe,tsection,tsectionandpart,uncover,UntilSlide,untilSlide,% |
| 1302 |
untilsSlide,usebeamercolor,usebeamerfont,usebeamertemplate,usecolortheme,% |
| 1303 |
usefonttheme,useinnertheme,useoutertheme,usetheme,visible,vstep,% |
| 1304 |
beamer@sidebarwidth,alt,temporal% |
| 1305 |
},% |
| 1306 |
morekeywords={% |
| 1307 |
fragile,t,c,b,plain,currentsection,hideallsubsections,% |
| 1308 |
hideothersubsections,currentsubsection,% |
| 1309 |
bg,fg,numbered,navigation,symbols,second,handout,trans,presentation,% |
| 1310 |
page,number% |
| 1311 |
},% |
| 1312 |
morekeywords=[2]{% |
| 1313 |
column,columns,corollary,definition,label,definitions,theorem,% |
| 1314 |
equation,example,examples,fact,list,lrbox,math,minipage,frame,exampleblock,alertblock,% |
| 1315 |
picture,proof,sloppypar,tabbing,tabular,transparent,trivlist,verbatim,abstract,title,block,% |
| 1316 |
footline,sectionstyle,subsectionstyle,subsubsectionstyle,% |
| 1317 |
% |
| 1318 |
% Thèmes |
| 1319 |
AnnArbor,Antibes,Bergen,Berkeley,Berlin,Boadilla,boxes,CambridgeUS,Copenhagen,Darmstadt,% |
| 1320 |
Dresden,EastLansing,Frankfurt,Goettingen,Hannover,Ilmenau,JuanLesPins,Luebeck,Madrid,% |
| 1321 |
Malmoe,Marburg,Montpellier,PaloAlto,Pittsburgh,Rochester,Singapore,Szeged,Warsaw,% |
| 1322 |
},% |
| 1323 |
morekeywords=[3]{% |
| 1324 |
show,shaded,hide,show/shaded,show/hide,show/shaded/hide% |
| 1325 |
},% |
| 1326 |
alsoletter={0123456789.*()/ },% |
| 1327 |
otherkeywords={<+>,<+->,<+-|alert@+>},% |
| 1328 |
morekeywords=[3]{<+>,<+->,<+-|alert@+>}% |
| 1329 |
sensitive,% |
| 1330 |
morecomment=[l]\%% |
| 1331 |
}[keywords,tex,comments]% |
| 1332 |
|
| 1333 |
\lstdefinelanguage[tcolorbox]{TeX}[LaTeX]{TeX}% |
| 1334 |
{% |
| 1335 |
% Séquences de contrôles (communément appelées commandes ou macros) |
| 1336 |
moretexcs={% |
| 1337 |
tcbset,tcbuselibrary,tcbsetforeverylayer% |
| 1338 |
},% |
| 1339 |
% Mots-clés de niveau 1 : arguments optionnels |
| 1340 |
morekeywords={% |
| 1341 |
},% |
| 1342 |
% Mots-clés de niveau 2 : arguments obligatoires et environnements |
| 1343 |
morekeywords=[2]{% |
| 1344 |
colback,beamer,skins,listing,only,options,and,text% |
| 1345 |
},% |
| 1346 |
% Mots-clés de niveau 3 : arguments optionnels clés dans clé=valeur |
| 1347 |
morekeywords=[3]{% |
| 1348 |
lightgray,red!50!white,autoparskip,beforeafter,skip,balanced% |
| 1349 |
},% |
| 1350 |
alsoletter={ \ },% |
| 1351 |
sensitive,% |
| 1352 |
}[keywords,tex,comments]% |
| 1353 |
% |
| 1354 |
\lstdefinelanguage[listings]{TeX}[LaTeX]{TeX}% |
| 1355 |
{% |
| 1356 |
% Séquences de contrôles (communément appelées commandes ou macros) |
| 1357 |
moretexcs={% |
| 1358 |
lstset,lstinline,lstinputlisting,lstMakeShortInline,lstDeleteShortInline,lstdefinestyle% |
| 1359 |
},% |
| 1360 |
% Environments' names |
| 1361 |
morekeywords={% |
| 1362 |
listing,listingutf8% |
| 1363 |
},% |
| 1364 |
% Environments' names |
| 1365 |
morekeywords=[1]{% |
| 1366 |
lstlisting,% |
| 1367 |
},% |
| 1368 |
% Keys of key-value lists |
| 1369 |
morekeywords=[2]{% |
| 1370 |
language,showtabs,escapeinside,mathescape,basicstyle,keywordstyle,commentstyle,% |
| 1371 |
stringstyle,numbers,frame,framesep,escapechar,tab,aboveskip,belowskip,% |
| 1372 |
linerange,backgroundcolor,rulecolor,framerule,inputencoding,stepnumber,numberstyle,% |
| 1373 |
rulesepcolor,style% |
| 1374 |
},% |
| 1375 |
% Values of key-value lists |
| 1376 |
morekeywords=[3]{% |
| 1377 |
Ada,left,single,shadowbox,Python% |
| 1378 |
},% |
| 1379 |
sensitive% |
| 1380 |
}[keywords,tex,comments]% |
| 1381 |
% |
| 1382 |
\lstdefinelanguage[xcolor]{TeX}[LaTeX]{TeX}% |
| 1383 |
{% |
| 1384 |
% Séquences de contrôles (communément appelées commandes ou macros) |
| 1385 |
moretexcs={% |
| 1386 |
textcolor,fcolorbox,colorbox,color,rowcolors,arrayrulecolor,rownum% |
| 1387 |
},% |
| 1388 |
% Mots-clés de niveau 1 : arguments optionnels |
| 1389 |
morekeywords={% |
| 1390 |
% |
| 1391 |
},% |
| 1392 |
% Mots-clés de niveau 2 : arguments obligatoires et environnements |
| 1393 |
morekeywords=[2]{% |
| 1394 |
lightgray,red,blue,brown,purple,magenta,green,black,cyan,yellow,% |
| 1395 |
},% |
| 1396 |
% Mots-clés de niveau 3 : arguments optionnels clés dans clé=valeur |
| 1397 |
morekeywords=[3]{% |
| 1398 |
% |
| 1399 |
},% |
| 1400 |
sensitive% |
| 1401 |
}[keywords,tex,comments]% |
| 1402 |
% |
| 1403 |
\lstdefinelanguage[hyperref]{TeX}[LaTeX]{TeX}% |
| 1404 |
{% |
| 1405 |
% Séquences de contrôles (communément appelées commandes ou macros) |
| 1406 |
moretexcs={% |
| 1407 |
href,url,hypersetup,hypertarget,hyperlink,pdfstringdefDisableCommands,texorpdfstring% |
| 1408 |
},% |
| 1409 |
% Mots-clés de niveau 1 : arguments optionnels |
| 1410 |
morekeywords={% |
| 1411 |
% |
| 1412 |
},% |
| 1413 |
% Mots-clés de niveau 2 : arguments obligatoires et environnements |
| 1414 |
morekeywords=[2]{% |
| 1415 |
breaklinks,colorlinks,bookmarks,pdfborderstyle,pdfborder,all,pdfencoding,final,% |
| 1416 |
hidelinks,linktoc,% |
| 1417 |
},% |
| 1418 |
% Mots-clés de niveau 3 : arguments optionnels clés dans clé=valeur |
| 1419 |
morekeywords=[3]{% |
| 1420 |
unicode% |
| 1421 |
},% |
| 1422 |
sensitive% |
| 1423 |
}[keywords,tex,comments]% |
| 1424 |
% \end{macrocode} |
| 1425 |
% |
| 1426 |
% Definition of the \enquote{yad} \TeX{} dialect. |
| 1427 |
% \begin{macrocode} |
| 1428 |
\lstdefinelanguage[yad]{TeX}[LaTeX]{TeX}{% |
| 1429 |
moretexcs={% Control sequences' names |
| 1430 |
author,title,subtitle,academicfield,speciality,date,supervisor,cosupervisor,comonitor,% |
| 1431 |
referee,guest,examiner,committeepresident,pres,institute,coinstitute,company,doctoralschool,% |
| 1432 |
laboratory,dedication,frontepigraph,keywords,subject,expression,tableofcontents,submissiondate,% |
| 1433 |
maketitle,makedisclaimer,makekeywords,makelaboratory,makeabstract,makededications,% |
| 1434 |
makefrontepigraphs,makebackcover,ordernumber,chapter*,disclaimer,newglssymbol,yadsetup,% |
| 1435 |
comue,newcorporation,NoCaseChange% |
| 1436 |
% acknowledgements,frenchabstract,foreword,preface,caution, |
| 1437 |
},% |
| 1438 |
% Environments' names |
| 1439 |
morekeywords={% |
| 1440 |
yathesis% |
| 1441 |
},% |
| 1442 |
morekeywords=[1]{% Environments' names |
| 1443 |
abstract,dedicationspage,epigraphspage,epigraphs,% |
| 1444 |
glossaries,otherlanguage% |
| 1445 |
},% |
| 1446 |
morekeywords=[2]{% Keys of key-value lists |
| 1447 |
professor,seniorresearcher,mcf,associateprofessor,juniorresearcher,mcf*,associateprofessor*,% |
| 1448 |
juniorresearcher*,corporation,corps,male,female,% |
| 1449 |
distinction,award,affiliation,sepcorpaffilfrench,affiliationsecondary,sepcorpaffilenglish,% |
| 1450 |
logo,url,nologo,space,mainlanguage,secnumdepth,tocdepth,depth,version,output,logoheight,% |
| 1451 |
address,telephone,fax,email,type,acronym,heading,nowarning,noerror,nofrontcover,role,% |
| 1452 |
hyperfootnotes,hyperindex,plainpages,pdfpagemode,pdfpagelayout,locale,gray,frametitle,% |
| 1453 |
graphicx,adjustbox,setspace,xcolor,datatool,titleps,draftwatermark,babel,datetime,% |
| 1454 |
bookmark,fncychap,localtocs,localtocs/depth,localbibs,localbibs*% |
| 1455 |
},% |
| 1456 |
morekeywords=[3]{% Values of key-value lists |
| 1457 |
single,onehalf,double,doctor,yadsymbolstyle,% |
| 1458 |
part,chapter,section,subsection,subsubsection,paragraph,subparagraph,% |
| 1459 |
none,true,false,UseOutlines,TwoPageRight,UK,FR,dvipsnames,table,% |
| 1460 |
Sonny,Lenny,Glenn,Conny,Rejne,Bjarne,PetersLenny,Bjornstrup,% |
| 1461 |
screen,draft,inprogress,inprogress*,submitted,submitted*,final,paper,paper*,% |
| 1462 |
fbox,shadowbox,ovalbox,supervisor*,cosupervisor*,comonitor*% |
| 1463 |
},% |
| 1464 |
morekeywords=[4]{% Class and packages options |
| 1465 |
warn,nodayofweek,unicode,nostamp,all,numbered,a4paper,leqno,fleqn,10pt,11pt,12pt,% |
| 1466 |
detect-all,breaklinks,oneside% |
| 1467 |
},% |
| 1468 |
morekeywords=[5]{% Translation labels |
| 1469 |
email,phone,fax,caution,draft,prepared-at,prepared-at-pl,juniorresearcher,juniorresearcher*,% |
| 1470 |
committeemembers,estimateddefensedate,seniorresearcher,supervisors-in-committee,% |
| 1471 |
supervisors-in-committee-pl,aim,aimand,examiners,examiners-pl,guests,guests-pl,mcf,mcf*,% |
| 1472 |
professor,referees,referees-pl,website,defendedon,supervisedby,thesisdefendedby,thesistitle,% |
| 1473 |
inprogress,universitydepartment,inprogressfoottext,submittedfoottext,% |
| 1474 |
coinstitute,company,institute,cosupervisor,cosupervisor*,comonitor,% |
| 1475 |
comonitor*,supervisor,supervisor*,academicfield,doctoralschool,keywords,% |
| 1476 |
ordernumber,committeepresident,committeepresident*,speciality% |
| 1477 |
},% |
| 1478 |
alsoletter={!-*1234560/}% |
| 1479 |
}% |
| 1480 |
% \end{macrocode} |
| 1481 |
% |
| 1482 |
% Definition of the \enquote{gzt} \TeX{} dialect. |
| 1483 |
% \begin{macrocode} |
| 1484 |
\lstdefinelanguage[gzt]{TeX}[LaTeX]{TeX}{% |
| 1485 |
moretexcs={% Control sequences' names |
| 1486 |
editorinchief,editor,president,classdesigner,classmaintainer,fontdesigner,% |
| 1487 |
graphicdesigner,issuesetup,journalsetup,interviewee,academicsignature,% |
| 1488 |
subtitle,editorial,gzttableofcontents,gztlocaltableofcontents,minitoc,presidentmessage,% |
| 1489 |
acknowledgements,printminibios,aboutfrontcover,rubric,mathematics,% |
| 1490 |
dossier,community,interview,teaching,parity,tellme,information,% |
| 1491 |
rearviewmirror,tribute,books,email,question,smf,cad,Cad,gzt,% |
| 1492 |
century,century*,aside,aside*,gztinput,gztnewtheorem,N,Z,D,Q,R,C,K,% |
| 1493 |
printauthorsdetails,date,title,author,maketitle,item,printbibliography,% |
| 1494 |
vec,surname,usetikzlibrary,arccos,arcsin,arctan,log,lg,le,leq,ge,geq,% |
| 1495 |
gztverb,th,epigraph% |
| 1496 |
},% |
| 1497 |
% Mandatory arguments (other than environments' names) |
| 1498 |
morekeywords={% |
| 1499 |
gzt,gztarticle% |
| 1500 |
},% |
| 1501 |
morekeywords=[1]{% Environments' names |
| 1502 |
abstract,minitoclist,bookreview,bookadvertisement,% |
| 1503 |
gztfigure,gztfigure*,gzttable,gzttable*,gztscan,gztcode,% |
| 1504 |
theorem,theoreme,corollary,corollaire,conjecture,proposition,% |
| 1505 |
lemma,lemme,axiom,axiome,definition,remark,remarque,example,exemple,notation,% |
| 1506 |
theorem*,theoreme*,corollary*,corollaire*,conjecture*,proposition*,proof,preuve,% |
| 1507 |
lemma*,lemme*,axiom*,axiome*,definition*,remark*,remarque*,example*,exemple*,notation*% |
| 1508 |
},% |
| 1509 |
morekeywords=[2]{% Keys of key-value lists |
| 1510 |
number,month,year,publisher,address,phone,fax,email,url,issn,isbn,short,minishort,notintoc,% |
| 1511 |
abstract,frenchtitle,englishtitle,% title,label,% |
| 1512 |
pictogram,list,help,diameter,textwidth,xshift,yshift,% |
| 1513 |
affiliation,email,minibio,photo,webpage,frontcover,bibkey,copyright% |
| 1514 |
},% |
| 1515 |
morekeywords=[3]{% Values of key-value lists |
| 1516 |
true,false,theorem,definition,proof% |
| 1517 |
},% |
| 1518 |
morekeywords=[4]{% Class and packages options |
| 1519 |
pagegrid,forprinter,cover,forauthors,% |
| 1520 |
},% |
| 1521 |
alsoletter={!-*1234560}% |
| 1522 |
}% |
| 1523 |
% \end{macrocode} |
| 1524 |
% |
| 1525 |
% Definition of the \enquote{nwejm} \TeX{} dialect. |
| 1526 |
% \begin{macrocode} |
| 1527 |
\lstdefinelanguage[nwejm]{TeX}[LaTeX]{TeX}{% |
| 1528 |
moretexcs={% Control sequences' names |
| 1529 |
editorinchief,editor,president,classdesigner,classmaintainer,fontdesigner,% |
| 1530 |
graphicdesigner,issuesetup,journalsetup,interviewee,academicsignature,% |
| 1531 |
subtitle,editorial,nwejmtableofcontents,minitoc,presidentmessage,% |
| 1532 |
acknowledgements,printminibios,aboutfrontcover,rubric,mathematics,% |
| 1533 |
dossier,community,interview,teaching,parity,tellme,information,% |
| 1534 |
rearviewmirror,tribute,books,email,question,smf,ie,Ie,nwejm,% |
| 1535 |
century,century*,aside,aside*,nwejminput,nwejmnewtheorem,N,Z,D,Q,R,C,K,% |
| 1536 |
printauthorsdetails,date,title,author,maketitle,item,printbibliography,% |
| 1537 |
vec,surname,usetikzlibrary,arccos,arcsin,arctan,log,lg,le,leq,ge,geq,set,% |
| 1538 |
nwejmverb,th,epigraph,keywords,msc,acknowledgments,E,I,grad,Div,curl,rot,supp,% |
| 1539 |
DeclareMathOperator,BinaryOperators,dif,articlesetup,% |
| 1540 |
bbN,bbZ,bbD,bbQ,bbR,bbC,bbK,% |
| 1541 |
newenumeration% |
| 1542 |
},% |
| 1543 |
% Mandatory arguments (other than environments' names) |
| 1544 |
morekeywords={% |
| 1545 |
nwejm,nwejmart,% |
| 1546 |
},% |
| 1547 |
morekeywords=[1]{% Environments' names |
| 1548 |
abstract,minitoclist,bookreview,bookadvertisement,% |
| 1549 |
nwejmfigure,nwejmfigure*,nwejmtable,nwejmtable*,nwejmscan,nwejmcode,% |
| 1550 |
theorem,theoreme,corollary,corollaire,conjecture,proposition,% |
| 1551 |
lemma,lemme,axiom,axiome,definition,remark,remarque,example,exemple,notation,% |
| 1552 |
theorem*,theoreme*,corollary*,corollaire*,conjecture*,proposition*,proof,preuve,% |
| 1553 |
lemma*,lemme*,axiom*,axiome*,definition*,remark*,remarque*,example*,exemple*,notation*,% |
| 1554 |
assertions,hypotheses% |
| 1555 |
},% |
| 1556 |
morekeywords=[2]{% Keys of key-value lists |
| 1557 |
number,month,year,publisher,address,phone,fax,email,url,issn,isbn,short,minishort,notintoc,% |
| 1558 |
abstract,frenchtitle,englishtitle,% title,label,% |
| 1559 |
pictogram,list,help,diameter,textwidth,xshift,yshift,% |
| 1560 |
affiliation,affiliationtagged,email,minibio,photo,webpage,frontcover,bibkey,copyright,% |
| 1561 |
gradient,title/french,style,title,title-plural,singular,plural,label% |
| 1562 |
},% |
| 1563 |
morekeywords=[3]{% Values of key-value lists |
| 1564 |
true,false,theorem,definition,proof% |
| 1565 |
},% |
| 1566 |
morekeywords=[4]{% Class and packages options |
| 1567 |
pagegrid,forprinter,cover,forauthors,% |
| 1568 |
},% |
| 1569 |
alsoletter={!-*1234560/}% |
| 1570 |
}% |
| 1571 |
% \end{macrocode} |
| 1572 |
% |
| 1573 |
% Definition of the \enquote{bthulco} \TeX{} dialect. |
| 1574 |
% \begin{macrocode} |
| 1575 |
\lstdefinelanguage[bthulco]{TeX}[LaTeX]{TeX}{% |
| 1576 |
moretexcs={% Control sequences' names |
| 1577 |
},% |
| 1578 |
% Mandatory arguments (other than environments' names) |
| 1579 |
morekeywords={% |
| 1580 |
ulco |
| 1581 |
},% |
| 1582 |
morekeywords=[1]{% Environments' names |
| 1583 |
beamer |
| 1584 |
},% |
| 1585 |
morekeywords=[2]{% Keys of key-value lists |
| 1586 |
},% |
| 1587 |
morekeywords=[3]{% Values of key-value lists |
| 1588 |
},% |
| 1589 |
morekeywords=[4]{% Class and packages options |
| 1590 |
frontslide,notitle,notoc,toc-title,notoc-at-sections,notoc-at-subsections, |
| 1591 |
toc-section-title,toc-subsection-title,% |
| 1592 |
},% |
| 1593 |
alsoletter={-}% |
| 1594 |
}% |
| 1595 |
% \end{macrocode} |
| 1596 |
% |
| 1597 |
% Definition of the \enquote{studentreport} \TeX{} dialect. |
| 1598 |
% \begin{macrocode} |
| 1599 |
\lstdefinelanguage[studentreport]{TeX}[LaTeX]{TeX}{% |
| 1600 |
moretexcs={% Control sequences' names |
| 1601 |
reportsetup,daterange,companytutor,academictutor,companylogo% |
| 1602 |
},% |
| 1603 |
% Mandatory arguments (other than environments' names) |
| 1604 |
morekeywords={% |
| 1605 |
},% |
| 1606 |
morekeywords=[1]{% Environments' names |
| 1607 |
},% |
| 1608 |
morekeywords=[2]{% Keys of key-value lists |
| 1609 |
institute,subinstitute,subsubinstitute,year,10pt,11pt,12pt,internship,project,layout,% |
| 1610 |
strings,pretitle,company,tutor,tutors,before~start~date,before~end~date,date,% |
| 1611 |
logos,logosheights,keywords,subject,% |
| 1612 |
},% |
| 1613 |
morekeywords=[3]{% Values of key-value lists |
| 1614 |
ulco,iutlco,gtelco,gimlco,% |
| 1615 |
},% |
| 1616 |
alsoletter={!-*1234560}% |
| 1617 |
}% |
| 1618 |
% \end{macrocode} |
| 1619 |
% |
| 1620 |
% Enhancements of the \enquote{bash} ×sh× dialect. |
| 1621 |
% \begin{macrocode} |
| 1622 |
\lstdefinelanguage{bash}[]{sh}% |
| 1623 |
{% |
| 1624 |
morekeywords={% |
| 1625 |
ssh-keygen,rsa,mkdir,cp,chmod,git,clone,tree,pull,lgr,lga,commit,% |
| 1626 |
ls,add,record,push% |
| 1627 |
},% |
| 1628 |
alsoletter={!-*}% |
| 1629 |
}% |
| 1630 |
% \end{macrocode} |
| 1631 |
% |
| 1632 |
% \section{Settings} |
| 1633 |
% |
| 1634 |
% \begin{macrocode} |
| 1635 |
\hypersetup{colorlinks}% |
| 1636 |
% |
| 1637 |
\presetkeys{todonotes}{fancyline, color=white}{}% |
| 1638 |
% |
| 1639 |
\setlength\bibinitsep{1.25\baselineskip} |
| 1640 |
% |
| 1641 |
% \setglossarystyle{indexhypergroup} |
| 1642 |
% \setacronymstyle{long-sc-short} |
| 1643 |
% |
| 1644 |
% \SetupExSheets[question]{type=exam} |
| 1645 |
% \SetupExSheets[solution]{print=true} |
| 1646 |
% |
| 1647 |
\SetCiteCommand{\autocite} |
| 1648 |
% |
| 1649 |
% \end{macrocode} |
| 1650 |
% |
| 1651 |
% The \pkg{kpfonts} and \pkg{libertine}'s ttfamilies are not as nice as |
| 1652 |
% \pkg{lmodern}'s one to my taste. So let's use the latter. |
| 1653 |
% \begin{macrocode} |
| 1654 |
\sys_if_engine_pdftex:T |
| 1655 |
{ |
| 1656 |
\renewcommand{\ttdefault}{lmtt} |
| 1657 |
} |
| 1658 |
% \end{macrocode} |
| 1659 |
% |
| 1660 |
% \pkg{lmodern} doesn't provide extended bold italic typewritter, hence |
| 1661 |
% a warning when a command such as \pkg{tcolorbox}' |\docAuxCommand| is used in |
| 1662 |
% a italic context. To get rid of this warning, we silently substitute bold |
| 1663 |
% slanted to extended bold italic. |
| 1664 |
% \begin{macrocode} |
| 1665 |
\sys_if_engine_pdftex:T |
| 1666 |
{% |
| 1667 |
\ttfamily% |
| 1668 |
\DeclareFontShape{T1}{lmtt}{bx}{it}{<-> ssub * lmtt/b/sl}{}% |
| 1669 |
} |
| 1670 |
% |
| 1671 |
% \renewcommand{\generalname}{Général}% |
| 1672 |
% |
| 1673 |
\if@DBD@beamer@not@loaded@ |
| 1674 |
\ifcsdef{@chapter}{% |
| 1675 |
\AddToHook{cmd/@chapter/before}{% |
| 1676 |
\addtocontents{dbwarninglist}{\protect\addvspace{10\p@}}% |
| 1677 |
\addtocontents{dbremarklist}{\protect\addvspace{10\p@}}% |
| 1678 |
\addtocontents{dbexamplelist}{\protect\addvspace{10\p@}}% |
| 1679 |
\addtocontents{dbfaqlist}{\protect\addvspace{10\p@}}% |
| 1680 |
\addtocontents{dbtablist}{\protect\addvspace{10\p@}}% |
| 1681 |
}% |
| 1682 |
}{} |
| 1683 |
\fi% |
| 1684 |
% |
| 1685 |
\sisetup{ |
| 1686 |
locale=FR, |
| 1687 |
mode = match, propagate-math-font = true, |
| 1688 |
reset-math-version = false, reset-text-family = false, |
| 1689 |
reset-text-series = false, reset-text-shape = false, |
| 1690 |
text-family-to-math = true, text-series-to-math = true |
| 1691 |
} |
| 1692 |
% \floatsetup[table]{style=plaintop} |
| 1693 |
% |
| 1694 |
% \lstset{% |
| 1695 |
% breaklines=true, |
| 1696 |
% basicstyle=\normalfont\ttfamily, |
| 1697 |
% commentstyle=\color{comment}\itshape, |
| 1698 |
% keywordstyle=\color{environment}, |
| 1699 |
% keywordstyle=[2]\color{key}, |
| 1700 |
% keywordstyle=[3]\color{value}, |
| 1701 |
% keywordstyle=[4]\color{keyword4}, |
| 1702 |
% keywordstyle=[5]\color{keyword5}, |
| 1703 |
% moredelim=*[s][\color{math}\ttfamily]{\[}{\]}, |
| 1704 |
% moredelim=*[s][\color{math}\ttfamily]{$}{$}, |
| 1705 |
% stringstyle=\color{string}, |
| 1706 |
% columns=flexible, |
| 1707 |
% % prebreak={\c_space_tl\Righttorque}, |
| 1708 |
% % postbreak={\c_space_tl\Lefttorque} |
| 1709 |
% }% |
| 1710 |
% \end{macrocode} |
| 1711 |
% |
| 1712 |
% Suppression du gras dans la commande ×\docAuxCommand× : |
| 1713 |
% \begin{macrocode} |
| 1714 |
\def\disp@com#1{\colDef{\ttfamily#1}} |
| 1715 |
% \end{macrocode} |
| 1716 |
% |
| 1717 |
% On définit une nouvelle clé pour la commande ×\includegraphics× de |
| 1718 |
% sorte à pouvoir inclure les pages d'un \File{.pdf} externe en |
| 1719 |
% indiquant non pas des numéros de pages absolus, mais plutôt des |
| 1720 |
% références qui devront être labellisées au moyen de la commande |
| 1721 |
% ×\zlabel× du \Package{zref} (ce dernier devant être chargé dans le |
| 1722 |
% \File{.tex} externe du \File{.pdf} avec les options ×user× et |
| 1723 |
% ×abspage×). Cf. \url{https://tex.stackexchange.com/a/31489/18401}. |
| 1724 |
% \begin{macrocode} |
| 1725 |
\define@key{Gin}{bylabel}{% |
| 1726 |
\edef\@tempa{{Gin}{page=\zref@extract{#1}{abspage}}}% |
| 1727 |
\expandafter\setkeys\@tempa% |
| 1728 |
}% |
| 1729 |
% \end{macrocode} |
| 1730 |
% |
| 1731 |
% \section{Macros, environments and theorems} |
| 1732 |
% |
| 1733 |
% \subsection{Macros} |
| 1734 |
% |
| 1735 |
% We create a command that displays the translatation of expressions. |
| 1736 |
% \begin{macrocode} |
| 1737 |
\NewDocumentCommand \translateexpression { sm } |
| 1738 |
{ |
| 1739 |
\enquote{\foreignlanguage{french}{\translate{#2}}}~ |
| 1740 |
ou~ |
| 1741 |
\enquote{\foreignlanguage{english}{\translate{#2}}}% |
| 1742 |
\IfBooleanF {#1} |
| 1743 |
{ |
| 1744 |
\selonlangue% |
| 1745 |
\index{expression!en~français!\enquote{\foreignlanguage{french}{\translate{#2}}}}% |
| 1746 |
\index{expression!en~anglais!\enquote{\foreignlanguage{english}{\translate{#2}}}}% |
| 1747 |
} |
| 1748 |
} |
| 1749 |
% \end{macrocode} |
| 1750 |
% |
| 1751 |
% Some hacks to avoid "\makeindex"'s “title” option from \pkg{imakeidx} ignored |
| 1752 |
% if \pkg{tcolorbox}' indexation is used (see |
| 1753 |
% \url{https://tex.stackexchange.com/q/332284/18401}). |
| 1754 |
% \begin{macrocode} |
| 1755 |
\@ifclassloaded{beamer}{% |
| 1756 |
}{% |
| 1757 |
\expandafter\AtBeginDocument\expandafter{% |
| 1758 |
\expandafter\def\expandafter\theindex\expandafter{\theindex}% |
| 1759 |
} |
| 1760 |
\expandafter\AtBeginDocument\expandafter{% |
| 1761 |
\expandafter\def\expandafter\endtheindex\expandafter{\endtheindex}% |
| 1762 |
} |
| 1763 |
% \end{macrocode} |
| 1764 |
% |
| 1765 |
% Hack of \pkg{imakeidx} in order different indices have different extensions |
| 1766 |
% that can be taken in account by \pkg{latexmk}'s custom dependencies and |
| 1767 |
% subroutine (see \url{https://tex.stackexchange.com/q/336653/18401}). The |
| 1768 |
% extensions of input and output files are specified by new |extin| and |extout| |
| 1769 |
% options of |\makeindex|. |
| 1770 |
% \begin{macrocode} |
| 1771 |
\ExplSyntaxOff |
| 1772 |
\def\imki@finalmessage#1{}% since you're using latexmk |
| 1773 |
\def\imki@startidx#1#2{% |
| 1774 |
\if@filesw |
| 1775 |
\def\index{\@bsphack |
| 1776 |
\@ifnextchar [{\@index}{\@index[\imki@jobname]}} |
| 1777 |
\expandafter\newwrite\csname #1@idxfile\endcsname |
| 1778 |
\immediate\openout \csname #1@idxfile\endcsname #1.#2\relax |
| 1779 |
\typeout{Writing index file #1.#2}% |
| 1780 |
\fi} |
| 1781 |
\xpatchcmd\imki@makeindex |
| 1782 |
{\imki@startidx\imki@name} |
| 1783 |
{\imki@startidx\imki@name\imki@extout} |
| 1784 |
{}{} |
| 1785 |
\xpatchcmd\imki@build |
| 1786 |
{\imki@dokey\imki@title} |
| 1787 |
{\imki@dokey\imki@title |
| 1788 |
\imki@dokey\imki@extin |
| 1789 |
\imki@dokey\imki@extout} |
| 1790 |
{}{} |
| 1791 |
\xpatchcmd{\imki@putindex} |
| 1792 |
{\imki@options} |
| 1793 |
{\c_space_tl~ -o~ #1.\imki@extin\imki@options} |
| 1794 |
{}{} |
| 1795 |
\xpatchcmd{\imki@putindex} |
| 1796 |
{.idx} |
| 1797 |
{.\imki@extout} |
| 1798 |
{}{} |
| 1799 |
\xpatchcmd{\imki@putindex} |
| 1800 |
{.ind} |
| 1801 |
{.\imki@extin} |
| 1802 |
{}{} |
| 1803 |
\def\imki@extout{idx}\def\imki@extin{ind} |
| 1804 |
\define@key{imki}{extout}{\def\imki@extout{#1}} |
| 1805 |
\define@key{imki}{extin}{\def\imki@extin{#1}} |
| 1806 |
}% |
| 1807 |
\ExplSyntaxOn |
| 1808 |
% \end{macrocode} |
| 1809 |
% |
| 1810 |
% \begin{macrocode} |
| 1811 |
\@ifclassloaded{beamer}{% |
| 1812 |
}{% |
| 1813 |
\cs_new_protected:Nn \_@@_alert:n |
| 1814 |
{ |
| 1815 |
\begingroup |
| 1816 |
\color{red} |
| 1817 |
#1 |
| 1818 |
\endgroup |
| 1819 |
}% |
| 1820 |
\NewDocumentCommand \alert {m} |
| 1821 |
{ |
| 1822 |
\_@@_alert:n {#1} |
| 1823 |
}% |
| 1824 |
\DeclareDocumentCommand \changes { smmm } { |
| 1825 |
\IfBooleanTF {#1} |
| 1826 |
{ |
| 1827 |
\tl_set:Nn \l_tmpa_tl {\alert{#4}} |
| 1828 |
}{ |
| 1829 |
\tl_set:Nn \l_tmpa_tl {#4} |
| 1830 |
} |
| 1831 |
\ifx\@onlypreamble\@notprerr |
| 1832 |
\index[\jobname-changes]{\texttt{#2}~(#3)!\l_tmpa_tl} |
| 1833 |
\else |
| 1834 |
\index[\jobname-changes]{\texttt{#2}~(#3)!\emph{Globalement}!\l_tmpa_tl|gobble} |
| 1835 |
\fi |
| 1836 |
} |
| 1837 |
\DeclareDocumentCommand \PrintChanges { !O{} } { |
| 1838 |
\indexprologue{#1} |
| 1839 |
% \end{macrocode} |
| 1840 |
% |
| 1841 |
% The changes are printed in a numbered chapter hence subject to |
| 1842 |
% cross-references. |
| 1843 |
% \begin{macrocode} |
| 1844 |
\def\imki@indexlevel{\chapter} |
| 1845 |
\printindex[\jobname-changes] |
| 1846 |
\def\imki@indexlevel{\chapter*} |
| 1847 |
} |
| 1848 |
}% |
| 1849 |
% \@ifpackageloaded{doc}{% |
| 1850 |
% \renewcommand*{\changes@}[3]{% |
| 1851 |
% \protected@edef\@tempa{% |
| 1852 |
% \noexpand\glossary{\ttfamily#1\normalfont{}~(#2)\levelchar |
| 1853 |
% \ifx\saved@macroname\@empty |
| 1854 |
% \c_space_tl\actualchar\generalname |
| 1855 |
% \else |
| 1856 |
% \expandafter\@gobble\saved@macroname |
| 1857 |
% \actualchar |
| 1858 |
% \string\verb\quotechar*\verbatimchar\saved@macroname\verbatimchar |
| 1859 |
% \fi |
| 1860 |
% :\levelchar #3}}% |
| 1861 |
% \@tempa |
| 1862 |
% \endgroup |
| 1863 |
% \@esphack |
| 1864 |
% } |
| 1865 |
% \cs_set_eq:NN \_@@_orig_changes \changes |
| 1866 |
% \DeclareDocumentCommand \changes { smmm } { |
| 1867 |
% \_@@_orig_changes{#2}{#3}{% |
| 1868 |
% \IfBooleanTF {#1} |
| 1869 |
% { |
| 1870 |
% \alert{#4}% |
| 1871 |
% } |
| 1872 |
% { |
| 1873 |
% #4% |
| 1874 |
% } |
| 1875 |
% } |
| 1876 |
% } |
| 1877 |
% }{% |
| 1878 |
% } |
| 1879 |
% \end{macrocode} |
| 1880 |
% |
| 1881 |
% In case of French language, we ask the plain style of \Package{csquotes} to be |
| 1882 |
% the right ones. |
| 1883 |
% \begin{macrocode} |
| 1884 |
\IfLanguageName{french}{% |
| 1885 |
\DeclarePlainStyle{«~}{~»}% |
| 1886 |
{“}{”} |
| 1887 |
}{}% |
| 1888 |
% \end{macrocode} |
| 1889 |
% |
| 1890 |
% The following hack was provided by Clemens Niederberger |
| 1891 |
% (see \url{https://tex.stackexchange.com/q/304980}). |
| 1892 |
% |
| 1893 |
% This saves the url with all characters catcode other: |
| 1894 |
% \begin{macrocode} |
| 1895 |
\tl_const:Nx \c_@@_standard_url_tl { \tl_to_str:n { https://ctan.org/pkg/ } } |
| 1896 |
% \end{macrocode} |
| 1897 |
% Separate formatting: |
| 1898 |
% #1: package or class name |
| 1899 |
% #2: extra argument (e.g. font attribute) |
| 1900 |
\cs_new_protected:Npn \_@@_package_format:nn #1#2 |
| 1901 |
{ |
| 1902 |
#2{\sffamily#1} |
| 1903 |
} |
| 1904 |
\tl_new:N \g_@@_list_word_tl |
| 1905 |
\IfLanguageName{french}{ |
| 1906 |
\tl_set:Nn \g_@@_list_word_tl {liste} |
| 1907 |
}{ |
| 1908 |
\IfLanguageName{english}{ |
| 1909 |
\tl_set:Nn \g_@@_list_word_tl {list} |
| 1910 |
}{}% |
| 1911 |
}% |
| 1912 |
% The main macro |
| 1913 |
% #1: boolean (true => no hyperlink) |
| 1914 |
% #2: boolean (false => indexation) |
| 1915 |
% #3: optional url |
| 1916 |
% #4: package or class name |
| 1917 |
% #5: index main entry (if #5 false) |
| 1918 |
% #6: index subsubentry (if #5 false) |
| 1919 |
% #7: extra argument for the package or class name (e.g. font attribute) |
| 1920 |
\cs_new_protected:Npn \_@@_package:nnnnnnn #1#2#3#4#5#6#7 |
| 1921 |
{ |
| 1922 |
\texorpdfstring |
| 1923 |
{ |
| 1924 |
\bool_if:nTF {#1} |
| 1925 |
{ \_@@_package_format:nn {#4}{#7} } |
| 1926 |
{ |
| 1927 |
\tl_if_blank:nTF {#3} |
| 1928 |
{ |
| 1929 |
\tl_set:Nx \l_tmpa_tl {\c_@@_standard_url_tl #4} |
| 1930 |
\href |
| 1931 |
{ \l_tmpa_tl } |
| 1932 |
{ \_@@_package_format:nn {#4}{#7} } |
| 1933 |
} |
| 1934 |
{ |
| 1935 |
\href |
| 1936 |
{ #3 } |
| 1937 |
{ \_@@_package_format:nn {#4}{#7} } |
| 1938 |
} |
| 1939 |
} |
| 1940 |
\IfBooleanF{#2} |
| 1941 |
{ |
| 1942 |
\tl_if_empty:nTF {#6} |
| 1943 |
{ |
| 1944 |
\index{#5!\g_@@_list_word_tl!\textsf{#4}} |
| 1945 |
}{ |
| 1946 |
\index{#5!\g_@@_list_word_tl!\textsf{#4}!#6} |
| 1947 |
} |
| 1948 |
} |
| 1949 |
} |
| 1950 |
{#4} |
| 1951 |
} |
| 1952 |
\NewDocumentCommand{\package}{ s t+ O{} m !O{package} !O{} !O{} } { |
| 1953 |
\_@@_package:nnnnnnn {#1}{#2}{#3}{#4}{package}{#6}{#7} |
| 1954 |
} |
| 1955 |
\NewDocumentCommand{\Package}{ s t+ O{} m !O{package} !O{} !O{} } { |
| 1956 |
\IfLanguageName{french}{package~}{}% |
| 1957 |
\_@@_package:nnnnnnn {#1}{#2}{#3}{#4}{package}{#6}{#7} |
| 1958 |
\IfLanguageName{english}{~package}{}% |
| 1959 |
} |
| 1960 |
% |
| 1961 |
\NewDocumentCommand{\class}{ s t+ O{} m !O{} !O{} !O{} } { |
| 1962 |
\IfLanguageName{french}{% |
| 1963 |
\_@@_package:nnnnnnn {#1}{#2}{#3}{#4}{classe}{#6}{#7} |
| 1964 |
}{}% |
| 1965 |
\IfLanguageName{english}{% |
| 1966 |
\_@@_package:nnnnnnn {#1}{#2}{#3}{#4}{class}{#6}{#7} |
| 1967 |
}{}% |
| 1968 |
} |
| 1969 |
\NewDocumentCommand{\Class}{ s t+ O{} m !O{} !O{} !O{} } { |
| 1970 |
\IfLanguageName{french}{% |
| 1971 |
classe~% |
| 1972 |
\_@@_package:nnnnnnn {#1}{#2}{#3}{#4}{classe}{#6}{#7} |
| 1973 |
}{}% |
| 1974 |
\IfLanguageName{english}{% |
| 1975 |
\_@@_package:nnnnnnn {#1}{#2}{#3}{#4}{class}{#6}{#7}~% |
| 1976 |
class |
| 1977 |
}{}% |
| 1978 |
} |
| 1979 |
% \end{macrocode} |
| 1980 |
% % |
| 1981 |
% % We copy the ×\package×, ×\Package×, ×\class×, ×\Classs×, commands as we used |
| 1982 |
% % to use ×\pkg×, ×\Pkg×, ×\cls× and ×\Cls× instead in our \file{.dtx}. |
| 1983 |
% % \begin{macrocode} |
| 1984 |
% \NewCommandCopy\pkg\package |
| 1985 |
\NewCommandCopy\Pkg\Package |
| 1986 |
% \NewCommandCopy\cls\class |
| 1987 |
\NewCommandCopy\Cls\Class |
| 1988 |
% % \end{macrocode} |
| 1989 |
% |
| 1990 |
% \begin{macrocode} |
| 1991 |
\cs_new_protected:Nn \_@@_format:n |
| 1992 |
{ |
| 1993 |
\textsc{#1} |
| 1994 |
} |
| 1995 |
\NewDocumentCommand{\format}{ m } |
| 1996 |
{% |
| 1997 |
\_@@_format:n {#1} |
| 1998 |
} |
| 1999 |
\NewDocumentCommand{\Format}{ m } |
| 2000 |
{% |
| 2001 |
\IfLanguageName{french}{format~}{}% |
| 2002 |
\_@@_format:n {#1}% |
| 2003 |
\IfLanguageName{english}{~format}{}% |
| 2004 |
}% |
| 2005 |
\cs_new_protected:Nn \_@@_file:n |
| 2006 |
{ |
| 2007 |
% \bgroup% \color{magenta} |
| 2008 |
\texttt{#1} |
| 2009 |
% \egroup |
| 2010 |
} |
| 2011 |
\ProvideDocumentCommand{\file}{ s m } |
| 2012 |
{% |
| 2013 |
\IfBooleanT {#1} { |
| 2014 |
\IfLanguageName{french}{fichier~}{}% |
| 2015 |
} |
| 2016 |
\_@@_file:n {#2} |
| 2017 |
\IfBooleanT {#1} { |
| 2018 |
\IfLanguageName{english}{~file}{}% |
| 2019 |
} |
| 2020 |
} |
| 2021 |
\NewDocumentCommand{\File}{ m } |
| 2022 |
{% |
| 2023 |
\IfLanguageName{french}{fichier~}{}% |
| 2024 |
\_@@_file:n {#1}% |
| 2025 |
\IfLanguageName{english}{~file}{}% |
| 2026 |
}% |
| 2027 |
\NewDocumentCommand{\folder}{ m } |
| 2028 |
{ |
| 2029 |
\_@@_file:n {#1}% |
| 2030 |
} |
| 2031 |
\NewDocumentCommand{\Folder}{ m } |
| 2032 |
{% |
| 2033 |
\IfLanguageName{french}{dossier~}{}% |
| 2034 |
\_@@_file:n {#1}% |
| 2035 |
\IfLanguageName{english}{~directory}{}% |
| 2036 |
}% |
| 2037 |
% |
| 2038 |
% \NewDocumentCommand \ie { s } {% |
| 2039 |
% \IfBooleanTF {#1} |
| 2040 |
% { |
| 2041 |
% \IfLanguageName{french}{% |
| 2042 |
% c'est-\`{a}-dire |
| 2043 |
% }{}% |
| 2044 |
% \IfLanguageName{english}{% |
| 2045 |
% id est |
| 2046 |
% }{}% |
| 2047 |
% } |
| 2048 |
% { |
| 2049 |
% \IfLanguageName{french}{% |
| 2050 |
% c.-à-d |
| 2051 |
% }{}% |
| 2052 |
% \IfLanguageName{english}{% |
| 2053 |
% i.e |
| 2054 |
% }{}% |
| 2055 |
% \@ifnextchar.% |
| 2056 |
% { |
| 2057 |
% }{ |
| 2058 |
% . |
| 2059 |
% }% |
| 2060 |
% } |
| 2061 |
% } |
| 2062 |
% |
| 2063 |
\NewDocumentCommand{\program}{ m } |
| 2064 |
{ |
| 2065 |
\_@@_file:n {#1}% |
| 2066 |
} |
| 2067 |
\NewDocumentCommand{\software}{ m } |
| 2068 |
{ |
| 2069 |
\_@@_file:n {#1}% |
| 2070 |
} |
| 2071 |
\NewDocumentCommand{\texstudio}{ } |
| 2072 |
{ |
| 2073 |
\program{TeXstudio} |
| 2074 |
} |
| 2075 |
\NewDocumentCommand{\emacs}{ } |
| 2076 |
{ |
| 2077 |
\program{Emacs} |
| 2078 |
} |
| 2079 |
\NewDocumentCommand{\texlive}{ } |
| 2080 |
{ |
| 2081 |
\href{https://tug.org/texlive/}{\TeX{}\c_space_tl{}Live} |
| 2082 |
} |
| 2083 |
\NewDocumentCommand{\miktex}{ } |
| 2084 |
{ |
| 2085 |
\href{https://tug.org/texlive/}{MiK\TeX} |
| 2086 |
} |
| 2087 |
\NewDocumentCommand{\linux}{ } |
| 2088 |
{ |
| 2089 |
Linux\index{Linux} |
| 2090 |
} |
| 2091 |
\NewDocumentCommand{\macos}{ } |
| 2092 |
{ |
| 2093 |
Mac OS\index{Mac OS} |
| 2094 |
} |
| 2095 |
\NewDocumentCommand{\windows}{ } |
| 2096 |
{ |
| 2097 |
Windows\index{Windows} |
| 2098 |
} |
| 2099 |
% |
| 2100 |
\cs_new_protected:Nn \_@@_links:nnn |
| 2101 |
{ |
| 2102 |
\cs_if_exist:NTF \faExternalLink {% |
| 2103 |
% \href{#2#3#1}{\texttt{#3}}~\href{https://mirror.ctan.org/macros/latex/contrib/yathesis/#2#3#1}{\faExternalLink} |
| 2104 |
\texttt{#3}~% \textnormal{(\attachfile{#2#3#1})} |
| 2105 |
}{ |
| 2106 |
% \href{#2#3#1}{\texttt{#3}}~\href{https://mirror.ctan.org/macros/latex/contrib/yathesis/#2#3#1}{} |
| 2107 |
\texttt{#3}~% \textnormal{(\attachfile{#2#3#1})} |
| 2108 |
} |
| 2109 |
} |
| 2110 |
\cs_new_protected:Nn \_@@_etctree: |
| 2111 |
{ |
| 2112 |
... |
| 2113 |
} |
| 2114 |
\NewDocumentCommand{\etctree}{ } |
| 2115 |
{ |
| 2116 |
\_@@_etctree:% |
| 2117 |
} |
| 2118 |
\cs_new_protected:Nn \_@@_filetree:n |
| 2119 |
{ |
| 2120 |
\_@@_links:nnn {}{\folder/\subfolder/}{#1} |
| 2121 |
} |
| 2122 |
\NewDocumentCommand{\filetree}{ m } |
| 2123 |
{% |
| 2124 |
\_@@_filetree:n {#1} |
| 2125 |
} |
| 2126 |
\NewDocumentCommand{\pdffiletree}{ m } |
| 2127 |
{% |
| 2128 |
\_@@_filetree:n {#1.pdf} |
| 2129 |
} |
| 2130 |
\NewDocumentCommand{\texfiletree}{ m } |
| 2131 |
{% |
| 2132 |
\_@@_filetree:n {#1.tex} |
| 2133 |
} |
| 2134 |
\cs_new_protected:Nn \_@@_zip_filetree: |
| 2135 |
{ |
| 2136 |
\bgroup% \color{magenta} |
| 2137 |
\bfseries |
| 2138 |
\color{red} |
| 2139 |
\_@@_links:nnn {}{\folder/}{\subfolder.zip} |
| 2140 |
\egroup |
| 2141 |
} |
| 2142 |
\NewDocumentCommand{\zipfiletree}{ } |
| 2143 |
{% |
| 2144 |
\_@@_zip_filetree: {} |
| 2145 |
} |
| 2146 |
\cs_new_protected:Nn \_@@_directory_filetree: |
| 2147 |
{ |
| 2148 |
\bgroup% \color{magenta} |
| 2149 |
\bfseries |
| 2150 |
\color{blue} |
| 2151 |
\_@@_links:nnn {../exemples}{}{\folder/} |
| 2152 |
\egroup |
| 2153 |
} |
| 2154 |
\NewDocumentCommand{\directorytree}{ } |
| 2155 |
{% |
| 2156 |
\_@@_directory_filetree: {} |
| 2157 |
} |
| 2158 |
\cs_new_protected:Nn \_@@_subdirectory_filetree: |
| 2159 |
{ |
| 2160 |
\bgroup% \color{magenta} |
| 2161 |
\bfseries |
| 2162 |
\color{blue} |
| 2163 |
\_@@_links:nnn {.}{\folder/}{\subfolder/} |
| 2164 |
\egroup |
| 2165 |
} |
| 2166 |
\NewDocumentCommand{\subdirectorytree}{ } |
| 2167 |
{% |
| 2168 |
\_@@_subdirectory_filetree: {} |
| 2169 |
} |
| 2170 |
% |
| 2171 |
\AddToHook{begindocument/end}{% |
| 2172 |
\cs_new_protected:Nn \_@@_arrow: |
| 2173 |
{ |
| 2174 |
{\fontfamily{pzd}\fontencoding{U}\fontseries{m}\fontshape{n}\selectfont\char213} |
| 2175 |
} |
| 2176 |
\ltx@ifpackageloaded{realscripts}{% |
| 2177 |
\@ifundefined{up}{ |
| 2178 |
\cs_new_protected:Npn \_@@_deal_with_superiors:n #1 |
| 2179 |
{ |
| 2180 |
\fakesuperscript{#1} |
| 2181 |
} |
| 2182 |
}{ |
| 2183 |
\cs_new_protected:Npn \_@@_deal_with_superiors:n #1 |
| 2184 |
{ |
| 2185 |
\up*{#1} |
| 2186 |
} |
| 2187 |
} |
| 2188 |
}{ |
| 2189 |
\cs_new_protected:Npn \_@@_deal_with_superiors:n #1 |
| 2190 |
{ |
| 2191 |
\textsuperscript{#1} |
| 2192 |
} |
| 2193 |
} |
| 2194 |
\cs_new_protected:Nn \_@@_mandatory: |
| 2195 |
{ |
| 2196 |
\hyperref[sec-comm-oblig]{% |
| 2197 |
\textcolor{red!75!black}{ |
| 2198 |
\faLock |
| 2199 |
} |
| 2200 |
\ifnum\getpagerefnumber{sec-comm-oblig}=\thepage% |
| 2201 |
\else% |
| 2202 |
\_@@_deal_with_superiors:n{\_@@_arrow:{}\,\kvtcb@text@pageshort\,\pageref*{sec-comm-oblig}}% |
| 2203 |
\fi% |
| 2204 |
}% |
| 2205 |
} |
| 2206 |
\RenewDocumentCommand\tcb@ref@doc{msm}{% |
| 2207 |
\hyperref[#1:#3]{\texttt{\ref*{#1:#3}}% |
| 2208 |
\IfBooleanTF{#2}{}{% |
| 2209 |
\ifnum\getpagerefnumber{#1:#3}=\thepage\relax% |
| 2210 |
\else% |
| 2211 |
\_@@_deal_with_superiors:n{\_@@_arrow:{}% |
| 2212 |
\,\kvtcb@text@pageshort\,\pageref*{#1:#3}}% |
| 2213 |
\fi}}% |
| 2214 |
} |
| 2215 |
\cs_new_protected:Nn \_@@_mandatory_no_link: |
| 2216 |
{ |
| 2217 |
\textcolor{red!75!black}{ |
| 2218 |
\faLock |
| 2219 |
} |
| 2220 |
} |
| 2221 |
\NewDocumentCommand{\mandatory}{ s } |
| 2222 |
{ |
| 2223 |
\IfBooleanTF {#1} |
| 2224 |
{ \_@@_mandatory_no_link: {} } |
| 2225 |
{ \_@@_mandatory: {} } |
| 2226 |
}% |
| 2227 |
} |
| 2228 |
% |
| 2229 |
\NewDocumentCommand{\unixtldirectory}{} |
| 2230 |
{ |
| 2231 |
\directorytree{\c_@@_unixtldirectory_string_tl} |
| 2232 |
}% |
| 2233 |
\NewDocumentCommand{\tlversion}{} |
| 2234 |
{ |
| 2235 |
\directorytree{\c_@@_tlversion_string_tl} |
| 2236 |
}% |
| 2237 |
\NewDocumentCommand{\wintldirectory}{} |
| 2238 |
{ |
| 2239 |
\directorytree{\c_@@_wintldirectory_string_tl} |
| 2240 |
}% |
| 2241 |
\NewDocumentCommand{\tldistdirectory}{} |
| 2242 |
{ |
| 2243 |
\directorytree{\c_@@_tldistdirectory_string_tl} |
| 2244 |
}% |
| 2245 |
\NewDocumentCommand{\miktexdistdirectory}{} |
| 2246 |
{ |
| 2247 |
\directorytree{\c_@@_miktexdistdirectory_string_tl} |
| 2248 |
}% |
| 2249 |
\NewDocumentCommand{\docdirectory}{} |
| 2250 |
{ |
| 2251 |
\directorytree{\c_@@_docdirectory_string_tl} |
| 2252 |
}% |
| 2253 |
\NewDocumentCommand{\texdirectory}{} |
| 2254 |
{ |
| 2255 |
\directorytree{\c_@@_texdirectory_string_tl} |
| 2256 |
}% |
| 2257 |
\NewDocumentCommand{\sourcedirectory}{} |
| 2258 |
{ |
| 2259 |
\directorytree{\c_@@_sourcedirectory_string_tl} |
| 2260 |
}% |
| 2261 |
\NewDocumentCommand{\jobdirectory}{} |
| 2262 |
{ |
| 2263 |
\directorytree{\c_@@_jobdirectory_string_tl} |
| 2264 |
}% |
| 2265 |
\NewDocumentCommand{\jobdocdirectory}{} |
| 2266 |
{ |
| 2267 |
\directorytree{\c_@@_jobdocdirectory_string_tl} |
| 2268 |
}% |
| 2269 |
% \end{macrocode} |
| 2270 |
% |
| 2271 |
% \begin{macrocode} |
| 2272 |
\NewDocumentCommand{\version}{ m } |
| 2273 |
{ |
| 2274 |
Version~\texttt{#1} |
| 2275 |
} |
| 2276 |
% \end{macrocode} |
| 2277 |
% |
| 2278 |
% \begin{macrocode} |
| 2279 |
\NewDocumentCommand{\pdf}{} |
| 2280 |
{ |
| 2281 |
\textsc{pdf} |
| 2282 |
} |
| 2283 |
% \end{macrocode} |
| 2284 |
% |
| 2285 |
% \begin{macro}{\aside} |
| 2286 |
% \begin{macrocode} |
| 2287 |
\DeclareDocumentCommand \aside { s m } {% |
| 2288 |
\IfBooleanTF {#1} |
| 2289 |
{ |
| 2290 |
\c_@@_aside_string_tl{}~#2 |
| 2291 |
} |
| 2292 |
{ |
| 2293 |
\c_@@_aside_string_tl{}~#2~\c_@@_aside_string_tl |
| 2294 |
} |
| 2295 |
} |
| 2296 |
% \end{macrocode} |
| 2297 |
% \end{macro} |
| 2298 |
% |
| 2299 |
% \begin{macro}{century} |
| 2300 |
% \begin{macrocode} |
| 2301 |
% \cs_new_protected:Nn \_@@_century:n |
| 2302 |
% { |
| 2303 |
% \textsc{ |
| 2304 |
% \int_to_roman:n {#1} |
| 2305 |
% }% |
| 2306 |
% \int_compare:nNnTF { #1 } > { 1 }{\ieme}{\ier} si\`ecle% |
| 2307 |
% } |
| 2308 |
% \NewDocumentCommand \century { m } {% |
| 2309 |
% \_@@_century:n {#1}% |
| 2310 |
% } |
| 2311 |
% \end{macrocode} |
| 2312 |
% \end{macro} |
| 2313 |
% On définit une commande d'inclusion de \enquote{copie d'écran} qui |
| 2314 |
% inclut une page d'un \File{.pdf} externe en indiquant non pas des |
| 2315 |
% numéros de pages absolus, mais plutôt des références stipulées au |
| 2316 |
% moyen de la clé ×bylabel× ci-dessus. Ceci nécessite de charger le |
| 2317 |
% \Package{zref} avec l'option ×xr× dans le \File{.tex} où sont |
| 2318 |
% incluses les pages du \File{.pdf} externe. |
| 2319 |
% \begin{macrocode} |
| 2320 |
\if@DBD@beamer@not@loaded@ |
| 2321 |
\bool_if:nT {\g_@@_yad_bool} {% |
| 2322 |
% |
| 2323 |
\str_if_in:NnT \c_sys_jobname_str { yathesis- } { |
| 2324 |
\zexternaldocument{\c_@@_flatsample_string_tl/these}% |
| 2325 |
\bool_new:N \g_@@_these_aux_exists% |
| 2326 |
\msg_new:nnn{denisbdoc}{File~ `\c_@@_these_aux_string_tl'~ needed}{% |
| 2327 |
File~ `\c_@@_these_aux_string_tl'~ needed~ (otherwise~ this~ document~ will~ |
| 2328 |
be~ incomplete)!~ Please~ go~ to~ `\c_@@_flatsample_string_tl'~ |
| 2329 |
directory~ and~ run~ first:\\\\ |
| 2330 |
|
| 2331 |
\ \ latexmk~ -g~ -pdf~ -jobname=these~ -pdflatex="pdflatex~ \%O~ \string\ \\ |
| 2332 |
\ \ '\string\RequirePackage\{etoolbox\}~ \string\ \\ |
| 2333 |
\ \ \string\AtEndPreamble\{\string\RequirePackage\{yathesis-demo\}\}~ \string\ \\ |
| 2334 |
\ \ \string\input\{\%S\}'"~ these.tex |
| 2335 |
\\\\ |
| 2336 |
Afterwards,~ recompile~ this~ document.% |
| 2337 |
}% |
| 2338 |
\file_if_exist:nTF {\c_@@_flatsample_string_tl/\c_@@_these_aux_string_tl} {% |
| 2339 |
\bool_gset_true:N% |
| 2340 |
\g_@@_these_aux_exists% |
| 2341 |
}{ |
| 2342 |
% \bool_gset_false:N \g_@@_these_aux_exists |
| 2343 |
\msg_warning:nn{denisbdoc}{File~ `\c_@@_these_aux_string_tl'~ needed} |
| 2344 |
\AfterEndPreamble{% |
| 2345 |
\begin{dbwarning}{Documentation~incomplète~!}{documentation-incomplete} |
| 2346 |
La~ présente~ documentation~ est~ incomplète~ car~ le~ |
| 2347 |
\File{\c_@@_these_aux_string_tl}~ est~ absent~ du~ |
| 2348 |
\Folder{\c_@@_flatsample_string_tl}.~ Pour~ régler~ le~ problème,~ |
| 2349 |
rendez-vous~ dans~ ce~ dossier~ et~ compilez~ le~ \File{these.tex}~ au~ |
| 2350 |
moyen~ de~ la~ commande~ suivante\footnote{Sur~ une~ seule~ ligne.}~ : |
| 2351 |
\par\medskip |
| 2352 |
|
| 2353 |
\lstinline[language=bash,upquote=true,commentstyle=,stringstyle=,showstringspaces=false]+latexmk~-g~ -norc~ -r~ ./latexmkrc~-jobname=these-pdflatex="pdflatex~\%O~'\\RequirePackage\{etoolbox\}\\AtEndPreamble\{\\RequirePackage\{yathesis-demo\}\}\\input\{\%S\}'"~these+ |
| 2354 |
\end{dbwarning} |
| 2355 |
} |
| 2356 |
} |
| 2357 |
% |
| 2358 |
\msg_new:nnn{denisbdoc}{File~ `\c_@@_template_sample_zip_string_tl'~ needed}{% |
| 2359 |
File~ `canevas-specimen.zip'~ needed~ (otherwise~ this~ document~ will~ be~ |
| 2360 |
incomplete)!~ Please~ get~ this~ file~ from~ the~ orignal~ yathesis'~ |
| 2361 |
documentation~ and~ save~ it~ in~ `../exemples/'~ folder.~ Afterwards,~ |
| 2362 |
recompile~ this~ document.% |
| 2363 |
}% |
| 2364 |
\file_if_exist:nTF {../\c_@@_template_sample_zip_string_tl} {}{ |
| 2365 |
\msg_warning:nn{denisbdoc}{File~ `\c_@@_template_sample_zip_string_tl'~ needed} |
| 2366 |
\AfterEndPreamble{% |
| 2367 |
\begin{dbwarning}{Documentation~incomplète~!}{} |
| 2368 |
La~ version~ électronique~ (\pdf{})~ de~ la~ présente~ documentation~ |
| 2369 |
est~ incomplète~ :~ normalement,~ les~ canevas~ et~ spécimens~ y~ sont~ |
| 2370 |
intégrés~ par~ le~ biais~ de~ l'archive~ \gls{zip}~ |
| 2371 |
\file{\c_@@_template_sample_zip_string_tl}~ (alors~ accessible~ par~ |
| 2372 |
simple~ clic)~ mais~ ce~ n'est~ pas~ le~ cas~ ici,~ ce~ fichier~ étant~ |
| 2373 |
absent~ du~ dossier~ parent.~ % \Folder{\c_@@_examples_path_tl}.~ |
| 2374 |
Pour~ régler~ le~ problème,~ accédez~ à~ ce~ fichier~ attaché~ à~ la~ |
| 2375 |
version~ électronique~ originale~ de~ la~ documentation~ de~ |
| 2376 |
\yatcl{}\footnote{Disponible~ à~ l'adresse~ |
| 2377 |
\url{https://ctan.org/pkg/yathesis},~ si~ besoin~ est.}~ et~ placez-le~ |
| 2378 |
dans~ le~ \Folder{\c_@@_examples_path_tl}. |
| 2379 |
\end{dbwarning} |
| 2380 |
} |
| 2381 |
} |
| 2382 |
% |
| 2383 |
\cs_new_protected:Nn \_@@_screenshot:nn |
| 2384 |
{ |
| 2385 |
\bool_if:NTF {\g_@@_these_aux_exists} { |
| 2386 |
\fbox{\includegraphics[bylabel=#2,width=#1\linewidth-2\fboxsep-2\fboxrule]{\c_@@_flatsample_string_tl/these}}% |
| 2387 |
}{% |
| 2388 |
\begin{dbwarning}{Copie~d'écran~manquante~!}{} |
| 2389 |
Il~ devrait~ ici~ y~ avoir~ une~ copie\c_space_tl ~ d'écran.~ Cf.~ |
| 2390 |
\vref{wa-documentation-incomplete}~ pour~ plus~ de~ détails. |
| 2391 |
\end{dbwarning} |
| 2392 |
} |
| 2393 |
} |
| 2394 |
\NewDocumentCommand \screenshot { O{.45} m } {% |
| 2395 |
\_@@_screenshot:nn {#1}{#2} |
| 2396 |
} |
| 2397 |
} |
| 2398 |
} |
| 2399 |
\fi |
| 2400 |
% \end{macrocode} |
| 2401 |
% |
| 2402 |
% We want to make the angle brackets generated by ×\meta× to be copied and |
| 2403 |
% pasted as they are, and not replaced by "h" and "i" |
| 2404 |
% (cf. \url{https://tex.stackexchange.com/q/18146/18401}). |
| 2405 |
% \begin{macrocode} |
| 2406 |
\newunicodechar{⟨}{$\langle$} |
| 2407 |
\newunicodechar{⟩}{$\rangle$} |
| 2408 |
% \end{macrocode} |
| 2409 |
% |
| 2410 |
% Borrowed from the \package{tcolorbox} package: |
| 2411 |
% \begin{macrocode} |
| 2412 |
\cs_new_protected:Nn \_@@_meta:nn |
| 2413 |
{ |
| 2414 |
% \bgroup% |
| 2415 |
% \normalfont |
| 2416 |
% \ttfamily% |
| 2417 |
% \itshape% |
| 2418 |
% \textcolor{#1}{$\langle$#2$\rangle$}% |
| 2419 |
% \egroup% |
| 2420 |
\bgroup% |
| 2421 |
\color{#1}% |
| 2422 |
\ensuremath\langle |
| 2423 |
\ifmmode \expandafter \nfss@text \fi |
| 2424 |
{% |
| 2425 |
\meta@font@select |
| 2426 |
\edef\meta@hyphen@restore |
| 2427 |
{\hyphenchar\the\font\the\hyphenchar\font}% |
| 2428 |
\hyphenchar\font\m@ne |
| 2429 |
\language\l@nohyphenation |
| 2430 |
\ttfamily% |
| 2431 |
#2% |
| 2432 |
\meta@hyphen@restore |
| 2433 |
}\ensuremath\rangle |
| 2434 |
\egroup% |
| 2435 |
} |
| 2436 |
\AtBeginDocument{% |
| 2437 |
\RenewDocumentCommand{\meta}{ O{meta} m } { |
| 2438 |
\_@@_meta:nn {#1}{#2} |
| 2439 |
} |
| 2440 |
}% |
| 2441 |
% \end{macrocode} |
| 2442 |
% |
| 2443 |
% \subsection{Environments} |
| 2444 |
% |
| 2445 |
% \begin{macrocode} |
| 2446 |
\NewTCBListing{preamblecode}{ !O{} }{% |
| 2447 |
codes,% |
| 2448 |
drop~lifted~shadow, |
| 2449 |
#1% |
| 2450 |
} |
| 2451 |
\NewTCBListing{preamblecode*}{ !O{} }{% |
| 2452 |
codes,% |
| 2453 |
enlarge~top~by=\c_zero_dim, |
| 2454 |
drop~lifted~shadow, |
| 2455 |
#1% |
| 2456 |
} |
| 2457 |
\NewTCBListing{bodycode}{ !O{} }{% |
| 2458 |
codes,% |
| 2459 |
#1% |
| 2460 |
} |
| 2461 |
\NewTCBInputListing{\preamblesampleold}{ O{these.tex} m m }{% |
| 2462 |
samples, |
| 2463 |
drop~lifted~shadow, |
| 2464 |
listing~file={\c_@@_treesample_string_tl/#1}, |
| 2465 |
listing~options={rangebeginprefix=\\,rangeendsuffix=\},#2}, |
| 2466 |
#3, |
| 2467 |
}% |
| 2468 |
\NewTCBInputListing{\preamblesample}{ m m m }{% |
| 2469 |
samples, |
| 2470 |
drop~lifted~shadow, |
| 2471 |
listing~file={\c_@@_these_snippets_directory_tl/#1}, |
| 2472 |
listing~options={#2}, |
| 2473 |
#3, |
| 2474 |
}% |
| 2475 |
\NewTCBInputListing{\bodysampleold}{ O{these.tex} m m }{% |
| 2476 |
samples, |
| 2477 |
listing~file={\c_@@_treesample_string_tl/#1}, |
| 2478 |
listing~options={rangebeginprefix=\\,rangeendsuffix=\},#2}, |
| 2479 |
#3, |
| 2480 |
}% |
| 2481 |
\NewTCBInputListing{\bodysample}{ m m m }{% |
| 2482 |
samples, |
| 2483 |
listing~file={\c_@@_these_snippets_directory_tl/#1}, |
| 2484 |
listing~options={#2}, |
| 2485 |
#3, |
| 2486 |
}% |
| 2487 |
% \newtcbinputlisting{\preamblesample}[3][these.tex]{% |
| 2488 |
% samples, |
| 2489 |
% drop~lifted~shadow, |
| 2490 |
% listing~file={\c_@@_treesample_string_tl/#1}, |
| 2491 |
% listing~options={rangebeginprefix=\\,rangeendsuffix=\},#2}, |
| 2492 |
% #3, |
| 2493 |
% }% |
| 2494 |
% \newtcbinputlisting{\bodysample}[3][these.tex]{% |
| 2495 |
% samples, |
| 2496 |
% listing~file={\c_@@_treesample_string_tl/#1}, |
| 2497 |
% listing~options={rangebeginprefix=\\,rangeendsuffix=\},#2}, |
| 2498 |
% #3, |
| 2499 |
% }% |
| 2500 |
% \end{macrocode} |
| 2501 |
% |
| 2502 |
% \subsection{Theorems} |
| 2503 |
% |
| 2504 |
% \begin{macrocode} |
| 2505 |
\tl_new:N \g_@@_number_within_tl |
| 2506 |
\ifcsdef{chapter}{ |
| 2507 |
\tl_set:Nn \g_@@_number_within_tl {chapter} |
| 2508 |
}{ |
| 2509 |
\tl_set:Nn \g_@@_number_within_tl {section} |
| 2510 |
} |
| 2511 |
\@ifclassloaded{gztarticle}{\tl_set:Nn \g_@@_number_within_tl {section}}{}% |
| 2512 |
\@ifclassloaded{nwejmart}{\tl_set:Nn \g_@@_number_within_tl {section}}{}% |
| 2513 |
\@ifclassloaded{beamer}{\tl_set:Nn \g_@@_number_within_tl {section}}{}% |
| 2514 |
% \end{macrocode} |
| 2515 |
% |
| 2516 |
% \begin{macrocode} |
| 2517 |
\IfLanguageName{french}{\tl_const:Nn \c_@@_warning_title_tl {avertissement}}{ |
| 2518 |
\IfLanguageName{english}{\tl_const:Nn \c_@@_warning_title_tl {warning}}{}% |
| 2519 |
}% |
| 2520 |
\newtcbtheorem[list~inside=dbwarninglist,number~within=\g_@@_number_within_tl]{dbwarning}{\text_titlecase:n\c_@@_warning_title_tl}{% |
| 2521 |
colback=red!5!white, |
| 2522 |
colframe=red!75!black, |
| 2523 |
dbtcb |
| 2524 |
}{wa} |
| 2525 |
\IfLanguageName{french}{\tl_const:Nn \c_@@_example_title_tl {exemple}}{ |
| 2526 |
\IfLanguageName{english}{\tl_const:Nn \c_@@_example_title_tl {example}}{}% |
| 2527 |
}% |
| 2528 |
\newtcbtheorem[list~inside=dbexamplelist,number~within=\g_@@_number_within_tl]{dbexample}{\text_titlecase:n\c_@@_example_title_tl}{% |
| 2529 |
colback=lime!5!white, |
| 2530 |
colframe=lime!75!black, |
| 2531 |
dbtcb, |
| 2532 |
}{ex} |
| 2533 |
\IfLanguageName{french}{\tl_const:Nn \c_@@_remark_title_tl {remarque}}{ |
| 2534 |
\IfLanguageName{english}{\tl_const:Nn \c_@@_remark_title_tl {remark}}{}% |
| 2535 |
}% |
| 2536 |
\newtcbtheorem[list~inside=dbremarklist,number~within=\g_@@_number_within_tl]{dbremark}{\text_titlecase:n\c_@@_remark_title_tl}{% |
| 2537 |
colback=cyan!5!white, |
| 2538 |
colframe=cyan!75!black, |
| 2539 |
dbtcb |
| 2540 |
}{rq} |
| 2541 |
\newtcbtheorem[list~inside=dbfaqlist,number~within=\g_@@_number_within_tl]{dbfaq}{Question}{% |
| 2542 |
colback=lightgray!5!white, |
| 2543 |
colframe=lightgray!75!black, |
| 2544 |
% fontupper=\itshape, |
| 2545 |
dbtcb |
| 2546 |
}{faq} |
| 2547 |
\IfLanguageName{french}{\tl_const:Nn \c_@@_table_title_tl {tableau}}{ |
| 2548 |
\IfLanguageName{english}{\tl_const:Nn \c_@@_table_title_tl {table}}{}% |
| 2549 |
}% |
| 2550 |
\IfLanguageName{french}{\tl_const:Nn \c_@@_tables_title_tl {tableaux}}{ |
| 2551 |
\IfLanguageName{english}{\tl_const:Nn \c_@@_tables_title_tl {tables}}{}% |
| 2552 |
}% |
| 2553 |
\newtcbtheorem[list~inside=dbtabularlist,number~within=\g_@@_number_within_tl]{dbtab}{\text_titlecase:n\c_@@_table_title_tl}{% |
| 2554 |
colback=purple!5!white, |
| 2555 |
colframe=purple!75!black, |
| 2556 |
fontupper=\itshape, |
| 2557 |
dbtcb |
| 2558 |
}{tab} |
| 2559 |
\zcRefTypeSetup{dbwarning}{ |
| 2560 |
Name-sg = \text_titlecase:n{ |
| 2561 |
\c_@@_warning_title_tl |
| 2562 |
}, |
| 2563 |
name-sg = \c_@@_warning_title_tl , |
| 2564 |
Name-pl = \text_titlecase:n{ |
| 2565 |
\c_@@_warning_title_tl s |
| 2566 |
}, |
| 2567 |
name-pl = \c_@@_warning_title_tl s , |
| 2568 |
} |
| 2569 |
\zcRefTypeSetup{dbexample}{ |
| 2570 |
Name-sg = \text_titlecase:n{ |
| 2571 |
\c_@@_example_title_tl |
| 2572 |
}, |
| 2573 |
name-sg = \c_@@_example_title_tl , |
| 2574 |
Name-pl = \text_titlecase:n{ |
| 2575 |
\c_@@_example_title_tl s |
| 2576 |
}, |
| 2577 |
name-pl = \c_@@_example_title_tl s , |
| 2578 |
} |
| 2579 |
\zcRefTypeSetup{dbremark}{ |
| 2580 |
Name-sg = \text_titlecase:n{ |
| 2581 |
\c_@@_remark_title_tl |
| 2582 |
}, |
| 2583 |
name-sg = \c_@@_remark_title_tl , |
| 2584 |
Name-pl = \text_titlecase:n{ |
| 2585 |
\c_@@_remark_title_tl s |
| 2586 |
}, |
| 2587 |
name-pl = \c_@@_remark_title_tl s , |
| 2588 |
} |
| 2589 |
\zcRefTypeSetup{dbfaq}{ |
| 2590 |
Name-sg = \text_titlecase:n{ |
| 2591 |
question |
| 2592 |
}, |
| 2593 |
name-sg = question , |
| 2594 |
Name-pl = \text_titlecase:n{ |
| 2595 |
questions |
| 2596 |
}, |
| 2597 |
name-pl = questions , |
| 2598 |
} |
| 2599 |
\zcRefTypeSetup{dbtab}{ |
| 2600 |
Name-sg = \text_titlecase:n{ |
| 2601 |
\c_@@_table_title_tl |
| 2602 |
}, |
| 2603 |
name-sg = \c_@@_table_title_tl , |
| 2604 |
Name-pl = \text_titlecase:n{\c_@@_tables_title_tl}, |
| 2605 |
name-pl = \c_@@_tables_title_tl , |
| 2606 |
} |
| 2607 |
|
| 2608 |
% \end{macrocode} |
| 2609 |
% |
| 2610 |
% \section{Macros for menu entries} |
| 2611 |
% |
| 2612 |
% The following code is borrowed from |
| 2613 |
% \href{https://tex.stackexchange.com/a/40637/18401}{Enrico Gregorio (egreg)}. |
| 2614 |
% \begin{macrocode} |
| 2615 |
\NewDocumentCommand{\menuentry}{ O{} m } |
| 2616 |
{ |
| 2617 |
\group_begin: % to segregate local changes to keys and font |
| 2618 |
\keys_set:nn { menuentry } { #1 } |
| 2619 |
\exp_args:NNx \seq_set_split:Nnn \l_menuentry_seq { \l_menuentry_inputsep_tl } { #2 } |
| 2620 |
\tl_use:N \l_menuentry_font_tl |
| 2621 |
\bool_set_false:N \l_tmpa_bool |
| 2622 |
\seq_map_function:NN \l_menuentry_seq \menuentry_process:n |
| 2623 |
\group_end: |
| 2624 |
} |
| 2625 |
\NewDocumentCommand{\menuentryset} { m } |
| 2626 |
{ \keys_set:nn { menuentry } { #1 } } |
| 2627 |
|
| 2628 |
\tl_new:N \l_menuentry_font_tl |
| 2629 |
\tl_new:N \l_menuentry_sep_tl |
| 2630 |
\tl_new:N \l_menuentry_inputsep_tl |
| 2631 |
\seq_new:N \l_menuentry_seq |
| 2632 |
|
| 2633 |
\cs_new:Npn \menuentry_process:n #1 |
| 2634 |
{ |
| 2635 |
\bool_if:NTF \l_tmpa_bool |
| 2636 |
{ \l_menuentry_sep_tl } |
| 2637 |
{ \bool_set_true:N \l_tmpa_bool } |
| 2638 |
\tl_if_empty:nTF { #1 } {EMPTY~ARG!} { #1 } |
| 2639 |
} |
| 2640 |
\keys_define:nn { menuentry } |
| 2641 |
{ |
| 2642 |
menufont .tl_set:N = \l_menuentry_font_tl , |
| 2643 |
menusep .tl_set:N = \l_menuentry_sep_tl, |
| 2644 |
inputsep .tl_set:N = \l_menuentry_inputsep_tl, |
| 2645 |
} |
| 2646 |
\keys_set:nn { menuentry } |
| 2647 |
{ |
| 2648 |
menufont = \sffamily , |
| 2649 |
menusep = ${}\to{}$ |
| 2650 |
} |
| 2651 |
% \end{macrocode} |
| 2652 |
\menuentryset{inputsep=>} |
| 2653 |
% |
| 2654 |
% \section{Definitions specific to peticular classes or packages} |
| 2655 |
% |
| 2656 |
% \subsection{\Class{yathesis}} |
| 2657 |
% |
| 2658 |
% \begin{macrocode} |
| 2659 |
\tl_const:Nn \c_@@_yat_class_name_tl {yathesis} |
| 2660 |
\tl_const:Nn \c_@@_configuration_directory_string_tl {configuration} |
| 2661 |
\tl_const:Nn \c_@@_configuration_file_string_tl {thesis.cfg} |
| 2662 |
\tl_const:Nn \c_@@_characteristics_file_string_tl {characteristics.tex} |
| 2663 |
\tl_const:Nn \c_@@_macros_file_file_string_tl {macros.tex} |
| 2664 |
\tl_const:Nn \c_@@_auxiliary_directory_string_tl {auxiliaires} |
| 2665 |
\tl_const:Nn \c_@@_glossary_file_string_tl {glossaire.tex} |
| 2666 |
\tl_const:Nn \c_@@_acronyms_file_string_tl {acronymes.tex} |
| 2667 |
\tl_const:Nn \c_@@_symbols_file_string_tl {symboles.tex} |
| 2668 |
\tl_const:Nn \c_@@_images_directory_string_tl {images} |
| 2669 |
\tl_const:Nn \c_@@_thesis_master_file_string_tl {these} |
| 2670 |
% \end{macrocode} |
| 2671 |
% |
| 2672 |
% \begin{macro}{\yat} |
| 2673 |
% \begin{macro}{\yatpa} |
| 2674 |
% \begin{macro}{\yatcl} |
| 2675 |
% \begin{macrocode} |
| 2676 |
\NewDocumentCommand \yat { } |
| 2677 |
{% |
| 2678 |
\textsl{\textsf{\c_@@_yat_class_name_tl}} |
| 2679 |
} |
| 2680 |
\NewDocumentCommand \yatpa { } |
| 2681 |
{% |
| 2682 |
\Package+{\c_@@_yat_class_name_tl}[\itshape][] |
| 2683 |
} |
| 2684 |
\NewDocumentCommand \yatcl { } |
| 2685 |
{% |
| 2686 |
\texorpdfstring{\class+{\c_@@_yat_class_name_tl}[][][\itshape]}{yathesis} |
| 2687 |
} |
| 2688 |
\NewDocumentCommand \yatCl { } |
| 2689 |
{% |
| 2690 |
\texorpdfstring{\Class+{\c_@@_yat_class_name_tl}[][][\itshape]}{classe yathesis} |
| 2691 |
} |
| 2692 |
% \end{macrocode} |
| 2693 |
% \end{macro} |
| 2694 |
% \end{macro} |
| 2695 |
% \end{macro} |
| 2696 |
% |
| 2697 |
% \begin{macrocode} |
| 2698 |
\NewDocumentCommand \configurationdirectory { } |
| 2699 |
{% |
| 2700 |
\c_@@_configuration_directory_string_tl |
| 2701 |
} |
| 2702 |
\NewDocumentCommand \configurationfile { } |
| 2703 |
{% |
| 2704 |
\c_@@_configuration_file_string_tl |
| 2705 |
} |
| 2706 |
\NewDocumentCommand \characteristicsfile { } |
| 2707 |
{% |
| 2708 |
\c_@@_characteristics_file_string_tl |
| 2709 |
} |
| 2710 |
\NewDocumentCommand \macrosfile { } |
| 2711 |
{% |
| 2712 |
\c_@@_macros_file_string_tl |
| 2713 |
} |
| 2714 |
\NewDocumentCommand \auxiliarydirectory { } |
| 2715 |
{% |
| 2716 |
\c_@@_auxiliary_directory_string_tl |
| 2717 |
} |
| 2718 |
\NewDocumentCommand \glossaryfile { } |
| 2719 |
{% |
| 2720 |
\c_@@_glossary_file_string_tl |
| 2721 |
} |
| 2722 |
\NewDocumentCommand \acronymsfile { } |
| 2723 |
{% |
| 2724 |
\c_@@_acronyms_file_string_tl |
| 2725 |
} |
| 2726 |
\NewDocumentCommand \symbolsfile { } |
| 2727 |
{% |
| 2728 |
\c_@@_symbols_file_string_tl |
| 2729 |
} |
| 2730 |
\NewDocumentCommand \imagesdirectory { } |
| 2731 |
{% |
| 2732 |
\c_@@_images_directory_string_tl |
| 2733 |
} |
| 2734 |
\NewDocumentCommand \thesismasterfile { } |
| 2735 |
{% |
| 2736 |
\c_@@_thesis_master_file_string_tl |
| 2737 |
} |
| 2738 |
% \end{macrocode} |
| 2739 |
% |
| 2740 |
% \subsection{\Class{gzt}} |
| 2741 |
% |
| 2742 |
% \begin{macrocode} |
| 2743 |
\tl_const:Nn \c_@@_gzt_class_name_tl {gzt} |
| 2744 |
\tl_const:Nn \c_@@_gztauthor_class_name_tl {gztarticle} |
| 2745 |
\tl_const:Nn \c_@@_journal_short_title_string_tl {Gazette} |
| 2746 |
\tl_const:Nn \c_@@_journal_title_string_tl { |
| 2747 |
\c_@@_journal_short_title_string_tl{}~des~Math\'ematiciens% |
| 2748 |
} |
| 2749 |
% \end{macrocode} |
| 2750 |
% |
| 2751 |
% \begin{macro}{\gzt} |
| 2752 |
% \begin{macro}{\gztcl} |
| 2753 |
% \begin{macrocode} |
| 2754 |
\ProvideDocumentCommand \gzt { s } { |
| 2755 |
\IfBooleanTF {#1} |
| 2756 |
{ |
| 2757 |
\textit{\c_@@_journal_title_string_tl} |
| 2758 |
} |
| 2759 |
{ |
| 2760 |
\textit{\c_@@_journal_short_title_string_tl} |
| 2761 |
} |
| 2762 |
} |
| 2763 |
\ProvideDocumentCommand \gztcl { } |
| 2764 |
{% |
| 2765 |
\Class{\textsl{\texttt{\c_@@_gzt_class_name_tl}}} |
| 2766 |
} |
| 2767 |
\NewDocumentCommand \gztauthor { } |
| 2768 |
{% |
| 2769 |
\textsl{\texttt{\c_@@_gztauthor_class_name_tl}} |
| 2770 |
} |
| 2771 |
\NewDocumentCommand \gztauthorcl { } |
| 2772 |
{% |
| 2773 |
\Class+[https://ctan.org/pkg/gzt]{\gztauthor} |
| 2774 |
} |
| 2775 |
% \end{macrocode} |
| 2776 |
% \end{macro} |
| 2777 |
% \end{macro} |
| 2778 |
% |
| 2779 |
% \subsection{\Class{nwejm}} |
| 2780 |
% |
| 2781 |
% \begin{macrocode} |
| 2782 |
\tl_const:Nn \c_@@_nwejm_class_name_tl {nwejm} |
| 2783 |
\tl_const:Nn \c_@@_nwejmauthor_class_name_tl {nwejmart} |
| 2784 |
% \end{macrocode} |
| 2785 |
% |
| 2786 |
% \begin{macro}{\nwejm} |
| 2787 |
% \begin{macro}{\nwejmcl} |
| 2788 |
% \begin{macrocode} |
| 2789 |
\ProvideDocumentCommand \nwejm { s } { |
| 2790 |
\IfBooleanTF {#1} |
| 2791 |
{ |
| 2792 |
\textit{\c_@@_journal_title_string_tl} |
| 2793 |
} |
| 2794 |
{ |
| 2795 |
\textit{\c_@@_journal_short_title_string_tl} |
| 2796 |
} |
| 2797 |
} |
| 2798 |
\ProvideDocumentCommand \nwejmcl { } |
| 2799 |
{% |
| 2800 |
\Class{\c_@@_nwejm_class_name_tl} |
| 2801 |
} |
| 2802 |
\NewDocumentCommand \nwejmauthor { } |
| 2803 |
{% |
| 2804 |
\class[\c_@@_standard_url_tl\c_@@_nwejm_class_name_tl]{\c_@@_nwejmauthor_class_name_tl} |
| 2805 |
} |
| 2806 |
\NewDocumentCommand \nwejmauthorcl { } |
| 2807 |
{% |
| 2808 |
\Class[\c_@@_standard_url_tl\c_@@_nwejm_class_name_tl]{\c_@@_nwejmauthor_class_name_tl} |
| 2809 |
} |
| 2810 |
% \end{macrocode} |
| 2811 |
% \end{macro} |
| 2812 |
% \end{macro} |
| 2813 |
% |
| 2814 |
% \subsection{\Class{studentreport}} |
| 2815 |
% |
| 2816 |
% \begin{macrocode} |
| 2817 |
\tl_const:Nn \c_@@_studentreport_class_name_tl {studentreport} |
| 2818 |
% \end{macrocode} |
| 2819 |
% |
| 2820 |
% \begin{macro}{\studentreportcl} |
| 2821 |
% \begin{macrocode} |
| 2822 |
\ProvideDocumentCommand \studentreportcl { } |
| 2823 |
{% |
| 2824 |
\Class{\c_@@_studentreport_class_name_tl} |
| 2825 |
} |
| 2826 |
\NewDocumentCommand \studentreportauthor { } |
| 2827 |
{% |
| 2828 |
\class[\c_@@_standard_url_tl\c_@@_studentreport_class_name_tl]{\c_@@_studentreportauthor_class_name_tl} |
| 2829 |
} |
| 2830 |
\NewDocumentCommand \studentreportauthorcl { } |
| 2831 |
{% |
| 2832 |
\Class[\c_@@_standard_url_tl\c_@@_studentreport_class_name_tl]{\c_@@_studentreportauthor_class_name_tl} |
| 2833 |
} |
| 2834 |
% \end{macrocode} |
| 2835 |
% \end{macro} |
| 2836 |
% |
| 2837 |
% \begin{macrocode} |
| 2838 |
\lstdefinestyle{pre-dbtex}{% |
| 2839 |
escapechar=",%" |
| 2840 |
language=[LaTeX]TeX, |
| 2841 |
alsolanguage=[extLaTeX]TeX, |
| 2842 |
% alsolanguage=[glossaries]TeX, |
| 2843 |
% alsolanguage=[biblatex]TeX, |
| 2844 |
alsolanguage=[csquotes]TeX, |
| 2845 |
alsolanguage=[keytheorems]TeX, |
| 2846 |
% alsolanguage=[tcolorbox]TeX, |
| 2847 |
% alsolanguage=[listings]TeX, |
| 2848 |
% alsolanguage=[xcolor]TeX, |
| 2849 |
% alsolanguage=[hyperref]TeX, |
| 2850 |
texcsstyle=*\color{texcs}, |
| 2851 |
breaklines=true, |
| 2852 |
basicstyle=\normalfont\ttfamily, |
| 2853 |
commentstyle=\color{comment}\itshape, |
| 2854 |
directivestyle={\color{directive}}, |
| 2855 |
keywordstyle={\color{red}}, |
| 2856 |
keywordstyle={[1]\color{environment}}, |
| 2857 |
keywordstyle={[2]\color{key}}, |
| 2858 |
keywordstyle={[3]\color{value}}, |
| 2859 |
keywordstyle={[4]\color{keyword4}}, |
| 2860 |
keywordstyle={[5]\color{keyword5}}, |
| 2861 |
moredelim=*[s][\color{math}\ttfamily]{\\[}{\\]}, |
| 2862 |
moredelim=*[s][\color{math}\ttfamily]{$}{$}, |
| 2863 |
stringstyle=\color{string}, |
| 2864 |
columns=flexible, |
| 2865 |
keepspaces, |
| 2866 |
numberstyle=\small, |
| 2867 |
inputencoding=utf8/latin1, |
| 2868 |
aboveskip=\c_@@_listings_aboveskip_skip, |
| 2869 |
belowskip=\c_@@_listings_belowskip_skip |
| 2870 |
}% |
| 2871 |
% \end{macrocode} |
| 2872 |
% |
| 2873 |
% \begin{macrocode} |
| 2874 |
\tl_gclear:N \g_tmpa_tl |
| 2875 |
\bool_if:nT {\g_@@_yad_bool} {% |
| 2876 |
\lstdefinestyle{dbtex}{% |
| 2877 |
style=pre-dbtex,% |
| 2878 |
alsolanguage=[yad]TeX,% |
| 2879 |
alsolanguage=[colophon]TeX,% |
| 2880 |
moretexcs={printbibliography,autocite},% |
| 2881 |
morekeywords=[2]{% |
| 2882 |
colback,refsegment% |
| 2883 |
},% |
| 2884 |
morekeywords=[2]{% |
| 2885 |
red,white% |
| 2886 |
},% |
| 2887 |
}% |
| 2888 |
\tl_gset:Nx \g_tmpa_tl {\c_@@_yat_class_name_tl} |
| 2889 |
} |
| 2890 |
\bool_if:nT {\g_@@_gzt_bool} {% |
| 2891 |
\lstdefinestyle{dbtex}{% |
| 2892 |
style=pre-dbtex,% |
| 2893 |
alsolanguage=[gzt]TeX,% |
| 2894 |
}% |
| 2895 |
\tl_gset:Nx \g_tmpa_tl {\c_@@_gzt_class_name_tl} |
| 2896 |
} |
| 2897 |
\bool_if:nT {\g_@@_nwejm_bool} {% |
| 2898 |
\lstdefinestyle{dbtex}{% |
| 2899 |
style=pre-dbtex,% |
| 2900 |
alsolanguage=[nwejm]TeX,% |
| 2901 |
}% |
| 2902 |
\tl_gset:Nx \g_tmpa_tl {\c_@@_nwejm_class_name_tl} |
| 2903 |
} |
| 2904 |
\bool_if:nT {\g_@@_bthulco_bool} {% |
| 2905 |
\lstdefinestyle{dbtex}{% |
| 2906 |
style=pre-dbtex,% |
| 2907 |
alsolanguage=[bthulco]TeX,% |
| 2908 |
alsolanguage=[Beamer]TeX,% |
| 2909 |
}% |
| 2910 |
} |
| 2911 |
\bool_if:nT {\g_@@_studentreport_bool} {% |
| 2912 |
\lstdefinestyle{dbtex}{% |
| 2913 |
style=pre-dbtex,% |
| 2914 |
alsolanguage=[studentreport]TeX,% |
| 2915 |
}% |
| 2916 |
\tl_gset:Nx \g_tmpa_tl {\c_@@_studentreport_class_name_tl} |
| 2917 |
} |
| 2918 |
\NewDocumentCommand{\currentclass}{}{\g_tmpa_tl} |
| 2919 |
\NewExpandableDocumentCommand{\currenturl}{}{\c_@@_standard_url_tl\g_tmpa_tl} |
| 2920 |
\NewDocumentCommand{\thisclass}{}{\class{\g_tmpa_tl}} |
| 2921 |
\NewDocumentCommand{\Thisclass}{}{\Class{\g_tmpa_tl}} |
| 2922 |
% \end{macrocode} |
| 2923 |
% |
| 2924 |
% \begin{macrocode} |
| 2925 |
\tcbset{dbtcb/.style={% |
| 2926 |
breakable, |
| 2927 |
fonttitle=\bfseries, |
| 2928 |
enlarge~top~by=1mm, |
| 2929 |
separator~sign~dash, |
| 2930 |
label~separator=-, |
| 2931 |
before~title={% |
| 2932 |
\hypersetup{hidelinks}% |
| 2933 |
\tcbset{% |
| 2934 |
color~definition=white, |
| 2935 |
color~hyperlink=white, |
| 2936 |
}% |
| 2937 |
}% |
| 2938 |
}% |
| 2939 |
}% |
| 2940 |
% |
| 2941 |
\tcbset{% |
| 2942 |
doc~head={% |
| 2943 |
% boxsep=4pt,arc=4pt,boxrule=0.6pt,% |
| 2944 |
% frame~style=fill,% |
| 2945 |
% colframe=red!50!black,% |
| 2946 |
interior~style={% |
| 2947 |
fill,% |
| 2948 |
color=yellow!10!white,% |
| 2949 |
}% |
| 2950 |
}% |
| 2951 |
} |
| 2952 |
\tcbset{% |
| 2953 |
/tcb/doclang/environment~content=contenu~de~l'environnement, |
| 2954 |
/tcb/doclang/color=~(couleur), |
| 2955 |
/tcb/doclang/colors=Couleurs, |
| 2956 |
/tcb/doclang/environments=Environnements, |
| 2957 |
/tcb/doclang/keys=Clés, |
| 2958 |
/tcb/doclang/values=Valeurs, |
| 2959 |
/tcb/doclang/pageshort=p., |
| 2960 |
/tcb/documentation~listing~style=dbtex, |
| 2961 |
/tcb/color~command=texcs, |
| 2962 |
/tcb/color~environment=environment, |
| 2963 |
/tcb/color~key=key, |
| 2964 |
/tcb/color~value=value, |
| 2965 |
% index~format=pgfchapter, |
| 2966 |
index~format=off, |
| 2967 |
index~colorize, |
| 2968 |
index~annotate=false, |
| 2969 |
enhanced, |
| 2970 |
listing~style=dbtex, |
| 2971 |
every~box/.style={documentation~listing~style=dbtex}, |
| 2972 |
% index~actual={}, |
| 2973 |
% doc~left~indent=-15mm, |
| 2974 |
% doc~right~indent=-15mm+2em |
| 2975 |
codes/.style={% |
| 2976 |
listing~only, |
| 2977 |
enlarge~top~by=\medskipamount, |
| 2978 |
colframe=ExampleFrame, |
| 2979 |
colback=ExampleBack, |
| 2980 |
fonttitle=\bfseries, |
| 2981 |
fontupper=\small, |
| 2982 |
split=0.5, |
| 2983 |
enhanced, |
| 2984 |
breakable, |
| 2985 |
listing~style=dbtex, |
| 2986 |
}% |
| 2987 |
}% |
| 2988 |
\tcbset{samples/.style={% |
| 2989 |
codes, |
| 2990 |
% listing~options={rangebeginprefix=\\,rangeendsuffix=\}} |
| 2991 |
}% |
| 2992 |
}% |
| 2993 |
\tl_const:Nn \c_@@_updated_style_tl {\scriptsize\sffamily\color{green!50!black}\bfseries} |
| 2994 |
\tl_const:Nn \c_@@_new_style_tl {\scriptsize\sffamily\color{blue!75!black}\bfseries} |
| 2995 |
\IfLanguageName{french}{ |
| 2996 |
\tcbset{doclang/updated={\c_@@_updated_style_tl M.~ à~ j.}\normalcolor\normalfont} |
| 2997 |
}{ |
| 2998 |
\tcbset{doclang/updated=\c_@@_updated_style_tl Updated\normalcolor\normalfont} |
| 2999 |
}% |
| 3000 |
\IfLanguageName{french}{ |
| 3001 |
\tcbset{doclang/new=\c_@@_new_style_tl Nouv.\normalcolor\normalfont} |
| 3002 |
}{ |
| 3003 |
\tcbset{doclang/new=\c_@@_new_style_tl New\normalcolor\normalfont} |
| 3004 |
}% |
| 3005 |
% \IfLanguageName{french}{}{ |
| 3006 |
% \renewcommand*{\tcbdocupdated}[1]{\scriptsize\sffamily\textcolor{blue!75!black}{\bfseries% |
| 3007 |
% \textsc{m.-à-j.}~:}~#1} |
| 3008 |
% }% |
| 3009 |
% |
| 3010 |
\lstset{style=dbtex} |
| 3011 |
\sys_if_engine_pdftex:TF |
| 3012 |
{ |
| 3013 |
\ExplSyntaxOff |
| 3014 |
\lstMakeShortInline[style=dbtex]| |
| 3015 |
\ExplSyntaxOn |
| 3016 |
}{ |
| 3017 |
\lstMakeShortInline[style=dbtex]× |
| 3018 |
} |
| 3019 |
% \end{macrocode} |
| 3020 |
% |
| 3021 |
% We PDFdisable some commands in order to avoid troubles in bookmarks. |
| 3022 |
% \begin{macrocode} |
| 3023 |
\pdfstringdefDisableCommands{% |
| 3024 |
\let\textcolor\@gobble |
| 3025 |
\def\yatcl{yathesis} |
| 3026 |
\def\yatCl{classe~yathesis} |
| 3027 |
\def\program#1{#1} |
| 3028 |
} |
| 3029 |
% \end{macrocode} |
| 3030 |
% \end{macro} |
| 3031 |
% \end{macro} |
| 3032 |
% \end{macro} |
| 3033 |
% |
| 3034 |
% We switch to a \enquote{normal} category code régime. |
| 3035 |
% \begin{macrocode} |
| 3036 |
\ExplSyntaxOff |
| 3037 |
% \end{macrocode} |
| 3038 |
% |
| 3039 |
% \begin{macrocode} |
| 3040 |
%</package> |
| 3041 |
% \end{macrocode} |
| 3042 |
% |
| 3043 |
% \begin{macrocode} |
| 3044 |
%<*xindy-style> |
| 3045 |
% \end{macrocode} |
| 3046 |
% |
| 3047 |
% \begin{macrocode} |
| 3048 |
;; (define-attributes ("example")) |
| 3049 |
;; (define-attributes ("definition")) |
| 3050 |
(define-attributes (("default" "definition" "example"))) |
| 3051 |
(define-attributes ("textsf")) |
| 3052 |
(markup-locref :open "\hyperpage{" :close "}" :attr "default") |
| 3053 |
(markup-locref :open "\textbf{\hyperpage{" :close "}}" :attr "definition") |
| 3054 |
(markup-locref :open "\textit{\hyperpage{" :close "}}" :attr "textit") |
| 3055 |
(markup-locref :open "\textsf{\hyperpage{" :close "}}" :attr "textsf") |
| 3056 |
(markup-locref :open "\emph{\hyperpage{" :close "}}" :attr "example") |
| 3057 |
|
| 3058 |
(markup-crossref-list :class "see" :open "\seelink{" :sep "; " :close "}{}") |
| 3059 |
|
| 3060 |
(define-crossref-class "hyperindexformat") |
| 3061 |
(markup-crossref-list :class "hyperindexformat" :open |
| 3062 |
"\hyperindexformat{" :sep "; " :close "}{}") |
| 3063 |
|
| 3064 |
;; (merge-to "definition" "default" :drop) |
| 3065 |
|
| 3066 |
(markup-locref :open "\hyperpage{" :close "}") |
| 3067 |
(markup-locref :open "\hyperpage{" :close "}" :attr "hyperpage") |
| 3068 |
|
| 3069 |
|
| 3070 |
(markup-keyword-list :open "\targetindexentry{" :close "}" ) |
| 3071 |
(markup-keyword-list :open "\targetindexentryi{" :close "}" :depth 1) |
| 3072 |
(markup-keyword-list :open "\targetindexentryii{" :close "}" :depth 2) |
| 3073 |
|
| 3074 |
(markup-index :open "~n |
| 3075 |
% \bookmarksetup{open} |
| 3076 |
\begin{theindex} |
| 3077 |
\providecommand*\lettergroupDefault[1]{} |
| 3078 |
\providecommand*\lettergroup[1]{% |
| 3079 |
\belowpdfbookmark{#1}{\csuse{DBD@index@symbolic@name}:#1}% |
| 3080 |
\par\indexheading{#1}{\csuse{DBD@index@symbolic@name}}\par |
| 3081 |
% \nopagebreak |
| 3082 |
} |
| 3083 |
~n" |
| 3084 |
:close "~n~n\end{theindex}~n" |
| 3085 |
:tree) |
| 3086 |
% \end{macrocode} |
| 3087 |
% |
| 3088 |
% \begin{macrocode} |
| 3089 |
%</xindy-style> |
| 3090 |
% \end{macrocode} |
| 3091 |
% |
| 3092 |
% \begin{macrocode} |
| 3093 |
%<*xindy-style-chng> |
| 3094 |
% \end{macrocode} |
| 3095 |
% |
| 3096 |
% \begin{macrocode} |
| 3097 |
(define-crossref-class "hyperindexformat") |
| 3098 |
(markup-crossref-list :class "hyperindexformat" :open |
| 3099 |
"\hyperindexformat{" :sep "; " :close "}{}") |
| 3100 |
|
| 3101 |
(markup-locref :open "\hyperpage{" :close "}") |
| 3102 |
|
| 3103 |
(markup-locref-list :sep ", ") |
| 3104 |
(markup-locclass-list :open "\hspace*{\fill}\nobreakspace" :close "" ) |
| 3105 |
|
| 3106 |
(define-attributes (("gobble" "default"))) |
| 3107 |
(markup-locref :open "\makeatletter\@gobble{" :close "}\makeatother" :attr "gobble") |
| 3108 |
% (markup-locclass-list :open "" :sep "") |
| 3109 |
|
| 3110 |
% (markup-keyword-list :open "{\small " :close "}" ) |
| 3111 |
% (markup-keyword-list :open "{\small " :close "}" :depth 1) |
| 3112 |
% (markup-keyword-list :open "{\small " :close "}" :depth 2) |
| 3113 |
|
| 3114 |
(markup-index :open "~n |
| 3115 |
\clearpage |
| 3116 |
\phantomsection |
| 3117 |
\begin{theindex} |
| 3118 |
\small |
| 3119 |
\providecommand*\lettergroupDefault[1]{} |
| 3120 |
\providecommand*\lettergroup[1]{} |
| 3121 |
~n" |
| 3122 |
:close "~n~n\end{theindex}~n" |
| 3123 |
:tree) |
| 3124 |
% \end{macrocode} |
| 3125 |
% |
| 3126 |
% \begin{macrocode} |
| 3127 |
%</xindy-style-chng> |
| 3128 |
% \end{macrocode} |
| 3129 |
% |
| 3130 |
% \end{implementation} |
| 3131 |
% |
| 3132 |
% \PrintChanges |
| 3133 |
% |
| 3134 |
% \PrintIndex |
| 3135 |
\endinput |
| 3136 |
|
| 3137 |
%%% Local Variables: |
| 3138 |
%%% mode: doctex |
| 3139 |
%%% TeX-engine: luatex |
| 3140 |
%%% TeX-command-default: "TeX" |
| 3141 |
%%% TeX-master: t |
| 3142 |
%%% ispell-local-dictionary: "francais" |
| 3143 |
%%% End: |