| 1 |
% \iffalse meta-comment |
| 2 |
% |
| 3 |
% File: gzt.dtx Copyright (C) 2014-2025 by |
| 4 |
% Denis Bitouzé <[email protected]> |
| 5 |
% |
| 6 |
% It may be distributed and/or modified under the conditions of the |
| 7 |
% LaTeX Project Public License (LPPL), either version 1.3c of this |
| 8 |
% license or (at your option) any later version. The latest version |
| 9 |
% of this license is in the file |
| 10 |
% |
| 11 |
% http://www.latex-project.org/lppl.txt |
| 12 |
% |
| 13 |
% This work has the LPPL maintenance status `maintained'. |
| 14 |
% |
| 15 |
% The Current Maintainer of this work is Denis Bitouzé. |
| 16 |
% |
| 17 |
% This work consists of the files gzt.dtx and gzt.ins |
| 18 |
% and the derived filebase gzt.cls. |
| 19 |
% |
| 20 |
%<*internal> |
| 21 |
\iffalse |
| 22 |
%</internal> |
| 23 |
% |
| 24 |
% \begin{macrocode} |
| 25 |
%<*readme-pictograms> |
| 26 |
% \end{macrocode} |
| 27 |
% |
| 28 |
% \begin{macrocode} |
| 29 |
# Pictograms possibly missing |
| 30 |
|
| 31 |
The current directory is supposed to contain the (files of the) logos and |
| 32 |
pictograms that illustrate the Gazette whole issues compiled by the SMF. As non |
| 33 |
free materials, they are likely to miss here and, in such a case, the `gzt` |
| 34 |
class will be replace them by a dummy image (borrowed from the `mwe` package). |
| 35 |
% \end{macrocode} |
| 36 |
% |
| 37 |
% \begin{macrocode} |
| 38 |
%</readme-pictograms> |
| 39 |
% \end{macrocode} |
| 40 |
% |
| 41 |
% \begin{macrocode} |
| 42 |
%<*latexmkrc> |
| 43 |
% \end{macrocode} |
| 44 |
% |
| 45 |
% \begin{macrocode} |
| 46 |
$pdf_mode = 1; |
| 47 |
|
| 48 |
$bibtex_use = 1; |
| 49 |
$bibtex = 'biber %O %B'; |
| 50 |
|
| 51 |
add_cus_dep('glo', 'gls', 0, 'makeglossaries'); |
| 52 |
add_cus_dep('acn', 'acr', 0, 'makeglossaries'); |
| 53 |
add_cus_dep('slo', 'sls', 0, 'makeglossaries'); |
| 54 |
sub makeglossaries{ |
| 55 |
system( "makeglossaries \"$_[0]\"" ); |
| 56 |
} |
| 57 |
|
| 58 |
$makeindex = 'texindy -L french -C utf8'; |
| 59 |
|
| 60 |
push @generated_exts, 'acn', 'acr', 'alg', 'bcf', 'fls', 'gl*', 'sbl*', 'sl*', 'sym*' ; |
| 61 |
|
| 62 |
$clean_ext .= 'synctex.gz* run.xml tex.bak ind idx out bbl bcf fdb_latexmk run |
| 63 |
tdo listing *~ lo* unq mw tcbtemp ins drv atfi db* ain' ; |
| 64 |
|
| 65 |
$quote_filenames = 0; |
| 66 |
% \end{macrocode} |
| 67 |
% |
| 68 |
% \begin{macrocode} |
| 69 |
%</latexmkrc> |
| 70 |
% \end{macrocode} |
| 71 |
% |
| 72 |
% \begin{macrocode} |
| 73 |
%<*ctanomat> |
| 74 |
% \end{macrocode} |
| 75 |
% This is a description file for ctan-o-mat. |
| 76 |
% It manages uploads of a package to |
| 77 |
% CTAN -- the Comprehensive TeX Archive Network. |
| 78 |
% |
| 79 |
% The syntax is roughly oriented towards (La)TeX. |
| 80 |
% Two form of the macros are used. The simple macros take one argument |
| 81 |
% in braces. Here the argument may not contain embedded macros. |
| 82 |
% |
| 83 |
% The second form uses an environment enclosed in \begin{}/\end{}. |
| 84 |
% In the long text fields logo macros can be used. |
| 85 |
% |
| 86 |
% You should enter your values between the begin and the end of the |
| 87 |
% named type. |
| 88 |
% ------------------------------------------------------------------------- |
| 89 |
% This field contains the CTAN id of the package. |
| 90 |
% The value is optional. |
| 91 |
% The value is restricted to 32 characters. |
| 92 |
\pkg{gzt} |
| 93 |
% ------------------------------------------------------------------------- |
| 94 |
% This field contains the version of the package. |
| 95 |
% The value is optional. |
| 96 |
% The value is restricted to 32 characters. |
| 97 |
\version{1.1.5 2025-03-13} |
| 98 |
% ------------------------------------------------------------------------- |
| 99 |
% This field contains the name of the author(s). |
| 100 |
% The value is optional. |
| 101 |
% The value is restricted to 128 characters. |
| 102 |
\author{Denis Bitouzé} |
| 103 |
% ------------------------------------------------------------------------- |
| 104 |
% This field contains the email address of the uploader. |
| 105 |
% The value is an email address. |
| 106 |
% The value is restricted to 255 characters. |
| 107 |
\email{[email protected]} |
| 108 |
% ------------------------------------------------------------------------- |
| 109 |
% This field contains the name of the uploader. |
| 110 |
% The value is restricted to 255 characters. |
| 111 |
\uploader{Denis Bitouzé} |
| 112 |
% ------------------------------------------------------------------------- |
| 113 |
% This field contains the directory on CTAN. |
| 114 |
% The value is optional. |
| 115 |
% The value is restricted to 255 characters. |
| 116 |
\ctanPath{/macros/latex/contrib/gzt} |
| 117 |
% ------------------------------------------------------------------------- |
| 118 |
% This field contains the license. |
| 119 |
% The value is optional. |
| 120 |
% The value is restricted to 2048 characters. |
| 121 |
% Multiple values are allowed. |
| 122 |
\license{lppl1.3c} |
| 123 |
% ------------------------------------------------------------------------- |
| 124 |
% This field contains the URL of the home page. |
| 125 |
% The value is optional. |
| 126 |
% The value is a URL. |
| 127 |
% The value is restricted to 255 characters. |
| 128 |
% Multiple values are allowed. |
| 129 |
\home{} |
| 130 |
% ------------------------------------------------------------------------- |
| 131 |
% This field contains the URL of the bug tracker. |
| 132 |
% The value is optional. |
| 133 |
% The value is a URL. |
| 134 |
% The value is restricted to 255 characters. |
| 135 |
% Multiple values are allowed. |
| 136 |
\bugtracker{https://github.com/dbitouze/gzt/issues/} |
| 137 |
% ------------------------------------------------------------------------- |
| 138 |
% This field contains the support channel. |
| 139 |
% The value is optional. |
| 140 |
% The value is a URL. |
| 141 |
% The value is restricted to 255 characters. |
| 142 |
% Multiple values are allowed. |
| 143 |
\support{} |
| 144 |
% ------------------------------------------------------------------------- |
| 145 |
% This field contains the version management. |
| 146 |
% The value is optional. |
| 147 |
% The value is a URL. |
| 148 |
% The value is restricted to 255 characters. |
| 149 |
% Multiple values are allowed. |
| 150 |
\repository{https://github.com/dbitouze/gzt/} |
| 151 |
% ------------------------------------------------------------------------- |
| 152 |
% This field contains the developer's channel. |
| 153 |
% The value is optional. |
| 154 |
% The value is a URL. |
| 155 |
% The value is restricted to 255 characters. |
| 156 |
% Multiple values are allowed. |
| 157 |
\development{https://github.com/dbitouze/gzt/} |
| 158 |
% ------------------------------------------------------------------------- |
| 159 |
% This field contains the update indicator; true for update. |
| 160 |
% The value is optional. |
| 161 |
% The value is restricted to 8 characters. |
| 162 |
\update{true} |
| 163 |
% ------------------------------------------------------------------------- |
| 164 |
% This field contains the topics id. |
| 165 |
% The value is optional. |
| 166 |
% The value is restricted to 1024 characters. |
| 167 |
% Multiple values are allowed. |
| 168 |
\topic{} |
| 169 |
% ------------------------------------------------------------------------- |
| 170 |
% This field contains the text for the mail announcement. |
| 171 |
% The value is optional. |
| 172 |
% The value is restricted to 8192 characters. |
| 173 |
\begin{announcement} |
| 174 |
\end{announcement} |
| 175 |
% ------------------------------------------------------------------------- |
| 176 |
% This field contains the one-liner for the package. |
| 177 |
% The value is optional. |
| 178 |
% The value is restricted to 128 characters. |
| 179 |
\summary{Bundle of classes for “La Gazette de la Société Mathématique de France”} |
| 180 |
% ------------------------------------------------------------------------- |
| 181 |
% This field contains the descriptive abstract for the package. |
| 182 |
% The value is optional. |
| 183 |
% The value is restricted to 4096 characters. |
| 184 |
\begin{description} |
| 185 |
This bundle provides two classes and `BibLaTeX` styles for the French journal |
| 186 |
[“La Gazette de la Société Mathématique de |
| 187 |
France”](https://smf.emath.fr/les-publications/la-gazette): |
| 188 |
|
| 189 |
- gzt for the complete issues of the journal, aimed at the Gazette’s team, |
| 190 |
- gztarticle, intended for authors who wish to publish an article in the |
| 191 |
Gazette. This class’s goals are to |
| 192 |
- faithfully reproduce the layout of the Gazette, thus enabling the authors to |
| 193 |
be able to work their document in actual conditions, and |
| 194 |
- provide a number of tools (commands and environments) to facilitate the |
| 195 |
drafting of documents, in particular those containing mathematical formulas. |
| 196 |
\end{description} |
| 197 |
% ------------------------------------------------------------------------- |
| 198 |
% This field contains the note to the CTAN upload managers. |
| 199 |
% The value is optional. |
| 200 |
% The value is restricted to 2048 characters. |
| 201 |
\begin{note} |
| 202 |
\end{note} |
| 203 |
% ------------------------------------------------------------------------- |
| 204 |
% This field contains the archive file. |
| 205 |
% The value is the file name of the archive to be uploaded. |
| 206 |
% It may have a relative or absolute directory. |
| 207 |
\file{../dtx-forge/gzt.zip} |
| 208 |
% \begin{macrocode} |
| 209 |
%</ctanomat> |
| 210 |
% \end{macrocode} |
| 211 |
% |
| 212 |
% \begin{macrocode} |
| 213 |
%<*changelog> |
| 214 |
% \end{macrocode} |
| 215 |
# [Unreleased] |
| 216 |
|
| 217 |
# [1.1.5] - 2025-03-13 |
| 218 |
|
| 219 |
Minor changes |
| 220 |
|
| 221 |
# [1.1.4] - 2024-03-09 |
| 222 |
|
| 223 |
## Fixed |
| 224 |
Some color changing in breakable boxes may not survive the break to the next |
| 225 |
box. |
| 226 |
|
| 227 |
## Changed |
| 228 |
- Editorial and President's word now in justified paragraphs. |
| 229 |
- New ornaments color handling. |
| 230 |
- Better banner. |
| 231 |
- `\maketitle` can now hide the blue rule and bullet, the title and the title in |
| 232 |
the toc. |
| 233 |
- Extension of `\printbibliography` features to `\bibbycategory`. |
| 234 |
- Boxed issue number title changed in case of special editions. |
| 235 |
|
| 236 |
# [1.1.3] - 2022-06-13 |
| 237 |
|
| 238 |
## Added |
| 239 |
New options for special special (!) editions |
| 240 |
|
| 241 |
# [1.1.2] - 2022-03-18 |
| 242 |
|
| 243 |
## Changed |
| 244 |
Feminization added in a string. |
| 245 |
|
| 246 |
# [1.1.1] - 2021-12-16 |
| 247 |
|
| 248 |
## Fixed |
| 249 |
All bibliographic numeric labels equal 0 |
| 250 |
|
| 251 |
# [1.1.0] - 2021-11-30 |
| 252 |
|
| 253 |
## Added |
| 254 |
- (Far to perfect) Documentation of the code available as a PDF file. |
| 255 |
|
| 256 |
## Changed |
| 257 |
- New Gazette's "logo". |
| 258 |
- Allow acknowledgments despite empty minibios. |
| 259 |
- `easyscsl` option of `kpfonts` removed as now useless. |
| 260 |
- Table of contents and president message forced to start on an odd page. |
| 261 |
- Complete reworked of the `.dtx` source file in order to provide the documented |
| 262 |
code as a PDF file. |
| 263 |
|
| 264 |
## Fixed |
| 265 |
- Backcover not properly printed. |
| 266 |
|
| 267 |
# [1.0.1] - 2021-02-14 |
| 268 |
|
| 269 |
## Added |
| 270 |
- Option to create moral reports (`gzt` class only). |
| 271 |
- Local (to a given article) table of contents |
| 272 |
|
| 273 |
## Changed |
| 274 |
- The class now relies on the new LaTeX core hooks. |
| 275 |
- Documentation revised. |
| 276 |
- Various improvements. |
| 277 |
|
| 278 |
## Fixed |
| 279 |
- Superflous uppercases removed (cont.). |
| 280 |
- `gztcode` environments partially gobble their content under certain |
| 281 |
conditions. |
| 282 |
- Various other small bugs. |
| 283 |
|
| 284 |
# [1.0.0] - 2020-03-17 |
| 285 |
|
| 286 |
## Added |
| 287 |
- CHANGELOG file (following https://keepachangelog.com/en/1.0.0/). |
| 288 |
- Semantic versionning (following https://semver.org/). |
| 289 |
|
| 290 |
## Changed |
| 291 |
- Compilation date displayed only if the issue number is not specified |
| 292 |
(`gztarticle` class only). |
| 293 |
- Prevent column breaks within items of "Comité de rédaction" (at the price of |
| 294 |
unbalanced columns). |
| 295 |
|
| 296 |
## Fixed |
| 297 |
- Track changes in `expl3`. |
| 298 |
- Superflous uppercases removed. |
| 299 |
- Index directive in `latexmk` config file modernized. |
| 300 |
|
| 301 |
# [0.98] - 2018-04-09 |
| 302 |
|
| 303 |
## Changed |
| 304 |
- Support for `biblatex` 3.8 changes. |
| 305 |
- Track changes in `expl3`. |
| 306 |
- Special editions implemented. |
| 307 |
|
| 308 |
## Fixed |
| 309 |
- Several bug fixes. |
| 310 |
|
| 311 |
# [0.96] - 2017-04-07 |
| 312 |
|
| 313 |
## Changed |
| 314 |
- Figures and tables: |
| 315 |
- with recurrent label and number but without any caption, |
| 316 |
- with caption but without any recurrent label nor numbered, |
| 317 |
implemented. |
| 318 |
- Frames without any label, number nor caption implemented. |
| 319 |
- Track changes in `expl3`. |
| 320 |
|
| 321 |
# [0.9] - 2015-05-02 |
| 322 |
|
| 323 |
- Initial CTAN release of the `gzt` bundle. |
| 324 |
% \begin{macrocode} |
| 325 |
%</changelog> |
| 326 |
% \end{macrocode} |
| 327 |
% |
| 328 |
%<*readme> |
| 329 |
-------:| ----------------------------------------------------------------- |
| 330 |
gzt:| Bundle of two classes and BibLaTeX styles for the French journal “La Gazette de la Société Mathématique de France” |
| 331 |
Author:| Denis Bitouzé |
| 332 |
E-mail:| [email protected] |
| 333 |
License:| Released under the LaTeX Project Public License v1.3c or later |
| 334 |
See:| http://www.latex-project.org/lppl.txt |
| 335 |
|
| 336 |
|
| 337 |
This bundle provides two classes and BibLaTeX styles for the French journal [“La |
| 338 |
Gazette de la Société Mathématique de France”](https://smf.emath.fr/les-publications/la-gazette): |
| 339 |
|
| 340 |
- `gzt` for the complete issues of the journal, aimed at the Gazette’s team, |
| 341 |
- `gztarticle`, intended for authors who wish to publish an article in the |
| 342 |
Gazette. This class’s goals are to |
| 343 |
- faithfully reproduce the layout of the Gazette, thus enabling the authors to |
| 344 |
be able to work their document in actual conditions, and |
| 345 |
- provide a number of tools (commands and environments) to facilitate the |
| 346 |
drafting of documents, in particular those containing mathematical formulas. |
| 347 |
%</readme> |
| 348 |
%<*internal> |
| 349 |
\fi |
| 350 |
\def\nameofplainTeX{plain} |
| 351 |
\ifx\fmtname\nameofplainTeX\else |
| 352 |
\expandafter\begingroup |
| 353 |
\fi |
| 354 |
%</internal> |
| 355 |
%<*class|class-article|install> |
| 356 |
\def\gztfileversion{1.1.5} |
| 357 |
\def\gztfiledate{2025-03-13} |
| 358 |
%</class|class-article|install> |
| 359 |
%<*install> |
| 360 |
\input l3docstrip.tex |
| 361 |
\keepsilent |
| 362 |
\askforoverwritefalse |
| 363 |
\preamble |
| 364 |
-------:| ----------------------------------------------------------------- |
| 365 |
gzt:| Bundle of two classes and BibLaTeX styles for the French journal [“La Gazette de la Société Mathématique de France” |
| 366 |
Author:| Denis Bitouzé |
| 367 |
E-mail:| [email protected] |
| 368 |
License:| Released under the LaTeX Project Public License v1.3c or later |
| 369 |
See:| http://www.latex-project.org/lppl.txt |
| 370 |
\endpreamble |
| 371 |
\postamble |
| 372 |
|
| 373 |
Copyright (C) 2014-2024 by Denis Bitouzé <[email protected]> |
| 374 |
|
| 375 |
This work may be distributed and/or modified under the |
| 376 |
conditions of the LaTeX Project Public License (LPPL), either |
| 377 |
version 1.3c of this license or (at your option) any later |
| 378 |
version. The latest version of this license is in the file: |
| 379 |
|
| 380 |
http://www.latex-project.org/lppl.txt |
| 381 |
|
| 382 |
This work is "maintained" (as per LPPL maintenance status) by |
| 383 |
Denis Bitouzé. |
| 384 |
|
| 385 |
This work consists of the file gzt.dtx and a Makefile. |
| 386 |
Running "make" generates the derived files README, gzt.pdf and gzt.cls. |
| 387 |
Running "make inst" installs the files in the user's TeX tree. |
| 388 |
Running "make install" installs the files in the local TeX tree. |
| 389 |
|
| 390 |
\endpostamble |
| 391 |
% |
| 392 |
\def\GZT@classname{\jobname} |
| 393 |
\def\GZT@logo{\GZT@classname-logo} |
| 394 |
\def\GZT@addons{addons} |
| 395 |
\usedir{tex/latex/\GZT@classname} |
| 396 |
\generate{ |
| 397 |
\file{\[email protected]}{\from{\jobname.dtx}{class}} |
| 398 |
\file{\GZT@classname article.cls}{\from{\jobname.dtx}{class-article}} |
| 399 |
\file{\[email protected]}{\from{\jobname.dtx}{datamodel}} |
| 400 |
\file{\[email protected]}{\from{\jobname.dtx}{languagemodel}} |
| 401 |
\nopreamble\nopostamble |
| 402 |
\file{\[email protected]}{\from{\jobname.dtx}{configuration}} |
| 403 |
} |
| 404 |
\usedir{tex/latex/\GZT@classname/images} |
| 405 |
\generate{ |
| 406 |
\nopreamble\nopostamble |
| 407 |
\file{README-PICTOGRAMS.md}{\from{\jobname.dtx}{readme-pictograms}} |
| 408 |
} |
| 409 |
%</install> |
| 410 |
%<install>\endbatchfile |
| 411 |
%<*internal> |
| 412 |
\usedir{.} |
| 413 |
\generate{ |
| 414 |
\nopreamble\nopostamble |
| 415 |
\file{\[email protected]}{\from{\jobname.dtx}{ctanomat}} |
| 416 |
}% |
| 417 |
\usedir{source/latex/\GZT@classname} |
| 418 |
\generate{ |
| 419 |
\file{\[email protected]}{\from{\jobname.dtx}{install}} |
| 420 |
\nopreamble\nopostamble |
| 421 |
\file{\[email protected]}{\from{\jobname.dtx}{class-logo}} |
| 422 |
} |
| 423 |
\usedir{doc/latex/\GZT@classname} |
| 424 |
\generate{ |
| 425 |
\nopreamble\nopostamble |
| 426 |
\file{README.md}{\from{\jobname.dtx}{readme}} |
| 427 |
\file{CHANGELOG.md}{\from{\jobname.dtx}{changelog}} |
| 428 |
} |
| 429 |
\usedir{doc/latex/\GZT@classname/french} |
| 430 |
\generate{ |
| 431 |
\nopreamble\nopostamble |
| 432 |
\file{latexmkrc}{\from{\jobname.dtx}{latexmkrc}} |
| 433 |
} |
| 434 |
% \usedir{doc/latex/\GZT@classname/\GZT@addons/completion} |
| 435 |
% \generate{ |
| 436 |
% \nopreamble\nopostamble |
| 437 |
% \file{\[email protected]}{\from{\jobname.dtx}{class-cwl}} |
| 438 |
% } |
| 439 |
\ifx\fmtname\nameofplainTeX |
| 440 |
\expandafter\endbatchfile |
| 441 |
\else |
| 442 |
\expandafter\endgroup |
| 443 |
\fi |
| 444 |
%</internal> |
| 445 |
% \fi |
| 446 |
% |
| 447 |
% \iffalse |
| 448 |
%<*driver> |
| 449 |
\ProvidesFile{gzt.dtx} |
| 450 |
\documentclass[full,english]{l3doc} |
| 451 |
\usepackage[a4paper,inner=5cm,landscape]{geometry} |
| 452 |
\usepackage[gzt]{denisbdoc} |
| 453 |
\usepackage{csquotes} |
| 454 |
\usepackage{babel} |
| 455 |
\usepackage{hyperref} |
| 456 |
% \usepackage[numbered]{hypdoc} |
| 457 |
|
| 458 |
\EnableCrossrefs |
| 459 |
\CodelineIndex |
| 460 |
\RecordChanges |
| 461 |
\begin{document} |
| 462 |
\DocInput{\jobname.dtx} |
| 463 |
\end{document} |
| 464 |
%</driver> |
| 465 |
% \fi |
| 466 |
% |
| 467 |
% \GetFileInfo{\jobname.dtx} |
| 468 |
% |
| 469 |
% \title{\textsf{gzt} --- A bundle of two classes and \Pkg{biblatex} styles |
| 470 |
% for the French journal\\“La Gazette de la Société Mathématique de |
| 471 |
% France”\thanks{This file describes version \fileversion, last revised |
| 472 |
% \filedate.}\\[.25cm]Implementation% |
| 473 |
% } |
| 474 |
% \author{Denis Bitouzé\thanks{E-mail: \nolinkurl{[email protected]}}} |
| 475 |
% \date{Released \filedate} |
| 476 |
% |
| 477 |
%\maketitle |
| 478 |
% |
| 479 |
% \begin{documentation} |
| 480 |
% |
| 481 |
% \end{documentation} |
| 482 |
% |
| 483 |
% \begin{implementation} |
| 484 |
% |
| 485 |
% \changes{v0.9}{2015/05/02}{First CTAN version} |
| 486 |
% \changes{v0.95}{2016/04/03}{Second CTAN version} |
| 487 |
% \changes{v0.95a}{2016/10/24}{Third CTAN version} |
| 488 |
% \changes{v0.95b}{2016/10/24}{Fourth CTAN version} |
| 489 |
% \changes{v0.96}{2017/01/01}{Fifth CTAN version} |
| 490 |
% \changes{v0.97}{2017/02/15}{Sixth CTAN version} |
| 491 |
% \changes{v0.98}{2018/04/07}{Seventh CTAN version. Implementation of special |
| 492 |
% editions.} |
| 493 |
% \changes{v1.0.0}{2020-03-17}{Eighth CTAN version.} |
| 494 |
% \changes{v1.0.1}{2021-02-14}{Nineth CTAN version.} |
| 495 |
% \changes{v1.1.0}{2021-11-30}{Tenth CTAN version.} |
| 496 |
% \changes{v1.1.1}{2021-12-16}{Eleventh CTAN version.} |
| 497 |
% \changes{v1.1.2}{2022-03-18}{Twelfth CTAN version.} |
| 498 |
% |
| 499 |
% \begin{abstract} |
| 500 |
% This bundle provides two classes and \Pkg{biblatex} styles for the French journal |
| 501 |
% \href{https://smf.emath.fr/les-publications/la-gazette}{“La Gazette de la |
| 502 |
% Société Mathématique de France”}: |
| 503 |
% \begin{itemize} |
| 504 |
% \item \cls{gzt} for the complete issues of the journal, aimed at the |
| 505 |
% Gazette’s team, |
| 506 |
% \item \cls{gztarticle}, intended for authors who wish to publish an article in the |
| 507 |
% Gazette. This class’s goals are to |
| 508 |
% \begin{itemize} |
| 509 |
% \item faithfully reproduce the layout of the Gazette, thus enabling the |
| 510 |
% authors to be able to work their document in actual conditions, and |
| 511 |
% \item provide a number of tools (commands and environments) to facilitate |
| 512 |
% the drafting of documents, in particular those containing mathematical |
| 513 |
% formulas. |
| 514 |
% \end{itemize} |
| 515 |
% \end{itemize} |
| 516 |
% \end{abstract} |
| 517 |
% |
| 518 |
% \StopEventually{\PrintIndex\PrintChanges} |
| 519 |
% |
| 520 |
% \section{Auxiliary files} |
| 521 |
% |
| 522 |
% \subsection{Gazette's logo} |
| 523 |
% \label{sec:gzts-logo} |
| 524 |
% Before the code of the \Class{gzt} by itself, we give the begining of the |
| 525 |
% code of the source file of the Gazette's logo (to be compiled with ×lualatex×). |
| 526 |
% \begin{macrocode} |
| 527 |
%<*class-logo> |
| 528 |
% \end{macrocode} |
| 529 |
% |
| 530 |
% \begin{macrocode} |
| 531 |
\documentclass[varwidth]{standalone} |
| 532 |
\usepackage{fontspec} |
| 533 |
\usepackage[cmyk]{xcolor} |
| 534 |
\usepackage{xparse} |
| 535 |
\setmainfont{HelveticaNeueLTStd-ThEx} |
| 536 |
\newfontfamily\dela{HelveticaNeueLTStd-Th} |
| 537 |
\newfontfamily\mathematiciens{HelveticaNeueLTStd-Lt} |
| 538 |
\ExplSyntaxOn |
| 539 |
\tl_new:N \l__gzt_frontmatter_head_text_tl |
| 540 |
\tl_set:Nn \l__gzt_frontmatter_head_text_tl { |
| 541 |
\addfontfeature{LetterSpace=10} |
| 542 |
\textcolor{__gzt_generic_light_color}{ |
| 543 |
\fontsize{21}{0}\selectfont |
| 544 |
la |
| 545 |
\hspace{3mm} |
| 546 |
\fontsize{46}{0}\selectfont |
| 547 |
Gazette |
| 548 |
} |
| 549 |
\\[1.7mm] |
| 550 |
\fontsize{12}{0}\selectfont |
| 551 |
\mbox{}\hfill% |
| 552 |
\textcolor{__gzt_generic_light_color}{ |
| 553 |
\dela |
| 554 |
de~ la~ |
| 555 |
} |
| 556 |
\textcolor{__gzt_generic_dark_color}{ |
| 557 |
\mathematiciens |
| 558 |
Société~ Mathématique~ de~ France |
| 559 |
} |
| 560 |
} |
| 561 |
\NewDocumentCommand \frontmatterheadtext {} { |
| 562 |
\l__gzt_frontmatter_head_text_tl |
| 563 |
} |
| 564 |
% \end{macrocode} |
| 565 |
% |
| 566 |
% \begin{macrocode} |
| 567 |
%</class-logo> |
| 568 |
% \end{macrocode} |
| 569 |
% |
| 570 |
% \subsection{(\texorpdfstring{\Pkg{biblatex}}{biblatex}) Data model} |
| 571 |
% Before the code of the \Class{gzt} by itself, we give the (\pkg{biblatex}) |
| 572 |
% data model that enriches the default one for several purposes: |
| 573 |
% \begin{itemize} |
| 574 |
% \item the interviews, |
| 575 |
% \item the books reviews, |
| 576 |
% \item the books advertisements, |
| 577 |
% \item the tributes. |
| 578 |
% \end{itemize} |
| 579 |
% |
| 580 |
% \begin{macrocode} |
| 581 |
%<*languagemodel> |
| 582 |
% \end{macrocode} |
| 583 |
% |
| 584 |
% \begin{macrocode} |
| 585 |
\ProvidesFile{gzt.lbx} |
| 586 |
\InheritBibliographyExtras{french} |
| 587 |
\DeclareBibliographyStrings{ |
| 588 |
inherit = {french}, |
| 589 |
number = {{\no}{\no}}, |
| 590 |
volume = {{volume}{vol\adddot}}, |
| 591 |
volumes = {{volumes}{vol\adddot}}, |
| 592 |
} |
| 593 |
% \end{macrocode} |
| 594 |
% |
| 595 |
% \begin{macrocode} |
| 596 |
%</languagemodel> |
| 597 |
% \end{macrocode} |
| 598 |
% |
| 599 |
% \begin{macrocode} |
| 600 |
%<*datamodel> |
| 601 |
% \end{macrocode} |
| 602 |
% |
| 603 |
% \subsubsection{For the interviews} |
| 604 |
% |
| 605 |
% First, we create the new entry type ×interview× and the new field |
| 606 |
% ×interviewee×. |
| 607 |
% \begin{macrocode} |
| 608 |
% \DeclareDatamodelEntrytypes{interview} |
| 609 |
\DeclareDatamodelFields[type=list,datatype=name]{interviewee} |
| 610 |
% \end{macrocode} |
| 611 |
% |
| 612 |
% Then, we declare the fields known by the entry type ×interview×: our new field |
| 613 |
% ×interviewee× and the existing one ×author×. |
| 614 |
% \begin{macrocode} |
| 615 |
\DeclareDatamodelEntryfields[interview]{ |
| 616 |
interviewee, |
| 617 |
author |
| 618 |
} |
| 619 |
% \end{macrocode} |
| 620 |
% |
| 621 |
% An finally, we create the bibliography driver for the ×interview× (that seems to |
| 622 |
% create the corresponding new entry). |
| 623 |
% \begin{macrocode} |
| 624 |
\DeclareBibliographyDriver{interview}{% |
| 625 |
\printnames{author}~ interviewent~ \printnames{interviewee}% |
| 626 |
\usebibmacro{finentry}% |
| 627 |
} |
| 628 |
% \end{macrocode} |
| 629 |
% % |
| 630 |
% % \subsubsection{For the tributes} |
| 631 |
% % |
| 632 |
% % First, we create the new entry type ×tribute× and the new field |
| 633 |
% % ×honouree×. |
| 634 |
% % \begin{macrocode} |
| 635 |
% % \DeclareDatamodelEntrytypes{tribute} |
| 636 |
% % \DeclareDatamodelFields[type=list,datatype=name]{honouree} |
| 637 |
% % \end{macrocode} |
| 638 |
% % |
| 639 |
% % Then, we declare the fields known by the entry type ×tribute×: our new field |
| 640 |
% % ×honouree× and the existing one ×author×. |
| 641 |
% % \begin{macrocode} |
| 642 |
% \DeclareDatamodelEntryfields[tribute]{ |
| 643 |
% honouree, |
| 644 |
% author |
| 645 |
% } |
| 646 |
% % \end{macrocode} |
| 647 |
% % |
| 648 |
% % An finally, we create the bibliography driver for the ×tribute× (that seems to |
| 649 |
% % create the corresponding new entry). |
| 650 |
% % \begin{macrocode} |
| 651 |
% \DeclareBibliographyDriver{tribute}{% |
| 652 |
% \printnames{author}~ rendent~ hommage~ \`a~ \printnames{honouree}% |
| 653 |
% \usebibmacro{finentry}% |
| 654 |
% } |
| 655 |
% % \end{macrocode} |
| 656 |
% |
| 657 |
% \subsubsection{For the books reviews} |
| 658 |
% |
| 659 |
% First, we create the new bibliography driver ×bookreview× (that seems to |
| 660 |
% create the corresponding new entry). |
| 661 |
% \begin{macrocode} |
| 662 |
\DeclareBibliographyDriver{bookreview}{% |
| 663 |
\usebibmacro{bibindex}% |
| 664 |
\usebibmacro{begentry}% |
| 665 |
\usebibmacro{maintitle+title}% |
| 666 |
\newline\nopunct\newblock |
| 667 |
\usebibmacro{author/editor+others/translator+others}% |
| 668 |
\setunit{\labelnamepunct} |
| 669 |
\newline\nopunct\newblock |
| 670 |
\usebibmacro{byauthor}% |
| 671 |
\newunit\newblock |
| 672 |
\usebibmacro{byeditor+others}% |
| 673 |
\newunit\newblock |
| 674 |
\printfield{edition}% |
| 675 |
\newunit |
| 676 |
\iffieldundef{maintitle} |
| 677 |
{\printfield{volume}% |
| 678 |
\printfield{part}} |
| 679 |
{}% |
| 680 |
\newunit |
| 681 |
\printfield{volumes}% |
| 682 |
\newunit\newblock |
| 683 |
\usebibmacro{series+number}% |
| 684 |
\newunit\newblock |
| 685 |
\printfield{note}% |
| 686 |
\newunit\newblock |
| 687 |
\usebibmacro{publisher+location+date}% |
| 688 |
\newunit\newblock |
| 689 |
\usebibmacro{chapter+pages}% |
| 690 |
\newunit |
| 691 |
\printfield{pagetotal}% |
| 692 |
\newunit\newblock |
| 693 |
\printlist{language}% |
| 694 |
\newunit\newblock |
| 695 |
\iftoggle{bbx:isbn} |
| 696 |
{\printfield{isbn}} |
| 697 |
{}% |
| 698 |
\newunit\newblock |
| 699 |
\usebibmacro{doi+eprint+url}% |
| 700 |
\newunit\newblock |
| 701 |
\usebibmacro{addendum+pubstate}% |
| 702 |
\setunit{\bibpagerefpunct}\newblock |
| 703 |
\usebibmacro{pageref}% |
| 704 |
\newunit\newblock |
| 705 |
\iftoggle{bbx:related} |
| 706 |
{\usebibmacro{related:init}% |
| 707 |
\usebibmacro{related}} |
| 708 |
{}% |
| 709 |
\usebibmacro{finentry}} |
| 710 |
% \end{macrocode} |
| 711 |
% |
| 712 |
% Then, we create the new fields ×reviewer× and ×reviewerinstitution× and make |
| 713 |
% them known by the entry type ×bookreview×. |
| 714 |
% \begin{macrocode} |
| 715 |
\DeclareDatamodelFields[type=list,datatype=name]{reviewer} |
| 716 |
\DeclareDatamodelFields[type=list,datatype=literal]{reviewerinstitution} |
| 717 |
\DeclareDatamodelEntryfields[bookreview]{ |
| 718 |
reviewer, |
| 719 |
reviewerinstitution |
| 720 |
} |
| 721 |
% \end{macrocode} |
| 722 |
% |
| 723 |
% \subsubsection{For the books advertisements} |
| 724 |
% |
| 725 |
% We create some new fields make them known by the entry type |
| 726 |
% ×bookadvertisement×. |
| 727 |
% \begin{macrocode} |
| 728 |
\DeclareDatamodelFields[type=field,datatype=literal]{publicprice} |
| 729 |
\DeclareDatamodelFields[type=field,datatype=literal]{smfprice} |
| 730 |
\DeclareDatamodelFields[type=field,datatype=literal]{frenchabstract} |
| 731 |
\DeclareDatamodelFields[type=field,datatype=literal]{englishabstract} |
| 732 |
\DeclareDatamodelFields[type=list,datatype=literal]{copublisher} |
| 733 |
\DeclareDatamodelFields[type=field, datatype=verbatim]{thumbnail} |
| 734 |
\DeclareDatamodelEntryfields[bookadvertisement]{ |
| 735 |
publicprice, |
| 736 |
smfprice, |
| 737 |
frenchabstract, |
| 738 |
englishabstract, |
| 739 |
copublisher, |
| 740 |
thumbnail |
| 741 |
} |
| 742 |
% \end{macrocode} |
| 743 |
% |
| 744 |
% Then, we create the new bibliography driver ×bookadvertisement× (that seems to |
| 745 |
% create the corresponding new entry). |
| 746 |
% \begin{macrocode} |
| 747 |
\newcommand*{\insertbibimage}[1]{\includegraphics[width=45mm]{#1}} |
| 748 |
\DeclareBibliographyDriver{bookadvertisement}{% |
| 749 |
\begin{tcolorbox}[ |
| 750 |
lefthand width=47.5mm |
| 751 |
,sidebyside |
| 752 |
,colback=white |
| 753 |
,fontlower=\large |
| 754 |
,flushleft lower |
| 755 |
,boxrule=0mm |
| 756 |
,frame hidden |
| 757 |
,leftright skip=0mm |
| 758 |
,before skip=0mm |
| 759 |
,lower separated=false |
| 760 |
] |
| 761 |
\iffieldundef{thumbnail} |
| 762 |
{} |
| 763 |
{ |
| 764 |
\usefield{\insertbibimage}{thumbnail} |
| 765 |
} |
| 766 |
\tcblower |
| 767 |
\xpatchfieldformat{title}{mkbibemph}{textbf}{}{}% |
| 768 |
\def\abx@str{abx@lstr}% |
| 769 |
\noindent |
| 770 |
\usebibmacro{bibindex}% |
| 771 |
\usebibmacro{begentry}% |
| 772 |
\textbf{\printfield{series}}% |
| 773 |
% \usebibmacro{series+number}% |
| 774 |
\bigskip\newline\nopunct\newblock |
| 775 |
{% |
| 776 |
\Large% |
| 777 |
\printfield{title}% |
| 778 |
\newunit\newblock |
| 779 |
}% |
| 780 |
\iffieldundef{volume} |
| 781 |
{}% |
| 782 |
{\textbf{\printfield{volume}}} |
| 783 |
\iffieldundef{titleaddon} |
| 784 |
{}% |
| 785 |
{% |
| 786 |
\newline\nopunct\newblock |
| 787 |
\textbf{\printfield{titleaddon}}% |
| 788 |
} |
| 789 |
\iffieldundef{subtitle} |
| 790 |
{}% |
| 791 |
{% |
| 792 |
\newline\nopunct\newblock |
| 793 |
\printfield{subtitle}% |
| 794 |
} |
| 795 |
\newline\nopunct\newblock |
| 796 |
\newline\nopunct\newblock |
| 797 |
\usebibmacro{author/editor+others/translator+others}% |
| 798 |
\setunit{\labelnamepunct} |
| 799 |
\newline\nopunct\newblock |
| 800 |
\usebibmacro{byauthor}% |
| 801 |
\newunit\newblock |
| 802 |
\usebibmacro{byeditor+others}% |
| 803 |
\newunit\newblock |
| 804 |
\printfield{edition}% |
| 805 |
\newunit\newblock |
| 806 |
\printfield{note}% |
| 807 |
\newunit\newblock |
| 808 |
\usebibmacro{publisher+location+date}% |
| 809 |
\newunit\newblock |
| 810 |
\usebibmacro{chapter+pages}% |
| 811 |
\newunit |
| 812 |
\printfield{pagetotal}% |
| 813 |
\newunit\newblock |
| 814 |
\printlist{language}% |
| 815 |
\iftoggle{bbx:isbn} |
| 816 |
{% |
| 817 |
\newline\nopunct\newblock |
| 818 |
\printfield{isbn} |
| 819 |
} |
| 820 |
{}% |
| 821 |
\newunit\newblock |
| 822 |
\usebibmacro{doi+eprint+url}% |
| 823 |
\newunit\newblock |
| 824 |
\usebibmacro{addendum+pubstate}% |
| 825 |
\setunit{\bibpagerefpunct}\newblock |
| 826 |
\usebibmacro{pageref}% |
| 827 |
\def\abx@str{abx@sstr}% |
| 828 |
\end{tcolorbox} |
| 829 |
\iflistundef{copublisher} |
| 830 |
{}% |
| 831 |
{% |
| 832 |
\bigskip |
| 833 |
% \newline\nopunct\newblock% |
| 834 |
\normalsize |
| 835 |
Publi\'e avec le concours de : \printlist{copublisher}% |
| 836 |
\par |
| 837 |
} |
| 838 |
\iffieldundef{frenchabstract} |
| 839 |
{}% |
| 840 |
{% |
| 841 |
\bigskip |
| 842 |
\printfield{frenchabstract}% |
| 843 |
\par |
| 844 |
\medskip |
| 845 |
% |
| 846 |
\begin{center} |
| 847 |
Prix~ public~ :\c_space_tl |
| 848 |
\EUR{\printfield{publicprice}} |
| 849 |
\c_space_tl\textendash\c_space_tl Prix~ membre~ \smf{}~ :\c_space_tl |
| 850 |
\EUR{\printfield{smfprice}} |
| 851 |
\c_space_tl\textendash\c_space_tl Frais~ de~ port~ non~ compris |
| 852 |
\end{center} |
| 853 |
} |
| 854 |
\iffieldundef{englishabstract} |
| 855 |
{}% |
| 856 |
{% |
| 857 |
\par |
| 858 |
\bigskip |
| 859 |
\begin{otherlanguage}{english} |
| 860 |
\itshape |
| 861 |
\printfield{englishabstract} |
| 862 |
% |
| 863 |
\par |
| 864 |
\medskip |
| 865 |
% |
| 866 |
\begin{center} |
| 867 |
Public~ price:\c_space_tl |
| 868 |
\EUR{\printfield{publicprice}} |
| 869 |
\c_space_tl\textendash\c_space_tl \smf{}~ member~ price:\c_space_tl |
| 870 |
\EUR{\printfield{smfprice}} |
| 871 |
\c_space_tl\textendash\c_space_tl Shipping~ costs~ not~ included |
| 872 |
\end{center} |
| 873 |
\end{otherlanguage} |
| 874 |
} |
| 875 |
\usebibmacro{finentry} |
| 876 |
} |
| 877 |
% \end{macrocode} |
| 878 |
% |
| 879 |
% \begin{macrocode} |
| 880 |
%</datamodel> |
| 881 |
% \end{macrocode} |
| 882 |
% |
| 883 |
% \section{Implementation of the \Class{gzt}} |
| 884 |
% |
| 885 |
% Here comes the code of the \Class{gzt}. |
| 886 |
% \begin{macrocode} |
| 887 |
%<*class> |
| 888 |
% \end{macrocode} |
| 889 |
% |
| 890 |
% \subsection{Removability of local customizations} |
| 891 |
% |
| 892 |
% We define two... |
| 893 |
% \begin{macrocode} |
| 894 |
\def\sectioncommandslist{} |
| 895 |
\let\saved@ifdefinable\@ifdefinable |
| 896 |
\let\saved@@ifdefinable\@@ifdefinable |
| 897 |
\newcommand{\startcustomization}{% |
| 898 |
% Redefine \@ifdefinable |
| 899 |
\renewcommand{\@ifdefinable}[2]{% |
| 900 |
\listadd\sectioncommandslist##1% |
| 901 |
\saved@ifdefinable{##1}{##2}% |
| 902 |
}% |
| 903 |
\renewcommand{\@@ifdefinable}[2]{% |
| 904 |
\listadd\sectioncommandslist##1% |
| 905 |
\saved@@ifdefinable{##1}{##2}% |
| 906 |
}% |
| 907 |
} |
| 908 |
\newcommand{\cleancustomization}{% |
| 909 |
\forlistloop{\undef}{\sectioncommandslist}% |
| 910 |
\def\sectioncommandslist{}% |
| 911 |
\let\@ifdefinable\saved@ifdefinable% |
| 912 |
\let\@@ifdefinable\saved@@ifdefinable% |
| 913 |
} |
| 914 |
% \end{macrocode} |
| 915 |
% |
| 916 |
% \begin{macrocode} |
| 917 |
%</class> |
| 918 |
% \end{macrocode} |
| 919 |
% |
| 920 |
% \begin{macrocode} |
| 921 |
%<*class|class-article> |
| 922 |
% \end{macrocode} |
| 923 |
% |
| 924 |
% Extending \pkg{etoolbox}'s patching commands: |
| 925 |
% \begin{macrocode} |
| 926 |
\RequirePackage{xpatch} |
| 927 |
% \end{macrocode} |
| 928 |
% |
| 929 |
% We alter the behaviour of the internals of ×\usetikzlibrary× so that the |
| 930 |
% \LaTeXe{} push/pop filename system is used (see |
| 931 |
% \url{https://tex.stackexchange.com/a/57428/18401}). |
| 932 |
% \begin{macrocode} |
| 933 |
\patchcmd |
| 934 |
{\use@@tikzlibrary} |
| 935 |
{% |
| 936 |
\pgfutil@InputIfFileExists{tikzlibrary\[email protected]}{}{ |
| 937 |
\pgfutil@IfFileExists{pgflibrary\[email protected]}{% |
| 938 |
\expandafter\usepgflibrary\expandafter{\pgf@temp}% |
| 939 |
}{% |
| 940 |
\tikzerror{I did not find the tikz library |
| 941 |
'\pgf@temp'. I looked for files named |
| 942 |
tikzlibrary\[email protected] and |
| 943 |
pgflibrary\[email protected], but neither |
| 944 |
could be found in the current texmf trees.} |
| 945 |
}% |
| 946 |
}% |
| 947 |
} |
| 948 |
{% |
| 949 |
\@pushfilename |
| 950 |
\pgfutil@InputIfFileExists{tikzlibrary\[email protected]}{}{ |
| 951 |
\pgfutil@IfFileExists{pgflibrary\[email protected]}{% |
| 952 |
\expandafter\usepgflibrary\expandafter{\pgf@temp}% |
| 953 |
}{ |
| 954 |
\tikzerror{I did not find the tikz library |
| 955 |
'\pgf@temp'. I looked for files named |
| 956 |
tikzlibrary\[email protected] and |
| 957 |
pgflibrary\[email protected], but neither |
| 958 |
could be found in the current texmf trees.} |
| 959 |
}% |
| 960 |
}% |
| 961 |
\@popfilename |
| 962 |
} |
| 963 |
{}{} |
| 964 |
\patchcmd |
| 965 |
{\tcb@input@library@in} |
| 966 |
{% |
| 967 |
\input\tcbpkgprefix#1\relax% |
| 968 |
} |
| 969 |
{% |
| 970 |
\@pushfilename |
| 971 |
\input\tcbpkgprefix#1\relax% |
| 972 |
\@popfilename |
| 973 |
} |
| 974 |
{}{} |
| 975 |
% \end{macrocode} |
| 976 |
% |
| 977 |
% In order to avoid ×__gzt× in the name of each internal (i.e. private) function |
| 978 |
% and variable, we make use of the ×@@× place holder provided by the |
| 979 |
% \Pkg{l3docstrip}. |
| 980 |
% \begin{macrocode} |
| 981 |
%<@@=gzt> |
| 982 |
% \end{macrocode} |
| 983 |
% |
| 984 |
% \subsection{\LaTeX3 loading} |
| 985 |
% |
| 986 |
% For debugging purpose, \Pkg{expl3} could be loaded with its |
| 987 |
% \docAuxKey*{check-declarations} option. |
| 988 |
% \begin{macrocode} |
| 989 |
% \PassOptionsToPackage{check-declarations}{expl3} |
| 990 |
% \end{macrocode} |
| 991 |
% |
| 992 |
% ^^AIn order to define class options, in key-value form, \Pkg{l3keys2e} is |
| 993 |
% ^^Aloaded. This have to be done at an early stage because options have to be |
| 994 |
% ^^Adefined before the (here `book') class loading. |
| 995 |
% \begin{macrocode} |
| 996 |
\RequirePackage{l3keys2e} |
| 997 |
% \end{macrocode} |
| 998 |
% |
| 999 |
% This \Class{gzt} will make use of the \pkg{expl3} programming interface |
| 1000 |
% (\LaTeX3). In order to load this package, it is enough to load the |
| 1001 |
% \Pkg{xparse} which is anyway needed to produce document-level commands. |
| 1002 |
% \begin{macrocode} |
| 1003 |
\RequirePackage{xparse} |
| 1004 |
% \end{macrocode} |
| 1005 |
% |
| 1006 |
% The \Class{gzt} is declared in the \LaTeX3{}'s way. |
| 1007 |
% \begin{macrocode} |
| 1008 |
\ProvidesExplClass |
| 1009 |
%<class> {gzt} |
| 1010 |
%<class-article> {gztarticle} |
| 1011 |
{\gztfiledate} |
| 1012 |
{\gztfileversion} |
| 1013 |
{% |
| 1014 |
SMF class for the French journal^^J |
| 1015 |
“La Gazette de la Société Mathématique de France”. |
| 1016 |
%<class-article> (Author version.) |
| 1017 |
} |
| 1018 |
% \end{macrocode} |
| 1019 |
% |
| 1020 |
% The needed \TeX{} format is specified. |
| 1021 |
% \begin{macrocode} |
| 1022 |
\NeedsTeXFormat{LaTeX2e} |
| 1023 |
% \end{macrocode} |
| 1024 |
% |
| 1025 |
% \subsection{Class loading} |
| 1026 |
% |
| 1027 |
% \begin{macrocode} |
| 1028 |
\bool_new:N \g_@@_moral_report_bool |
| 1029 |
\bool_new:N \g_@@_special_edition_bool |
| 1030 |
\bool_new:N \g_@@_for_authors_bool |
| 1031 |
\bool_new:N \g_@@_for_printer_bool |
| 1032 |
\bool_new:N \g_@@_cover_bool |
| 1033 |
\bool_new:N \g_@@_coverpage_bool |
| 1034 |
\bool_new:N \g_@@_inside_pages_bool |
| 1035 |
\bool_new:N \g_@@_invisible_titles_bool |
| 1036 |
\bool_new:N \g_@@_rubrics_in_toc_bool |
| 1037 |
% |
| 1038 |
\bool_new:N \g_@@_no_inside_backcover_bool |
| 1039 |
%<class-article>\bool_gset_true:N \g_@@_for_authors_bool |
| 1040 |
%<class-article>\bool_gset_true:N \g_@@_inside_pages_bool |
| 1041 |
% \end{macrocode} |
| 1042 |
% |
| 1043 |
% We define some common code to the ×moralreport× global option of ×gzt× and |
| 1044 |
% ×gztarticle×. |
| 1045 |
% \begin{macrocode} |
| 1046 |
\tl_gset:Nn \g_@@_moral_report_common_option_tl { |
| 1047 |
\AddToHook{begindocument/before} { |
| 1048 |
\bool_gset_true:N \g_@@_moral_report_bool |
| 1049 |
\bool_gset_true:N \g_@@_frontcover_without_minitoc_bool |
| 1050 |
\title[short={\bfseries\c_@@_moralreport_rubric_string_tl}]{} |
| 1051 |
\tl_gset:Nn \g_@@_rubric_title_tl { |
| 1052 |
\c_@@_moralreport_rubric_string_tl |
| 1053 |
} |
| 1054 |
} |
| 1055 |
} |
| 1056 |
% \end{macrocode} |
| 1057 |
% |
| 1058 |
% \begin{macrocode} |
| 1059 |
%</class|class-article> |
| 1060 |
% \end{macrocode} |
| 1061 |
% |
| 1062 |
% \begin{macrocode} |
| 1063 |
%<*class> |
| 1064 |
% \end{macrocode} |
| 1065 |
% |
| 1066 |
% \begin{macro}{\c_@@_pagegrid_dim} |
| 1067 |
% We declare the constant dimension of the pagegrid, when enabled. |
| 1068 |
% \begin{macrocode} |
| 1069 |
\dim_const:Nn \c_@@_pagegrid_dim { 1mm} |
| 1070 |
% \end{macrocode} |
| 1071 |
% \end{macro} |
| 1072 |
% |
| 1073 |
% We define some class options: |
| 1074 |
% \begin{itemize} |
| 1075 |
% \item ×pagegrid× in order to draw a grid on each page, in order to check the |
| 1076 |
% layout (mostly for debugging purpose), |
| 1077 |
% \item ... |
| 1078 |
% \end{itemize} |
| 1079 |
% |
| 1080 |
% \begin{macrocode} |
| 1081 |
\tl_gset:Nn \g_@@_frontcover_image_file_tl { |
| 1082 |
\c_@@_issue_frontcover_default_image_file_tl |
| 1083 |
} |
| 1084 |
\tl_gset:Nn \g_@@_special_edition_color_tl { |
| 1085 |
@@_default_cover_color |
| 1086 |
} |
| 1087 |
\clist_new:N \g_@@_special_edition_logos_clist |
| 1088 |
% |
| 1089 |
\keys_define:nn { gzt } |
| 1090 |
{ |
| 1091 |
pagegrid .dim_gset:N = \g_@@_pagegrid_dim, |
| 1092 |
pagegrid .default:n = {\c_@@_pagegrid_dim}, |
| 1093 |
forauthors .code:n = { |
| 1094 |
\bool_gset_true:N \g_@@_for_authors_bool |
| 1095 |
\bool_gset_true:N \g_@@_inside_pages_bool |
| 1096 |
}, |
| 1097 |
forprinter .bool_gset:N = \g_@@_for_printer_bool, |
| 1098 |
frontcoverimagefile .tl_gset:N = \g_@@_frontcover_image_file_tl, |
| 1099 |
frontcoverimagefile .default:n = {frontcover}, |
| 1100 |
output .choice:, |
| 1101 |
output / frontcover .code:n = { |
| 1102 |
\bool_gset_true:N \g_@@_for_printer_bool |
| 1103 |
\bool_gset_true:N \g_@@_cover_bool |
| 1104 |
}, |
| 1105 |
output / coverpage .code:n = { |
| 1106 |
\bool_gset_true:N \g_@@_coverpage_bool |
| 1107 |
}, |
| 1108 |
output / insidepages .code:n = { |
| 1109 |
\bool_gset_true:N \g_@@_for_printer_bool |
| 1110 |
\bool_gset_true:N \g_@@_inside_pages_bool |
| 1111 |
}, |
| 1112 |
output / backcover .code:n = { |
| 1113 |
\bool_gset_true:N \g_@@_for_printer_bool |
| 1114 |
}, |
| 1115 |
output / web .code:n = { |
| 1116 |
}, |
| 1117 |
maindarkcolor .code:n = { |
| 1118 |
\AddToHook{begindocument/before}{ |
| 1119 |
\definecolor{@@_generic_dark_color}{cmyk}{#1} |
| 1120 |
} |
| 1121 |
}, |
| 1122 |
specialedition .code:n = { |
| 1123 |
\bool_gset_true:N \g_@@_special_edition_bool |
| 1124 |
\bool_gset_true:N \g_@@_frontcover_without_minitoc_bool |
| 1125 |
\keys_set:nn { gzt / specialedition } {#1} |
| 1126 |
}, |
| 1127 |
specialedition / color .code:n = { |
| 1128 |
\tl_gset:Nn \g_@@_special_edition_color_tl {#1} |
| 1129 |
}, |
| 1130 |
specialedition / ornaments~ color .code:n = { |
| 1131 |
\AddToHook{begindocument/before}{ |
| 1132 |
\definecolor{@@_generic_dark_color}{cmyk}{#1} |
| 1133 |
} |
| 1134 |
}, |
| 1135 |
specialedition / invisible~ titles .bool_gset:N = \g_@@_invisible_titles_bool, |
| 1136 |
specialedition / rubrics~ in~ toc .bool_gset:N = \g_@@_rubrics_in_toc_bool, |
| 1137 |
specialedition / minitoc .code:n = { |
| 1138 |
\bool_gset_false:N \g_@@_frontcover_without_minitoc_bool |
| 1139 |
}, |
| 1140 |
specialedition / logos .code:n = { |
| 1141 |
\clist_gset:Nn \g_@@_special_edition_logos_clist {#1} |
| 1142 |
}, |
| 1143 |
specialedition / backcover~ image .code:n = { |
| 1144 |
\tl_gset:Nn \g_@@_special_edition_backcover_image_tl {#1} |
| 1145 |
}, |
| 1146 |
specialedition / title .code:n = { |
| 1147 |
\tl_gset:Nn \g_@@_special_edition_title_tl {#1} |
| 1148 |
}, |
| 1149 |
specialedition / short~ title .code:n = { |
| 1150 |
\tl_gset:Nn \g_@@_special_edition_short_title_tl {#1} |
| 1151 |
}, |
| 1152 |
specialedition / editorial~ heading .code:n = { |
| 1153 |
\tl_gset:Nn \g_@@_special_edition_editorial_heading_tl {#1} |
| 1154 |
}, |
| 1155 |
specialedition / editorial~ author .code:n = { |
| 1156 |
\_@@_people:nnnnnnnn {#1}{}{}{}{}{}{editorinchief}{} |
| 1157 |
}, |
| 1158 |
moralreport .code:n = { |
| 1159 |
\g_@@_moral_report_common_option_tl |
| 1160 |
\AddToHook{begindocument/before} { |
| 1161 |
\tl_gset:Nn \g_@@_pdftitle_string_tl { |
| 1162 |
\c_@@_moralreport_rubric_string_tl |
| 1163 |
} |
| 1164 |
} |
| 1165 |
}, |
| 1166 |
} |
| 1167 |
% \end{macrocode} |
| 1168 |
% |
| 1169 |
% \begin{macrocode} |
| 1170 |
%</class> |
| 1171 |
% \end{macrocode} |
| 1172 |
% |
| 1173 |
% \begin{macrocode} |
| 1174 |
%<*class-article> |
| 1175 |
% \end{macrocode} |
| 1176 |
% |
| 1177 |
% \begin{macrocode} |
| 1178 |
\keys_define:nn { gztarticle } |
| 1179 |
{ |
| 1180 |
editorial .code:n = { |
| 1181 |
\AddToHook{begindocument}{ |
| 1182 |
\_@@_before_display_editorial:n {} |
| 1183 |
} |
| 1184 |
\AddToHook{enddocument}{ |
| 1185 |
\_@@_after_display_editorial: {} |
| 1186 |
} |
| 1187 |
}, |
| 1188 |
presidentmessage .code:n = { |
| 1189 |
\AddToHook{begindocument}{ |
| 1190 |
\_@@_before_display_presidentmessage: {} |
| 1191 |
} |
| 1192 |
\AddToHook{enddocument}{ |
| 1193 |
\_@@_after_display_presidentmessage: {} |
| 1194 |
} |
| 1195 |
}, |
| 1196 |
moralreport .code:n = { |
| 1197 |
\g_@@_moral_report_common_option_tl |
| 1198 |
\keys_set:nn { gztarticle / moralreport } {#1} |
| 1199 |
}, |
| 1200 |
moralreport / title .code:n = { |
| 1201 |
\tl_gset:Nn \g_@@_moral_report_title_tl {#1} |
| 1202 |
}, |
| 1203 |
moralreport / short~ title .code:n = { |
| 1204 |
\tl_gset:Nn \g_@@_moral_report_short_title_tl {#1} |
| 1205 |
}, |
| 1206 |
} |
| 1207 |
% \end{macrocode} |
| 1208 |
% |
| 1209 |
% \begin{macrocode} |
| 1210 |
%</class-article> |
| 1211 |
% \end{macrocode} |
| 1212 |
% |
| 1213 |
% \begin{macrocode} |
| 1214 |
%<*class> |
| 1215 |
% \end{macrocode} |
| 1216 |
% |
| 1217 |
% If we want to disable the inside backcover. |
| 1218 |
% \begin{macrocode} |
| 1219 |
% \bool_gset_true:N \g_@@_no_inside_backcover_bool |
| 1220 |
% \end{macrocode} |
| 1221 |
% |
| 1222 |
% \begin{macrocode} |
| 1223 |
\ProcessKeysOptions { gzt } |
| 1224 |
% \end{macrocode} |
| 1225 |
% |
| 1226 |
% \begin{macrocode} |
| 1227 |
%</class> |
| 1228 |
% \end{macrocode} |
| 1229 |
% |
| 1230 |
% \begin{macrocode} |
| 1231 |
%<*class|class-article> |
| 1232 |
% \end{macrocode} |
| 1233 |
% |
| 1234 |
% As subsequent class, the \Cls{book} is loaded, with ×openany×, ×english× and |
| 1235 |
% ×french× options. |
| 1236 |
% \begin{macrocode} |
| 1237 |
\PassOptionsToClass{openany,english,french}{book} |
| 1238 |
\LoadClass { book } |
| 1239 |
\PassOptionsToPackage{table,cmyk}{xcolor} |
| 1240 |
\PassOptionsToPackage{export}{adjustbox} |
| 1241 |
\PassOptionsToPackage{english,french}{translator} |
| 1242 |
\PassOptionsToPackage{english,french}{babel} |
| 1243 |
\PassOptionsToPackage{english,french}{varioref} |
| 1244 |
\PassOptionsToPackage{english,french}{cleveref} |
| 1245 |
% \end{macrocode} |
| 1246 |
% |
| 1247 |
% \subsection{Packages loading} |
| 1248 |
% |
| 1249 |
% Many of the \Class{gzt} features are provided by third party packages. In this |
| 1250 |
% section, we load them and outline their features interesting from the |
| 1251 |
% \Class{gzt} point of view.\footnote{TODO: When possible, the list of loaded |
| 1252 |
% packages should be split into two lists: one of the packages needed just by |
| 1253 |
% \gzt{} (for both its logic and its layout) and one of packages useful for the |
| 1254 |
% end user.} |
| 1255 |
% |
| 1256 |
% \begin{enumerate} |
| 1257 |
% \item Compile \TeX{} pictures stand-alone or as part of a document: |
| 1258 |
% \begin{macrocode} |
| 1259 |
\RequirePackage[group=false]{standalone} |
| 1260 |
% \end{macrocode} |
| 1261 |
% |
| 1262 |
% \item Tools to load and manipulate data: |
| 1263 |
% \begin{macrocode} |
| 1264 |
\RequirePackage{datatool} |
| 1265 |
% \end{macrocode} |
| 1266 |
% |
| 1267 |
% \item In case of \hologo{pdfTeX} engine, we enforce \pkg{fontenc} to be loaded |
| 1268 |
% with its \docAuxKey*{T1} option (usual for French and English documents) and |
| 1269 |
% \pkg{inputenc} to be loaded with its \docAuxKey*{utf8} option. Otherwise |
| 1270 |
% \pkg{fontspec}, convenient for both \hologo{XeLaTeX} and \hologo{LuaLaTeX}, |
| 1271 |
% is loaded, with ligatures à la \TeX{} by default enabled. |
| 1272 |
% \begin{macrocode} |
| 1273 |
\sys_if_engine_pdftex:TF |
| 1274 |
{ |
| 1275 |
\RequirePackage[T1]{fontenc} |
| 1276 |
\RequirePackage[utf8]{inputenc} |
| 1277 |
}{ |
| 1278 |
\RequirePackage{fontspec} |
| 1279 |
} |
| 1280 |
% \end{macrocode} |
| 1281 |
% |
| 1282 |
% Load of main font to be used: |
| 1283 |
% \begin{macrocode} |
| 1284 |
\RequirePackage[sfmath,noDcommand]{kpfonts} |
| 1285 |
% \end{macrocode} |
| 1286 |
% |
| 1287 |
% \item Formatting both header and footers (pagestyle), and sections headers: |
| 1288 |
% \begin{macrocode} |
| 1289 |
\RequirePackage[pagestyles]{titlesec} |
| 1290 |
% \end{macrocode} |
| 1291 |
% |
| 1292 |
% \item Multicolumn output: |
| 1293 |
% \begin{macrocode} |
| 1294 |
\RequirePackage{multicol} |
| 1295 |
% \end{macrocode} |
| 1296 |
% |
| 1297 |
% \item Graphics inclusion: |
| 1298 |
% \begin{macrocode} |
| 1299 |
\RequirePackage{graphicx} |
| 1300 |
% \end{macrocode} |
| 1301 |
% |
| 1302 |
% \item Establish input relative to a directory: |
| 1303 |
% \begin{macrocode} |
| 1304 |
%<class>\RequirePackage{import} |
| 1305 |
% \end{macrocode} |
| 1306 |
% |
| 1307 |
% \item Allow tables to flow over page boundaries: |
| 1308 |
% \begin{macrocode} |
| 1309 |
\RequirePackage{longtable} |
| 1310 |
% \end{macrocode} |
| 1311 |
% |
| 1312 |
% \item Put a grey textual watermark on document pages (loaded only if |
| 1313 |
% ×forauthors× \gzt{}'s option is on): |
| 1314 |
% \begin{macrocode} |
| 1315 |
%<class>\bool_if:nT { \g_@@_for_authors_bool } { |
| 1316 |
%<class> \RequirePackage{draftwatermark}[2006/06/30] |
| 1317 |
%<class>} |
| 1318 |
% \end{macrocode} |
| 1319 |
% |
| 1320 |
% \item Graphics package-alike macros for \enquote{general} boxes: |
| 1321 |
% \begin{macrocode} |
| 1322 |
\RequirePackage{adjustbox} |
| 1323 |
% \end{macrocode} |
| 1324 |
% |
| 1325 |
% \item Packages and image files for MWEs (used in case of missing pictograms): |
| 1326 |
% \begin{macrocode} |
| 1327 |
\RequirePackage{mwe} |
| 1328 |
% \end{macrocode} |
| 1329 |
% |
| 1330 |
% \item A new reference scheme for \LaTeX{}, giving the total number of pages in |
| 1331 |
% the document: |
| 1332 |
% \begin{macrocode} |
| 1333 |
\RequirePackage{zref-totpages} |
| 1334 |
% \end{macrocode} |
| 1335 |
% |
| 1336 |
% \item Reference last page number (which is generally different from the total |
| 1337 |
% number of pages in the document): |
| 1338 |
% \begin{macrocode} |
| 1339 |
%<class>\RequirePackage{lastpage} |
| 1340 |
% \end{macrocode} |
| 1341 |
% |
| 1342 |
% \item A new reference scheme for \LaTeX{}, providing the facilities of the |
| 1343 |
% \package{xr} and \package{xr-hyper} packages: |
| 1344 |
% \begin{macrocode} |
| 1345 |
\RequirePackage{zref-xr} |
| 1346 |
% \end{macrocode} |
| 1347 |
% |
| 1348 |
% \item Alternative versions of ×ragged×-type commands: |
| 1349 |
% \begin{macrocode} |
| 1350 |
\RequirePackage{ragged2e} |
| 1351 |
% \end{macrocode} |
| 1352 |
% |
| 1353 |
% \item Define commands that appear not to eat spaces: |
| 1354 |
% \begin{macrocode} |
| 1355 |
\RequirePackage{xspace} |
| 1356 |
% \end{macrocode} |
| 1357 |
% |
| 1358 |
% \item ...: |
| 1359 |
% \begin{macrocode} |
| 1360 |
\RequirePackage{textcase} |
| 1361 |
% \end{macrocode} |
| 1362 |
% |
| 1363 |
% \item For typesetting epigraphs: |
| 1364 |
% \begin{macrocode} |
| 1365 |
\RequirePackage{epigraph} |
| 1366 |
% \end{macrocode} |
| 1367 |
% |
| 1368 |
% \item Context sensitive quotation facilities: |
| 1369 |
% \begin{macrocode} |
| 1370 |
\RequirePackage[autostyle]{csquotes} |
| 1371 |
% \end{macrocode} |
| 1372 |
% |
| 1373 |
% \item Programmable bibliographies and citations: |
| 1374 |
% \begin{macrocode} |
| 1375 |
\RequirePackage[ |
| 1376 |
datamodel=gzt, |
| 1377 |
defernumbers=true, |
| 1378 |
autolang=other |
| 1379 |
]{biblatex} |
| 1380 |
\@ifpackagelater{biblatex}{2016/01/01}{ |
| 1381 |
\ExecuteBibliographyOptions{giveninits} |
| 1382 |
}{ |
| 1383 |
\ExecuteBibliographyOptions{firstinits} |
| 1384 |
} |
| 1385 |
% \end{macrocode} |
| 1386 |
% |
| 1387 |
% \item Extended implementation of the \LaTeX{} array and |
| 1388 |
% tabular-environments: |
| 1389 |
% \begin{macrocode} |
| 1390 |
\RequirePackage{array} |
| 1391 |
% \end{macrocode} |
| 1392 |
% |
| 1393 |
% \item Publication quality tables in \LaTeX{}: |
| 1394 |
% \begin{macrocode} |
| 1395 |
\RequirePackage{booktabs} |
| 1396 |
% \end{macrocode} |
| 1397 |
% |
| 1398 |
% \item Tabulars with adjustable-width columns: |
| 1399 |
% \begin{macrocode} |
| 1400 |
\RequirePackage{tabularx} |
| 1401 |
% \end{macrocode} |
| 1402 |
% |
| 1403 |
% % \item Set of tools for authors to typeset quantities in a consistent way |
| 1404 |
% % (automated processing of numbers and units, and control of tabular alignment |
| 1405 |
% % of numbers): |
| 1406 |
% % \begin{macrocode} |
| 1407 |
% \RequirePackage{siunitx} |
| 1408 |
% % \end{macrocode} |
| 1409 |
% |
| 1410 |
% \item Modify skips between paragraphs: |
| 1411 |
% \begin{macrocode} |
| 1412 |
\RequirePackage{nccparskip} |
| 1413 |
% \end{macrocode} |
| 1414 |
% |
| 1415 |
% \item Construction for table cells that span more than one row of the table: |
| 1416 |
% \begin{macrocode} |
| 1417 |
\RequirePackage{multirow} |
| 1418 |
% \end{macrocode} |
| 1419 |
% |
| 1420 |
% \item Intelligent page references: |
| 1421 |
% \begin{macrocode} |
| 1422 |
\RequirePackage{varioref} |
| 1423 |
% \end{macrocode} |
| 1424 |
% |
| 1425 |
% \item Extension to \Pkg{amsmath}: correct various bugs/defeciencies in amsmath |
| 1426 |
% and useful tools for mathematical typesetting\footnote{The \Pkg{mathtools} |
| 1427 |
% loads \pkg{amsmath}, hence it's not necessary to load the latter.}: |
| 1428 |
% \begin{macrocode} |
| 1429 |
\RequirePackage{mathtools} |
| 1430 |
% \end{macrocode} |
| 1431 |
% |
| 1432 |
% \item Support for using RSFS fonts in maths: |
| 1433 |
% \begin{macrocode} |
| 1434 |
\RequirePackage{rsfso} |
| 1435 |
% \end{macrocode} |
| 1436 |
% |
| 1437 |
% \item Vector arrows: |
| 1438 |
% \begin{macrocode} |
| 1439 |
\RequirePackage{esvect} |
| 1440 |
% \end{macrocode} |
| 1441 |
% |
| 1442 |
% \item Hooks to do actions on every page or on the current page: |
| 1443 |
% \begin{macrocode} |
| 1444 |
% \RequirePackage{everypage} |
| 1445 |
% \end{macrocode} |
| 1446 |
% |
| 1447 |
% \item For translating words in \LaTeX{}. |
| 1448 |
% \begin{macrocode} |
| 1449 |
\RequirePackage{translator} |
| 1450 |
% \end{macrocode} |
| 1451 |
% |
| 1452 |
% \item Flexible and easy interface to page dimensions: |
| 1453 |
% \begin{macrocode} |
| 1454 |
\RequirePackage{geometry} |
| 1455 |
% \end{macrocode} |
| 1456 |
% |
| 1457 |
% \item Bilingual (French and English) documents, with French as default |
| 1458 |
% language: |
| 1459 |
% \begin{macrocode} |
| 1460 |
\RequirePackage{babel} |
| 1461 |
% \end{macrocode} |
| 1462 |
% |
| 1463 |
% \item METAFONT and macros for Euro sign: |
| 1464 |
% \begin{macrocode} |
| 1465 |
\RequirePackage{eurosym} |
| 1466 |
% \end{macrocode} |
| 1467 |
% |
| 1468 |
% Expandable checks for the current language: |
| 1469 |
% \begin{macrocode} |
| 1470 |
\RequirePackage{iflang}[2007/11/11] |
| 1471 |
% \end{macrocode} |
| 1472 |
% |
| 1473 |
% \item Tagging tables of contents: |
| 1474 |
% \begin{macrocode} |
| 1475 |
%<class>\RequirePackage{tableof} |
| 1476 |
% \end{macrocode} |
| 1477 |
% |
| 1478 |
% \item Completely customisable TOCs: |
| 1479 |
% \begin{macrocode} |
| 1480 |
\RequirePackage{etoc} |
| 1481 |
% \end{macrocode} |
| 1482 |
% |
| 1483 |
% \item Subliminal refinements towards typographical perfection: |
| 1484 |
% \begin{macrocode} |
| 1485 |
\RequirePackage[babel=true]{microtype} |
| 1486 |
% \end{macrocode} |
| 1487 |
% |
| 1488 |
% \item Current date and time formatting: |
| 1489 |
% \begin{macrocode} |
| 1490 |
\RequirePackage[nodayofweek]{datetime} |
| 1491 |
% \end{macrocode} |
| 1492 |
% |
| 1493 |
% \item Customization of lists: |
| 1494 |
% \begin{macrocode} |
| 1495 |
\RequirePackage[inline]{enumitem} |
| 1496 |
% \end{macrocode} |
| 1497 |
% |
| 1498 |
% \item Execute command after the next page break: |
| 1499 |
% \begin{macrocode} |
| 1500 |
\RequirePackage{afterpage} |
| 1501 |
% \end{macrocode} |
| 1502 |
% |
| 1503 |
% \item Extension of \LaTeX{}'s color facilities: |
| 1504 |
% \begin{macrocode} |
| 1505 |
\RequirePackage{xcolor} |
| 1506 |
% \end{macrocode} |
| 1507 |
% |
| 1508 |
% \item We need to avoid some macros from few of the following packages to be |
| 1509 |
% added to ×\@preamblecmds×: |
| 1510 |
% \begin{macrocode} |
| 1511 |
%<class|class-article>\cs_set_eq:NN \_@@_orig_preamblecmds \@preamblecmds |
| 1512 |
% \end{macrocode} |
| 1513 |
% |
| 1514 |
% Create PostScript and PDF graphics in \TeX: |
| 1515 |
% \begin{macrocode} |
| 1516 |
\RequirePackage{tikz} |
| 1517 |
% \end{macrocode} |
| 1518 |
% |
| 1519 |
% Create normal/logarithmic plots in two and three dimensions: |
| 1520 |
% \begin{macrocode} |
| 1521 |
\RequirePackage{pgfplots} |
| 1522 |
% \end{macrocode} |
| 1523 |
% |
| 1524 |
% \item Environments for colored and framed text boxes, e.g. theorems: |
| 1525 |
% \begin{macrocode} |
| 1526 |
\RequirePackage{tcolorbox} |
| 1527 |
% \end{macrocode} |
| 1528 |
% |
| 1529 |
% \item A single TikZ node for the whole page: |
| 1530 |
% \begin{macrocode} |
| 1531 |
\RequirePackage{tikzpagenodes} |
| 1532 |
% \end{macrocode} |
| 1533 |
% |
| 1534 |
% \item Print page grid in background: |
| 1535 |
% \begin{macrocode} |
| 1536 |
%<class>\RequirePackage[foreground]{pagegrid} |
| 1537 |
% \end{macrocode} |
| 1538 |
% |
| 1539 |
% \item Typesetting theorems (AMS style): |
| 1540 |
% \begin{macrocode} |
| 1541 |
\RequirePackage{amsthm} |
| 1542 |
% \end{macrocode} |
| 1543 |
% |
| 1544 |
% \item Extensions to theorem environments: |
| 1545 |
% \begin{macrocode} |
| 1546 |
\RequirePackage{thmtools} |
| 1547 |
% \end{macrocode} |
| 1548 |
% |
| 1549 |
% We restore ×\@preamblecmds× as it was before: |
| 1550 |
% \begin{macrocode} |
| 1551 |
%<class|class-article>\cs_set_eq:NN \@preamblecmds \_@@_orig_preamblecmds |
| 1552 |
% \end{macrocode} |
| 1553 |
% |
| 1554 |
% \item Control float placement: |
| 1555 |
% \begin{macrocode} |
| 1556 |
\RequirePackage{placeins} |
| 1557 |
% \end{macrocode} |
| 1558 |
% |
| 1559 |
% \item Hypertext marks: |
| 1560 |
% \begin{macrocode} |
| 1561 |
\RequirePackage[hidelinks,hypertexnames=false]{hyperref} |
| 1562 |
% \end{macrocode} |
| 1563 |
% |
| 1564 |
% \item A new bookmark (outline) organization for \Pkg{hyperref}: |
| 1565 |
% \begin{macrocode} |
| 1566 |
\RequirePackage[numbered]{bookmark} |
| 1567 |
% \end{macrocode} |
| 1568 |
% |
| 1569 |
% \item Create glossaries and lists of acronyms: |
| 1570 |
% \begin{macrocode} |
| 1571 |
\RequirePackage[nowarn]{glossaries} |
| 1572 |
% \end{macrocode} |
| 1573 |
% |
| 1574 |
% \item Intelligent cross-referencing: |
| 1575 |
% \begin{macrocode} |
| 1576 |
\RequirePackage{cleveref} |
| 1577 |
% \end{macrocode} |
| 1578 |
% \end{enumerate} |
| 1579 |
% |
| 1580 |
% Setings of the glossaries and acronyms. |
| 1581 |
% \begin{macrocode} |
| 1582 |
\makeglossaries |
| 1583 |
\setglossarystyle{indexhypergroup} |
| 1584 |
\setacronymstyle{long-sc-short} |
| 1585 |
% \end{macrocode} |
| 1586 |
% |
| 1587 |
% In case of \hologo{pdfTeX} engine, the document is by default in sans serif |
| 1588 |
% and makes use of the \pkg{lmodern} for the \enquote{ttfamily} font. |
| 1589 |
% |
| 1590 |
% \begin{macrocode} |
| 1591 |
\sys_if_engine_pdftex:T |
| 1592 |
{ |
| 1593 |
\renewcommand\familydefault{\sfdefault} |
| 1594 |
\renewcommand{\ttdefault}{lmtt} |
| 1595 |
} |
| 1596 |
% \end{macrocode} |
| 1597 |
% |
| 1598 |
% \subsection{Miscellaneous patches} |
| 1599 |
% |
| 1600 |
% We pop some commands from the ×\@preamblecmds× list in order to allow |
| 1601 |
% ×\DeclareMathOperator× to be used after the preamble (see |
| 1602 |
% \url{https://tex.stackexchange.com/q/223421/18401}). |
| 1603 |
% \begin{macrocode} |
| 1604 |
\tl_remove_all:Nn \@preamblecmds { \do \DeclareMathOperator } |
| 1605 |
\tl_remove_all:Nn \@preamblecmds { \do \newacronym } |
| 1606 |
\tl_remove_all:Nn \@preamblecmds { \do \@declmathop } |
| 1607 |
\tl_remove_all:Nn \@preamblecmds { \do \usetikzlibrary } |
| 1608 |
% \end{macrocode} |
| 1609 |
% |
| 1610 |
% \subsection{Messages} |
| 1611 |
% |
| 1612 |
% In this section, some messages are declared for future use. |
| 1613 |
% \begin{macrocode} |
| 1614 |
\msg_new:nnnn{gzt}{issue-number-needed}{Option~ `#1'~ needed!} |
| 1615 |
{Please~ specify~ `#1=<number>', |
| 1616 |
~ otherwise~ `<number>'~ will~ be~ set~ to |
| 1617 |
~ `\int_use:N\c_@@_first_issue_number_int'.} |
| 1618 |
\msg_new:nnnn{gzt}{unknown-choice}{Choice~ `#3'~ invalid!} |
| 1619 |
{Please~ specify~ #1=#2.} |
| 1620 |
%<class>\msg_new:nnnn{gzt}{configuration-file-missing}{File~ `\c_@@_configuration_file_string_tl'~ missing!} |
| 1621 |
%<class> {The~ whole~ issue~ may~ not~ be~ conform~ if~ `\c_@@_configuration_file_string_tl'~ is~ missing.} |
| 1622 |
%<class>\msg_new:nnnn{gzt}{editorial-file-missing}{File~ `\c_@@_editorial_file_string_tl'~ missing!} |
| 1623 |
%<class> {The~ whole~ issue~ requires~ the~ `\c_@@_editorial_file_string_tl'~ file.} |
| 1624 |
% \end{macrocode} |
| 1625 |
% |
| 1626 |
% \subsection{Counters} |
| 1627 |
% |
| 1628 |
% In this section, we define some counters for future use. |
| 1629 |
% |
| 1630 |
% \begin{macro}{\g_@@_editors_in_chief_int,\g_@@_articles_int,\g_@@_questions_answers_int} |
| 1631 |
% |
| 1632 |
% The integer ×\g_@@_editors_in_chief_int× will count the number of editors in |
| 1633 |
% chief in order to use singular or plural form of the corresponding string |
| 1634 |
% \enquote{Rédacteur(s) en chef}. |
| 1635 |
% \begin{macrocode} |
| 1636 |
\int_new:N \g_@@_editors_in_chief_int |
| 1637 |
% \end{macrocode} |
| 1638 |
% |
| 1639 |
% The integer ×\g_@@_item_in_rubric_int× will count the number of item in |
| 1640 |
% a rubric in order to give a specific behavior of the first of them. |
| 1641 |
% \begin{macrocode} |
| 1642 |
\int_new:N \g_@@_item_in_rubric_int |
| 1643 |
% \end{macrocode} |
| 1644 |
% |
| 1645 |
% The integer ×\g_@@_articles_int× will count the number of articles in order to |
| 1646 |
% provide for each of them a unique bibliographic key. |
| 1647 |
% \begin{macrocode} |
| 1648 |
\int_new:N \g_@@_articles_int |
| 1649 |
% \end{macrocode} |
| 1650 |
% |
| 1651 |
% The integer ×\g_@@_question_int× will count the number of questions |
| 1652 |
% (and hence of answers) in order to provide distinguish between the first and |
| 1653 |
% the subsequent questions/answers of an interview, the former being likely to |
| 1654 |
% be typeset differently (e.g. the names of the interviewer and the interviewee |
| 1655 |
% may appear only in the first question/answer). |
| 1656 |
% \begin{macrocode} |
| 1657 |
\int_new:N \g_@@_question_int |
| 1658 |
% \end{macrocode} |
| 1659 |
% \end{macro} |
| 1660 |
% |
| 1661 |
% \subsection{Constants} |
| 1662 |
% |
| 1663 |
% In this section, we declared some constants for future use. |
| 1664 |
% |
| 1665 |
% \subsubsection{Integers} |
| 1666 |
% |
| 1667 |
% \paragraph{Issue numbers} |
| 1668 |
% |
| 1669 |
% \begin{macro}{\c_@@_first_issue_number_int,\c_@@_first_issue_year_int,\c_@@_first_issue_month_int,\c_@@_interval_in_months_int} |
| 1670 |
% The first issue number, month and year, and the interval (in months) between |
| 1671 |
% two consecutive issues, are declared. |
| 1672 |
% \begin{macrocode} |
| 1673 |
\int_const:Nn \c_@@_first_issue_number_int { 143 } |
| 1674 |
\int_const:Nn \c_@@_first_issue_year_int { 2015 } |
| 1675 |
\int_const:Nn \c_@@_first_issue_month_int { 1 } |
| 1676 |
\int_const:Nn \c_@@_interval_in_months_int { 3 } |
| 1677 |
% \end{macrocode} |
| 1678 |
% \end{macro} |
| 1679 |
% |
| 1680 |
% \subsubsection{Strings and keywords} |
| 1681 |
% |
| 1682 |
% We now declare some private string constants. |
| 1683 |
% |
| 1684 |
% \begin{macro}{\c_@@_journal_short_title_string_tl,\c_@@_journal_title_string_tl,\c_@@_editors_in_chief_string_tl,\c_@@_editors_string_tl,\c_@@_editorial_board_string_tl,\c_@@_editorial_secretariat_string_tl,\c_@@_phone_string_tl,\c_@@_fax_string_tl,\c_@@_informations_string_tl,\g_@@_publishingdirector_string_tl,\c_@@_issn_string_tl,\c_@@_isbn_string_tl,\c_@@_latexclass_string_tl,\c_@@_font_string_tl,\c_@@_configuration_file_string_tl,\c_@@_cover_string_tl,\c_@@_artistic_director_string_tl,\c_@@_editorial_heading_string_tl,\c_@@_toc_string_tl,\c_@@_message_string_tl,\g_@@_president_signatory_string_tl,\c_@@_editorinchief_signatory_string_tl,\c_@@_issue_bib_file_tl,\c_@@_about_frontcover_string_tl,\c_@@_credit_frontcover_string_tl,\c_@@_authors_instructions_string_tl} |
| 1685 |
% For the journal's short and long titles. |
| 1686 |
% \begin{macrocode} |
| 1687 |
\tl_const:Nn \c_@@_journal_short_title_string_tl {Gazette} |
| 1688 |
\tl_const:Nn \c_@@_journal_title_string_tl { |
| 1689 |
\c_@@_journal_short_title_string_tl{}~ de~ la~ Soci\'et\'e~ Math\'ematique~ de~ France |
| 1690 |
} |
| 1691 |
% \end{macrocode} |
| 1692 |
% |
| 1693 |
% For the names of the underlying classes. |
| 1694 |
% \begin{macrocode} |
| 1695 |
\tl_const:Nn \c_@@_class_name_tl {gzt} |
| 1696 |
\tl_const:Nn \c_@@_article_class_name_tl {gztarticle} |
| 1697 |
% \end{macrocode} |
| 1698 |
% |
| 1699 |
% For the editor(s) in chief. |
| 1700 |
% \begin{macrocode} |
| 1701 |
\tl_const:Nn \c_@@_editors_in_chief_string_tl |
| 1702 |
{ |
| 1703 |
\int_compare:nNnTF { \g_@@_editors_in_chief_int } > { 1 } |
| 1704 |
{ \c_@@_editorsinchief_string_tl } |
| 1705 |
{ \g_@@_editorinchief_string_tl } |
| 1706 |
} |
| 1707 |
% \end{macrocode} |
| 1708 |
% For the editors in chief (plural form of the previous one). |
| 1709 |
% \begin{macrocode} |
| 1710 |
\tl_const:Nn \c_@@_editorsinchief_string_tl {R\'edacteurs~ en~ chef } |
| 1711 |
% \end{macrocode} |
| 1712 |
% For the editors. |
| 1713 |
% \begin{macrocode} |
| 1714 |
\tl_const:Nn \c_@@_editors_string_tl {R\'edacteurs } |
| 1715 |
% \end{macrocode} |
| 1716 |
% For the editorial board. |
| 1717 |
% \begin{macrocode} |
| 1718 |
\tl_const:Nn \c_@@_editorial_board_string_tl {Comit\'e~ de~ r\'edaction} |
| 1719 |
% \end{macrocode} |
| 1720 |
% For the editorial board of special edition. |
| 1721 |
% \begin{macrocode} |
| 1722 |
\tl_const:Nn \c_@@_special_edition_editorial_board_string_tl { |
| 1723 |
Num\'ero~ sp\'ecial~ de~ la~ Gazette~ de~ la~ Soci\'et\'e~ Math\'ematique~ de~ |
| 1724 |
France~ sous~ la~ direction~ de~ : |
| 1725 |
} |
| 1726 |
% \end{macrocode} |
| 1727 |
% For the editorial_secretariat. |
| 1728 |
% \begin{macrocode} |
| 1729 |
\tl_const:Nn \c_@@_editorial_secretariat_string_tl {Secr\'etariat~ de~ r\'edaction} |
| 1730 |
% \end{macrocode} |
| 1731 |
% For the phone. |
| 1732 |
% \begin{macrocode} |
| 1733 |
\tl_const:Nn \c_@@_phone_string_tl {T\'el.} |
| 1734 |
% \end{macrocode} |
| 1735 |
% For the fax. |
| 1736 |
% \begin{macrocode} |
| 1737 |
\tl_const:Nn \c_@@_fax_string_tl {Fax} |
| 1738 |
% \end{macrocode} |
| 1739 |
% For the informations. |
| 1740 |
% \begin{macrocode} |
| 1741 |
\tl_const:Nn \c_@@_informations_string_tl {Renseignements} |
| 1742 |
% \end{macrocode} |
| 1743 |
% For the \textsc{issn}. |
| 1744 |
% \begin{macrocode} |
| 1745 |
\tl_const:Nn \c_@@_issn_string_tl {\textsc{issn}} |
| 1746 |
% \end{macrocode} |
| 1747 |
% For the \textsc{isbn}. |
| 1748 |
% \begin{macrocode} |
| 1749 |
\tl_const:Nn \c_@@_isbn_string_tl {\textsc{isbn}} |
| 1750 |
% \end{macrocode} |
| 1751 |
% For "\LaTeX Class". |
| 1752 |
% \begin{macrocode} |
| 1753 |
\tl_const:Nn \c_@@_latexclass_string_tl {Classe~ \LaTeX{}} |
| 1754 |
% \end{macrocode} |
| 1755 |
% For "Impression". |
| 1756 |
% \begin{macrocode} |
| 1757 |
\tl_const:Nn \c_@@_printer_string_tl {Impression} |
| 1758 |
% \end{macrocode} |
| 1759 |
% For configuration file. |
| 1760 |
% \begin{macrocode} |
| 1761 |
\tl_const:Nn \c_@@_configuration_file_string_tl {gzt.cfg} |
| 1762 |
% \end{macrocode} |
| 1763 |
% For the artistic director. |
| 1764 |
% \begin{macrocode} |
| 1765 |
\tl_const:Nn \c_@@_artistic_director_string_tl {Conception~ graphique} |
| 1766 |
% \end{macrocode} |
| 1767 |
% For the editorial. |
| 1768 |
% \begin{macrocode} |
| 1769 |
\AddToHook{begindocument/before}{ |
| 1770 |
\bool_if:NTF {\g_@@_special_edition_bool} { |
| 1771 |
\tl_const:Nn \c_@@_editorial_heading_string_tl {Avant-propos} |
| 1772 |
}{ |
| 1773 |
\tl_const:Nn \c_@@_editorial_heading_string_tl {\'Editorial} |
| 1774 |
} |
| 1775 |
} |
| 1776 |
% \end{macrocode} |
| 1777 |
% For the table of contents. |
| 1778 |
% \begin{macrocode} |
| 1779 |
\tl_const:Nn \c_@@_toc_string_tl {Sommaire} |
| 1780 |
% \end{macrocode} |
| 1781 |
% For the date of the editor in chief's message. |
| 1782 |
% \begin{macrocode} |
| 1783 |
\tl_const:Nn \c_@@_editorinchief_message_date_string_tl {Le~ \displaydate{@@_editorinchief_message_date}} |
| 1784 |
% \end{macrocode} |
| 1785 |
% For the date of the president's message. |
| 1786 |
% \begin{macrocode} |
| 1787 |
\tl_const:Nn \c_@@_president_message_date_string_tl {Le~ } |
| 1788 |
% \end{macrocode} |
| 1789 |
% For the special editions. |
| 1790 |
% \begin{macrocode} |
| 1791 |
\tl_const:Nn \c_@@_special_edition_string_tl {\c_space_tl{}sp{\'e}cial} |
| 1792 |
\tl_const:Nn \c_@@_long_special_edition_string_tl {Numéro\c_@@_special_edition_string_tl} |
| 1793 |
\tl_const:Nn \c_@@_short_special_edition_string_tl {\No{}\c_@@_special_edition_string_tl} |
| 1794 |
% \end{macrocode} |
| 1795 |
% For the front cover header text. |
| 1796 |
% \begin{macrocode} |
| 1797 |
\AddToHook{begindocument/before}{ |
| 1798 |
\tl_const:Nn \c_@@_frontcover_header_string_tl { |
| 1799 |
\bool_if:NT {\g_@@_special_edition_bool} { |
| 1800 |
\text_uppercase:n {\c_@@_long_special_edition_string_tl} |
| 1801 |
\medskip |
| 1802 |
\par |
| 1803 |
\normalsize |
| 1804 |
} |
| 1805 |
\l_@@_uppercased_date_format\displaydate{@@_date} |
| 1806 |
\bool_if:NF {\g_@@_special_edition_bool} { |
| 1807 |
\c_space_tl |
| 1808 |
\textendash{} |
| 1809 |
\c_space_tl |
| 1810 |
\No |
| 1811 |
\int_use:N\g_@@_issue_number_int |
| 1812 |
} |
| 1813 |
} |
| 1814 |
} |
| 1815 |
% \end{macrocode} |
| 1816 |
% For the graphics extensions. |
| 1817 |
% \begin{macrocode} |
| 1818 |
\clist_const:Nn \c_@@_graphics_extensions_clist {png,PNG,jpg,JPG,jpeg,JPEG,pdf,PDF} |
| 1819 |
% \end{macrocode} |
| 1820 |
% For the pdftitle text. |
| 1821 |
% \begin{macrocode} |
| 1822 |
\tl_const:Nn \c_@@_pdftitle_string_tl { |
| 1823 |
\bool_if:NTF {\g_@@_moral_report_bool} { |
| 1824 |
\c_@@_moralreport_rubric_string_tl |
| 1825 |
}{ |
| 1826 |
\c_@@_journal_title_string_tl |
| 1827 |
% \c_space_tl |
| 1828 |
% \textendash{} |
| 1829 |
% \c_space_tl |
| 1830 |
% \l_@@_uppercased_date_format{\displaydate{@@_date}} |
| 1831 |
\c_space_tl |
| 1832 |
\textendash{} |
| 1833 |
\c_space_tl |
| 1834 |
N° |
| 1835 |
\bool_if:NTF {\g_@@_special_edition_bool} { |
| 1836 |
\c_@@_special_edition_string_tl |
| 1837 |
\c_space_tl |
| 1838 |
\g_@@_special_edition_title_tl |
| 1839 |
}{ |
| 1840 |
\int_use:N\g_@@_issue_number_int |
| 1841 |
} |
| 1842 |
} |
| 1843 |
} |
| 1844 |
% \end{macrocode} |
| 1845 |
% For the name of the directory containing the editorial and the president message. |
| 1846 |
% \begin{macrocode} |
| 1847 |
\tl_const:Nn \c_@@_frontmatter_directory_string_tl {frontmatter} |
| 1848 |
% \end{macrocode} |
| 1849 |
% For the name of the directory containing the 3rd and 4th cover pages. |
| 1850 |
% \begin{macrocode} |
| 1851 |
\tl_const:Nn \c_@@_backmatter_directory_string_tl {backmatter} |
| 1852 |
% \end{macrocode} |
| 1853 |
% For the name of the file containing the editorial. |
| 1854 |
% \begin{macrocode} |
| 1855 |
\tl_const:Nn \c_@@_editorial_file_string_tl {\c_@@_frontmatter_directory_string_tl/editorial} |
| 1856 |
% \end{macrocode} |
| 1857 |
% For the name of the file containing the president message. |
| 1858 |
% \begin{macrocode} |
| 1859 |
\tl_const:Nn \c_@@_president_message_file_string_tl {\c_@@_frontmatter_directory_string_tl/presidentmessage} |
| 1860 |
% \end{macrocode} |
| 1861 |
% For the path to the current issue's directory. |
| 1862 |
% \begin{macrocode} |
| 1863 |
\tl_const:Nn \c_@@_issue_path_string_tl {\int_use:N \g_@@_issue_number_int} |
| 1864 |
% \end{macrocode} |
| 1865 |
% For the name and path of the images directory. |
| 1866 |
% \begin{macrocode} |
| 1867 |
\tl_const:Nn \c_@@_images_directory_string_tl {images} |
| 1868 |
\tl_const:Nn \c_@@_issue_images_path_string_tl { |
| 1869 |
\c_@@_images_directory_string_tl} |
| 1870 |
% \end{macrocode} |
| 1871 |
% For the name of the file containing the image of the current issue's front cover. |
| 1872 |
% \begin{macrocode} |
| 1873 |
\tl_const:Nn \c_@@_issue_frontcover_default_image_file_tl {frontcover} |
| 1874 |
% \end{macrocode} |
| 1875 |
% For the name of the file containing the text of the current issue's back cover. |
| 1876 |
% \begin{macrocode} |
| 1877 |
\tl_const:Nn \c_@@_issue_backcover_text_file_string_tl {backcover} |
| 1878 |
\tl_const:Nn \c_@@_backcover_page_file_string_tl { |
| 1879 |
\c_@@_backmatter_directory_string_tl/\c_@@_issue_backcover_text_file_string_tl |
| 1880 |
} |
| 1881 |
% \end{macrocode} |
| 1882 |
% For the name of the file containing the text of the special issue's abstract back cover. |
| 1883 |
% \begin{macrocode} |
| 1884 |
\tl_const:Nn \c_@@_special_edition_backcover_text_file_string_tl {abstract_backcover} |
| 1885 |
\tl_const:Nn \c_@@_special_edition_backcover_page_file_string_tl { |
| 1886 |
\c_@@_backmatter_directory_string_tl/\c_@@_special_edition_backcover_text_file_string_tl |
| 1887 |
} |
| 1888 |
% \end{macrocode} |
| 1889 |
% For the name of the file of the special issue's picture back cover. |
| 1890 |
% \begin{macrocode} |
| 1891 |
\tl_const:Nn \c_@@_special_edition_backcover_picture_string_tl {picture_backcover} |
| 1892 |
\tl_const:Nn \c_@@_special_edition_backcover_page_picture_string_tl { |
| 1893 |
\c_@@_backmatter_directory_string_tl/\c_@@_special_edition_backcover_picture_string_tl |
| 1894 |
} |
| 1895 |
% \end{macrocode} |
| 1896 |
% For the name of the file containing the acronyms. |
| 1897 |
% \begin{macrocode} |
| 1898 |
\tl_const:Nn \c_@@_acronyms_file_string_tl {\c_@@_class_name_tl acronyms} |
| 1899 |
% \end{macrocode} |
| 1900 |
% For authors' instructions file. |
| 1901 |
% \begin{macrocode} |
| 1902 |
\tl_const:Nn \c_@@_authors_instructions_file_extension_tl {ain} |
| 1903 |
\tl_const:Nn \c_@@_authors_instructions_file_tl {\c_sys_jobname_str.\c_@@_authors_instructions_file_extension_tl} |
| 1904 |
% \end{macrocode} |
| 1905 |
% For the few words about the front cover. |
| 1906 |
% \begin{macrocode} |
| 1907 |
\tl_const:Nn \c_@@_about_frontcover_string_tl {\`A~ propos~ de~ la~ couverture.} |
| 1908 |
% \end{macrocode} |
| 1909 |
% For the credit of the front cover. |
| 1910 |
% \begin{macrocode} |
| 1911 |
\tl_const:Nn \c_@@_credit_frontcover_string_tl {cr\'edit} |
| 1912 |
% \end{macrocode} |
| 1913 |
% For the authors instructions. |
| 1914 |
% \begin{macrocode} |
| 1915 |
\tl_const:Nn \c_@@_authors_instructions_string_tl {Instructions~ aux~ autrices~ et~ auteurs} |
| 1916 |
% \end{macrocode} |
| 1917 |
% For the preliminary versions sent to authors for checking. |
| 1918 |
% \begin{macrocode} |
| 1919 |
\tl_const:Nn \c_@@_preliminary_version_string_tl { |
| 1920 |
Ce~ document~ est~ une~ {\'e}preuve~ vous~ permettant~ de~ contr{\^o}ler~ l'int{\'e}grit{\'e}~ du~ |
| 1921 |
texte~ d'origine~ (et~ de~ la~ bibliographie~ s'il~ y~ en~ a~ une)~ de~ votre~ article~ |
| 1922 |
{\`a}~ para{\^\i}tre~ dans~ le~ prochain~ num{\'e}ro~ de~ la~ \gzt*{}.~ La~ mise~ en~ page~ |
| 1923 |
actuelle~ n'est~ pas~ d{\'e}finitive\,:~ votre~ article~ pourra~ en~ particulier~ ne~ pas~ |
| 1924 |
d{\'e}buter~ en~ haut~ d'une~ page. |
| 1925 |
} |
| 1926 |
% \end{macrocode} |
| 1927 |
% For the string that preceeds the title in the \enquote{Tell me} rubric. |
| 1928 |
% \begin{macrocode} |
| 1929 |
\tl_const:Nn \c_@@_tellme_extra_title_string_tl {...\c_space_tl} |
| 1930 |
% \end{macrocode} |
| 1931 |
% For the separator between a rubric and an article's title in the minitoc. |
| 1932 |
% \begin{macrocode} |
| 1933 |
\tl_const:Nn \c_@@_minitoc_rubric_title_separator_string_tl {\c_space_tl\textendash} |
| 1934 |
% \end{macrocode} |
| 1935 |
% Names of the pictogram files. |
| 1936 |
% \begin{macrocode} |
| 1937 |
\tl_const:Nn \c_@@_mathematics_pictogram_file_name_tl {picto-mathematics} |
| 1938 |
\tl_const:Nn \c_@@_dossier_pictogram_file_name_tl {picto-dossier} |
| 1939 |
\tl_const:Nn \c_@@_community_pictogram_file_name_tl {picto-hands} |
| 1940 |
\tl_const:Nn \c_@@_interview_pictogram_file_name_tl {picto-interview} |
| 1941 |
\tl_const:Nn \c_@@_teaching_pictogram_file_name_tl {picto-teaching} |
| 1942 |
\tl_const:Nn \c_@@_parity_pictogram_file_name_tl {picto-parity} |
| 1943 |
\tl_const:Nn \c_@@_tellme_pictogram_file_name_tl {picto-tellme} |
| 1944 |
\tl_const:Nn \c_@@_information_pictogram_file_name_tl {picto-information} |
| 1945 |
\tl_const:Nn \c_@@_rearviewmirror_pictogram_file_name_tl {picto-rearviewmirror} |
| 1946 |
\tl_const:Nn \c_@@_tribute_pictogram_file_name_tl {picto-tribute} |
| 1947 |
\tl_const:Nn \c_@@_books_pictogram_file_name_tl {picto-books} |
| 1948 |
\tl_const:Nn \c_@@_forum_pictogram_file_name_tl {picto-forum} |
| 1949 |
% \end{macrocode} |
| 1950 |
% For the miscellaneous rubrics. |
| 1951 |
% \begin{macrocode} |
| 1952 |
\tl_const:Nn \c_@@_mathematics_rubric_string_tl {Math\'ematiques} |
| 1953 |
\tl_const:Nn \c_@@_dossier_rubric_string_tl {Dossier} |
| 1954 |
\tl_const:Nn \c_@@_community_rubric_string_tl {Vie~ de~ la~ communaut\'e} |
| 1955 |
\tl_const:Nn \c_@@_interview_rubric_string_tl {Entretien} |
| 1956 |
\tl_const:Nn \c_@@_teaching_rubric_string_tl {Diffusion~ des~ savoirs} |
| 1957 |
\tl_const:Nn \c_@@_parity_rubric_string_tl {Parit\'e} |
| 1958 |
\tl_const:Nn \c_@@_tellme_rubric_string_tl {Raconte-moi} |
| 1959 |
\tl_const:Nn \c_@@_information_rubric_string_tl {Information} |
| 1960 |
\tl_const:Nn \c_@@_rearviewmirror_rubric_string_tl {R\'etroviseur} |
| 1961 |
\tl_const:Nn \c_@@_tribute_rubric_string_tl {Carnet} |
| 1962 |
% \tl_const:Nn \c_@@_books_rubric_string_tl {Recension} |
| 1963 |
\tl_const:Nn \c_@@_books_rubric_string_tl {Livres} |
| 1964 |
\tl_const:Nn \c_@@_latex_rubric_string_tl {Astuces~ \LaTeX{}} |
| 1965 |
\tl_const:Nn \c_@@_forum_rubric_string_tl {Tribune~ libre} |
| 1966 |
\tl_const:Nn \c_@@_published_with_help_of_string_tl {Publi\'e~ avec~ le~ concours~ de~ :} |
| 1967 |
\tl_const:Nn \c_@@_advertisement_directory_string_tl {advertisement/} |
| 1968 |
\tl_const:Nn \c_@@_advertisement_string_tl {Publicit\'e} |
| 1969 |
\tl_const:Nn \c_@@_moralreport_rubric_string_tl {Rapport~ moral} |
| 1970 |
% \end{macrocode} |
| 1971 |
% \end{macro} |
| 1972 |
% |
| 1973 |
% For the long and short forms of \textsc{smf}. |
| 1974 |
% \begin{macrocode} |
| 1975 |
\tl_const:Nn \c_@@_smf_short_string_tl {\textsc{smf}} |
| 1976 |
\tl_const:Nn \c_@@_smf_short_pdf_string_tl {SMF} |
| 1977 |
\tl_const:Nn \c_@@_smf_string_tl {Soci\'et\'e~ Math\'ematique~ de~ France} |
| 1978 |
% \end{macrocode} |
| 1979 |
% For the long and short forms of \enquote{c'est-à-dire} and |
| 1980 |
% \enquote{C'est-à-dire} (\enquote{that is} and \enquote{That is}). |
| 1981 |
% \begin{macrocode} |
| 1982 |
\tl_const:Nn \c_@@_cad_short_string_tl {c.-\`a-d.} |
| 1983 |
\tl_const:Nn \c_@@_cad_string_tl {c'est-\`a-dire} |
| 1984 |
\tl_const:Nn \c_@@_Cad_short_string_tl {C.-\`a-d.} |
| 1985 |
\tl_const:Nn \c_@@_Cad_string_tl {C'est-\`a-dire} |
| 1986 |
% \end{macrocode} |
| 1987 |
% For the footer text. |
| 1988 |
% \begin{macrocode} |
| 1989 |
\tl_const:Nn \c_@@_footer_string_tl { |
| 1990 |
\c_@@_footer_size_font_tl |
| 1991 |
\textcolor{@@_smf_number_color}{\text_uppercase:n {\c_@@_smf_short_string_tl}} |
| 1992 |
\c_space_tl |
| 1993 |
\textcolor{@@_date_color}{ |
| 1994 |
\textendash{}\c_space_tl |
| 1995 |
\bool_if:NTF {\g_@@_moral_report_bool} { |
| 1996 |
\text_uppercase:n { \c_@@_moralreport_rubric_string_tl } |
| 1997 |
}{ |
| 1998 |
\text_uppercase:n {\c_@@_journal_short_title_string_tl} |
| 1999 |
\bool_if:nF { |
| 2000 |
\g_@@_inside_frontcover_bool || \g_@@_backmatter_bool || |
| 2001 |
{\int_compare_p:nNn {\g_@@_issue_number_int}={0}} |
| 2002 |
}{ |
| 2003 |
\c_space_tl\textendash{}\c_space_tl |
| 2004 |
\l_@@_uppercased_date_format\displaydate{@@_date} |
| 2005 |
\bool_if:NF {\g_@@_special_edition_bool} { |
| 2006 |
\c_space_tl |
| 2007 |
\textendash{}\c_space_tl |
| 2008 |
\textcolor{@@_smf_number_color}{\No\int_use:N\g_@@_issue_number_int} |
| 2009 |
} |
| 2010 |
} |
| 2011 |
} |
| 2012 |
} |
| 2013 |
} |
| 2014 |
% \end{macrocode} |
| 2015 |
% For the name of the file containing the \textsc{smf} logo. |
| 2016 |
% \begin{macrocode} |
| 2017 |
\file_if_exist:nTF { logo_SMF.pdf }{ |
| 2018 |
\tl_const:Nn \c_@@_smf_logo_file_string_tl {logo_SMF} |
| 2019 |
}{ |
| 2020 |
\tl_const:Nn \c_@@_smf_logo_file_string_tl {example-image} |
| 2021 |
} |
| 2022 |
% \end{macrocode} |
| 2023 |
% For the name of the file containing the bibliography of the current issue. |
| 2024 |
% \begin{macrocode} |
| 2025 |
% \tl_const:Nn \c_@@_issue_bib_file_string_tl {issue-\c_sys_jobname_str.bib} |
| 2026 |
\tl_const:Nn \c_@@_issue_bib_file_suffix_string_tl {@@} |
| 2027 |
\tl_const:Nn \c_@@_issue_bib_file_string_tl {\c_sys_jobname_str\c_@@_issue_bib_file_suffix_string_tl.bib} |
| 2028 |
\tl_const:Nn \c_@@_issue_bib_path_string_tl {\c_@@_issue_bib_file_string_tl} |
| 2029 |
% \end{macrocode} |
| 2030 |
% For the prefix of the bibliographic key of each article. |
| 2031 |
% \begin{macrocode} |
| 2032 |
\bool_if:NTF {\g_@@_special_edition_bool} { |
| 2033 |
\tl_const:Nn \c_@@_issue_bib_key_tl {special-edition} |
| 2034 |
}{ |
| 2035 |
\tl_const:Nn \c_@@_issue_bib_key_tl {\int_use:N \g_@@_issue_number_int} |
| 2036 |
} |
| 2037 |
% \end{macrocode} |
| 2038 |
% For the interview title. |
| 2039 |
% \begin{macrocode} |
| 2040 |
\tl_const:Nn \c_@@_interview_title_string_tl {En~ apart\'e~ avec~ } |
| 2041 |
% \end{macrocode} |
| 2042 |
% For the asides opening and eventuelly closing punctuation marks. |
| 2043 |
% \begin{macrocode} |
| 2044 |
\tl_const:Nn \c_@@_aside_string_tl {--} |
| 2045 |
% \end{macrocode} |
| 2046 |
% For the draft watermark. |
| 2047 |
% \begin{macrocode} |
| 2048 |
\tl_const:Nn \c_@@_draftwatermark_string_tl {draft} |
| 2049 |
% \end{macrocode} |
| 2050 |
% For the text accompagnying the date displayed in the footer of the authors' versions. |
| 2051 |
% \begin{macrocode} |
| 2052 |
\tl_const:Nn \c_@@_compiled_string_tl { |
| 2053 |
\int_compare:nNnT {\g_@@_issue_number_int}={0} { |
| 2054 |
\c_@@_footer_size_font_tl |
| 2055 |
\IfLanguageName{french}{ |
| 2056 |
Compil\'e~ le~ |
| 2057 |
}{ |
| 2058 |
Compiled~ on~ |
| 2059 |
} |
| 2060 |
\today |
| 2061 |
} |
| 2062 |
} |
| 2063 |
% \end{macrocode} |
| 2064 |
% |
| 2065 |
% % \begin{macro}{smf,issn,isbn,cv} |
| 2066 |
% % \begin{macrocode} |
| 2067 |
% \newacronym{smf}{smf}{\c_@@_smf_string_tl} |
| 2068 |
% \newacronym{issn}{issn}{International Standard Serial Number} |
| 2069 |
% \newacronym{isbn}{isbn}{International Standard Book Number} |
| 2070 |
% \newacronym{cv}{cv}{curriculum vit\ae} |
| 2071 |
% \end{macrocode} |
| 2072 |
% % \end{macro} |
| 2073 |
% |
| 2074 |
% \subsubsection{Booleans} |
| 2075 |
% |
| 2076 |
% We now declare the booleans that will be used. |
| 2077 |
% |
| 2078 |
% \begin{macro}{\g_@@_frontcover_bool,\g_@@_inside_frontcover_bool,\g_@@_inside_backcover_bool,\g_@@_frontmatter_bool,\g_@@_rubric_bool,\g_@@_interview_rubric_bool,\g_@@_mainmatter_bool,\g_@@_backmatter_bool,\g_@@_backcover_bool} |
| 2079 |
% The following booleans will be used to test whether we are respectively in the |
| 2080 |
% front cover, in the inside front cover, in the frontmatter, in (first page |
| 2081 |
% of) a rubric, in the mainmatter. |
| 2082 |
% \begin{macrocode} |
| 2083 |
\bool_new:N \g_@@_frontcover_bool |
| 2084 |
\bool_new:N \g_@@_inside_frontcover_bool |
| 2085 |
\bool_new:N \g_@@_inside_backcover_bool |
| 2086 |
\bool_new:N \g_@@_frontmatter_bool |
| 2087 |
\bool_new:N \g_@@_rubric_bool |
| 2088 |
\bool_new:N \g_@@_interview_rubric_bool |
| 2089 |
\bool_new:N \g_@@_tellme_rubric_bool |
| 2090 |
\bool_new:N \g_@@_rearviewmirror_rubric_bool |
| 2091 |
\bool_new:N \g_@@_books_rubric_bool |
| 2092 |
\bool_new:N \g_@@_mainmatter_bool |
| 2093 |
\bool_new:N \g_@@_backmatter_bool |
| 2094 |
\bool_new:N \g_@@_backcover_bool |
| 2095 |
\bool_new:N \g_@@_frontcover_without_minitoc_bool |
| 2096 |
% \end{macrocode} |
| 2097 |
% \end{macro} |
| 2098 |
% |
| 2099 |
% \begin{macro}{\g_@@_previous_article_with_bibliography_or_minibio_bool} |
| 2100 |
% The following boolean will be used to test, for a given (not first) article |
| 2101 |
% of a rubric, whether the previous article ends with a bibliography or |
| 2102 |
% a minibio, in order to adjust the vertical space before its \enquote{bullet |
| 2103 |
% and rule}. |
| 2104 |
% \begin{macrocode} |
| 2105 |
\bool_new:N \g_@@_previous_article_with_bibliography_or_minibio_bool |
| 2106 |
% \end{macrocode} |
| 2107 |
% \end{macro} |
| 2108 |
% |
| 2109 |
% \begin{macro}{\g_@@_advertisement_bool} |
| 2110 |
% The following boolean will be used to test whether we are inside |
| 2111 |
% an advertisement page. |
| 2112 |
% \begin{macrocode} |
| 2113 |
\bool_new:N \g_@@_advertisement_bool |
| 2114 |
% \end{macrocode} |
| 2115 |
% \end{macro} |
| 2116 |
% |
| 2117 |
% \begin{macro}{\g_@@_multicols_bool} |
| 2118 |
% The following boolean will be used to test whether we are inside |
| 2119 |
% a \pkg{multicol}'s ×multicols× environment. |
| 2120 |
% \begin{macrocode} |
| 2121 |
\bool_new:N \g_@@_multicols_bool |
| 2122 |
% \end{macrocode} |
| 2123 |
% \end{macro} |
| 2124 |
% |
| 2125 |
% \begin{macro}{\g_@@_refsection_bool} |
| 2126 |
% The following boolean will be used to test whether we are inside |
| 2127 |
% a \pkg{biblatex}'s ×refsection× environment. |
| 2128 |
% \begin{macrocode} |
| 2129 |
\bool_new:N \g_@@_refsection_bool |
| 2130 |
% \end{macrocode} |
| 2131 |
% |
| 2132 |
% \subsubsection{Dimensions} |
| 2133 |
% |
| 2134 |
% \paragraph{Geometry of the page} |
| 2135 |
% |
| 2136 |
% \begin{macro}{\c_@@_rubrics_abstract_width_dim,\c_@@_rubrics_head_text_abstract_width_dim,\c_@@_rubrics_head_text_no_abstract_width_dim,\l_@@_rubrics_head_text_width_dim} |
| 2137 |
% We declare the constant (default) dimensions of the boxes containing the |
| 2138 |
% abstract and head text rubrics. |
| 2139 |
% \begin{macrocode} |
| 2140 |
\dim_const:Nn \c_@@_rubrics_abstract_width_dim { 85mm} |
| 2141 |
\dim_const:Nn \c_@@_rubrics_head_text_abstract_width_dim { 50mm} |
| 2142 |
\dim_const:Nn \c_@@_rubrics_head_text_no_abstract_width_dim |
| 2143 |
{ \c_@@_rubrics_abstract_width_dim + \c_@@_rubrics_head_text_abstract_width_dim} |
| 2144 |
\dim_new:N \l_@@_rubrics_head_text_width_dim |
| 2145 |
% \end{macrocode} |
| 2146 |
% \end{macro} |
| 2147 |
% |
| 2148 |
% \begin{macro}{\c_@@_offset_dim,\c_@@_paperheight_dim,\c_@@_paperwidth_dim,\c_@@_topmargin_dim,\c_@@_headsep_dim,\c_@@_botmargin_dim,\c_@@_innermargin_dim,\c_@@_outermargin_dim,\c_@@_footskip_dim,\c_@@_header_line_width_dim,\c_@@_header_line_yshift_dim} |
| 2149 |
% We first declare the default page layout constant dimensions. |
| 2150 |
% \begin{macrocode} |
| 2151 |
\dim_const:Nn \c_@@_layoutheight_dim { 270mm} |
| 2152 |
\dim_const:Nn \c_@@_layoutwidth_dim { 210mm} |
| 2153 |
% \end{macrocode} |
| 2154 |
% |
| 2155 |
% We define a \enquote{printer} layout offset dimension |
| 2156 |
% ×\c_@@_printer_layoutoffset_dim×, fixed by the printer to be \SI{5}{\mm}. |
| 2157 |
% \begin{macrocode} |
| 2158 |
\dim_const:Nn \c_@@_printer_layoutoffset_dim { 5mm} |
| 2159 |
% \end{macrocode} |
| 2160 |
% |
| 2161 |
% We define a \enquote{potential} layout offset dimension which is non-zero (and |
| 2162 |
% the equal to \enquote{printer} layout offset dimension) iff the output is |
| 2163 |
% prepared for the printer (×\g_@@_for_printer_bool× flag equals true). |
| 2164 |
% \begin{macrocode} |
| 2165 |
\bool_if:NTF {\g_@@_for_printer_bool} { |
| 2166 |
\dim_const:Nn \c_@@_potential_layoutoffset_dim { \c_@@_printer_layoutoffset_dim} |
| 2167 |
}{ |
| 2168 |
\dim_const:Nn \c_@@_potential_layoutoffset_dim {\c_zero_dim} |
| 2169 |
} |
| 2170 |
% \end{macrocode} |
| 2171 |
% |
| 2172 |
% We define a \enquote{printer} binding dimension |
| 2173 |
% ×\c_@@_printer_bindingoffset_dim×, fixed by the printer to have different |
| 2174 |
% values depending on some total pages thresholds. If the binding dimension is |
| 2175 |
% denoted by $b$ (and expressed in millimeters) and the total page number of the |
| 2176 |
% document\footnote{Except cover pages, that is the \enquote{real} total page |
| 2177 |
% number minus $4$.} is denoted by $N$, the thresholds are as follows: |
| 2178 |
% \begin{equation}\label{binding} |
| 2179 |
% b= |
| 2180 |
% \begin{cases} |
| 2181 |
% 0 & \text{ si } N < 68 \\ |
| 2182 |
% 3 & \text{ si } 68\leq N<80 \\ |
| 2183 |
% 3.5 & \text{ si } 80\leq N<88 \\ |
| 2184 |
% 3.9 & \text{ si } 88\leq N<96 \\ |
| 2185 |
% 4.1 & \text{ si } 96\leq N<104 \\ |
| 2186 |
% 4.5 & \text{ si } 104\leq N<120 \\ |
| 2187 |
% 5 & \text{ si } N\geq 120 |
| 2188 |
% \end{cases} |
| 2189 |
% \end{equation} |
| 2190 |
% |
| 2191 |
% We define the thresholds: |
| 2192 |
% \begin{macrocode} |
| 2193 |
\int_const:Nn \c_@@_thresold_a_int {68} |
| 2194 |
\int_const:Nn \c_@@_thresold_b_int {80} |
| 2195 |
\int_const:Nn \c_@@_thresold_c_int {88} |
| 2196 |
\int_const:Nn \c_@@_thresold_d_int {96} |
| 2197 |
\int_const:Nn \c_@@_thresold_e_int {104} |
| 2198 |
\int_const:Nn \c_@@_thresold_f_int {120} |
| 2199 |
% \end{macrocode} |
| 2200 |
% and the corresponding binding dimensions: |
| 2201 |
% \begin{macrocode} |
| 2202 |
\dim_const:Nn \c_@@_bindingoffset_a_dim {3mm} |
| 2203 |
\dim_const:Nn \c_@@_bindingoffset_b_dim {3.5mm} |
| 2204 |
\dim_const:Nn \c_@@_bindingoffset_c_dim {3.9mm} |
| 2205 |
\dim_const:Nn \c_@@_bindingoffset_d_dim {4.1mm} |
| 2206 |
\dim_const:Nn \c_@@_bindingoffset_e_dim {4.5mm} |
| 2207 |
\dim_const:Nn \c_@@_bindingoffset_f_dim {5mm} |
| 2208 |
% \end{macrocode} |
| 2209 |
% |
| 2210 |
% In order to know the total pages number of the document (store in |
| 2211 |
% ×\g_@@_total_page_number_int×), we need first to specify the |
| 2212 |
% \enquote{external} document whom \File{.aux} will be read. |
| 2213 |
% \begin{macrocode} |
| 2214 |
\int_new:N \g_@@_total_pages_number_int |
| 2215 |
\int_new:N \g_@@_total_inside_pages_number_int |
| 2216 |
\zexternaldocument[self]{\jobname} |
| 2217 |
% \end{macrocode} |
| 2218 |
% |
| 2219 |
% We extract the total pages number thanks to ×\zref@extractdefault× from |
| 2220 |
% \Package{zref-totpages}. |
| 2221 |
% \begin{macrocode} |
| 2222 |
\int_gset:Nn \g_@@_total_pages_number_int { \zref@extractdefault{selfLastPage}{abspage}{0} } |
| 2223 |
\int_gset:Nn \g_@@_total_inside_pages_number_int { \g_@@_total_pages_number_int - 4 } |
| 2224 |
% \end{macrocode} |
| 2225 |
% |
| 2226 |
% The \enquote{printer} binding dimension is now store in |
| 2227 |
% ×\c_@@_printer_bindingoffset_dim× following \vref{binding}. |
| 2228 |
% |
| 2229 |
% \begin{macrocode} |
| 2230 |
\int_compare:nNnTF {\g_@@_total_inside_pages_number_int}<{\c_@@_thresold_a_int} |
| 2231 |
{ |
| 2232 |
\dim_const:Nn \c_@@_printer_bindingoffset_dim { \c_zero_dim } |
| 2233 |
}{ |
| 2234 |
\int_compare:nNnTF {\g_@@_total_inside_pages_number_int}<{\c_@@_thresold_b_int} |
| 2235 |
{ |
| 2236 |
\dim_const:Nn \c_@@_printer_bindingoffset_dim { \c_@@_bindingoffset_a_dim } |
| 2237 |
}{ |
| 2238 |
\int_compare:nNnTF {\g_@@_total_inside_pages_number_int}<{\c_@@_thresold_c_int} |
| 2239 |
{ |
| 2240 |
\dim_const:Nn \c_@@_printer_bindingoffset_dim { \c_@@_bindingoffset_b_dim } |
| 2241 |
}{ |
| 2242 |
\int_compare:nNnTF {\g_@@_total_inside_pages_number_int}<{\c_@@_thresold_d_int} |
| 2243 |
{ |
| 2244 |
\dim_const:Nn \c_@@_printer_bindingoffset_dim { \c_@@_bindingoffset_c_dim } |
| 2245 |
}{ |
| 2246 |
\int_compare:nNnTF {\g_@@_total_inside_pages_number_int}<{\c_@@_thresold_e_int} |
| 2247 |
{ |
| 2248 |
\dim_const:Nn \c_@@_printer_bindingoffset_dim { \c_@@_bindingoffset_d_dim } |
| 2249 |
}{ |
| 2250 |
\int_compare:nNnTF {\g_@@_total_inside_pages_number_int}<{\c_@@_thresold_f_int} |
| 2251 |
{ |
| 2252 |
\dim_const:Nn \c_@@_printer_bindingoffset_dim { \c_@@_bindingoffset_e_dim } |
| 2253 |
}{ |
| 2254 |
\dim_const:Nn \c_@@_printer_bindingoffset_dim { \c_@@_bindingoffset_f_dim } |
| 2255 |
} |
| 2256 |
} |
| 2257 |
} |
| 2258 |
} |
| 2259 |
} |
| 2260 |
} |
| 2261 |
% \end{macrocode} |
| 2262 |
% |
| 2263 |
% The binding offset is applied iff the front cover is required (×frontcover× |
| 2264 |
% option), which implies the output is prepared for the printer, with non-zero |
| 2265 |
% offset (×\g_@@_for_printer_bool× flag equals true). |
| 2266 |
% \begin{macrocode} |
| 2267 |
\bool_if:NTF {\g_@@_cover_bool} { |
| 2268 |
\dim_const:Nn \c_@@_potential_bindingoffset_dim { \c_@@_printer_bindingoffset_dim } |
| 2269 |
}{ |
| 2270 |
\dim_const:Nn \c_@@_potential_bindingoffset_dim {\c_zero_dim} |
| 2271 |
} |
| 2272 |
% \end{macrocode} |
| 2273 |
% |
| 2274 |
% The paper height is rather simple: it is always the layout height dimension |
| 2275 |
% plus 2 times (top and bottom) the layout offset dimension (which turns to be |
| 2276 |
% non-zero iff the output is prepared for the printer). |
| 2277 |
% \begin{macrocode} |
| 2278 |
\dim_const:Nn \c_@@_paperheight_dim { \c_@@_layoutheight_dim+2\c_@@_potential_layoutoffset_dim} |
| 2279 |
% \end{macrocode} |
| 2280 |
% |
| 2281 |
% The paper width is more complicated: it is the layout width dimension plus: |
| 2282 |
% \begin{itemize} |
| 2283 |
% \item the \enquote{potential} binding offset (which turns to be non-zero iff |
| 2284 |
% only the cover page is output), |
| 2285 |
% \item the layout offset dimension (which turns to be non-zero iff the output |
| 2286 |
% is prepared for the printer): |
| 2287 |
% \begin{description} |
| 2288 |
% \item[if for the cover pages] just 1 time, |
| 2289 |
% \item[if for the other pages] 2 times. |
| 2290 |
% \end{description} |
| 2291 |
% \end{itemize} |
| 2292 |
% \begin{macrocode} |
| 2293 |
\bool_if:NTF {\g_@@_cover_bool} { |
| 2294 |
\dim_const:Nn \c_@@_paperwidth_dim { |
| 2295 |
\c_@@_layoutwidth_dim |
| 2296 |
+ |
| 2297 |
\c_@@_potential_layoutoffset_dim |
| 2298 |
+\c_@@_potential_bindingoffset_dim |
| 2299 |
} |
| 2300 |
}{ |
| 2301 |
\dim_const:Nn \c_@@_paperwidth_dim { |
| 2302 |
\c_@@_layoutwidth_dim |
| 2303 |
+ |
| 2304 |
2 |
| 2305 |
\c_@@_potential_layoutoffset_dim |
| 2306 |
+\c_@@_potential_bindingoffset_dim |
| 2307 |
} |
| 2308 |
} |
| 2309 |
% \end{macrocode} |
| 2310 |
% |
| 2311 |
% The image width is the layout width plus the (non-zero) printer layout offset |
| 2312 |
% dimension: |
| 2313 |
% \begin{macrocode} |
| 2314 |
\dim_const:Nn \c_@@_frontcover_image_width_dim { |
| 2315 |
\c_@@_layoutwidth_dim |
| 2316 |
+ |
| 2317 |
\c_@@_printer_layoutoffset_dim |
| 2318 |
} |
| 2319 |
\dim_const:Nn \c_@@_topmargin_dim { 31mm} |
| 2320 |
\dim_const:Nn \c_@@_topmargin_frontcover_dim { |
| 2321 |
\c_@@_topmargin_dim |
| 2322 |
+ 30mm |
| 2323 |
} |
| 2324 |
\dim_const:Nn \c_@@_topmargin_inside_cover_dim { |
| 2325 |
\c_@@_topmargin_dim |
| 2326 |
+10mm |
| 2327 |
} |
| 2328 |
\dim_const:Nn \c_@@_topmargin_front_matter_dim { |
| 2329 |
\c_@@_topmargin_inside_cover_dim |
| 2330 |
} |
| 2331 |
% \dim_const:Nn \c_@@_topmargin_backcover_dim { |
| 2332 |
% \c_@@_topmargin_frontcover_dim |
| 2333 |
% } |
| 2334 |
\dim_const:Nn \c_@@_headsep_dim { 24mm} |
| 2335 |
\dim_const:Nn \c_@@_headsep_frontcover_dim { |
| 2336 |
\c_@@_headsep_dim |
| 2337 |
+31mm |
| 2338 |
% -\c_@@_potential_layoutoffset_dim |
| 2339 |
} |
| 2340 |
\dim_const:Nn \c_@@_headsep_inside_frontcover_dim { |
| 2341 |
\c_@@_headsep_dim |
| 2342 |
+7mm |
| 2343 |
} |
| 2344 |
\dim_const:Nn \c_@@_headsep_front_matter_dim { |
| 2345 |
\c_@@_headsep_inside_frontcover_dim |
| 2346 |
} |
| 2347 |
\dim_const:Nn \c_@@_headheight_dim { \c_zero_dim } |
| 2348 |
\dim_const:Nn \c_@@_botmargin_dim { 30mm} |
| 2349 |
\dim_const:Nn \c_@@_footskip_dim { 26mm} |
| 2350 |
% \end{macrocode} |
| 2351 |
% |
| 2352 |
% Inner margins of the initial issue (\#~ 143) were too small. We make them |
| 2353 |
% definitively bigger as of \SI{5}{\milli\meter} (×\c_@@_extra_margin_dim×) and |
| 2354 |
% make the outer margins smaller of the same dimension. |
| 2355 |
% \begin{macrocode} |
| 2356 |
\dim_const:Nn \c_@@_extra_margin_dim { 5mm } |
| 2357 |
\dim_const:Nn \c_@@_innermargin_dim { 15mm - \c_@@_potential_bindingoffset_dim + \c_@@_extra_margin_dim} |
| 2358 |
\dim_const:Nn \c_@@_outermargin_dim { 30mm - \c_@@_extra_margin_dim } |
| 2359 |
\dim_const:Nn \c_@@_inside_cover_box_width_dim { 165mm } |
| 2360 |
\dim_const:Nn \c_@@_innermargin_inside_cover_dim { |
| 2361 |
(\c_@@_layoutwidth_dim - \c_@@_inside_cover_box_width_dim)/2 |
| 2362 |
- \c_@@_potential_bindingoffset_dim |
| 2363 |
% + \c_@@_adjustmargin_dim |
| 2364 |
} |
| 2365 |
\dim_const:Nn \c_@@_outermargin_inside_cover_dim { |
| 2366 |
(\c_@@_layoutwidth_dim - \c_@@_inside_cover_box_width_dim)/2 |
| 2367 |
% - \c_@@_adjustmargin_dim |
| 2368 |
} |
| 2369 |
\dim_const:Nn \c_@@_innermargin_backcover_dim { 10mm } |
| 2370 |
\dim_const:Nn \c_@@_outermargin_backcover_dim { \c_@@_innermargin_backcover_dim } |
| 2371 |
\dim_const:Nn \c_@@_topmargin_backcover_dim { \c_@@_innermargin_backcover_dim } |
| 2372 |
\dim_const:Nn \c_@@_bottommargin_backcover_dim { \c_@@_innermargin_backcover_dim } |
| 2373 |
\dim_const:Nn \c_@@_frontcover_image_height_dim { 160mm} |
| 2374 |
\dim_const:Nn \c_@@_radius_arc_dim { 85mm } |
| 2375 |
\dim_const:Nn \c_@@_frontmatter_headtext_xshift_dim { 19mm } |
| 2376 |
\dim_const:Nn \c_@@_frontmatter_headtext_o_xshift_dim { |
| 2377 |
-\c_@@_frontmatter_headtext_xshift_dim -\c_@@_potential_layoutoffset_dim |
| 2378 |
} |
| 2379 |
\dim_const:Nn \c_@@_frontmatter_headtext_e_xshift_dim { |
| 2380 |
\c_@@_frontmatter_headtext_xshift_dim +\c_@@_potential_layoutoffset_dim |
| 2381 |
} |
| 2382 |
\dim_const:Nn \c_@@_frontmatter_headtext_yshift_dim { -6.5mm-\c_@@_potential_layoutoffset_dim } |
| 2383 |
\dim_const:Nn \c_@@_header_line_width_dim { 0.25mm} |
| 2384 |
\dim_const:Nn \c_@@_header_line_yshift_dim { -1mm-\c_@@_header_line_width_dim} |
| 2385 |
\dim_const:Nn \c_@@_footer_background_height_dim { 10mm + \c_@@_potential_layoutoffset_dim } |
| 2386 |
\dim_const:Nn \c_@@_front_matter_extra_innermargin_dim { 28mm } |
| 2387 |
\dim_const:Nn \c_@@_front_matter_extra_outermargin_dim { 7mm } |
| 2388 |
\dim_const:Nn \c_@@_inside_cover_offset_dim { \c_zero_dim } |
| 2389 |
% \dim_const:Nn \c_@@_inside_cover_offset_dim { 7.5mm } |
| 2390 |
\dim_const:Nn \c_@@_pictogram_width_dim { 23mm } |
| 2391 |
\dim_const:Nn \c_@@_header_xshift_dim { \c_@@_pictogram_width_dim-6mm } |
| 2392 |
\dim_const:Nn \c_@@_header_yshift_dim { 5mm } |
| 2393 |
\dim_const:Nn \c_@@_xshift_arccircle_A_dim { |
| 2394 |
\c_@@_rubrics_abstract_width_dim+\c_@@_innermargin_dim+10mm+\c_@@_potential_layoutoffset_dim |
| 2395 |
} |
| 2396 |
\dim_const:Nn \c_@@_yshift_arccircle_A_dim { -22mm-\c_@@_potential_layoutoffset_dim } |
| 2397 |
\dim_const:Nn \c_@@_xshift_arccircle_B_dim { |
| 2398 |
(\c_@@_rubrics_abstract_width_dim+\c_@@_innermargin_dim)/2 |
| 2399 |
% \c_@@_innermargin_dim+(\c_@@_rubrics_abstract_width_dim/2) |
| 2400 |
% \c_@@_xshift_arccircle_A_dim/2 |
| 2401 |
} |
| 2402 |
\dim_const:Nn \c_@@_yshift_arccircle_B_dim { -\c_@@_potential_layoutoffset_dim } |
| 2403 |
\dim_const:Nn \c_@@_xshift_arccircle_C_dim { \c_@@_potential_layoutoffset_dim-5mm } |
| 2404 |
\dim_const:Nn \c_@@_yshift_arccircle_C_dim { -19.75mm-\c_@@_potential_layoutoffset_dim } |
| 2405 |
\dim_const:Nn \c_@@_book_review_frontcover_extend_dim { 12mm } |
| 2406 |
\dim_const:Nn \c_@@_tcb_left_dim { 4mm } |
| 2407 |
\dim_const:Nn \c_@@_tcb_boxsep_dim { 1mm } |
| 2408 |
\dim_const:Nn \c_@@_tikz_dot_diameter_dim { 0.33mm } |
| 2409 |
\dim_const:Nn \c_@@_tikz_dot_spacing_dim { 1.05mm } |
| 2410 |
\dim_const:Nn \c_@@_rubric_extra_xoffset_dim { -\c_@@_innermargin_dim/2 } |
| 2411 |
\dim_const:Nn \c_@@_rubric_xoffset_dim { 14.5mm } |
| 2412 |
% \end{macrocode} |
| 2413 |
% \end{macro} |
| 2414 |
% |
| 2415 |
% \begin{macro}{\c_@@_boxed_issue_number_width_dim,\c_@@_boxed_issue_number_height_dim} |
| 2416 |
% We declare the constant dimensions of the box containing the issue number. |
| 2417 |
% \begin{macrocode} |
| 2418 |
\dim_const:Nn \c_@@_boxed_issue_number_width_dim { 30mm} |
| 2419 |
\dim_const:Nn \c_@@_boxed_issue_number_height_dim { 8mm} |
| 2420 |
% \end{macrocode} |
| 2421 |
% \end{macro} |
| 2422 |
% |
| 2423 |
% \begin{macro}{\l_@@_thumbnail_width_dim} |
| 2424 |
% We declare the width of the possible thumbnail glued to the box containing |
| 2425 |
% the issue number. |
| 2426 |
% \begin{macrocode} |
| 2427 |
\dim_new:N \l_@@_thumbnail_width_dim |
| 2428 |
\dim_set:Nn \l_@@_thumbnail_width_dim {30mm} |
| 2429 |
% \end{macrocode} |
| 2430 |
% \end{macro} |
| 2431 |
% |
| 2432 |
% \begin{macro}{\g_@@_abstract_box_width_dim} |
| 2433 |
% \begin{macrocode} |
| 2434 |
\dim_new:N \g_@@_abstract_box_width_dim |
| 2435 |
% \end{macrocode} |
| 2436 |
% \end{macro} |
| 2437 |
% |
| 2438 |
% \begin{macro}{\c_@@_original_parindent_dim} |
| 2439 |
% \begin{macrocode} |
| 2440 |
\dim_new:N \c_@@_original_parindent_dim |
| 2441 |
\dim_gset_eq:NN \c_@@_original_parindent_dim \parindent |
| 2442 |
% \end{macrocode} |
| 2443 |
% \end{macro} |
| 2444 |
% |
| 2445 |
% \begin{macro}{\l_@@_between_rubric_head_text_and_abstract_dim} |
| 2446 |
% \begin{macrocode} |
| 2447 |
\dim_new:N \l_@@_between_rubric_head_text_and_abstract_dim |
| 2448 |
% \end{macrocode} |
| 2449 |
% \end{macro} |
| 2450 |
% |
| 2451 |
% \begin{macro}{\g_@@_minitoc_circle_diameter_dim,\g_@@_minitoc_textwidth_dim,\g_@@_minitoc_xshift_dim,\g_@@_minitoc_yshift_dim,\c_@@_minitoc_from_circle_xshift_dim,\c_@@_minitoc_from_circle_yshift_dim} |
| 2452 |
% \begin{macrocode} |
| 2453 |
\dim_new:N \g_@@_minitoc_circle_diameter_dim |
| 2454 |
\dim_new:N \g_@@_minitoc_textwidth_dim |
| 2455 |
\dim_new:N \g_@@_minitoc_xshift_dim |
| 2456 |
\dim_new:N \g_@@_minitoc_yshift_dim |
| 2457 |
\dim_gset:Nn \g_@@_minitoc_circle_diameter_dim {142mm} |
| 2458 |
\dim_gset:Nn \g_@@_minitoc_textwidth_dim {65mm} |
| 2459 |
\dim_gset:Nn \g_@@_minitoc_xshift_dim {-22mm} |
| 2460 |
\dim_gset:Nn \g_@@_minitoc_yshift_dim {30mm} |
| 2461 |
\dim_const:Nn \c_@@_minitoc_from_circle_xshift_dim {-15mm} |
| 2462 |
\dim_const:Nn \c_@@_minitoc_from_circle_yshift_dim {-\c_@@_minitoc_from_circle_xshift_dim} |
| 2463 |
% \end{macrocode} |
| 2464 |
% \end{macro} |
| 2465 |
% |
| 2466 |
% \begin{macro}{\c_@@_footer_height_font_dim} |
| 2467 |
% We declare the height of the font displayed in the footer. |
| 2468 |
% \begin{macrocode} |
| 2469 |
\dim_const:Nn \c_@@_footer_height_font_dim {3mm} |
| 2470 |
% \end{macrocode} |
| 2471 |
% \end{macro} |
| 2472 |
% |
| 2473 |
% \begin{macro}{\c_@@_minitoc_list_labelsep_dim} |
| 2474 |
% \begin{macrocode} |
| 2475 |
\dim_const:Nn \c_@@_minitoc_list_labelsep_dim {1em} |
| 2476 |
% \end{macrocode} |
| 2477 |
% \end{macro} |
| 2478 |
% |
| 2479 |
% \begin{macro}{\c_@@_authors_photos_width_dim} |
| 2480 |
% \begin{macrocode} |
| 2481 |
\dim_const:Nn \c_@@_authors_photos_width_dim {16mm} |
| 2482 |
\dim_const:Nn \c_@@_authors_photos_box_width_dim {\c_@@_authors_photos_width_dim |
| 2483 |
+ 2mm} |
| 2484 |
\dim_new:N \l_@@_minibio_width_dim |
| 2485 |
% \end{macrocode} |
| 2486 |
% \end{macro} |
| 2487 |
% |
| 2488 |
% We set the default geometry of the page. |
| 2489 |
% \begin{macrocode} |
| 2490 |
\geometry{ |
| 2491 |
papersize={\c_@@_paperwidth_dim,\c_@@_paperheight_dim} |
| 2492 |
} |
| 2493 |
% \end{macrocode} |
| 2494 |
% |
| 2495 |
% We create a constant token list that contains the geometry of the front cover. |
| 2496 |
% \begin{macrocode} |
| 2497 |
\bool_if:NTF {\g_@@_cover_bool} { |
| 2498 |
\tl_const:Nn \c_@@_frontcover_geometry_tl { |
| 2499 |
,layoutsize={\c_@@_layoutwidth_dim,\c_@@_layoutheight_dim} |
| 2500 |
,layoutvoffset=\c_@@_potential_layoutoffset_dim |
| 2501 |
,bindingoffset=\c_@@_potential_bindingoffset_dim |
| 2502 |
,top=\c_@@_topmargin_frontcover_dim |
| 2503 |
,headsep=\c_@@_headsep_frontcover_dim |
| 2504 |
,headheight=\c_@@_headheight_dim |
| 2505 |
% ,bottom=\c_zero_dim |
| 2506 |
,bottom=11mm |
| 2507 |
,footskip=\c_zero_dim |
| 2508 |
,outer=\c_zero_dim |
| 2509 |
,inner=\c_@@_potential_layoutoffset_dim |
| 2510 |
,nomarginpar |
| 2511 |
} |
| 2512 |
}{ |
| 2513 |
\tl_const:Nn \c_@@_frontcover_geometry_tl { |
| 2514 |
,layoutsize={\c_@@_layoutwidth_dim,\c_@@_layoutheight_dim} |
| 2515 |
,layoutoffset=\c_@@_potential_layoutoffset_dim |
| 2516 |
,bindingoffset=\c_@@_potential_bindingoffset_dim |
| 2517 |
,top=\c_@@_topmargin_frontcover_dim |
| 2518 |
,headsep=\c_@@_headsep_frontcover_dim |
| 2519 |
,headheight=\c_@@_headheight_dim |
| 2520 |
% ,bottom=\c_zero_dim |
| 2521 |
,bottom=11mm |
| 2522 |
,footskip=\c_zero_dim |
| 2523 |
,hmargin=\c_@@_potential_layoutoffset_dim |
| 2524 |
,nomarginpar |
| 2525 |
} |
| 2526 |
} |
| 2527 |
% \end{macrocode} |
| 2528 |
% |
| 2529 |
% We create a constant token list that contains the geometry of the inside front |
| 2530 |
% and back covers. |
| 2531 |
% \begin{macrocode} |
| 2532 |
\bool_if:NTF {\g_@@_cover_bool} { |
| 2533 |
\tl_const:Nn \c_@@_inside_cover_geometry_tl { |
| 2534 |
,layoutsize={\c_@@_layoutwidth_dim,\c_@@_layoutheight_dim} |
| 2535 |
,layoutvoffset=\c_@@_potential_layoutoffset_dim |
| 2536 |
,bindingoffset=\c_@@_potential_bindingoffset_dim |
| 2537 |
,top=\c_@@_topmargin_inside_cover_dim |
| 2538 |
,headheight=\c_@@_headheight_dim |
| 2539 |
,headsep=\c_@@_headsep_inside_frontcover_dim |
| 2540 |
,bottom=\c_@@_botmargin_dim |
| 2541 |
,footskip=\c_@@_footskip_dim |
| 2542 |
,inner=\c_@@_innermargin_inside_cover_dim-\c_@@_potential_layoutoffset_dim |
| 2543 |
,outer=\c_@@_outermargin_inside_cover_dim+\c_@@_potential_layoutoffset_dim |
| 2544 |
,nomarginpar |
| 2545 |
} |
| 2546 |
}{ |
| 2547 |
\tl_const:Nn \c_@@_inside_cover_geometry_tl { |
| 2548 |
,layoutsize={\c_@@_layoutwidth_dim,\c_@@_layoutheight_dim} |
| 2549 |
,layoutoffset=\c_@@_potential_layoutoffset_dim |
| 2550 |
,bindingoffset=\c_@@_potential_bindingoffset_dim |
| 2551 |
,top=\c_@@_topmargin_inside_cover_dim |
| 2552 |
,headheight=\c_@@_headheight_dim |
| 2553 |
,headsep=\c_@@_headsep_inside_frontcover_dim |
| 2554 |
,bottom=\c_@@_botmargin_dim |
| 2555 |
,footskip=\c_@@_footskip_dim |
| 2556 |
,inner=\c_@@_innermargin_inside_cover_dim |
| 2557 |
,outer=\c_@@_outermargin_inside_cover_dim |
| 2558 |
,nomarginpar |
| 2559 |
} |
| 2560 |
} |
| 2561 |
% \end{macrocode} |
| 2562 |
% |
| 2563 |
% We create a constant token list that contains the geometry of the front matter. |
| 2564 |
% \begin{macrocode} |
| 2565 |
\tl_const:Nn \c_@@_front_matter_geometry_tl { |
| 2566 |
,layoutsize={\c_@@_layoutwidth_dim,\c_@@_layoutheight_dim} |
| 2567 |
,layoutoffset=\c_@@_potential_layoutoffset_dim |
| 2568 |
% ,bindingoffset=\c_@@_potential_bindingoffset_dim |
| 2569 |
,top=\c_@@_topmargin_front_matter_dim |
| 2570 |
,headheight=\c_@@_headheight_dim |
| 2571 |
,headsep=\c_@@_headsep_front_matter_dim |
| 2572 |
,bottom=\c_@@_botmargin_dim |
| 2573 |
,footskip=\c_@@_footskip_dim |
| 2574 |
,inner=\c_@@_innermargin_dim+\c_@@_front_matter_extra_innermargin_dim |
| 2575 |
,outer=\c_@@_outermargin_dim+\c_@@_front_matter_extra_outermargin_dim |
| 2576 |
,nomarginpar |
| 2577 |
} |
| 2578 |
% \end{macrocode} |
| 2579 |
% |
| 2580 |
% We create a constant token list that contains the geometry of the main pages. |
| 2581 |
% \begin{macrocode} |
| 2582 |
\tl_const:Nn \c_@@_main_geometry_tl { |
| 2583 |
,layoutsize={\c_@@_layoutwidth_dim,\c_@@_layoutheight_dim} |
| 2584 |
,layoutoffset=\c_@@_potential_layoutoffset_dim |
| 2585 |
% ,bindingoffset=\c_@@_potential_bindingoffset_dim |
| 2586 |
,top=\c_@@_topmargin_dim-15mm |
| 2587 |
,headheight=\c_@@_headheight_dim |
| 2588 |
,headsep=\c_@@_headsep_dim-18mm |
| 2589 |
,bottom=\c_@@_botmargin_dim |
| 2590 |
,footskip=\c_@@_footskip_dim |
| 2591 |
,inner=\c_@@_innermargin_dim |
| 2592 |
,outer=\c_@@_outermargin_dim |
| 2593 |
} |
| 2594 |
% \end{macrocode} |
| 2595 |
% |
| 2596 |
% We create a constant token list that contains the geometry of the back cover. |
| 2597 |
% \begin{macrocode} |
| 2598 |
\tl_const:Nn \c_@@_backcover_geometry_tl { |
| 2599 |
,layoutsize={\c_@@_layoutwidth_dim,\c_@@_layoutheight_dim} |
| 2600 |
,layoutoffset=\c_@@_potential_layoutoffset_dim |
| 2601 |
% ,bindingoffset=\c_@@_potential_bindingoffset_dim |
| 2602 |
,top=\c_@@_topmargin_backcover_dim |
| 2603 |
% ,top=\c_@@_topmargin_dim-15mm |
| 2604 |
% ,headheight=\c_@@_headheight_dim |
| 2605 |
% ,headsep=\c_@@_headsep_dim-18mm |
| 2606 |
,bottom=\c_@@_bottommargin_backcover_dim |
| 2607 |
% ,footskip=\c_@@_footskip_dim |
| 2608 |
,inner=\c_@@_innermargin_backcover_dim |
| 2609 |
,outer=\c_@@_outermargin_backcover_dim |
| 2610 |
,nomarginpar |
| 2611 |
,hcentering |
| 2612 |
,twoside=false |
| 2613 |
} |
| 2614 |
% \end{macrocode} |
| 2615 |
% |
| 2616 |
% \subsubsection{Skips} |
| 2617 |
% |
| 2618 |
% \begin{macrocode} |
| 2619 |
\skip_const:Nn \c_@@_editorial_presidentmessage_parskip_skip { 12pt plus 2pt minus .8pt } |
| 2620 |
\skip_const:Nn \c_@@_mainmatter_parskip_skip { 2pt plus .5pt minus .2pt } |
| 2621 |
% \end{macrocode} |
| 2622 |
% |
| 2623 |
% \subsection{Options} |
| 2624 |
% |
| 2625 |
% In this section, options used by some of the document commands defined by the |
| 2626 |
% class are treated. |
| 2627 |
% |
| 2628 |
% \subsubsection{Issues options} |
| 2629 |
% |
| 2630 |
% \begin{macro}{\g_@@_issue_number_int,\g_@@_issue_month_int,\g_@@_issue_year_int} |
| 2631 |
% Some variables which are involved in options are created. |
| 2632 |
% \begin{macrocode} |
| 2633 |
\int_new:N \g_@@_issue_number_int |
| 2634 |
\int_new:N \g_@@_issue_month_int |
| 2635 |
\int_new:N \g_@@_issue_year_int |
| 2636 |
\tl_new:N \g_@@_frontcover_image_options_tl |
| 2637 |
% \end{macrocode} |
| 2638 |
% \end{macro} |
| 2639 |
% |
| 2640 |
% \begin{macro}{number,month,year} |
| 2641 |
% The keys options are created. |
| 2642 |
% \begin{macrocode} |
| 2643 |
\keys_define:nn { gzt/issuesetup } |
| 2644 |
{ |
| 2645 |
number .int_gset:N = \g_@@_issue_number_int, |
| 2646 |
month .int_gset:N = \g_@@_issue_month_int, |
| 2647 |
year .int_gset:N = \g_@@_issue_year_int, |
| 2648 |
% \end{macrocode} |
| 2649 |
% |
| 2650 |
% All these options, when used, must receive a value. |
| 2651 |
% \begin{macrocode} |
| 2652 |
number .value_required:n = true, |
| 2653 |
month .value_required:n = true, |
| 2654 |
year .value_required:n = true, |
| 2655 |
% \end{macrocode} |
| 2656 |
% |
| 2657 |
% If ×number× option is not used, its initial value is set to $0$. |
| 2658 |
% number. |
| 2659 |
% \begin{macrocode} |
| 2660 |
number .initial:n = 0, |
| 2661 |
% \end{macrocode} |
| 2662 |
% |
| 2663 |
% The options of the front cover image could be set within ×\issuesetup×'s |
| 2664 |
% argument. |
| 2665 |
% \begin{macrocode} |
| 2666 |
frontcoverimageoptions .tl_gset:N = \g_@@_frontcover_image_options_tl |
| 2667 |
} |
| 2668 |
% \end{macrocode} |
| 2669 |
% \end{macro} |
| 2670 |
% |
| 2671 |
% \subsubsection{Journal options} |
| 2672 |
% |
| 2673 |
% \begin{macro}{\l_@@_journal_publisher_tl,\l_@@_journal_address_tl,\l_@@_journal_phone_tl,\l_@@_journal_fax_tl,\l_@@_journal_email_tl,\l_@@_journal_url_tl,\l_@@_journal_issn_tl,\l_@@_journal_isbn_tl} |
| 2674 |
% Some variables which are involved in options are created. |
| 2675 |
% \begin{macrocode} |
| 2676 |
\tl_new:N \l_@@_journal_publisher_tl |
| 2677 |
\tl_new:N \l_@@_journal_address_tl |
| 2678 |
\tl_new:N \l_@@_journal_phone_tl |
| 2679 |
\tl_new:N \l_@@_journal_fax_tl |
| 2680 |
\tl_new:N \l_@@_journal_email_tl |
| 2681 |
\tl_new:N \l_@@_journal_url_tl |
| 2682 |
\tl_new:N \l_@@_journal_issn_tl |
| 2683 |
\tl_new:N \l_@@_journal_isbn_tl |
| 2684 |
\tl_new:N \g_@@_journal_president_wording_tl |
| 2685 |
\tl_new:N \g_@@_president_message_string_tl |
| 2686 |
\tl_new:N \g_@@_editorinchief_string_tl |
| 2687 |
% \end{macrocode} |
| 2688 |
% We know that's bad but, by default, we suppose both the president, the |
| 2689 |
% editor in chief and the publishing director to be males. |
| 2690 |
\tl_gset:Nn \g_@@_journal_president_wording_tl {Mot~ du~ pr\'esident } |
| 2691 |
\tl_gset:Nn \g_@@_president_signatory_string_tl {pr\'esident~ de~ la~ \g_@@_smf_short_string_tl} |
| 2692 |
\tl_gset:Nn \g_@@_editorinchief_string_tl {R\'edacteur~ en~ chef } |
| 2693 |
\tl_gset:Nn \g_@@_publishingdirector_string_tl {Directeur~ de~ la~ publication} |
| 2694 |
% |
| 2695 |
% \begin{macro}{publisher,address,phone,fax,email,url,issn,isbn} |
| 2696 |
% The keys options are created. |
| 2697 |
% \begin{macrocode} |
| 2698 |
\keys_define:nn { gzt/journalsetup } |
| 2699 |
{ |
| 2700 |
publisher .tl_set:N = \l_@@_journal_publisher_tl, |
| 2701 |
address .tl_set:N = \l_@@_journal_address_tl, |
| 2702 |
phone .tl_set:N = \l_@@_journal_phone_tl, |
| 2703 |
fax .tl_set:N = \l_@@_journal_fax_tl, |
| 2704 |
email .tl_set:N = \l_@@_journal_email_tl, |
| 2705 |
url .tl_set:N = \l_@@_journal_url_tl, |
| 2706 |
issn .tl_set:N = \l_@@_journal_issn_tl, |
| 2707 |
isbn .tl_set:N = \l_@@_journal_isbn_tl, |
| 2708 |
president~ gender .choice:, |
| 2709 |
president~ gender / male .code:n = { }, |
| 2710 |
president~ gender / female .code:n = { |
| 2711 |
\tl_gset:Nn \g_@@_journal_president_wording_tl {Mot~ de~ la~ pr\'esidente} |
| 2712 |
\tl_gset:Nn \g_@@_president_signatory_string_tl {pr\'esidente~ de~ la~ \g_@@_smf_short_string_tl} |
| 2713 |
}, |
| 2714 |
editorinchief~ gender .choice:, |
| 2715 |
editorinchief~ gender / male .code:n = { }, |
| 2716 |
editorinchief~ gender / female .code:n = { |
| 2717 |
\tl_gset:Nn \g_@@_editorinchief_string_tl {R\'edactrice~ ~ en~ chef } |
| 2718 |
}, |
| 2719 |
publishingdirector~ gender .choice:, |
| 2720 |
publishingdirector~ gender / male .code:n = { }, |
| 2721 |
publishingdirector~ gender / female .code:n = { |
| 2722 |
\tl_gset:Nn \g_@@_publishingdirector_string_tl {Directrice~ de~ la~ publication} |
| 2723 |
|
| 2724 |
}, |
| 2725 |
, |
| 2726 |
% \end{macrocode} |
| 2727 |
% |
| 2728 |
% All these options, when used, must receive a value. |
| 2729 |
% \begin{macrocode} |
| 2730 |
publisher .value_required:n = true, |
| 2731 |
address .value_required:n = true, |
| 2732 |
phone .value_required:n = true, |
| 2733 |
fax .value_required:n = true, |
| 2734 |
email .value_required:n = true, |
| 2735 |
url .value_required:n = true, |
| 2736 |
issn .value_required:n = true, |
| 2737 |
isbn .value_required:n = true, |
| 2738 |
} |
| 2739 |
% \end{macrocode} |
| 2740 |
% \end{macro} |
| 2741 |
% |
| 2742 |
% \subsubsection{Titles options} |
| 2743 |
% |
| 2744 |
% \begin{macro}{shorttitle,minishorttitle,notintoc} |
| 2745 |
% Some keys options for article's title are created: |
| 2746 |
% \begin{itemize} |
| 2747 |
% \item ×shorttitle× for the possible alternative title to appear in the table |
| 2748 |
% of contents and in the headers, |
| 2749 |
% \item ×minishorttitle× for the possible alternative title to appear in the |
| 2750 |
% mini table of contents of the front cover, |
| 2751 |
% \item ×notintoc×, a flag that, if true, prevents the title to appear in the |
| 2752 |
% table of contents. |
| 2753 |
% \end{itemize} |
| 2754 |
% |
| 2755 |
% \begin{macrocode} |
| 2756 |
\keys_define:nn { gzt/title } |
| 2757 |
{ |
| 2758 |
short .tl_gset:N = \g_@@_short_title_tl, |
| 2759 |
minishort .tl_gset:N = \g_@@_mini_short_title_tl, |
| 2760 |
notinarticle .bool_gset:N = \g_@@_title_not_in_article_bool, |
| 2761 |
notintoc .bool_gset:N = \g_@@_title_not_in_toc_bool, |
| 2762 |
without~ rule .bool_gset:N = \g_@@_title_without_rule_bool, |
| 2763 |
% \end{macrocode} |
| 2764 |
% |
| 2765 |
% The following options, when used, must receive a value. |
| 2766 |
% \begin{macrocode} |
| 2767 |
short .value_required:n = true, |
| 2768 |
minishort .value_required:n = true, |
| 2769 |
} |
| 2770 |
% \end{macrocode} |
| 2771 |
% \end{macro} |
| 2772 |
% |
| 2773 |
% \subsubsection{Subtitles options} |
| 2774 |
% |
| 2775 |
% \begin{macro}{shortsubtitle,minishortsubtitle,notintoc} |
| 2776 |
% Some keys options for article's title are created: |
| 2777 |
% \begin{itemize} |
| 2778 |
% \item ×shorttitle× for the possible alternative title to appear in the table |
| 2779 |
% of contents and in the headers, |
| 2780 |
% \item ×minishorttitle× for the possible alternative title to appear in the |
| 2781 |
% mini table of contents of the front cover, |
| 2782 |
% \item ×notintoc×, a flag that, if true, prevents the title to appear in the |
| 2783 |
% table of contents. |
| 2784 |
% \end{itemize} |
| 2785 |
% |
| 2786 |
% \begin{macrocode} |
| 2787 |
\keys_define:nn { gzt/subtitle } |
| 2788 |
{ |
| 2789 |
short .tl_gset:N = \g_@@_short_subtitle_tl, |
| 2790 |
minishort .tl_gset:N = \g_@@_mini_short_subtitle_tl, |
| 2791 |
notinarticle .bool_gset:N = \g_@@_subtitle_not_in_article_bool, |
| 2792 |
notintoc .bool_gset:N = \g_@@_subtitle_not_in_toc_bool, |
| 2793 |
% \end{macrocode} |
| 2794 |
% |
| 2795 |
% The following options, when used, must receive a value. |
| 2796 |
% \begin{macrocode} |
| 2797 |
short .value_required:n = true, |
| 2798 |
minishort .value_required:n = true, |
| 2799 |
} |
| 2800 |
% \end{macrocode} |
| 2801 |
% \end{macro} |
| 2802 |
% |
| 2803 |
% \subsubsection{Rubrics options} |
| 2804 |
% |
| 2805 |
% \begin{macrocode} |
| 2806 |
\keys_define:nn { gzt/rubric } |
| 2807 |
{ |
| 2808 |
abstract .tl_gset:N = \g_@@_rubric_abstract_tl, |
| 2809 |
header .tl_gset:N = \g_@@_rubric_header_tl, |
| 2810 |
title .tl_gset:N = \g_@@_rubric_title_tl, |
| 2811 |
pictogram .tl_gset:N = \g_@@_rubric_pictofile_tl, |
| 2812 |
% \end{macrocode} |
| 2813 |
% |
| 2814 |
% The following options, when used, must receive a value. |
| 2815 |
% \begin{macrocode} |
| 2816 |
abstract .value_required:n = true, |
| 2817 |
title .value_required:n = true, |
| 2818 |
pictogram .value_required:n = true, |
| 2819 |
} |
| 2820 |
% \end{macrocode} |
| 2821 |
% |
| 2822 |
% \subsubsection{Minitoc options} |
| 2823 |
% |
| 2824 |
% \begin{macro}{list} |
| 2825 |
% A ×list× (boolean) key option for ×minitoc× environment is created: if true, |
| 2826 |
% ×minitoc× should contains ×\item× just as a list and the resulting list will be |
| 2827 |
% typeset in a special way. |
| 2828 |
% |
| 2829 |
% \begin{macrocode} |
| 2830 |
\keys_define:nn { gzt/minitoc } |
| 2831 |
{ |
| 2832 |
list .bool_gset:N = \g_@@_minitoc_list_bool, |
| 2833 |
help .bool_gset:N = \g_@@_minitoc_help_bool, |
| 2834 |
diameter .dim_gset:N = \g_@@_minitoc_circle_diameter_dim, |
| 2835 |
textwidth .dim_gset:N = \g_@@_minitoc_textwidth_dim, |
| 2836 |
xshift .dim_gset:N = \g_@@_minitoc_xshift_dim, |
| 2837 |
yshift .dim_gset:N = \g_@@_minitoc_yshift_dim, |
| 2838 |
% \end{macrocode} |
| 2839 |
% |
| 2840 |
% The following options, when used, must receive a value. |
| 2841 |
% \begin{macrocode} |
| 2842 |
diameter .value_required:n = true, |
| 2843 |
textwidth .value_required:n = true, |
| 2844 |
xshift .value_required:n = true, |
| 2845 |
yshift .value_required:n = true, |
| 2846 |
} |
| 2847 |
% \end{macrocode} |
| 2848 |
% \end{macro} |
| 2849 |
% |
| 2850 |
% \subsubsection{Authors options} |
| 2851 |
% |
| 2852 |
% \begin{macro}{affiliation,email,minibio,photo,webpage} |
| 2853 |
% The keys options are created. |
| 2854 |
% \begin{macrocode} |
| 2855 |
\keys_define:nn { gzt/authors } |
| 2856 |
{ |
| 2857 |
affiliation .tl_gset:N = \g_@@_people_affiliation_tl, |
| 2858 |
email .tl_gset:N = \g_@@_people_email_tl, |
| 2859 |
minibio .tl_gset:N = \g_@@_people_minibio_tl, |
| 2860 |
photo .tl_gset:N = \g_@@_people_photo_tl, |
| 2861 |
webpage .tl_gset:N = \g_@@_people_webpage_tl, |
| 2862 |
% \end{macrocode} |
| 2863 |
% |
| 2864 |
% All these options, when used, must receive a value. |
| 2865 |
% \begin{macrocode} |
| 2866 |
affiliation .value_required:n = true, |
| 2867 |
email .value_required:n = true, |
| 2868 |
minibio .value_required:n = true, |
| 2869 |
photo .value_required:n = true, |
| 2870 |
webpage .value_required:n = true, |
| 2871 |
} |
| 2872 |
% \end{macrocode} |
| 2873 |
% \end{macro} |
| 2874 |
% |
| 2875 |
% \subsubsection{Interviewee options} |
| 2876 |
% |
| 2877 |
% \begin{macro}{\g_@@_interviewee_minibio_tl,\g_@@_interviewee_photo_tl,\g_@@_interviewee_first_last_name_tl} |
| 2878 |
% Some variables which are involved in options are created. |
| 2879 |
% \begin{macrocode} |
| 2880 |
\tl_new:N \g_@@_interviewee_minibio_tl |
| 2881 |
\tl_new:N \g_@@_interviewee_photo_tl |
| 2882 |
\tl_new:N \g_@@_interviewee_first_last_name_tl |
| 2883 |
% \end{macrocode} |
| 2884 |
% \end{macro} |
| 2885 |
% |
| 2886 |
% \begin{macro}{minibio,photo} |
| 2887 |
% The keys options are created. |
| 2888 |
% \begin{macrocode} |
| 2889 |
\keys_define:nn { gzt/interviewees } |
| 2890 |
{ |
| 2891 |
minibio .tl_gset:N = \g_@@_interviewee_minibio_tl, |
| 2892 |
photo .tl_gset:N = \g_@@_interviewee_photo_tl, |
| 2893 |
% \end{macrocode} |
| 2894 |
% |
| 2895 |
% All these options, when used, must receive a value. |
| 2896 |
% \begin{macrocode} |
| 2897 |
minibio .value_required:n = true, |
| 2898 |
photo .value_required:n = true, |
| 2899 |
} |
| 2900 |
% \end{macrocode} |
| 2901 |
% \end{macro} |
| 2902 |
% |
| 2903 |
% \subsubsection{Book review options} |
| 2904 |
% |
| 2905 |
% \begin{macro}{\g_@@_bookreview_frontcover_tl,\g_@@_bookreview_bibkey_tl} |
| 2906 |
% Some variables which are involved in books reviews are created. |
| 2907 |
% \begin{macrocode} |
| 2908 |
\tl_new:N \g_@@_bookreview_frontcover_tl |
| 2909 |
\tl_new:N \g_@@_bookreview_bibkey_tl |
| 2910 |
% \end{macrocode} |
| 2911 |
% \end{macro} |
| 2912 |
% |
| 2913 |
% \begin{macro}{frontcover,bibkey} |
| 2914 |
% The keys options are created. |
| 2915 |
% \begin{macrocode} |
| 2916 |
\keys_define:nn { gzt/bookreview } |
| 2917 |
{ |
| 2918 |
frontcover .tl_gset:N = \g_@@_bookreview_frontcover_tl, |
| 2919 |
bibkey .tl_gset:N = \g_@@_bookreview_bibkey_tl, |
| 2920 |
% \end{macrocode} |
| 2921 |
% |
| 2922 |
% All these options, when used, must receive a value. |
| 2923 |
% \begin{macrocode} |
| 2924 |
frontcover .value_required:n = true, |
| 2925 |
bibkey .value_required:n = true, |
| 2926 |
} |
| 2927 |
% \end{macrocode} |
| 2928 |
% \end{macro} |
| 2929 |
% |
| 2930 |
% \subsubsection{Book advertisement options} |
| 2931 |
% |
| 2932 |
% \begin{macro}{\g_@@_bookadvertisement_frontcover_tl,\g_@@_bookadvertisement_bibkey_tl} |
| 2933 |
% Some variables which are involved in books advertisements are created. |
| 2934 |
% \begin{macrocode} |
| 2935 |
\tl_new:N \g_@@_bookadvertisement_frontcover_tl |
| 2936 |
\tl_new:N \g_@@_bookadvertisement_bibkey_tl |
| 2937 |
% \end{macrocode} |
| 2938 |
% \end{macro} |
| 2939 |
% |
| 2940 |
% \begin{macro}{frontcover,bibkey} |
| 2941 |
% The keys options are created. |
| 2942 |
% \begin{macrocode} |
| 2943 |
\keys_define:nn { gzt/bookadvertisement } |
| 2944 |
{ |
| 2945 |
frontcover .tl_gset:N = \g_@@_bookadvertisement_frontcover_tl, |
| 2946 |
bibkey .tl_gset:N = \g_@@_bookadvertisement_bibkey_tl, |
| 2947 |
% \end{macrocode} |
| 2948 |
% |
| 2949 |
% All these options, when used, must receive a value. |
| 2950 |
% \begin{macrocode} |
| 2951 |
frontcover .value_required:n = true, |
| 2952 |
bibkey .value_required:n = true, |
| 2953 |
} |
| 2954 |
% \end{macrocode} |
| 2955 |
% \end{macro} |
| 2956 |
% |
| 2957 |
% \subsubsection{New theorem options} |
| 2958 |
% |
| 2959 |
% \begin{macrocode} |
| 2960 |
\tl_new:N \l_@@_newtheorem_style_tl |
| 2961 |
\keys_define:nn { gzt/newtheorem } |
| 2962 |
{ |
| 2963 |
frenchtitle .tl_set:N = \l_@@_newtheorem_frenchtitle_tl, |
| 2964 |
englishtitle .tl_set:N = \l_@@_newtheorem_englishtitle_tl, |
| 2965 |
frenchtitle .value_required:n = true, |
| 2966 |
englishtitle .value_required:n = true, |
| 2967 |
style .choice:, |
| 2968 |
style / theorem .code:n = {\tl_set:Nn \l_@@_newtheorem_style_tl {theorem}}, |
| 2969 |
style / definition .code:n = {\tl_set:Nn \l_@@_newtheorem_style_tl {definition}}, |
| 2970 |
style / proof .code:n = {\tl_set:Nn \l_@@_newtheorem_style_tl {proof}}, |
| 2971 |
style / unknown .code:n = |
| 2972 |
\msg_error:nnxxx { gzt } { unknown-choice } |
| 2973 |
{ style } |
| 2974 |
{ theorem~ or~ definition~ or~ proof } |
| 2975 |
{ \exp_not:n {#1} } |
| 2976 |
} |
| 2977 |
% \end{macrocode} |
| 2978 |
% |
| 2979 |
% \subsection{Colors} |
| 2980 |
% |
| 2981 |
% In this section, we define the colors that will be used by the class and by |
| 2982 |
% the source file of the logo. |
| 2983 |
% |
| 2984 |
% \begin{macrocode} |
| 2985 |
%</class|class-article> |
| 2986 |
% \end{macrocode} |
| 2987 |
% |
| 2988 |
% \begin{macrocode} |
| 2989 |
%<*class|class-article|class-logo> |
| 2990 |
% \end{macrocode} |
| 2991 |
% |
| 2992 |
% \begin{macrocode} |
| 2993 |
\definecolor{@@_generic_dark_color}{cmyk}{1,.60,.10,0} |
| 2994 |
% |
| 2995 |
\AddToHook{begindocument}{ |
| 2996 |
\colorlet{@@_generic_light_color}{black!50} |
| 2997 |
\colorlet{@@_dark_generic_light_color}{black!60} |
| 2998 |
\colorlet{@@_description_label_light_color}{@@_dark_generic_light_color} |
| 2999 |
\colorlet{@@_minitoc_color}{@@_generic_light_color} |
| 3000 |
\colorlet{@@_cover_itemize_label_color}{@@_generic_dark_color} |
| 3001 |
\colorlet{@@_default_text_color}{black} |
| 3002 |
\colorlet{@@_head_text_color}{black!65} |
| 3003 |
\colorlet{@@_rubric_head_text_color}{@@_head_text_color} |
| 3004 |
\colorlet{@@_bibliography_minibios_acknowledgements_bg_color}{black!10} |
| 3005 |
\colorlet{@@_headrule_color}{@@_generic_light_color!65} |
| 3006 |
\colorlet{@@_circlerule_color}{@@_generic_dark_color!65} |
| 3007 |
\colorlet{@@_frontmatter_text_color}{black!75} |
| 3008 |
\colorlet{@@_people_color}{@@_generic_dark_color} |
| 3009 |
\colorlet{@@_arrayrule_color}{@@_generic_dark_color} |
| 3010 |
\colorlet{@@_acknowledgements_color}{@@_generic_dark_color} |
| 3011 |
\colorlet{@@_question_color}{@@_generic_dark_color} |
| 3012 |
\colorlet{@@_boxed_issue_number_bg_color}{@@_generic_dark_color} |
| 3013 |
\colorlet{@@_rule_in_toc_color}{@@_generic_dark_color} |
| 3014 |
\colorlet{@@_rubric_in_toc_color}{@@_generic_dark_color} |
| 3015 |
\colorlet{@@_article_in_toc_color}{@@_frontmatter_text_color} |
| 3016 |
\colorlet{@@_rubric_title_color}{@@_generic_light_color} |
| 3017 |
\colorlet{@@_article_title_color}{@@_generic_dark_color} |
| 3018 |
\colorlet{@@_section_color}{@@_generic_dark_color} |
| 3019 |
\colorlet{@@_subsection_color}{@@_generic_dark_color!90} |
| 3020 |
\colorlet{@@_subsubsection_color}{@@_generic_dark_color!80} |
| 3021 |
\colorlet{@@_rubric_abstract_color}{@@_generic_dark_color} |
| 3022 |
\colorlet{@@_article_abstract_color}{@@_generic_light_color} |
| 3023 |
\colorlet{@@_dotfill_color}{@@_generic_dark_color} |
| 3024 |
\colorlet{@@_about_frontcover_title_color}{@@_generic_dark_color} |
| 3025 |
\colorlet{@@_reflected_text_color}{@@_generic_dark_color} |
| 3026 |
\colorlet{@@_inside_frontcover_frame_bg_color}{@@_generic_dark_color!8} |
| 3027 |
\colorlet{@@_inside_frontcover_frame_title_color}{@@_generic_dark_color} |
| 3028 |
\colorlet{@@_footer_bg_color}{black!10} |
| 3029 |
\colorlet{@@_float_title_color}{@@_generic_dark_color} |
| 3030 |
\colorlet{@@_float_title_bg_color}{@@_generic_dark_color!10} |
| 3031 |
\colorlet{@@_float_frame_color}{@@_generic_dark_color!20} |
| 3032 |
\colorlet{@@_chapter_color}{@@_generic_dark_color} |
| 3033 |
\colorlet{@@_smf_number_color}{@@_generic_dark_color} |
| 3034 |
\colorlet{@@_date_color}{@@_generic_light_color} |
| 3035 |
\colorlet{@@_table_head_color}{@@_generic_dark_color!25} |
| 3036 |
\colorlet{@@_book_review_frame_bg_color}{@@_generic_dark_color!8} |
| 3037 |
\colorlet{@@_book_advertisement_bg_color}{white} |
| 3038 |
\colorlet{@@_book_advertisement_frame_color}{@@_generic_dark_color} |
| 3039 |
\colorlet{@@_default_cover_color}{white} |
| 3040 |
} |
| 3041 |
% \end{macrocode} |
| 3042 |
% |
| 3043 |
% \begin{macrocode} |
| 3044 |
%</class|class-article|class-logo> |
| 3045 |
% \end{macrocode} |
| 3046 |
% |
| 3047 |
% \begin{macrocode} |
| 3048 |
%<*class|class-article> |
| 3049 |
% \end{macrocode} |
| 3050 |
% |
| 3051 |
% \subsection{Miscellaneous patches} |
| 3052 |
% |
| 3053 |
% We patch the \pkg{biblatex}'s ×refsection× environment definition by adding |
| 3054 |
% a flag that will be used to test whether we are inside such an environment or |
| 3055 |
% not. |
| 3056 |
% \begin{macrocode} |
| 3057 |
\AddToHook{env/multicols/begin}{ |
| 3058 |
\bool_gset_true:N \g_@@_multicols_bool |
| 3059 |
} |
| 3060 |
\AddToHook{env/multicols/end}{ |
| 3061 |
\bool_gset_false:N \g_@@_multicols_bool |
| 3062 |
} |
| 3063 |
\AddToHook{env/refsection/begin}{ |
| 3064 |
\bool_gset_true:N \g_@@_refsection_bool |
| 3065 |
} |
| 3066 |
\AddToHook{env/refsection/end}{ |
| 3067 |
\bool_gset_false:N \g_@@_refsection_bool |
| 3068 |
} |
| 3069 |
% \end{macrocode} |
| 3070 |
% |
| 3071 |
% \subsection{Miscellaneous token lists} |
| 3072 |
% |
| 3073 |
% We define a token list that will display the font of footer at the right size. |
| 3074 |
% \begin{macrocode} |
| 3075 |
\tl_const:Nn \c_@@_footer_size_font_tl { |
| 3076 |
\fontsize{\c_@@_footer_height_font_dim}{\c_zero_dim}\selectfont |
| 3077 |
} |
| 3078 |
% \end{macrocode} |
| 3079 |
% |
| 3080 |
% We define some token lists for the long and short forms of \textsc{smf}. |
| 3081 |
% \begin{macrocode} |
| 3082 |
\tl_new:N \g_@@_smf_short_string_tl |
| 3083 |
\tl_new:N \g_@@_smf_string_tl |
| 3084 |
\tl_gset:Nn \g_@@_smf_short_string_tl { |
| 3085 |
% \cs_if_exist:cTF {texorpdfstring} |
| 3086 |
% { |
| 3087 |
\texorpdfstring{\c_@@_smf_short_string_tl}{\c_@@_smf_short_pdf_string_tl} |
| 3088 |
% }{ |
| 3089 |
% \c_@@_smf_short_pdf_string_tl |
| 3090 |
% } |
| 3091 |
} |
| 3092 |
\tl_gset:Nn \g_@@_smf_string_tl { |
| 3093 |
% \cs_if_exist:cTF {texorpdfstring} |
| 3094 |
% { |
| 3095 |
% \texorpdfstring{Soci\'et\'e~ Math\'ematique~ de~ France}{\c_@@_smf_string_tl} |
| 3096 |
\c_@@_smf_string_tl |
| 3097 |
% }{ |
| 3098 |
% \acrlong*{smf} |
| 3099 |
% } |
| 3100 |
} |
| 3101 |
% \end{macrocode} |
| 3102 |
% |
| 3103 |
% We define some token lists for the long and short forms of \gzt. |
| 3104 |
% \begin{macrocode} |
| 3105 |
\tl_new:N \l_@@_gzt_short_string_tl |
| 3106 |
\tl_new:N \l_@@_gzt_string_tl |
| 3107 |
\tl_set:Nn \l_@@_gzt_short_string_tl { |
| 3108 |
\cs_if_exist:cTF {texorpdfstring} |
| 3109 |
{ |
| 3110 |
\texorpdfstring{\emph{\c_@@_journal_short_title_string_tl}}{\c_@@_journal_short_title_string_tl} |
| 3111 |
}{ |
| 3112 |
\emph{\c_@@_journal_short_title_string_tl} |
| 3113 |
} |
| 3114 |
} |
| 3115 |
\tl_set:Nn \l_@@_gzt_string_tl { |
| 3116 |
\cs_if_exist:cTF {texorpdfstring} |
| 3117 |
{ |
| 3118 |
\texorpdfstring{\emph{\c_@@_journal_title_string_tl}}{\c_@@_journal_title_string_tl} |
| 3119 |
}{ |
| 3120 |
\emph{\c_@@_journal_title_string_tl} |
| 3121 |
} |
| 3122 |
} |
| 3123 |
% \end{macrocode} |
| 3124 |
% |
| 3125 |
% We fix some strings for the PDF's metadata. |
| 3126 |
% \begin{macrocode} |
| 3127 |
\tl_new:N \g_@@_pdftitle_string_tl |
| 3128 |
\tl_new:N \g_@@_pdfauthor_string_tl |
| 3129 |
\tl_gset:Nn \g_@@_pdftitle_string_tl { |
| 3130 |
\c_@@_pdftitle_string_tl |
| 3131 |
} |
| 3132 |
\tl_gset:Nn \g_@@_pdfauthor_string_tl { |
| 3133 |
\g_@@_smf_string_tl |
| 3134 |
} |
| 3135 |
\AddToHook{begindocument/before}{ |
| 3136 |
\hypersetup{ |
| 3137 |
pdftitle=\g_@@_pdftitle_string_tl, |
| 3138 |
pdfauthor=\g_@@_pdfauthor_string_tl |
| 3139 |
} |
| 3140 |
} |
| 3141 |
% \end{macrocode} |
| 3142 |
% |
| 3143 |
% \begin{macrocode} |
| 3144 |
\cs_new_protected:Nn \_@@_email:n |
| 3145 |
{ |
| 3146 |
\href{mailto:#1}{\nolinkurl{#1}} |
| 3147 |
} |
| 3148 |
% \end{macrocode} |
| 3149 |
% |
| 3150 |
% We create a function that displays the author(s) of an article with |
| 3151 |
% a peticular layout. |
| 3152 |
% \begin{macrocode} |
| 3153 |
\cs_new_protected:Nn \@@_display_author:nnnnn |
| 3154 |
{ |
| 3155 |
\begin{tabular}[t]{p{\c_@@_authors_photos_box_width_dim}p{0.75\linewidth}} |
| 3156 |
\tl_if_empty:nF {#5} |
| 3157 |
{ |
| 3158 |
\begin{adjustbox}{valign=t} |
| 3159 |
\includegraphics[width=\c_@@_authors_photos_width_dim]{#5} |
| 3160 |
\end{adjustbox} |
| 3161 |
} |
| 3162 |
& |
| 3163 |
\begin{description}[leftmargin=1em,style=nextline,nosep] |
| 3164 |
\item[\textcolor{@@_people_color}{\DeclareNameAlias{labelname}{default}\citeauthor{#1}}] |
| 3165 |
\tl_if_empty:nF {#2} |
| 3166 |
{ |
| 3167 |
#2 |
| 3168 |
\par |
| 3169 |
\smallskip |
| 3170 |
} |
| 3171 |
\tl_if_empty:nF {#3} |
| 3172 |
{ |
| 3173 |
\href{mailto:#3}{\nolinkurl{#3}} |
| 3174 |
\par |
| 3175 |
\smallskip |
| 3176 |
} |
| 3177 |
\tl_if_empty:nF {#4} |
| 3178 |
{ |
| 3179 |
#4 |
| 3180 |
} |
| 3181 |
\end{description} |
| 3182 |
\end{tabular} |
| 3183 |
} |
| 3184 |
% \end{macrocode} |
| 3185 |
% |
| 3186 |
% We create a variant of this control sequence that passes the \emph{values} of the |
| 3187 |
% variables involved (see \url{https://tex.stackexchange.com/a/214284/18401}). |
| 3188 |
% \begin{macrocode} |
| 3189 |
\cs_generate_variant:Nn \@@_display_author:nnnnn { VVVVV } |
| 3190 |
% \end{macrocode} |
| 3191 |
% |
| 3192 |
% \subsection{Functions for specifiying the people involved in the journal} |
| 3193 |
% |
| 3194 |
% For this, and thanks to \Pkg{datatool}, we create a database of |
| 3195 |
% \enquote{people} involved in the journal. |
| 3196 |
% \begin{macrocode} |
| 3197 |
\DTLnewdb{people} |
| 3198 |
% \end{macrocode} |
| 3199 |
% |
| 3200 |
% Then we create the internal ×\_@@_people× function that let us populate the |
| 3201 |
% ×_@@_people× database. Each people will be identified by some identifiers: |
| 3202 |
% speciality (optional), firstname, lastname, affiliation, email, role. |
| 3203 |
% \begin{macrocode} |
| 3204 |
\tl_new:N \l_@@_crossref_tl |
| 3205 |
\cs_new_protected:Nn \_@@_people:nnnnnnnn |
| 3206 |
{ |
| 3207 |
\DTLnewrow{people} |
| 3208 |
\DTLnewdbentry{people}{first-last-name}{#1} |
| 3209 |
\DTLnewdbentry{people}{affiliation}{#2} |
| 3210 |
\DTLnewdbentry{people}{email}{#3} |
| 3211 |
\DTLnewdbentry{people}{minibio}{#4} |
| 3212 |
\DTLnewdbentry{people}{photo}{#5} |
| 3213 |
\DTLnewdbentry{people}{speciality}{#6} |
| 3214 |
\DTLnewdbentry{people}{role}{#7} |
| 3215 |
\DTLnewdbentry{people}{webpage}{#8} |
| 3216 |
% \end{macrocode} |
| 3217 |
% |
| 3218 |
% \begin{macrocode} |
| 3219 |
\int_if_exist:cF {g_@@_#7_int} |
| 3220 |
{ |
| 3221 |
\int_new:c {g_@@_#7_int} |
| 3222 |
} |
| 3223 |
\int_incr:c {g_@@_#7_int} |
| 3224 |
\tl_if_in:nnTF { #7 } { author } { |
| 3225 |
\tl_set:Nn \l_@@_crossref_tl {\c_@@_issue_bib_key_tl -art-\int_use:N \g_@@_articles_int} |
| 3226 |
} { |
| 3227 |
\tl_set:Nn \l_@@_crossref_tl {\c_@@_issue_bib_key_tl} |
| 3228 |
} |
| 3229 |
\tl_set:Nn \l_@@_people_first_last_name_tl {#1} |
| 3230 |
\iow_now:Nx \g_@@_bib_out_iow { |
| 3231 |
@article{ |
| 3232 |
\c_@@_issue_bib_key_tl -#7- \int_use:c {g_@@_#7_int}, |
| 3233 |
\iow_newline: |
| 3234 |
author={\exp_not:V\l_@@_people_first_last_name_tl}, |
| 3235 |
\iow_newline: |
| 3236 |
options={skipbib}, |
| 3237 |
\iow_newline: |
| 3238 |
crossref = {\l_@@_crossref_tl} |
| 3239 |
\iow_newline: |
| 3240 |
} |
| 3241 |
\iow_newline: |
| 3242 |
} |
| 3243 |
} |
| 3244 |
% \end{macrocode} |
| 3245 |
% |
| 3246 |
% We create a variant of this control sequence that passes the \emph{values} of |
| 3247 |
% the variables involved (see |
| 3248 |
% \url{https://tex.stackexchange.com/a/214284/18401}). |
| 3249 |
% \begin{macrocode} |
| 3250 |
\cs_generate_variant:Nn \_@@_people:nnnnnnnn { nVVVVnxV } |
| 3251 |
% \end{macrocode} |
| 3252 |
% |
| 3253 |
% \subsection{Functions for displaying \enquote{academic} signatures of articles |
| 3254 |
% without \enquote{real} author(s)} |
| 3255 |
% |
| 3256 |
% We create a function that displays an \enquote{academic} signature for articles |
| 3257 |
% without \enquote{real} author(s). |
| 3258 |
% \begin{macrocode} |
| 3259 |
\cs_new_protected:Nn \@@_display_academic_signature:n |
| 3260 |
{ |
| 3261 |
\bigskip |
| 3262 |
\begin{_@@_minibiographies_acknowledgements_tcbox} |
| 3263 |
#1 |
| 3264 |
\end{_@@_minibiographies_acknowledgements_tcbox} |
| 3265 |
} |
| 3266 |
% \end{macrocode} |
| 3267 |
% |
| 3268 |
% \subsection{Functions for displaying people involved in the journal by role} |
| 3269 |
% |
| 3270 |
% We create the function that displays firstname and lastname of people involved |
| 3271 |
% in the journal by role. |
| 3272 |
% \begin{macrocode} |
| 3273 |
\cs_new_protected:Nn \@@_display_people_by_role:n |
| 3274 |
{ |
| 3275 |
\DTLforeach*[\DTLiseq{\l_@@_people_role_tl}{#1}]{people}{ |
| 3276 |
\l_@@_firstlastname_tl=first-last-name |
| 3277 |
,\l_@@_people_affiliation_tl=affiliation |
| 3278 |
,\l_@@_people_email_tl=email |
| 3279 |
,\l_@@_people_minibio_tl=minibio |
| 3280 |
,\l_@@_people_photo_tl=photo |
| 3281 |
,\l_@@_people_speciality=speciality |
| 3282 |
,\l_@@_people_role_tl=role |
| 3283 |
,\g_@@_people_webpage_tl=webpage |
| 3284 |
}{ |
| 3285 |
\tl_if_in:NnTF \l_@@_people_role_tl { editor } { |
| 3286 |
\item[ |
| 3287 |
\textcolor{@@_people_color}{ |
| 3288 |
\_@@_citeauthor_no_firstinits:n {\c_@@_issue_bib_key_tl -#1- \exp_not:V\DTLcurrentindex} |
| 3289 |
} |
| 3290 |
\tl_if_in:NnF \l_@@_people_speciality { NoValue } { ~ (\l_@@_people_speciality) } |
| 3291 |
] |
| 3292 |
\leavevmode |
| 3293 |
\vbox_top:n { |
| 3294 |
\l_@@_people_affiliation_tl |
| 3295 |
\newline |
| 3296 |
\href{mailto:\l_@@_people_email_tl}{\nolinkurl{\l_@@_people_email_tl}} |
| 3297 |
} |
| 3298 |
\medskip |
| 3299 |
}{ |
| 3300 |
\tl_if_in:NnTF \l_@@_people_role_tl { author } { |
| 3301 |
\tl_if_empty:NF \l_@@_firstlastname_tl { |
| 3302 |
\footnotesize |
| 3303 |
% \noindent |
| 3304 |
\DTLiffirstrow{ |
| 3305 |
}{ |
| 3306 |
\DTLpar |
| 3307 |
\medskip |
| 3308 |
} |
| 3309 |
\dim_set:Nn \l_@@_minibio_width_dim {\linewidth-1em - \c_@@_authors_photos_box_width_dim} |
| 3310 |
\tl_if_empty:NTF \l_@@_people_photo_tl |
| 3311 |
{ |
| 3312 |
\dim_add:Nn \l_@@_minibio_width_dim {\c_@@_authors_photos_box_width_dim} |
| 3313 |
}{ |
| 3314 |
\begin{adjustbox}{valign=t,minipage=\c_@@_authors_photos_box_width_dim} |
| 3315 |
\includegraphics[width=\c_@@_authors_photos_width_dim]{\l_@@_people_photo_tl} |
| 3316 |
\end{adjustbox} |
| 3317 |
\quad |
| 3318 |
} |
| 3319 |
\begin{adjustbox}{valign=t,minipage=\l_@@_minibio_width_dim} |
| 3320 |
\begin{description}[leftmargin=1em,style=nextline] |
| 3321 |
\item[ |
| 3322 |
\textcolor{@@_people_color}{ |
| 3323 |
\_@@_citeauthor_no_firstinits:n {\c_@@_issue_bib_key_tl -#1- \exp_not:V\DTLcurrentindex} |
| 3324 |
} |
| 3325 |
] |
| 3326 |
\tl_if_empty:NF \l_@@_people_affiliation_tl |
| 3327 |
{ |
| 3328 |
\mbox{} |
| 3329 |
\par |
| 3330 |
\vspace{-2ex} |
| 3331 |
\l_@@_people_affiliation_tl |
| 3332 |
} |
| 3333 |
\tl_if_empty:NF \l_@@_people_email_tl |
| 3334 |
{ |
| 3335 |
\par |
| 3336 |
\href{mailto:\l_@@_people_email_tl}{\nolinkurl{\l_@@_people_email_tl}} |
| 3337 |
} |
| 3338 |
\tl_if_empty:NF \g_@@_people_webpage_tl |
| 3339 |
{ |
| 3340 |
\par |
| 3341 |
\url{\g_@@_people_webpage_tl} |
| 3342 |
} |
| 3343 |
\tl_if_empty:NF \l_@@_people_minibio_tl |
| 3344 |
{ |
| 3345 |
\par |
| 3346 |
\smallskip |
| 3347 |
\l_@@_people_minibio_tl |
| 3348 |
} |
| 3349 |
\end{description} |
| 3350 |
\end{adjustbox} |
| 3351 |
} |
| 3352 |
% \tl_show:N \g_@@_people_webpage_tl |
| 3353 |
\tl_gclear:N \g_@@_people_webpage_tl |
| 3354 |
% \tl_show:N \g_@@_people_webpage_tl |
| 3355 |
}{ |
| 3356 |
\_@@_citeauthor_no_firstinits:n {\c_@@_issue_bib_key_tl -#1- |
| 3357 |
\exp_not:V\DTLcurrentindex} |
| 3358 |
\tl_if_empty:NF \l_@@_people_email_tl |
| 3359 |
{ |
| 3360 |
\c_space_tl(\href{mailto:\l_@@_people_email_tl}{\nolinkurl{\l_@@_people_email_tl}}) |
| 3361 |
} |
| 3362 |
} |
| 3363 |
} |
| 3364 |
} |
| 3365 |
} |
| 3366 |
% \end{macrocode} |
| 3367 |
% |
| 3368 |
% \subsection{Function for displaying a reflected text} |
| 3369 |
% |
| 3370 |
% We create the function that displays a reflected text. |
| 3371 |
% \begin{macrocode} |
| 3372 |
\cs_new_protected:Nn \@@_reflected_text:n |
| 3373 |
{ |
| 3374 |
\begin{tikzpicture} |
| 3375 |
\tikzset{@@_reflect_node/.style={ |
| 3376 |
anchor=base, |
| 3377 |
inner~ sep=0, |
| 3378 |
line~ width=0, |
| 3379 |
font=\Huge, |
| 3380 |
color=@@_reflected_text_color |
| 3381 |
} |
| 3382 |
} |
| 3383 |
\node[@@_reflect_node]{#1}; |
| 3384 |
\node[scope~ fading=south,opacity=0.2,yscale=-1,@@_reflect_node]{#1}; |
| 3385 |
\end{tikzpicture} |
| 3386 |
} |
| 3387 |
% \end{macrocode} |
| 3388 |
% |
| 3389 |
% \subsection{Displaying the front cover} |
| 3390 |
% |
| 3391 |
% We create the variable that displays the front cover. |
| 3392 |
% \begin{macrocode} |
| 3393 |
\tl_new:N \g_@@_display_frontcover_tl |
| 3394 |
\tl_gset:Nn \g_@@_display_frontcover_tl { |
| 3395 |
\bool_gset_true:N \g_@@_frontcover_bool |
| 3396 |
\pagenumbering{roman} |
| 3397 |
\pagestyle{@@_frontcover_ps} |
| 3398 |
\pagecolor{\g_@@_special_edition_color_tl} |
| 3399 |
\exp_after:wN\newgeometry\exp_after:wN{\c_@@_frontcover_geometry_tl} |
| 3400 |
\noindent |
| 3401 |
\bool_if:NTF {\g_@@_cover_bool} { |
| 3402 |
\hspace*{-\c_@@_potential_layoutoffset_dim} |
| 3403 |
}{ |
| 3404 |
\hspace*{-2\c_@@_potential_layoutoffset_dim} |
| 3405 |
} |
| 3406 |
\exp_after:wN\includegraphics\exp_after:wN[\g_@@_frontcover_image_options_tl]{\g_@@_frontcover_image_file_tl} |
| 3407 |
\begin{tikzpicture}[remember~ picture, overlay] |
| 3408 |
\coordinate (@@_circle_minitoc_center) at |
| 3409 |
( |
| 3410 |
[xshift=\g_@@_minitoc_xshift_dim-\c_@@_potential_layoutoffset_dim, |
| 3411 |
yshift=\g_@@_minitoc_yshift_dim+\c_@@_potential_layoutoffset_dim] |
| 3412 |
current~ page.south~ east |
| 3413 |
) ; |
| 3414 |
\node[ |
| 3415 |
name=@@_circle_minitoc, |
| 3416 |
shape=circle, |
| 3417 |
inner~ sep=\c_zero_dim, |
| 3418 |
fill=\g_@@_special_edition_color_tl, |
| 3419 |
text~ width=\g_@@_minitoc_circle_diameter_dim |
| 3420 |
] at |
| 3421 |
(@@_circle_minitoc_center) {}; |
| 3422 |
\node[text~ width=\g_@@_minitoc_textwidth_dim,anchor=north~ west] at |
| 3423 |
( |
| 3424 |
[xshift=\c_@@_minitoc_from_circle_xshift_dim, |
| 3425 |
yshift=\c_@@_minitoc_from_circle_yshift_dim] |
| 3426 |
$ (@@_circle_minitoc.north)!.5!(@@_circle_minitoc.west) $ |
| 3427 |
) |
| 3428 |
{ |
| 3429 |
\bool_if:NF {\g_@@_frontcover_without_minitoc_bool} { |
| 3430 |
\large |
| 3431 |
\color{@@_minitoc_color} |
| 3432 |
\g_@@_frontcover_minitoc_tl |
| 3433 |
} |
| 3434 |
}; |
| 3435 |
\bool_if:NT {\g_@@_minitoc_help_bool} { |
| 3436 |
\fill[red] (@@_circle_minitoc_center) circle (2pt); |
| 3437 |
} |
| 3438 |
\end{tikzpicture} |
| 3439 |
\bool_if:NT {\g_@@_cover_bool} { |
| 3440 |
\small |
| 3441 |
\begin{tikzpicture}[remember~ picture, overlay] |
| 3442 |
\node[ |
| 3443 |
name=@@_binding_sw, |
| 3444 |
inner~ sep=\c_zero_dim, |
| 3445 |
fill=\g_@@_special_edition_color_tl, |
| 3446 |
rotate=90,anchor=west |
| 3447 |
] |
| 3448 |
at |
| 3449 |
( |
| 3450 |
[xshift=0.45\c_@@_potential_bindingoffset_dim, |
| 3451 |
yshift=15mm+\c_@@_potential_layoutoffset_dim] |
| 3452 |
current~ page.south~ west) { |
| 3453 |
\No |
| 3454 |
\bool_if:NTF {\g_@@_special_edition_bool} { |
| 3455 |
\c_@@_special_edition_string_tl |
| 3456 |
}{ |
| 3457 |
\int_use:N\g_@@_issue_number_int |
| 3458 |
} |
| 3459 |
}; |
| 3460 |
\node[name=@@_binding_w,inner~ sep=\c_zero_dim,fill=\g_@@_special_edition_color_tl,rotate=90] at |
| 3461 |
([xshift=0.45\c_@@_potential_bindingoffset_dim]current~ page.west) { |
| 3462 |
\bool_if:NTF {\g_@@_special_edition_bool} { |
| 3463 |
\tl_if_exist:NTF \g_@@_special_edition_short_title_tl { |
| 3464 |
\g_@@_special_edition_short_title_tl |
| 3465 |
}{ |
| 3466 |
\g_@@_special_edition_title_tl |
| 3467 |
} |
| 3468 |
}{ |
| 3469 |
\text_uppercase:n {\c_@@_journal_title_string_tl} |
| 3470 |
} |
| 3471 |
}; |
| 3472 |
\node[name=@@_binding_nw,inner~ sep=\c_zero_dim,fill=\g_@@_special_edition_color_tl,rotate=90,anchor=east] |
| 3473 |
at |
| 3474 |
( |
| 3475 |
[ |
| 3476 |
xshift=0.45\c_@@_potential_bindingoffset_dim |
| 3477 |
,yshift=-15mm-\c_@@_potential_layoutoffset_dim] |
| 3478 |
current~ page.north~ west |
| 3479 |
){ |
| 3480 |
\l_@@_uppercased_date_format\displaydate{@@_date} |
| 3481 |
}; |
| 3482 |
\end{tikzpicture} |
| 3483 |
} |
| 3484 |
\vfill |
| 3485 |
\noindent |
| 3486 |
\hspace*{10mm} |
| 3487 |
\hspace*{-\c_@@_potential_layoutoffset_dim} |
| 3488 |
\includegraphics[height=22.5mm]{\c_@@_smf_logo_file_string_tl} |
| 3489 |
\bool_if:NT {\g_@@_special_edition_bool} { |
| 3490 |
\hfill |
| 3491 |
\includegraphics[scale=1.2]{gzt-logo} |
| 3492 |
\hspace*{10mm} |
| 3493 |
} |
| 3494 |
% \vfill |
| 3495 |
\clearpage |
| 3496 |
\bool_gset_false:N \g_@@_frontcover_bool |
| 3497 |
\nopagecolor |
| 3498 |
} |
| 3499 |
% \end{macrocode} |
| 3500 |
% |
| 3501 |
% \subsection{Displaying the inside front cover} |
| 3502 |
% |
| 3503 |
% We create the variable that displays the inside front cover. |
| 3504 |
% \begin{macrocode} |
| 3505 |
\tl_new:N \g_@@_display_inside_frontcover_tl |
| 3506 |
\tl_gset:Nn \g_@@_display_inside_frontcover_tl { |
| 3507 |
\bool_gset_true:N \g_@@_inside_frontcover_bool |
| 3508 |
\pagestyle{@@_inside_frontcover_ps} |
| 3509 |
\exp_after:wN\newgeometry\exp_after:wN{\c_@@_inside_cover_geometry_tl} |
| 3510 |
\small |
| 3511 |
\setlength{\columnseprule}{2pt} |
| 3512 |
\renewcommand{\columnseprulecolor}{\color{white}} |
| 3513 |
\begin{_@@_inside_cover_tcb}[_@@_tcb_inside_frontcover_style] |
| 3514 |
\begin{multicols}{2} |
| 3515 |
\setlength{\columnsep}{1mm} |
| 3516 |
\bool_if:NTF {\g_@@_special_edition_bool} { |
| 3517 |
\begin{description}[leftmargin=1em,style=nextline,labelindent=\c_zero_dim] |
| 3518 |
\@@_display_people_by_role:n {editor} |
| 3519 |
\end{description} |
| 3520 |
}{ |
| 3521 |
\begin{description}[leftmargin=1em] |
| 3522 |
\item[\c_@@_editors_in_chief_string_tl] \ |
| 3523 |
\begin{description}[leftmargin=1em,style=nextline,labelindent=\c_zero_dim] |
| 3524 |
\@@_display_people_by_role:n {editorinchief} |
| 3525 |
\end{description} |
| 3526 |
\bigskip |
| 3527 |
\par |
| 3528 |
\item[\c_@@_editors_string_tl] \ |
| 3529 |
\begin{description}[leftmargin=1em,style=nextline,labelindent=\c_zero_dim] |
| 3530 |
\@@_display_people_by_role:n {editor} |
| 3531 |
\end{description} |
| 3532 |
\end{description} |
| 3533 |
} |
| 3534 |
\end{multicols} |
| 3535 |
\setlength{\columnseprule}{1pt} |
| 3536 |
\tcblower |
| 3537 |
\begin{tabular}{ |
| 3538 |
@{}m{.75\c_@@_inside_cover_box_width_dim}@{}m{.2\c_@@_inside_cover_box_width_dim-2\tabcolsep}@{} |
| 3539 |
} |
| 3540 |
\begin{description}[leftmargin=1em] |
| 3541 |
\item[\c_@@_editorial_secretariat_string_tl{}~ :] \ \par |
| 3542 |
\l_@@_journal_publisher_tl |
| 3543 |
% \par |
| 3544 |
\c_space_tl\textendash{}\c_space_tl |
| 3545 |
\@@_display_people_by_role:n { secretary }\par |
| 3546 |
\l_@@_journal_address_tl\par |
| 3547 |
\c_@@_phone_string_tl{}~ :~ \l_@@_journal_phone_tl{} \c_space_tl\textendash{}\c_space_tl |
| 3548 |
\href{mailto:\l_@@_journal_email_tl}{\nolinkurl{\l_@@_journal_email_tl}} |
| 3549 |
% \newline |
| 3550 |
\c_space_tl\textendash{}\c_space_tl |
| 3551 |
\url{\l_@@_journal_url_tl} |
| 3552 |
\item[\g_@@_publishingdirector_string_tl{}~ :] |
| 3553 |
\@@_display_people_by_role:n { president } |
| 3554 |
\item[\c_@@_issn_string_tl{}~ :] \l_@@_journal_issn_tl |
| 3555 |
\tl_if_empty:NF \l_@@_journal_isbn_tl |
| 3556 |
{ |
| 3557 |
\item[\c_@@_isbn_string_tl{}~ :] \l_@@_journal_isbn_tl |
| 3558 |
} |
| 3559 |
\bool_if:NT {\g_@@_no_inside_backcover_bool} { |
| 3560 |
\item[\c_@@_latexclass_string_tl{}~ :] |
| 3561 |
\@@_display_people_by_role:n { classdesigner } |
| 3562 |
\item[\c_@@_artistic_director_string_tl{}~ :] |
| 3563 |
\@@_display_people_by_role:n { graphicdesigner } |
| 3564 |
\item[\c_@@_printer_string_tl{}~ :] \g_@@_printer_text_tl |
| 3565 |
} |
| 3566 |
\end{description} |
| 3567 |
\bool_if:NT {\g_@@_no_inside_backcover_bool} { |
| 3568 |
\g_@@_font_designer_text_tl |
| 3569 |
} |
| 3570 |
& |
| 3571 |
\hspace*{\fill} |
| 3572 |
\includegraphics[height=20mm]{\c_@@_smf_logo_file_string_tl} |
| 3573 |
\end{tabular} |
| 3574 |
% \\ |
| 3575 |
% \c_@@_font_string_tl |
| 3576 |
\bigskip |
| 3577 |
\tl_if_empty:NF \g_@@_about_frontcover_tl |
| 3578 |
{ |
| 3579 |
\\ |
| 3580 |
\begin{adjustbox}{ |
| 3581 |
valign=t, |
| 3582 |
minipage=.75\c_@@_inside_cover_box_width_dim+.2\c_@@_inside_cover_box_width_dim-2\tabcolsep |
| 3583 |
} |
| 3584 |
\begin{description}[leftmargin=1em,font=\color{@@_about_frontcover_title_color}] |
| 3585 |
\item[\g_@@_about_frontcover_string_tl] \g_@@_about_frontcover_tl |
| 3586 |
\bool_if:NT {\g_@@_credit_frontcover_bool} { |
| 3587 |
\c_space_tl(\c_@@_credit_frontcover_string_tl{}~ :~ |
| 3588 |
\DTLforeach*[\DTLiseq{\l_@@_people_role_tl}{frontcovercredit}]{people}{ |
| 3589 |
\l_@@_firstlastname_tl=first-last-name |
| 3590 |
,\l_@@_people_role_tl=role |
| 3591 |
}{ |
| 3592 |
\_@@_citeauthor_no_firstinits:n |
| 3593 |
{\c_@@_issue_bib_key_tl -frontcovercredit- \exp_not:V\DTLcurrentindex} |
| 3594 |
} |
| 3595 |
). |
| 3596 |
} |
| 3597 |
\end{description} |
| 3598 |
\end{adjustbox} |
| 3599 |
} |
| 3600 |
\end{_@@_inside_cover_tcb} |
| 3601 |
\clearpage |
| 3602 |
\pagenumbering{arabic} |
| 3603 |
\bool_gset_false:N \g_@@_inside_frontcover_bool |
| 3604 |
} |
| 3605 |
% \end{macrocode} |
| 3606 |
% |
| 3607 |
% \subsection{Displaying the inside back cover} |
| 3608 |
% |
| 3609 |
% We create the variable that displays the inside back cover. |
| 3610 |
% \begin{macrocode} |
| 3611 |
\tl_new:N \g_@@_display_inside_backcover_tl |
| 3612 |
\tl_gset:Nn \g_@@_display_inside_backcover_tl { |
| 3613 |
\bool_gset_true:N \g_@@_inside_backcover_bool |
| 3614 |
\cleardoublepage |
| 3615 |
\pagestyle{@@_inside_backcover_ps} |
| 3616 |
\exp_after:wN\newgeometry\exp_after:wN{\c_@@_inside_cover_geometry_tl} |
| 3617 |
\bool_if:NTF {\g_@@_no_inside_backcover_bool} { |
| 3618 |
\hbox{} |
| 3619 |
}{ |
| 3620 |
\small |
| 3621 |
\begin{_@@_inside_cover_tcb}[_@@_tcb_inside_backcover_style] |
| 3622 |
\bool_if:NF {\g_@@_special_edition_bool} { |
| 3623 |
% \begin{multicols}{2} |
| 3624 |
% \setlength{\columnsep}{1mm} |
| 3625 |
\file_if_exist_input:n {\c_@@_authors_instructions_file_tl} |
| 3626 |
% \end{multicols} |
| 3627 |
% \setlength{\columnseprule}{1pt} |
| 3628 |
\tcblower |
| 3629 |
} |
| 3630 |
\begin{description}[leftmargin=1em] |
| 3631 |
\item[\c_@@_latexclass_string_tl{}~ :] |
| 3632 |
\@@_display_people_by_role:n { classdesigner } |
| 3633 |
\item[\c_@@_artistic_director_string_tl{}~ :] |
| 3634 |
\@@_display_people_by_role:n { graphicdesigner } |
| 3635 |
\item[\c_@@_printer_string_tl{}~ :] \g_@@_printer_text_tl |
| 3636 |
\end{description} |
| 3637 |
\g_@@_font_designer_text_tl |
| 3638 |
\end{_@@_inside_cover_tcb} |
| 3639 |
} |
| 3640 |
\bool_gset_false:N \g_@@_inside_backcover_bool |
| 3641 |
} |
| 3642 |
% \end{macrocode} |
| 3643 |
% |
| 3644 |
% \subsection{Displaying the back cover} |
| 3645 |
% |
| 3646 |
% We create the variable that displays the back cover. |
| 3647 |
% \begin{macrocode} |
| 3648 |
\tl_new:N \g_@@_display_backcover_tl |
| 3649 |
\tl_gset:Nn \g_@@_display_backcover_tl { |
| 3650 |
\bool_gset_true:N \g_@@_backcover_bool |
| 3651 |
\pagestyle{@@_backcover_ps} |
| 3652 |
\pagecolor{\g_@@_special_edition_color_tl} |
| 3653 |
\exp_after:wN\newgeometry\exp_after:wN{\c_@@_backcover_geometry_tl} |
| 3654 |
\bool_if:NTF {\g_@@_special_edition_bool} { |
| 3655 |
\mbox{} |
| 3656 |
\vfill |
| 3657 |
\clist_map_inline:Nn \c_@@_graphics_extensions_clist{ |
| 3658 |
\file_if_exist:nT {\c_@@_issue_images_path_string_tl/\g_@@_special_edition_backcover_image_tl.#1} { |
| 3659 |
\begin{center} |
| 3660 |
\includegraphics[width=.25\linewidth]{\g_@@_special_edition_backcover_image_tl} |
| 3661 |
\end{center} |
| 3662 |
\bigskip |
| 3663 |
\clist_map_break: |
| 3664 |
} |
| 3665 |
} |
| 3666 |
\group_begin: |
| 3667 |
\leftskip.125\linewidth |
| 3668 |
\rightskip\leftskip |
| 3669 |
\file_if_exist_input:nF {\c_@@_special_edition_backcover_page_file_string_tl} |
| 3670 |
{ |
| 3671 |
\c_empty_box |
| 3672 |
} |
| 3673 |
\par |
| 3674 |
\group_end: |
| 3675 |
\vfill |
| 3676 |
\clist_if_empty:NF \g_@@_special_edition_logos_clist { |
| 3677 |
\vfill |
| 3678 |
\noindent |
| 3679 |
\clist_map_inline:Nn \g_@@_special_edition_logos_clist { |
| 3680 |
\hfill |
| 3681 |
\includegraphics[height=2cm]{#1} |
| 3682 |
\hfill |
| 3683 |
} |
| 3684 |
\mbox{} |
| 3685 |
} |
| 3686 |
}{ |
| 3687 |
\file_if_exist_input:nF {\c_@@_backcover_page_file_string_tl} |
| 3688 |
{ |
| 3689 |
\hbox{} |
| 3690 |
} |
| 3691 |
} |
| 3692 |
} |
| 3693 |
% \end{macrocode} |
| 3694 |
% |
| 3695 |
% \subsection{User level commands} |
| 3696 |
% |
| 3697 |
% Here, we gather all the user level (public) commands. |
| 3698 |
% |
| 3699 |
% \subsubsection{Populating the people involved in the journal} |
| 3700 |
% |
| 3701 |
% \begin{macro}{\editorinchief,\editor,\president,\classdesigner,\fontdesigner,\classmaintainer,\graphicdesigner} |
| 3702 |
% We define some document-level commands that let the user specify |
| 3703 |
% respectively the editor(s) in chief, the editors, the (\textsc{smf}) |
| 3704 |
% president, the class designer and maintainer(s), and the graphic designer. |
| 3705 |
% |
| 3706 |
% For the editor(s) in chief, we increment the ×\g_@@_editors_in_chief_int× |
| 3707 |
% counter in order to use singular or plural form of the corresponding string |
| 3708 |
% \enquote{Rédacteur(s) en chef}. |
| 3709 |
% \begin{macrocode} |
| 3710 |
\NewDocumentCommand \editorinchief {ommm} |
| 3711 |
{ |
| 3712 |
\int_incr:N \g_@@_editors_in_chief_int |
| 3713 |
\_@@_people:nnnnnnnn {#2}{#3}{#4}{}{}{#1}{editorinchief}{} |
| 3714 |
} |
| 3715 |
\NewDocumentCommand \editor {ommm} |
| 3716 |
{ |
| 3717 |
\_@@_people:nnnnnnnn {#2}{#3}{#4}{}{}{#1}{editor}{} |
| 3718 |
} |
| 3719 |
|
| 3720 |
\NewDocumentCommand \president {ommm} |
| 3721 |
{ |
| 3722 |
\_@@_people:nnnnnnnn {#2}{#3}{#4}{}{}{#1}{president}{} |
| 3723 |
} |
| 3724 |
\NewDocumentCommand \classdesigner {ommm} |
| 3725 |
{ |
| 3726 |
\_@@_people:nnnnnnnn {#2}{#3}{#4}{}{}{#1}{classdesigner}{} |
| 3727 |
} |
| 3728 |
\NewDocumentCommand \classmaintainer {ommm} |
| 3729 |
{ |
| 3730 |
\_@@_people:nnnnnnnn {#2}{#3}{#4}{}{}{#1}{classmaintainer}{} |
| 3731 |
} |
| 3732 |
\NewDocumentCommand \fontdesigner {ommm} |
| 3733 |
{ |
| 3734 |
\_@@_people:nnnnnnnn {#2}{#3}{#4}{}{}{#1}{fontdesigner}{} |
| 3735 |
} |
| 3736 |
\NewDocumentCommand \graphicdesigner {ommm} |
| 3737 |
{ |
| 3738 |
\_@@_people:nnnnnnnn {#2}{#3}{#4}{}{}{#1}{graphicdesigner}{} |
| 3739 |
} |
| 3740 |
\NewDocumentCommand \secretary {ommm} |
| 3741 |
{ |
| 3742 |
\_@@_people:nnnnnnnn {#2}{#3}{#4}{}{}{#1}{secretary}{} |
| 3743 |
} |
| 3744 |
% \NewDocumentCommand \frontcovercredit {om} |
| 3745 |
% { |
| 3746 |
% \_@@_people:nnnnnnnn {#2}{}{}{}{}{#1}{frontcovercredit}{} |
| 3747 |
% } |
| 3748 |
% \end{macrocode} |
| 3749 |
% \end{macro} |
| 3750 |
% |
| 3751 |
% \subsubsection{Issue setup} |
| 3752 |
% |
| 3753 |
% \begin{macro}{\issuesetup} |
| 3754 |
% We define the command that lets the user specify the issue setup. |
| 3755 |
% \begin{macrocode} |
| 3756 |
\NewDocumentCommand \issuesetup { m } { |
| 3757 |
% \end{macrocode} |
| 3758 |
% |
| 3759 |
% Its keys are set (only ×number×, ×month× and ×year× are relevant here). |
| 3760 |
% \begin{macrocode} |
| 3761 |
\keys_set:nn { gzt/issuesetup } {frontcoverimageoptions={width=\c_@@_frontcover_image_width_dim},#1} |
| 3762 |
% \end{macrocode} |
| 3763 |
% |
| 3764 |
% We use here the fact that, if the ×number×, ×month× or ×year× options are not |
| 3765 |
% used, their corresponding ×\g_@@_issue_number_int×, ×\g_@@_issue_month_int× or |
| 3766 |
% ×\g_@@_issue_year_int× variables are equal to $0$ ($<1$). |
| 3767 |
% |
| 3768 |
% First, if ×number× is not used, its ×\g_@@_issue_number_int× variable is set |
| 3769 |
% to ×\c_@@_first_issue_number_int×\footnote{The number of the first Gazette's |
| 3770 |
% issue using the present class.} and a warning is emitted. |
| 3771 |
% \begin{macrocode} |
| 3772 |
\int_compare:nNnT {\g_@@_issue_number_int}<{1} |
| 3773 |
{ |
| 3774 |
\int_set:Nn \g_@@_issue_number_int { \c_@@_first_issue_number_int } |
| 3775 |
\msg_warning:nnn{gzt}{issue-number-needed}{number} |
| 3776 |
} |
| 3777 |
% \end{macrocode} |
| 3778 |
% |
| 3779 |
% If not specified as ×\issuesetup×'s key-value options, issue's month and |
| 3780 |
% year are computed from issue number (which defaults to |
| 3781 |
% ×\c_@@_first_issue_month_int×). |
| 3782 |
% |
| 3783 |
% First, if ×month× or ×year× option is not used (one of the previous |
| 3784 |
% variables is $0$ hence their product is $0$ ($<1$)), we compute the issue |
| 3785 |
% age in months, useful for both month and year computation. |
| 3786 |
% \begin{macrocode} |
| 3787 |
\int_compare:nNnT {\g_@@_issue_month_int * \g_@@_issue_year_int}<{1} |
| 3788 |
{ |
| 3789 |
\int_new:N \g_@@_issue_age_in_months_int |
| 3790 |
\int_gset:Nn \g_@@_issue_age_in_months_int |
| 3791 |
{ |
| 3792 |
\c_@@_first_issue_month_int |
| 3793 |
+ \c_@@_interval_in_months_int |
| 3794 |
* ( \int_use:N \g_@@_issue_number_int - \c_@@_first_issue_number_int ) |
| 3795 |
} |
| 3796 |
} |
| 3797 |
% \end{macrocode} |
| 3798 |
% |
| 3799 |
% If the ×month× is not used, we replace ×\g_@@_issue_month_int× ($=0$) by its |
| 3800 |
% computed value from the issue number. |
| 3801 |
% \begin{macrocode} |
| 3802 |
\int_compare:nNnT {\g_@@_issue_month_int}<{1} |
| 3803 |
{ |
| 3804 |
\int_gset:Nn \g_@@_issue_month_int |
| 3805 |
{ |
| 3806 |
\int_mod:nn { \g_@@_issue_age_in_months_int } { 12 } |
| 3807 |
} |
| 3808 |
} |
| 3809 |
% \end{macrocode} |
| 3810 |
% |
| 3811 |
% If the ×year× is not used, we replace ×\g_@@_issue_year_int× ($=0$) by its |
| 3812 |
% computed value from the issue number. |
| 3813 |
% \begin{macrocode} |
| 3814 |
\int_compare:nNnT {\g_@@_issue_year_int}<{1} |
| 3815 |
{ |
| 3816 |
\int_new:N \g_@@_issue_age_in_years_int |
| 3817 |
\int_gset:Nn \g_@@_issue_age_in_years_int |
| 3818 |
{ |
| 3819 |
\int_div_truncate:nn { \g_@@_issue_age_in_months_int } { 12 } |
| 3820 |
} |
| 3821 |
\int_gset:Nn \g_@@_issue_year_int |
| 3822 |
{ |
| 3823 |
\g_@@_issue_age_in_years_int + \c_@@_first_issue_year_int |
| 3824 |
} |
| 3825 |
} |
| 3826 |
} |
| 3827 |
% \end{macrocode} |
| 3828 |
% \end{macro} |
| 3829 |
% |
| 3830 |
% \subsubsection{Special edition setup} |
| 3831 |
% |
| 3832 |
% \begin{macro}{\specialeditionsetup} |
| 3833 |
% We define the command that lets the user specify the special edition setup. |
| 3834 |
% \begin{macrocode} |
| 3835 |
\NewDocumentCommand \specialeditionsetup { m } { |
| 3836 |
\bool_gset_true:N \g_@@_special_edition_bool |
| 3837 |
\bool_gset_true:N \g_@@_frontcover_without_minitoc_bool |
| 3838 |
\keys_set:nn { gzt/specialedition } {#1} |
| 3839 |
} |
| 3840 |
% \end{macrocode} |
| 3841 |
% \end{macro} |
| 3842 |
% |
| 3843 |
% \subsubsection{Moral report setup} |
| 3844 |
% |
| 3845 |
% \begin{macro}{\moralreportsetup} |
| 3846 |
% We define the command that lets the user specify the moral report setup. |
| 3847 |
% \begin{macrocode} |
| 3848 |
\NewDocumentCommand \moralreportsetup { m } { |
| 3849 |
\bool_gset_true:N \g_@@_moral_report_bool |
| 3850 |
\bool_gset_true:N \g_@@_frontcover_without_minitoc_bool |
| 3851 |
\keys_set:nn { gzt/moralreport } {#1} |
| 3852 |
} |
| 3853 |
% \end{macrocode} |
| 3854 |
% \end{macro} |
| 3855 |
% |
| 3856 |
% \subsubsection{Journal setup} |
| 3857 |
% |
| 3858 |
% \begin{macro}{\journalsetup} |
| 3859 |
% We define the command that lets the user specify the |
| 3860 |
% journal setup. This setup is likely to be rarely changed. |
| 3861 |
% \begin{macrocode} |
| 3862 |
\NewDocumentCommand \journalsetup { m } { |
| 3863 |
% \end{macrocode} |
| 3864 |
% |
| 3865 |
% Its keys are set (only ×publisher×, ×address×, ×phone×, ×fax×, ×email×, ×url× |
| 3866 |
% and ×issn× are relevant here). |
| 3867 |
% \begin{macrocode} |
| 3868 |
\keys_set:nn { gzt/journalsetup } { #1 } |
| 3869 |
} |
| 3870 |
% \end{macrocode} |
| 3871 |
% \end{macro} |
| 3872 |
% |
| 3873 |
% \subsubsection{Date of the president's message} |
| 3874 |
% |
| 3875 |
% \begin{macro}{\date} |
| 3876 |
% We redefine the ×\date× for the date of the president's message. It takes |
| 3877 |
% 3 arguments, each of them being a number: the day, the month and the year. |
| 3878 |
% \begin{macrocode} |
| 3879 |
\RenewDocumentCommand \date { mmm } { |
| 3880 |
\newdate{@@_president_message_date}{#1}{#2}{#3} |
| 3881 |
} |
| 3882 |
% \end{macrocode} |
| 3883 |
% \end{macro} |
| 3884 |
% |
| 3885 |
% \subsubsection{Interviews} |
| 3886 |
% |
| 3887 |
% \begin{macro}{\interviewee} |
| 3888 |
% \begin{macrocode} |
| 3889 |
% \NewDocumentCommand\interviewer { o m } { |
| 3890 |
% } |
| 3891 |
\NewDocumentCommand \interviewee { om } { |
| 3892 |
\tl_if_empty:nT \g_@@_title_tl { |
| 3893 |
\tl_gset:Nn \g_@@_title_tl { |
| 3894 |
\c_@@_interview_title_string_tl |
| 3895 |
\DeclareNameAlias{labelname}{default}\citeauthor{\c_@@_issue_bib_key_tl -art-\int_use:N |
| 3896 |
\g_@@_articles_int} |
| 3897 |
} |
| 3898 |
} |
| 3899 |
\IfNoValueF {#1} |
| 3900 |
{ |
| 3901 |
\keys_set:nn { gzt/interviewees } { #1 } |
| 3902 |
} |
| 3903 |
\tl_set:Nn \l_@@_people_first_last_name_tl {#2} |
| 3904 |
\_@@_people:nVVVVnxV |
| 3905 |
{#2} |
| 3906 |
{\g_@@_people_affiliation_tl} |
| 3907 |
{\g_@@_people_email_tl} |
| 3908 |
{\g_@@_people_minibio_tl} |
| 3909 |
{\g_@@_people_photo_tl} |
| 3910 |
{} |
| 3911 |
{interviewee-art-\int_use:N \g_@@_articles_int} |
| 3912 |
{} |
| 3913 |
% \maketitle |
| 3914 |
} |
| 3915 |
% \end{macrocode} |
| 3916 |
% \end{macro} |
| 3917 |
% |
| 3918 |
% \subsubsection{Miscellaneous} |
| 3919 |
% |
| 3920 |
% \begin{macro}{\academicsignature} |
| 3921 |
% \begin{macrocode} |
| 3922 |
\NewDocumentCommand \academicsignature { m } { |
| 3923 |
\@@_display_academic_signature:n {#1} |
| 3924 |
} |
| 3925 |
% \end{macrocode} |
| 3926 |
% \end{macro} |
| 3927 |
% |
| 3928 |
% \subsection{Definition of the footer of the pages} |
| 3929 |
% |
| 3930 |
% \begin{macro}{@@_date,\l_@@_uppercased_date_format} |
| 3931 |
% Thanks to \Pkg{datetime}, we create the new date ×@@_date× and define the |
| 3932 |
% date format to be used in the journal. As this date has to be displayed |
| 3933 |
% uppercased, we first define a function that displays uppercased months. |
| 3934 |
% \begin{macrocode} |
| 3935 |
\cs_new_protected:Nn \_@@_uppercased_monthname_french:n |
| 3936 |
{ |
| 3937 |
\@orgargctr=#1\relax |
| 3938 |
\ifcase\@orgargctr |
| 3939 |
\PackageError{datetime}{Invalid~ month~ number~ \the\@orgargctr}{ |
| 3940 |
Month~ numbers~ should~ go~ from~ 1~ (janvier)~ to~ 12~ (decembre)} |
| 3941 |
\or JANVIER |
| 3942 |
\or F\'EVRIER |
| 3943 |
\or MARS |
| 3944 |
\or AVRIL |
| 3945 |
\or MAI |
| 3946 |
\or JUIN |
| 3947 |
\or JUILLET |
| 3948 |
\or AO\^UT |
| 3949 |
\or SEPTEMBRE |
| 3950 |
\or OCTOBRE |
| 3951 |
\or NOVEMBRE |
| 3952 |
\or D\'ECEMBRE |
| 3953 |
\else |
| 3954 |
\PackageError{datetime}{Invalid~ month~ number~ \the\@orgargctr}{ |
| 3955 |
Month~ numbers~ should~ go~ from~ 1~ (janvier)~ to~ 12~ (decembre)} |
| 3956 |
\fi |
| 3957 |
} |
| 3958 |
\newdate{@@_date} |
| 3959 |
{1} |
| 3960 |
{\int_use:N \g_@@_issue_month_int} |
| 3961 |
{\int_use:N \g_@@_issue_year_int} |
| 3962 |
\newdateformat{l_@@_uppercased_date_format}{ |
| 3963 |
\_@@_uppercased_monthname_french:n {\THEMONTH}~ \THEYEAR |
| 3964 |
} |
| 3965 |
% \end{macrocode} |
| 3966 |
% \end{macro} |
| 3967 |
% |
| 3968 |
% \subsection{(Re)Definition of document commands that identify the article} |
| 3969 |
% |
| 3970 |
% The names of the authors of the different articles will appear at several |
| 3971 |
% places, and notably in the table of contents where first and middle names have to |
| 3972 |
% be rendered as initials. Because automatically rendering initials is a complex task |
| 3973 |
% already provided by \Pkg{biblatex}, we will create a \file{.bib} file |
| 3974 |
% containing ×article× entries for each article of the \gzt{} journal. |
| 3975 |
% |
| 3976 |
% This can be done only at the beginning of the document, in order to know the |
| 3977 |
% characteristics of the current issue. |
| 3978 |
% \begin{macrocode} |
| 3979 |
\AddToHook{begindocument}{ |
| 3980 |
% \end{macrocode} |
| 3981 |
% |
| 3982 |
% We first create a token list containing the date of the current issue formated |
| 3983 |
% as required by \pkg{biblatex} (the month issue needs a leading zero if it is |
| 3984 |
% $<10$). |
| 3985 |
% \begin{macrocode} |
| 3986 |
\tl_new:N \g_@@_bib_issue_date_tl |
| 3987 |
\tl_gset:Nn \g_@@_bib_issue_date_tl { |
| 3988 |
\int_use:N \g_@@_issue_year_int- |
| 3989 |
\int_compare:nNnT {\g_@@_issue_month_int}<{10} |
| 3990 |
{ |
| 3991 |
0 |
| 3992 |
} |
| 3993 |
\int_use:N \g_@@_issue_month_int |
| 3994 |
} |
| 3995 |
% \end{macrocode} |
| 3996 |
% |
| 3997 |
% We will populate the bibiliographic file of the current issue with the current |
| 3998 |
% issue (as ×@periodical× entry type). |
| 3999 |
% \begin{macrocode} |
| 4000 |
\iow_now:Nx \g_@@_bib_out_iow { |
| 4001 |
@periodical{\c_@@_issue_bib_key_tl,\iow_newline: |
| 4002 |
issuetitle = {\exp_not:f\c_@@_journal_title_string_tl},\iow_newline: |
| 4003 |
date = {\g_@@_bib_issue_date_tl},\iow_newline: |
| 4004 |
number = \int_use:N \g_@@_issue_number_int,\iow_newline: |
| 4005 |
% issn = {\l_@@_journal_issn_tl},\iow_newline: |
| 4006 |
options = {skipbib}\iow_newline: |
| 4007 |
} |
| 4008 |
\iow_newline: |
| 4009 |
} |
| 4010 |
} |
| 4011 |
% \end{macrocode} |
| 4012 |
% |
| 4013 |
% \begin{macro}{\title,\g_@@_title_tl} |
| 4014 |
% The command for article's title is redefined: the full \enquote{article's |
| 4015 |
% title} is store in ×\g_@@_title_tl× for later use. |
| 4016 |
% \begin{macrocode} |
| 4017 |
\tl_new:N \g_@@_title_tl |
| 4018 |
\RenewDocumentCommand \title { o m } { |
| 4019 |
% \end{macrocode} |
| 4020 |
% We increment the ×\g_@@_articles_int× integer that counts the number of |
| 4021 |
% articles in order to provide for each of them a unique bibliographic key. |
| 4022 |
% \begin{macrocode} |
| 4023 |
\int_gincr:N \g_@@_articles_int |
| 4024 |
\tl_gclear:N \g_@@_short_title_tl |
| 4025 |
\tl_gclear:N \g_@@_short_subtitle_tl |
| 4026 |
\bool_gset_false:N \g_@@_title_not_in_article_bool |
| 4027 |
\bool_gset_false:N \g_@@_title_not_in_toc_bool |
| 4028 |
\bool_gset_false:N \g_@@_title_without_rule_bool |
| 4029 |
\IfNoValueF {#1} |
| 4030 |
{ |
| 4031 |
\keys_set:nn { gzt/title } { #1 } |
| 4032 |
} |
| 4033 |
\tl_gset:Nn \g_@@_title_tl {#2} |
| 4034 |
\bool_if:nT \g_@@_tellme_rubric_bool |
| 4035 |
{ |
| 4036 |
\tl_put_left:Nx \g_@@_title_tl {\c_@@_tellme_extra_title_string_tl} |
| 4037 |
} |
| 4038 |
\tl_if_empty:NT \g_@@_short_title_tl { |
| 4039 |
\tl_gset_eq:NN \g_@@_short_title_tl \g_@@_title_tl |
| 4040 |
} |
| 4041 |
} |
| 4042 |
% \end{macrocode} |
| 4043 |
% \end{macro} |
| 4044 |
% |
| 4045 |
% \begin{macro}{\subtitle,\g_@@_subtitle_tl} |
| 4046 |
% The command for article's subtitle is redefined: the full and short |
| 4047 |
% \enquote{article's subtitles} are store in ×\g_@@_subtitle_tl× and |
| 4048 |
% ×\g_@@_short_subtitle_tl× for later use. |
| 4049 |
% \begin{macrocode} |
| 4050 |
\tl_new:N \g_@@_subtitle_tl |
| 4051 |
\NewDocumentCommand \subtitle { o m } { |
| 4052 |
\bool_gset_false:N \g_@@_subtitle_not_in_toc_bool |
| 4053 |
\IfNoValueF {#1} |
| 4054 |
{ |
| 4055 |
\keys_set:nn { gzt/subtitle } { #1 } |
| 4056 |
} |
| 4057 |
\tl_gset:Nn \g_@@_subtitle_tl {#2} |
| 4058 |
\tl_if_empty:NT \g_@@_short_subtitle_tl { |
| 4059 |
\tl_gset_eq:NN \g_@@_short_subtitle_tl \g_@@_subtitle_tl |
| 4060 |
} |
| 4061 |
} |
| 4062 |
% \end{macrocode} |
| 4063 |
% \end{macro} |
| 4064 |
% |
| 4065 |
% \begin{macro}{\author} |
| 4066 |
% The command for article's author (including its affiliation) is redefined. |
| 4067 |
% \begin{macrocode} |
| 4068 |
\RenewDocumentCommand \author { o m } { |
| 4069 |
\IfNoValueF {#1} |
| 4070 |
{ |
| 4071 |
\keys_set:nn { gzt/authors } { #1 } |
| 4072 |
} |
| 4073 |
\tl_gset:Nn \l_@@_people_first_last_name_tl {#2} |
| 4074 |
\_@@_people:nVVVVnxV |
| 4075 |
{#2} |
| 4076 |
{\g_@@_people_affiliation_tl} |
| 4077 |
{\g_@@_people_email_tl} |
| 4078 |
{\g_@@_people_minibio_tl} |
| 4079 |
{\g_@@_people_photo_tl} |
| 4080 |
{} |
| 4081 |
{author-art-\int_use:N \g_@@_articles_int} |
| 4082 |
{\g_@@_people_webpage_tl} |
| 4083 |
} |
| 4084 |
% \end{macrocode} |
| 4085 |
% \end{macro} |
| 4086 |
% |
| 4087 |
% We create a stream in order to write a bibliographic file |
| 4088 |
% \begin{macrocode} |
| 4089 |
\iow_new:N \g_@@_bib_out_iow |
| 4090 |
\ior_new:N \g_@@_bib_out_ior |
| 4091 |
\tl_new:N \g_@@_bib_out_tl |
| 4092 |
\file_if_exist:nTF { \c_@@_issue_bib_path_string_tl } |
| 4093 |
{ |
| 4094 |
\ior_open:Nn \g_@@_bib_out_ior { \c_@@_issue_bib_path_string_tl } |
| 4095 |
\ior_str_map_inline:Nn \g_@@_bib_out_ior |
| 4096 |
{ \tl_gput_right:Nn \g_@@_bib_out_tl {#1 \par } } |
| 4097 |
\ior_close:N \g_@@_bib_out_ior |
| 4098 |
}{ |
| 4099 |
\typeout{no file! rerun} |
| 4100 |
} |
| 4101 |
\iow_open:Nn \g_@@_bib_out_iow { \c_@@_issue_bib_path_string_tl } |
| 4102 |
% \end{macrocode} |
| 4103 |
% |
| 4104 |
% \begin{environment}{abstract} |
| 4105 |
% The environment for article's abstract or, more precisely, for its lead |
| 4106 |
% paragraph (\enquote{chapô} in French typography) is (re)defined. |
| 4107 |
% \begin{macrocode} |
| 4108 |
\tl_new:N \g_@@_abstract_body_tl |
| 4109 |
\NewDocumentEnvironment{abstract}{} |
| 4110 |
{\CollectAbstract} |
| 4111 |
{\endCollectAbstract} |
| 4112 |
\NewEnviron{CollectAbstract} |
| 4113 |
{ |
| 4114 |
\tl_gset_eq:NN \g_@@_abstract_body_tl \BODY |
| 4115 |
} |
| 4116 |
% \end{macrocode} |
| 4117 |
% \end{environment} |
| 4118 |
% |
| 4119 |
% \subsection{Definition of a private main matter switch} |
| 4120 |
% |
| 4121 |
% A private ×\_@@_mainmatter_switch_tl× switch is defined in order to automatically insert |
| 4122 |
% some settings. |
| 4123 |
% \begin{macrocode} |
| 4124 |
\tl_new:N \g_@@_mainmatter_switch_tl |
| 4125 |
\tl_gset:Nn \g_@@_mainmatter_switch_tl { |
| 4126 |
\bool_gset_false:N \g_@@_frontmatter_bool |
| 4127 |
\bool_gset_true:N \g_@@_mainmatter_bool |
| 4128 |
\SetParskip{\c_@@_mainmatter_parskip_skip} |
| 4129 |
\pagestyle{@@_mainmatter_ps} |
| 4130 |
} |
| 4131 |
% \end{macrocode} |
| 4132 |
% |
| 4133 |
% \begin{macrocode} |
| 4134 |
\tl_new:N \l_@@_article_acknowledgements_tl |
| 4135 |
\cs_new_protected:Nn \@@_article_acknowledgements:n |
| 4136 |
{ |
| 4137 |
\tl_set:Nn \l_@@_article_acknowledgements_tl { #1 } |
| 4138 |
} |
| 4139 |
% \end{macrocode} |
| 4140 |
% |
| 4141 |
% \begin{macrocode} |
| 4142 |
%</class|class-article> |
| 4143 |
% \end{macrocode} |
| 4144 |
% |
| 4145 |
% \begin{macrocode} |
| 4146 |
%<*class> |
| 4147 |
% \end{macrocode} |
| 4148 |
% |
| 4149 |
% \begin{macro}{\g_@@_about_frontcover} |
| 4150 |
% We define the internal function than let us tell a few words about the front |
| 4151 |
% cover. |
| 4152 |
% \begin{macrocode} |
| 4153 |
\tl_new:N \g_@@_about_frontcover_tl |
| 4154 |
\bool_new:N \g_@@_credit_frontcover_bool |
| 4155 |
\tl_new:N \g_@@_about_frontcover_string_tl |
| 4156 |
\cs_new_protected:Nn \_@@_about_frontcover:nnn |
| 4157 |
{ |
| 4158 |
\tl_if_empty:nF {#1}{ |
| 4159 |
\bool_gset_true:N \g_@@_credit_frontcover_bool |
| 4160 |
\_@@_people:nnnnnnnn {#1}{}{}{}{}{}{frontcovercredit}{} |
| 4161 |
} |
| 4162 |
\tl_gset:Nn \g_@@_about_frontcover_string_tl { #2 } |
| 4163 |
\tl_gset:Nn \g_@@_about_frontcover_tl { #3 } |
| 4164 |
} |
| 4165 |
% \end{macrocode} |
| 4166 |
% \end{macro} |
| 4167 |
% |
| 4168 |
% \begin{macro}{\_@@_rubric} |
| 4169 |
% We define the internal function than defines and sets the layouts of rubrics. |
| 4170 |
% \begin{macrocode} |
| 4171 |
% \tl_new:N \g_@@_rubric_title_tl |
| 4172 |
% \tl_new:N \g_@@_rubric_pictofile_tl |
| 4173 |
% \tl_new:N \g_@@_rubric_abstract_tl |
| 4174 |
\tl_new:N \g_@@_rubric_abstract_box_tl |
| 4175 |
\tl_new:N \l_@@_rubric_head_text_box_tl |
| 4176 |
% |
| 4177 |
\cs_new_protected:Nn \_@@_rubric:nnn |
| 4178 |
{ |
| 4179 |
\newpage |
| 4180 |
\tl_gclear:N \g_@@_rubric_abstract_tl |
| 4181 |
\tl_gclear:N \g_@@_rubric_header_tl |
| 4182 |
\tl_gset:Nn \g_@@_rubric_title_tl {#2} |
| 4183 |
\file_if_exist:nTF { #3.pdf }{ |
| 4184 |
\tl_gset:Nn \g_@@_rubric_pictofile_tl {#3} |
| 4185 |
}{ |
| 4186 |
\tl_gset:Nn \g_@@_rubric_pictofile_tl {example-image} |
| 4187 |
} |
| 4188 |
\IfNoValueF {#1} |
| 4189 |
{ |
| 4190 |
\keys_set:nn { gzt/rubric } { #1 } |
| 4191 |
} |
| 4192 |
\g_@@_mainmatter_switch_tl |
| 4193 |
\bool_gset_true:N \g_@@_mainmatter_bool |
| 4194 |
\clearpage |
| 4195 |
% \end{macrocode} |
| 4196 |
% |
| 4197 |
% We reinitialize the items counter in this new rubric. |
| 4198 |
% \begin{macrocode} |
| 4199 |
\bool_gset_true:N \g_@@_rubric_bool |
| 4200 |
\bool_gset_false:N \g_@@_interview_rubric_bool |
| 4201 |
\bool_gset_false:N \g_@@_tellme_rubric_bool |
| 4202 |
\bool_gset_false:N \g_@@_rearviewmirror_rubric_bool |
| 4203 |
\bool_gset_false:N \g_@@_books_rubric_bool |
| 4204 |
\bool_gset_false:N \g_@@_previous_article_with_bibliography_or_minibio_bool |
| 4205 |
\bool_if:nF { \g_@@_for_authors_bool } { |
| 4206 |
\int_zero:N \g_@@_item_in_rubric_int |
| 4207 |
\phantomsection |
| 4208 |
\par |
| 4209 |
\bool_if:nF {\g_@@_special_edition_bool && !\g_@@_rubrics_in_toc_bool} { |
| 4210 |
\addcontentsline{toc}{part}{\g_@@_rubric_title_tl} |
| 4211 |
} |
| 4212 |
\thispagestyle{@@_rubric_ps} |
| 4213 |
\exp_after:wN\newgeometry\exp_after:wN{\c_@@_main_geometry_tl} |
| 4214 |
\tl_if_empty:NTF \g_@@_rubric_abstract_tl |
| 4215 |
{ |
| 4216 |
\dim_set:Nn \l_@@_rubrics_head_text_width_dim { \c_@@_rubrics_head_text_no_abstract_width_dim } |
| 4217 |
} |
| 4218 |
{ |
| 4219 |
\dim_set:Nn \l_@@_rubrics_head_text_width_dim { \c_@@_rubrics_head_text_abstract_width_dim } |
| 4220 |
\tl_gset:Nn \g_@@_rubric_abstract_box_tl { |
| 4221 |
\begin{adjustbox}{valign=t,minipage=\c_@@_rubrics_abstract_width_dim} |
| 4222 |
\raggedright |
| 4223 |
\large |
| 4224 |
\color{@@_rubric_abstract_color} |
| 4225 |
\g_@@_rubric_abstract_tl |
| 4226 |
\end{adjustbox} |
| 4227 |
} |
| 4228 |
} |
| 4229 |
\tl_set:Nn \l_@@_rubric_head_text_box_tl { |
| 4230 |
\begin{adjustbox}{valign=t,minipage=\l_@@_rubrics_head_text_width_dim} |
| 4231 |
\mbox{} |
| 4232 |
\checkoddpage |
| 4233 |
\ifoddpage |
| 4234 |
\raggedleft |
| 4235 |
\else |
| 4236 |
\raggedright |
| 4237 |
\fi |
| 4238 |
\color{@@_rubric_title_color} |
| 4239 |
\fontsize{20}{20}\fontseries{bx}\fontshape{sc}\selectfont |
| 4240 |
\g_@@_rubric_title_tl |
| 4241 |
\end{adjustbox} |
| 4242 |
} |
| 4243 |
\noindent |
| 4244 |
\mbox{} |
| 4245 |
\checkoddpage |
| 4246 |
\ifoddpage |
| 4247 |
\hspace*{\c_@@_rubric_extra_xoffset_dim} |
| 4248 |
\tl_if_empty:NF \g_@@_rubric_abstract_tl |
| 4249 |
{ |
| 4250 |
\g_@@_rubric_abstract_box_tl |
| 4251 |
} |
| 4252 |
\hfill |
| 4253 |
\l_@@_rubric_head_text_box_tl |
| 4254 |
\hspace*{\c_@@_rubric_xoffset_dim} |
| 4255 |
\else |
| 4256 |
\hspace*{\c_@@_rubric_xoffset_dim} |
| 4257 |
\l_@@_rubric_head_text_box_tl |
| 4258 |
\tl_if_empty:NF \g_@@_rubric_abstract_tl |
| 4259 |
{ |
| 4260 |
\hfill |
| 4261 |
\g_@@_rubric_abstract_box_tl |
| 4262 |
\hspace*{\c_@@_rubric_extra_xoffset_dim} |
| 4263 |
} |
| 4264 |
\fi |
| 4265 |
} |
| 4266 |
\afterpage{ |
| 4267 |
\bool_gset_false:N \g_@@_rubric_bool |
| 4268 |
} |
| 4269 |
% \end{macrocode} |
| 4270 |
% We suppress any spurious space in case of lack of ×%× at the end of the |
| 4271 |
% public macros built on ×\_@@_rubric×: |
| 4272 |
% \begin{macrocode} |
| 4273 |
\ignorespaces |
| 4274 |
% \end{macrocode} |
| 4275 |
% End of the definition of the private command ×\_@@_rubric×: |
| 4276 |
% \begin{macrocode} |
| 4277 |
} |
| 4278 |
% \end{macrocode} |
| 4279 |
% \end{macro} |
| 4280 |
% |
| 4281 |
% \begin{macrocode} |
| 4282 |
%</class> |
| 4283 |
% \end{macrocode} |
| 4284 |
% |
| 4285 |
% \begin{macrocode} |
| 4286 |
%<*class|class-article> |
| 4287 |
% \end{macrocode} |
| 4288 |
% |
| 4289 |
% We create a command for local (to a given article) tables of contents |
| 4290 |
% \begin{macrocode} |
| 4291 |
\cs_new_protected:Nn \_@@_display_localtoc: |
| 4292 |
{ |
| 4293 |
\etocsettocstyle{\section*{\contentsname}}{} |
| 4294 |
\etocsetstyle {section} |
| 4295 |
{} |
| 4296 |
{\leavevmode\leftskip 0cm\relax} |
| 4297 |
{\bfseries\normalsize\makebox[.6cm][l]{\etocnumber} |
| 4298 |
\etocname\nobreak\hfill\nobreak |
| 4299 |
\makebox[.5cm][r]{ |
| 4300 |
\etocpage |
| 4301 |
} |
| 4302 |
\par |
| 4303 |
} |
| 4304 |
{\medskip} |
| 4305 |
\localtableofcontentswithrelativedepth{+1} |
| 4306 |
} |
| 4307 |
\NewDocumentCommand \gztlocaltableofcontents {} |
| 4308 |
{ |
| 4309 |
\_@@_display_localtoc: {} |
| 4310 |
} |
| 4311 |
% \end{macrocode} |
| 4312 |
% |
| 4313 |
% We create two token lists that will contain: |
| 4314 |
% \begin{enumerate} |
| 4315 |
% \item the unique bibliographic key, |
| 4316 |
% \item the ×author× value of the bibliographic entry, |
| 4317 |
% \end{enumerate} |
| 4318 |
% of the current article. |
| 4319 |
% \begin{macrocode} |
| 4320 |
\tl_new:N \g_@@_article_bib_key_tl |
| 4321 |
\tl_new:N \l_@@_people_first_last_names_tl |
| 4322 |
\tl_new:N \g_@@_authors_first_last_names_tl |
| 4323 |
\tl_new:N \l_@@_interviewees_first_last_names_tl |
| 4324 |
\tl_new:N \g_@@_citeauthor_tl |
| 4325 |
\tl_new:N \g_@@_citeinterviewee_tl |
| 4326 |
% |
| 4327 |
\tl_new:N \g_@@_blx_given_first_inits_tl |
| 4328 |
\@ifpackagelater{biblatex}{2016/01/01}{ |
| 4329 |
\tl_gset:Nn \g_@@_blx_given_first_inits_false_tl |
| 4330 |
{ |
| 4331 |
\togglefalse{abx@bool@giveninits} |
| 4332 |
} |
| 4333 |
}{ |
| 4334 |
\tl_set:Nn \g_@@_blx_given_first_inits_false_tl |
| 4335 |
{ |
| 4336 |
\togglefalse{blx@firstinits} |
| 4337 |
} |
| 4338 |
} |
| 4339 |
% |
| 4340 |
\cs_new_protected:Nn \_@@_citeauthor_no_firstinits:n { |
| 4341 |
\tl_gset:Nn \g_@@_citeauthor_tl { |
| 4342 |
\DeclareNameAlias{labelname}{default} |
| 4343 |
\group_begin: |
| 4344 |
\g_@@_blx_given_first_inits_false_tl |
| 4345 |
\citeauthor{#1} |
| 4346 |
\group_end: |
| 4347 |
} |
| 4348 |
\cs_if_exist:cTF {texorpdfstring} |
| 4349 |
{ |
| 4350 |
\texorpdfstring{\g_@@_citeauthor_tl}{} |
| 4351 |
}{ |
| 4352 |
\g_@@_citeauthor_tl |
| 4353 |
} |
| 4354 |
} |
| 4355 |
% \@ifpackageloaded{hyperref}{ |
| 4356 |
% \tl_gset:No \g_@@_citeauthor_tl { |
| 4357 |
% \texorpdfstring{\citeauthor{\g_@@_article_bib_key_tl}}{} |
| 4358 |
% } |
| 4359 |
% }{ |
| 4360 |
% \tl_gset:Nn \g_@@_citeauthor_tl { |
| 4361 |
% \citeauthor{\g_@@_article_bib_key_tl} |
| 4362 |
% } |
| 4363 |
% } |
| 4364 |
% \@ifpackageloaded{hyperref}{ |
| 4365 |
% \tl_gset:No \g_@@_citeinterviewee_tl { |
| 4366 |
% \texorpdfstring{\citeauthor{\g_@@_article_bib_key_tl}}{} |
| 4367 |
% } |
| 4368 |
% }{ |
| 4369 |
% \tl_gset:Nn \g_@@_citeinterviewee_tl { |
| 4370 |
% \citeinterviewee{\g_@@_article_bib_key_tl} |
| 4371 |
% } |
| 4372 |
% } |
| 4373 |
% \end{macrocode} |
| 4374 |
% |
| 4375 |
% In the following ×\maketitle× document level macro, we will need to display |
| 4376 |
% the list the authors of the current article, not as a comma separated list |
| 4377 |
% (default ×\citeauthor× \pkg{biblatex}'s macro behavior), but as an itemized |
| 4378 |
% list. For this, we create the ×\_@@_itemized_citeauthor× internal function |
| 4379 |
% that will make use of ×\citeauthor× where ×\multinamedelim× and |
| 4380 |
% ×\finalnamedelim× will be patched into ×\item×. As we don't want to globally |
| 4381 |
% alter the behavior of these macros, we first store their original meanings in |
| 4382 |
% some private control sequence: |
| 4383 |
% \begin{macrocode} |
| 4384 |
\cs_set_eq:NN \_@@_orig_multinamedelim \multinamedelim |
| 4385 |
\cs_set_eq:NN \_@@_orig_finalnamedelim \finalnamedelim |
| 4386 |
\cs_new_protected:Nn \_@@_itemized_citeauthor:n |
| 4387 |
{ |
| 4388 |
\cs_set_eq:NN \multinamedelim \item |
| 4389 |
\cs_set_eq:NN \finalnamedelim \multinamedelim |
| 4390 |
\AtNextCitekey{\defcounter{maxnames}{100}} |
| 4391 |
\begin{itemize}[label=\textbullet,noitemsep] |
| 4392 |
\item \citeauthor{#1} |
| 4393 |
\end{itemize} |
| 4394 |
\cs_set_eq:NN \multinamedelim \_@@_orig_multinamedelim |
| 4395 |
\cs_set_eq:NN \finalnamedelim \_@@_orig_finalnamedelim |
| 4396 |
} |
| 4397 |
% \end{macrocode} |
| 4398 |
% |
| 4399 |
% We declare two token list which will used in the next (re)definition. |
| 4400 |
% \begin{macrocode} |
| 4401 |
\tl_new:N \l_@@_bullet_and_rule_tl |
| 4402 |
\tl_new:N \l_@@_authors_box_tl |
| 4403 |
\tl_new:N \l_@@_abstract_box_tl |
| 4404 |
\tl_new:N \l_@@_bullet_and_rule_odd_tl |
| 4405 |
\tl_new:N \l_@@_bullet_and_rule_even_tl |
| 4406 |
\tl_new:N \l_@@_title_box_tl |
| 4407 |
% |
| 4408 |
% \end{macrocode} |
| 4409 |
% |
| 4410 |
% \begin{macro}{\maketitle} |
| 4411 |
% The command that \enquote{makes} the title is redefined. |
| 4412 |
% \begin{macrocode} |
| 4413 |
\RenewDocumentCommand \maketitle { s } { |
| 4414 |
% \end{macrocode} |
| 4415 |
% |
| 4416 |
% % We add to this command some options that let us specify: |
| 4417 |
% % \begin{itemize} |
| 4418 |
% % \item whether the blue rule and bullet is displayed or not at the beginning of |
| 4419 |
% % the article, |
| 4420 |
% % \item whether the title is visible or not at the beginning of the article, |
| 4421 |
% % \item whether the title is visible or not in the ToC. |
| 4422 |
% % \end{itemize} |
| 4423 |
% % \begin{macrocode} |
| 4424 |
% \IfNoValueF {#1} |
| 4425 |
% { |
| 4426 |
% \keys_set:nn { gzt/maketitle } { #1 } |
| 4427 |
% } |
| 4428 |
% % \end{macrocode} |
| 4429 |
% |
| 4430 |
% We force all the previous floats to be processed before a new article starts |
| 4431 |
% (this is already done in ×bibliography_minibiographies_acknowledgements× |
| 4432 |
% environment but is repeated here if what is before provides floats but neither |
| 4433 |
% bibliography, \textsc{cv} nor acknowledgements). |
| 4434 |
% \begin{macrocode} |
| 4435 |
\FloatBarrier |
| 4436 |
% \end{macrocode} |
| 4437 |
% |
| 4438 |
% We increment the item number in the current rubric. |
| 4439 |
% \begin{macrocode} |
| 4440 |
\int_gincr:N \g_@@_item_in_rubric_int |
| 4441 |
% \end{macrocode} |
| 4442 |
% |
| 4443 |
% We restore the original length for ×\parindent× that has been set to zero in |
| 4444 |
% a possible previous \enquote{Interview} rubric. |
| 4445 |
% \begin{macrocode} |
| 4446 |
\dim_set_eq:NN \parindent \c_@@_original_parindent_dim |
| 4447 |
% \end{macrocode} |
| 4448 |
% |
| 4449 |
% We reset all acronyms entries. |
| 4450 |
% \begin{macrocode} |
| 4451 |
\glsresetall |
| 4452 |
% \end{macrocode} |
| 4453 |
% |
| 4454 |
% We reset to zero some counters at each new article. |
| 4455 |
% \begin{macrocode} |
| 4456 |
\setcounter{section}{0} |
| 4457 |
\setcounter{figure}{0} |
| 4458 |
\setcounter{table}{0} |
| 4459 |
\setcounter{footnote}{0} |
| 4460 |
% |
| 4461 |
\setcounter{equation}{0} |
| 4462 |
% |
| 4463 |
\setcounter{theorem}{0} |
| 4464 |
% \setcounter{theoreme}{0} |
| 4465 |
\setcounter{corollary}{0} |
| 4466 |
% \setcounter{corollaire}{0} |
| 4467 |
\setcounter{conjecture}{0} |
| 4468 |
\setcounter{proposition}{0} |
| 4469 |
\setcounter{lemma}{0} |
| 4470 |
% \setcounter{lemme}{0} |
| 4471 |
\setcounter{axiom}{0} |
| 4472 |
% \setcounter{axiome}{0} |
| 4473 |
% |
| 4474 |
\setcounter{definition}{0} |
| 4475 |
\setcounter{remark}{0} |
| 4476 |
% \setcounter{remarque}{0} |
| 4477 |
\setcounter{example}{0} |
| 4478 |
% \setcounter{exemple}{0} |
| 4479 |
\setcounter{notation}{0} |
| 4480 |
% \end{macrocode} |
| 4481 |
% |
| 4482 |
% We store the unique bibliographic key of the current article in the |
| 4483 |
% ×\g_@@_article_bib_key_tl× token list. |
| 4484 |
% \begin{macrocode} |
| 4485 |
\tl_gset:Nn \g_@@_article_bib_key_tl { |
| 4486 |
\c_@@_issue_bib_key_tl |
| 4487 |
-art- |
| 4488 |
\int_use:N \g_@@_articles_int |
| 4489 |
} |
| 4490 |
% \end{macrocode} |
| 4491 |
% |
| 4492 |
% We will populate the bibiliographic file of the current issue with the current |
| 4493 |
% article (title, author(s) and a fixed part giving by the issue number, journal |
| 4494 |
% title and date). |
| 4495 |
% |
| 4496 |
% Then, we iterate through each row of the authors database in order to get |
| 4497 |
% a token list containing the (list of the) author(s) of the current article |
| 4498 |
% formated as required by \pkg{biblatex} (\enquote{Last1, First1 [and Last2, |
| 4499 |
% First2 [and ...]]}). |
| 4500 |
% \begin{macrocode} |
| 4501 |
\DTLforeach*[\DTLiseq{\l_@@_people_role_tl}{author-art-\int_use:N \g_@@_articles_int}]{people}{ |
| 4502 |
\l_@@_people_first_last_name_tl=first-last-name |
| 4503 |
,\l_@@_people_role_tl=role |
| 4504 |
}{ |
| 4505 |
\tl_if_in:NnT \l_@@_people_role_tl { author } { |
| 4506 |
\DTLiffirstrow{ |
| 4507 |
\tl_put_right:Nx |
| 4508 |
\l_@@_people_first_last_names_tl |
| 4509 |
{\exp_not:V\l_@@_people_first_last_name_tl} |
| 4510 |
}{ |
| 4511 |
\tl_put_right:Nx |
| 4512 |
\l_@@_people_first_last_names_tl |
| 4513 |
{~ and~ \exp_not:V\l_@@_people_first_last_name_tl} |
| 4514 |
} |
| 4515 |
} |
| 4516 |
} |
| 4517 |
\DTLforeach*[\DTLiseq{\l_@@_people_role_tl}{interviewee-art-\int_use:N \g_@@_articles_int}]{people}{ |
| 4518 |
\l_@@_people_first_last_name_tl=first-last-name |
| 4519 |
,\l_@@_people_role_tl=role |
| 4520 |
}{ |
| 4521 |
\tl_if_in:NnT \l_@@_people_role_tl { interviewee } { |
| 4522 |
\DTLiffirstrow{ |
| 4523 |
\tl_put_right:Nx |
| 4524 |
\l_@@_people_first_last_names_tl |
| 4525 |
{\exp_not:V\l_@@_people_first_last_name_tl} |
| 4526 |
}{ |
| 4527 |
\tl_put_right:Nx |
| 4528 |
\l_@@_people_first_last_names_tl |
| 4529 |
{~ and~ \exp_not:V\l_@@_people_first_last_name_tl} |
| 4530 |
} |
| 4531 |
} |
| 4532 |
} |
| 4533 |
% \end{macrocode} |
| 4534 |
% |
| 4535 |
% We now populate the bibiliographic file. |
| 4536 |
% \begin{macrocode} |
| 4537 |
\tl_if_empty:NF \g_@@_title_tl { |
| 4538 |
\iow_now:Nx \g_@@_bib_out_iow { |
| 4539 |
@article{ |
| 4540 |
\g_@@_article_bib_key_tl, |
| 4541 |
\iow_newline: |
| 4542 |
title={\exp_not:V\g_@@_title_tl}, |
| 4543 |
\iow_newline: |
| 4544 |
\tl_if_empty:NF \g_@@_subtitle_tl { |
| 4545 |
subtitle={\exp_not:V\g_@@_subtitle_tl}, |
| 4546 |
\iow_newline: |
| 4547 |
} |
| 4548 |
\tl_if_eq:NNF { \g_@@_short_title_tl } { \g_@@_title_tl } { |
| 4549 |
shorttitle={\exp_not:V\g_@@_short_title_tl}, |
| 4550 |
\iow_newline: |
| 4551 |
} |
| 4552 |
\tl_if_empty:NF \l_@@_people_first_last_names_tl |
| 4553 |
{ |
| 4554 |
author={\exp_not:V\l_@@_people_first_last_names_tl}, |
| 4555 |
\iow_newline: |
| 4556 |
} |
| 4557 |
options={skipbib}, |
| 4558 |
\iow_newline: |
| 4559 |
crossref = {\c_@@_issue_bib_key_tl} |
| 4560 |
} |
| 4561 |
\iow_newline: |
| 4562 |
} |
| 4563 |
} |
| 4564 |
% |
| 4565 |
\tl_set:Nn \l_@@_bullet_and_rule_odd_tl |
| 4566 |
{ |
| 4567 |
\begin{tikzpicture}[remember~ picture,overlay] |
| 4568 |
\draw[fill=@@_circlerule_color,draw=@@_circlerule_color,line~ width=0.7mm] |
| 4569 |
( |
| 4570 |
[xshift=-\c_@@_innermargin_dim-\c_@@_potential_layoutoffset_dim]0,0 -| |
| 4571 |
current~ page.west |
| 4572 |
) |
| 4573 |
-- (\linewidth,0); |
| 4574 |
\fill[@@_circlerule_color] (\linewidth-2\pgflinewidth,0) circle [radius=2.75mm]; |
| 4575 |
\end{tikzpicture} |
| 4576 |
} |
| 4577 |
\tl_set:Nn \l_@@_bullet_and_rule_even_tl |
| 4578 |
{ |
| 4579 |
\begin{tikzpicture}[remember~ picture,overlay] |
| 4580 |
\draw[fill=@@_circlerule_color,draw=@@_circlerule_color,line~ width=0.7mm] |
| 4581 |
(0,0 -| current~ page.east) -- (0,0); |
| 4582 |
\fill[@@_circlerule_color] (0,0) circle [radius=2.75mm]; |
| 4583 |
\end{tikzpicture} |
| 4584 |
} |
| 4585 |
\tl_set:Nn \l_@@_title_box_tl |
| 4586 |
{ |
| 4587 |
\bool_if:NF {\g_@@_invisible_titles_bool} { |
| 4588 |
\noindent |
| 4589 |
% \bool_show:N \g_@@_title_not_in_article_bool |
| 4590 |
\hspace*{18mm} |
| 4591 |
\begin{adjustbox}{minipage=\linewidth-18mm,valign=t} |
| 4592 |
\raggedright |
| 4593 |
\color{@@_article_title_color} |
| 4594 |
\fontsize{20}{25}\selectfont |
| 4595 |
\bfseries |
| 4596 |
\g_@@_title_tl |
| 4597 |
\tl_if_empty:NF \g_@@_subtitle_tl { |
| 4598 |
\par |
| 4599 |
\g_@@_subtitle_tl |
| 4600 |
} |
| 4601 |
\phantomsection |
| 4602 |
\par |
| 4603 |
} |
| 4604 |
\end{adjustbox} |
| 4605 |
} |
| 4606 |
\dim_gset:Nn \g_@@_abstract_box_width_dim {0.75\linewidth} |
| 4607 |
% \bool_if:nT { \tl_if_empty_p:N \l_@@_people_first_last_names_tl } |
| 4608 |
% { |
| 4609 |
% \dim_gset:Nn \g_@@_abstract_box_width_dim {\linewidth} |
| 4610 |
% } |
| 4611 |
\tl_set:Nn \l_@@_abstract_box_tl |
| 4612 |
{ |
| 4613 |
\begin{adjustbox}{minipage=\g_@@_abstract_box_width_dim,max~ width=\g_@@_abstract_box_width_dim,valign=t} |
| 4614 |
\mbox{} |
| 4615 |
\tl_if_exist:NT \g_@@_abstract_body_tl |
| 4616 |
{ |
| 4617 |
\raggedright |
| 4618 |
\bfseries |
| 4619 |
\color{@@_article_abstract_color} |
| 4620 |
\g_@@_abstract_body_tl |
| 4621 |
} |
| 4622 |
\end{adjustbox} |
| 4623 |
} |
| 4624 |
\tl_set:Nn \l_@@_authors_box_tl |
| 4625 |
{ |
| 4626 |
\bool_if:NF {\g_@@_invisible_titles_bool} { |
| 4627 |
\begin{adjustbox}{minipage=0.3\linewidth,min~ |
| 4628 |
width=0.3\linewidth,valign=t} |
| 4629 |
} |
| 4630 |
\bool_if:nTF { \tl_if_empty_p:N \l_@@_people_first_last_names_tl || \g_@@_interview_rubric_bool } |
| 4631 |
{ |
| 4632 |
\mbox{} |
| 4633 |
} |
| 4634 |
{ |
| 4635 |
\color{@@_people_color} |
| 4636 |
\bool_if:NF {\g_@@_invisible_titles_bool} { |
| 4637 |
\_@@_itemized_citeauthor:n {\g_@@_article_bib_key_tl} |
| 4638 |
} |
| 4639 |
} |
| 4640 |
\bool_if:NF {\g_@@_invisible_titles_bool} { |
| 4641 |
\end{adjustbox} |
| 4642 |
} |
| 4643 |
} |
| 4644 |
\bool_if:nTF { |
| 4645 |
\int_compare_p:nNn { \g_@@_item_in_rubric_int } = { 1 } |
| 4646 |
} |
| 4647 |
{ |
| 4648 |
\mbox{} |
| 4649 |
\par |
| 4650 |
\bool_if:nTF { |
| 4651 |
\tl_if_empty_p:N \g_@@_rubric_abstract_tl |
| 4652 |
}{ |
| 4653 |
\xleaders\vbox { |
| 4654 |
\bigskip |
| 4655 |
} |
| 4656 |
\vskip\bigskipamount |
| 4657 |
}{ |
| 4658 |
\xleaders\vbox { |
| 4659 |
\smallskip |
| 4660 |
} |
| 4661 |
\vskip\smallskipamount |
| 4662 |
} |
| 4663 |
} |
| 4664 |
{ |
| 4665 |
\bool_if:NTF {\g_@@_previous_article_with_bibliography_or_minibio_bool} |
| 4666 |
{ |
| 4667 |
\xleaders\vbox { |
| 4668 |
\mbox{} |
| 4669 |
\par |
| 4670 |
\medskip |
| 4671 |
} |
| 4672 |
\vskip\medskipamount |
| 4673 |
} |
| 4674 |
{ |
| 4675 |
\xleaders\vbox { |
| 4676 |
\mbox{} |
| 4677 |
\par |
| 4678 |
\smallskip |
| 4679 |
} |
| 4680 |
\vskip\smallskipamount |
| 4681 |
} |
| 4682 |
} |
| 4683 |
\bool_gset_false:N \g_@@_previous_article_with_bibliography_or_minibio_bool |
| 4684 |
% \end{macrocode} |
| 4685 |
% |
| 4686 |
% \begin{macrocode} |
| 4687 |
%<class-article>\hypersetup{pdftitle=\g_@@_short_title_tl,pdfauthor=\l_@@_people_first_last_names_tl} |
| 4688 |
% \end{macrocode} |
| 4689 |
% |
| 4690 |
% \begin{macrocode} |
| 4691 |
%</class|class-article> |
| 4692 |
% \end{macrocode} |
| 4693 |
% |
| 4694 |
% \begin{macrocode} |
| 4695 |
%<*class> |
| 4696 |
% \end{macrocode} |
| 4697 |
% |
| 4698 |
% We fix some of the PDF's metadata . |
| 4699 |
% \begin{macrocode} |
| 4700 |
\bool_if:NT {\g_@@_for_authors_bool} { |
| 4701 |
\hypersetup{ |
| 4702 |
pdftitle=\g_@@_short_title_tl, |
| 4703 |
pdfauthor=\l_@@_people_first_last_names_tl |
| 4704 |
} |
| 4705 |
} |
| 4706 |
% \end{macrocode} |
| 4707 |
% |
| 4708 |
% Here, we put the \pkg{TikZ}'s picture of the \enquote{bullet and rule} |
| 4709 |
% (contained in the ×\l_@@_bullet_and_rule_tl× token list) in a ×\vbox× that |
| 4710 |
% follows a ×\cleaders× that makes the whole vanishes at pages boundaries |
| 4711 |
% (cf. \url{https://tex.stackexchange.com/a/31615/18401}). |
| 4712 |
% \begin{macrocode} |
| 4713 |
\bool_if:nF { \g_@@_for_authors_bool } { |
| 4714 |
\bool_if:NF {\g_@@_title_without_rule_bool} { |
| 4715 |
% \xleaders\vbox { |
| 4716 |
% \bigskip |
| 4717 |
% } |
| 4718 |
% \vskip\bigskipamount |
| 4719 |
\noindent |
| 4720 |
\checkoddpage |
| 4721 |
\ifoddpage |
| 4722 |
\l_@@_bullet_and_rule_odd_tl |
| 4723 |
\else |
| 4724 |
\l_@@_bullet_and_rule_even_tl |
| 4725 |
\fi |
| 4726 |
\bigskip |
| 4727 |
} |
| 4728 |
} |
| 4729 |
\par |
| 4730 |
\nopagebreak[4] |
| 4731 |
% \end{macrocode} |
| 4732 |
% |
| 4733 |
% \begin{macrocode} |
| 4734 |
%</class> |
| 4735 |
% \end{macrocode} |
| 4736 |
% |
| 4737 |
% \begin{macrocode} |
| 4738 |
%<*class|class-article> |
| 4739 |
% \end{macrocode} |
| 4740 |
% |
| 4741 |
% \begin{macrocode} |
| 4742 |
\nocite {\g__gzt_article_bib_key_tl} |
| 4743 |
\bool_if:NTF {\g_@@_title_not_in_toc_bool} { |
| 4744 |
\bookmark[page=\thepage,level=chapter]{\g_@@_short_title_tl} |
| 4745 |
}{ |
| 4746 |
\addcontentsline{toc}{chapter}{ |
| 4747 |
\tl_if_empty:NTF \g_@@_short_title_tl { |
| 4748 |
\g_@@_title_tl |
| 4749 |
}{ |
| 4750 |
\g_@@_short_title_tl |
| 4751 |
} |
| 4752 |
\bool_if:NF {\g_@@_subtitle_not_in_toc_bool} { |
| 4753 |
\bool_if:nF { |
| 4754 |
\tl_if_empty_p:N \g_@@_short_subtitle_tl || |
| 4755 |
\g_@@_interview_rubric_bool || |
| 4756 |
\g_@@_rearviewmirror_rubric_bool |
| 4757 |
}{ |
| 4758 |
\c_space_tl\textendash{}\c_space_tl\g_@@_short_subtitle_tl |
| 4759 |
} |
| 4760 |
} |
| 4761 |
\bool_if:nF { |
| 4762 |
\tl_if_empty_p:N \l_@@_people_first_last_names_tl || |
| 4763 |
\g_@@_interview_rubric_bool || |
| 4764 |
\g_@@_rearviewmirror_rubric_bool |
| 4765 |
}{ |
| 4766 |
\textsl{ |
| 4767 |
\cs_if_exist:cTF {texorpdfstring} |
| 4768 |
{ |
| 4769 |
\texorpdfstring{ |
| 4770 |
\c_space_tl\textendash{}\c_space_tl\citeauthor{\g_@@_article_bib_key_tl} |
| 4771 |
}{} |
| 4772 |
}{ |
| 4773 |
\c_space_tl\textendash{}\c_space_tl\citeauthor{\g_@@_article_bib_key_tl} |
| 4774 |
} |
| 4775 |
} |
| 4776 |
} |
| 4777 |
} |
| 4778 |
} |
| 4779 |
\bool_if:NF {\g_@@_title_not_in_article_bool} { |
| 4780 |
\l_@@_title_box_tl |
| 4781 |
\normalsize |
| 4782 |
\nopagebreak[3] |
| 4783 |
\bool_if:nF { |
| 4784 |
\tl_if_empty_p:N \g_@@_abstract_body_tl |
| 4785 |
&& |
| 4786 |
( |
| 4787 |
\tl_if_empty_p:N \l_@@_people_first_last_names_tl || |
| 4788 |
\g_@@_interview_rubric_bool || |
| 4789 |
\g_@@_rearviewmirror_rubric_bool |
| 4790 |
) |
| 4791 |
}{ |
| 4792 |
\par |
| 4793 |
\bigskip |
| 4794 |
\bigskip |
| 4795 |
\large |
| 4796 |
\mbox{} |
| 4797 |
\checkoddpage |
| 4798 |
\ifoddpage |
| 4799 |
\l_@@_abstract_box_tl |
| 4800 |
\hspace*{11mm} |
| 4801 |
\l_@@_authors_box_tl |
| 4802 |
\else |
| 4803 |
\hspace*{-.85\c_@@_outermargin_dim} |
| 4804 |
\l_@@_authors_box_tl |
| 4805 |
\hspace*{11mm} |
| 4806 |
\l_@@_abstract_box_tl |
| 4807 |
\fi |
| 4808 |
} |
| 4809 |
} |
| 4810 |
\tl_gclear:N \g_@@_title_tl |
| 4811 |
\tl_gclear:N \g_@@_subtitle_tl |
| 4812 |
\tl_gclear:N \g_@@_abstract_body_tl |
| 4813 |
\normalsize |
| 4814 |
\bigskip |
| 4815 |
\tl_if_empty:NF \g_@@_abstract_body_tl |
| 4816 |
% { |
| 4817 |
% \tl_if_empty:NF \l_@@_people_first_last_names_tl |
| 4818 |
% { |
| 4819 |
% \bigskip |
| 4820 |
% } |
| 4821 |
% } |
| 4822 |
{ |
| 4823 |
\bigskip |
| 4824 |
} |
| 4825 |
\bool_if:nT \g_@@_interview_rubric_bool |
| 4826 |
{ |
| 4827 |
% \end{macrocode} |
| 4828 |
% |
| 4829 |
% We set ×\parindent× to zero in \enquote{Interview} rubric. |
| 4830 |
% \begin{macrocode} |
| 4831 |
\dim_zero:N \parindent |
| 4832 |
% \tl_if_empty:NF \l_@@_people_photo_tl |
| 4833 |
% { |
| 4834 |
% \begin{adjustbox}{center} |
| 4835 |
% \includegraphics[height=50mm]{\l_@@_people_photo_tl} |
| 4836 |
% \end{adjustbox} |
| 4837 |
% } |
| 4838 |
} |
| 4839 |
\color{@@_default_text_color} |
| 4840 |
\IfBooleanF {#1} |
| 4841 |
{ |
| 4842 |
\bool_if:nF { \g_@@_multicols_bool || \g_@@_rearviewmirror_rubric_bool } |
| 4843 |
{ |
| 4844 |
\begin{multicols}{2} |
| 4845 |
} |
| 4846 |
} |
| 4847 |
} |
| 4848 |
% \end{macrocode} |
| 4849 |
% \end{macro} |
| 4850 |
% |
| 4851 |
% We load the file where acronyms are defined. |
| 4852 |
% \begin{macrocode} |
| 4853 |
\file_if_exist:nT { \c_@@_acronyms_file_string_tl } { |
| 4854 |
\AddToHook{begindocument/before}{\loadglsentries{\c_@@_acronyms_file_string_tl}} |
| 4855 |
} |
| 4856 |
% \end{macrocode} |
| 4857 |
% |
| 4858 |
% \begin{macrocode} |
| 4859 |
%</class|class-article> |
| 4860 |
% \end{macrocode} |
| 4861 |
% |
| 4862 |
% \begin{macrocode} |
| 4863 |
%<*class> |
| 4864 |
% \end{macrocode} |
| 4865 |
% |
| 4866 |
% In case of ×forauthors× option, we close the ×multicols× environment in case |
| 4867 |
% it isn't (which happens if neither ×\printbibliography× nor |
| 4868 |
% ×\printauthorsdetails× is used). This should fix issue |
| 4869 |
% \url{https://github.com/dbitouze/gzt/issues/36}. |
| 4870 |
% \begin{macrocode} |
| 4871 |
\bool_if:nT { \g_@@_for_authors_bool } |
| 4872 |
{ |
| 4873 |
\AddToHook{enddocument}{ |
| 4874 |
\bool_if:NT {\g_@@_multicols_bool} { |
| 4875 |
\end{multicols} |
| 4876 |
} |
| 4877 |
} |
| 4878 |
} |
| 4879 |
% \end{macrocode} |
| 4880 |
% |
| 4881 |
% We load the configuration file (only for the issue's class), which has to be |
| 4882 |
% located in the \TeX{} search path: at least one such a file is provided by the |
| 4883 |
% class and located in the same directory as the class file. This file is loaded |
| 4884 |
% at the end of preamble instead of begin of the document in order some settings |
| 4885 |
% needed in preamble are taken in account. |
| 4886 |
% \begin{macrocode} |
| 4887 |
\AddToHook{begindocument/before}{ |
| 4888 |
\file_if_exist_input:nF {\c_@@_configuration_file_string_tl} |
| 4889 |
{ |
| 4890 |
\msg_error:nn { gzt } { configuration-file-missing } |
| 4891 |
} |
| 4892 |
} |
| 4893 |
% \end{macrocode} |
| 4894 |
% |
| 4895 |
% We make use of \pkg{etoc} to perform the special layout of the table of |
| 4896 |
% contents. For convenience, it is included in a (long)table (from |
| 4897 |
% \Pkg{longtable}) and the following code mainly comes from the \pkg{etoc}'s |
| 4898 |
% documentation. |
| 4899 |
% \begin{macrocode} |
| 4900 |
\@ifpackageloaded{etoc}{ |
| 4901 |
\newif\ifShowPartPageInToc % used before \part{Livres} |
| 4902 |
% cf etoc manual section Typesetting the TOC as a table |
| 4903 |
% we use ×\unexpanded× rather than more cumbersome but Knuthian ×\toks× registers |
| 4904 |
\newtoks\toctabletok |
| 4905 |
\newcommand*\appendtotok[2]{% #1=toks variable, #2=macro, expands only once #2 |
| 4906 |
#1\expandafter\expandafter\expandafter {\expandafter\the\expandafter #1#2}} |
| 4907 |
\newcommand*\PreparePart{ |
| 4908 |
\edef\toctablepiece { |
| 4909 |
\ExceptFirstPart {\noexpand\\[-1.5mm]} |
| 4910 |
\unexpanded{ |
| 4911 |
\protect\leavevmode\color{@@_rubric_in_toc_color}% |
| 4912 |
\scshape\fontseries{bx}\selectfont |
| 4913 |
} |
| 4914 |
\unexpanded\expandafter{\etocthelinkedname}& |
| 4915 |
% \ifShowPartPageInToc |
| 4916 |
\unexpanded{\bfseries% |
| 4917 |
\protect\leavevmode\color{@@_rubric_in_toc_color}% |
| 4918 |
} |
| 4919 |
\unexpanded\expandafter{\etocthelinkedpage} |
| 4920 |
% \fi |
| 4921 |
\noexpand\\} |
| 4922 |
\gdef\ExceptFirstPart ##1{##1} |
| 4923 |
} |
| 4924 |
\newcommand*\PrepareChapter{ |
| 4925 |
\edef\toctablepiece {\begingroup |
| 4926 |
\unexpanded{\small\color{@@_article_in_toc_color}} |
| 4927 |
\unexpanded\expandafter{\etocthelinkedname}\endgroup& |
| 4928 |
\unexpanded{\color{@@_article_in_toc_color}\small} |
| 4929 |
\unexpanded\expandafter{\etocthelinkedpage} |
| 4930 |
\noexpand\\[1mm]} |
| 4931 |
} |
| 4932 |
\etocsetstyle{part}{}{} |
| 4933 |
{\PreparePart \appendtotok\toctabletok\toctablepiece} |
| 4934 |
{} |
| 4935 |
\etocsetstyle{chapter}{}{} |
| 4936 |
{\PrepareChapter \appendtotok\toctabletok\toctablepiece} |
| 4937 |
{} |
| 4938 |
\etocsettocstyle |
| 4939 |
{ |
| 4940 |
\setlength\LTleft{\c_zero_dim} |
| 4941 |
\setlength\LTright{\c_zero_dim} |
| 4942 |
\gdef\ExceptFirstPart ##1{} |
| 4943 |
\toctabletok {\hypersetup{hidelinks} |
| 4944 |
\begin{longtable}{ |
| 4945 |
@{\extracolsep{\fill}}p{115mm}@{\quad}!{\color{@@_rule_in_toc_color}\vrule |
| 4946 |
width 0.2mm}@{}r@{}} |
| 4947 |
} |
| 4948 |
} |
| 4949 |
{\global\toctabletok\expandafter{ |
| 4950 |
\the\toctabletok\end{longtable} |
| 4951 |
} |
| 4952 |
} |
| 4953 |
}{} |
| 4954 |
% \end{macrocode} |
| 4955 |
% |
| 4956 |
% \begin{macrocode} |
| 4957 |
%</class> |
| 4958 |
% \end{macrocode} |
| 4959 |
% |
| 4960 |
% \begin{macrocode} |
| 4961 |
%<*class|class-article> |
| 4962 |
% \end{macrocode} |
| 4963 |
% |
| 4964 |
% \subsection{Displaying the president's message} |
| 4965 |
% |
| 4966 |
% We create an internal function that displays the president's message. |
| 4967 |
% \begin{macrocode} |
| 4968 |
\AddToHook{begindocument/before}{ |
| 4969 |
\tl_set_eq:NN \g_@@_president_message_string_tl \g_@@_journal_president_wording_tl |
| 4970 |
\cs_new_protected:Nn \_@@_before_display_presidentmessage: |
| 4971 |
{ |
| 4972 |
\_@@_before_editorial_presidentmessage:nn {\c_@@_smf_logo_file_string_tl}{\g_@@_president_message_string_tl} |
| 4973 |
\phantomsection |
| 4974 |
\par |
| 4975 |
\addcontentsline{toc}{part}{\g_@@_smf_short_string_tl} |
| 4976 |
\addcontentsline{toc}{chapter}{\g_@@_president_message_string_tl} |
| 4977 |
} |
| 4978 |
\cs_new_protected:Nn \_@@_after_display_presidentmessage: |
| 4979 |
{ |
| 4980 |
\_@@_after_editorial_presidentmessage: {} |
| 4981 |
\hspace*{\fill} |
| 4982 |
\c_@@_president_message_date_string_tl |
| 4983 |
\displaydate{@@_president_message_date} |
| 4984 |
\\[1.5mm] |
| 4985 |
\hspace*{\fill} |
| 4986 |
\@@_display_people_by_role:n { president } |
| 4987 |
,\c_space_tl |
| 4988 |
\g_@@_president_signatory_string_tl |
| 4989 |
\_@@_after_frontmatter_stuff: {} |
| 4990 |
} |
| 4991 |
\cs_new_protected:Nn \_@@_display_president_message: |
| 4992 |
{ |
| 4993 |
\_@@_before_display_presidentmessage: {} |
| 4994 |
\file_input:n {\c_@@_president_message_file_string_tl} |
| 4995 |
\_@@_after_display_presidentmessage: {} |
| 4996 |
} |
| 4997 |
\NewDocumentCommand \presidentmessage {} |
| 4998 |
{ |
| 4999 |
\bool_if:NF {\g_@@_for_authors_bool} { |
| 5000 |
\_@@_display_president_message: {} |
| 5001 |
} |
| 5002 |
} |
| 5003 |
} |
| 5004 |
% \end{macrocode} |
| 5005 |
% |
| 5006 |
% \subsection{Special tools common to the editorial, the table of contents and the |
| 5007 |
% president message} |
| 5008 |
% |
| 5009 |
% We create an internal function that displays the box containing the issue |
| 5010 |
% number, with possible image on its left, followed below by an arbitrary text |
| 5011 |
% with a reflection effect. |
| 5012 |
% \begin{macrocode} |
| 5013 |
\tl_new:N \g_@@_boxed_issue_number_tl |
| 5014 |
\tl_gset:Nn \g_@@_boxed_issue_number_tl { |
| 5015 |
\tcbox{\Large\No\g_@@_issue_number_int} |
| 5016 |
} |
| 5017 |
\tl_new:N \l_@@_boxed_issue_number_title_tl |
| 5018 |
\cs_new_protected:Nn \@@_boxed_issue_number:nn |
| 5019 |
{ |
| 5020 |
\noindent |
| 5021 |
\raisebox{\baselineskip}{ |
| 5022 |
\tl_if_empty:nF {#1} { |
| 5023 |
\makebox[\c_zero_dim][r]{ |
| 5024 |
% \hspace*{\l_@@_thumbnail_width_dim} |
| 5025 |
\begin{adjustbox}{valign=t} |
| 5026 |
\includegraphics[width=\l_@@_thumbnail_width_dim]{#1} |
| 5027 |
\end{adjustbox} |
| 5028 |
} |
| 5029 |
} |
| 5030 |
\bool_if:NTF {\g_@@_special_edition_bool} { |
| 5031 |
\tl_set:Nn \l_@@_boxed_issue_number_title_tl {\c_@@_short_special_edition_string_tl} |
| 5032 |
}{ |
| 5033 |
\tl_set:Nn \l_@@_boxed_issue_number_title_tl {\No\int_use:N\g_@@_issue_number_int} |
| 5034 |
} |
| 5035 |
\begin{adjustbox}{valign=t} |
| 5036 |
\begin{tcolorbox}[ |
| 5037 |
enhanced, |
| 5038 |
title=\l_@@_boxed_issue_number_title_tl,%\int_use:N \g_@@_issue_number_int, |
| 5039 |
fonttitle=\Large, |
| 5040 |
colback=white, |
| 5041 |
sharp~ corners=all, |
| 5042 |
height=33mm, |
| 5043 |
boxrule=\c_zero_dim, |
| 5044 |
% frame~ hidden, |
| 5045 |
attach~ boxed~ title~ to~ top~ left, |
| 5046 |
tikznode~ boxed~ title={minimum~ width=\c_@@_boxed_issue_number_width_dim}, |
| 5047 |
boxed~ title~ style={ |
| 5048 |
size=minimal, |
| 5049 |
height=\c_@@_boxed_issue_number_height_dim, |
| 5050 |
center~ upper, |
| 5051 |
before={}, |
| 5052 |
colback=@@_boxed_issue_number_bg_color, |
| 5053 |
sharp~ corners=all, |
| 5054 |
frame~ hidden, |
| 5055 |
valign=center, |
| 5056 |
} |
| 5057 |
] |
| 5058 |
\@@_reflected_text:n { #2 } |
| 5059 |
\end{tcolorbox} |
| 5060 |
\end{adjustbox} |
| 5061 |
} |
| 5062 |
\par |
| 5063 |
} |
| 5064 |
% \end{macrocode} |
| 5065 |
% |
| 5066 |
% \begin{macrocode} |
| 5067 |
\cs_new_protected:Nn \_@@_before_frontmatter_stuff: |
| 5068 |
{ |
| 5069 |
\bool_gset_true:N \g_@@_frontmatter_bool |
| 5070 |
\cleardoublepage |
| 5071 |
\pagestyle{@@_frontmatter_ps} |
| 5072 |
\exp_after:wN\newgeometry\exp_after:wN{\c_@@_front_matter_geometry_tl} |
| 5073 |
} |
| 5074 |
\cs_new_protected:Nn \_@@_after_frontmatter_stuff: |
| 5075 |
{ |
| 5076 |
\color{@@_default_text_color} |
| 5077 |
\normalsize |
| 5078 |
\clearpage |
| 5079 |
\bool_gset_false:N \g_@@_frontmatter_bool |
| 5080 |
} |
| 5081 |
% \end{macrocode} |
| 5082 |
% |
| 5083 |
% \begin{macrocode} |
| 5084 |
\cs_new_protected:Nn \_@@_before_editorial_presidentmessage:nn |
| 5085 |
{ |
| 5086 |
\_@@_before_frontmatter_stuff: {} |
| 5087 |
\@@_boxed_issue_number:nn {#1}{#2} |
| 5088 |
\color{@@_frontmatter_text_color} |
| 5089 |
\fontsize{11}{13.6}\selectfont |
| 5090 |
} |
| 5091 |
\cs_new_protected:Nn \_@@_after_editorial_presidentmessage: |
| 5092 |
{ |
| 5093 |
\justifying |
| 5094 |
\bigskip |
| 5095 |
\par |
| 5096 |
} |
| 5097 |
% \end{macrocode} |
| 5098 |
% |
| 5099 |
% \subsection{Displaying the editorial} |
| 5100 |
% |
| 5101 |
% We create an internal function that displays the editorial. |
| 5102 |
% \begin{macrocode} |
| 5103 |
\cs_new_protected:Nn \_@@_before_display_editorial:n |
| 5104 |
{ |
| 5105 |
\_@@_before_editorial_presidentmessage:nn {}{#1} |
| 5106 |
} |
| 5107 |
\cs_new_protected:Nn \_@@_after_display_editorial: |
| 5108 |
{ |
| 5109 |
\_@@_after_editorial_presidentmessage: {} |
| 5110 |
\hspace*{\fill} |
| 5111 |
\bool_if:NTF {\g_@@_special_edition_bool} { |
| 5112 |
\AtNextCitekey{\defcounter{maxnames}{100}} |
| 5113 |
\_@@_citeauthor_no_firstinits:n {\c_@@_issue_bib_key_tl -editorinchief- 1} |
| 5114 |
}{ |
| 5115 |
\DTLforeach*[\DTLiseq{\l_@@_people_role_tl}{editorinchief}]{people}{ |
| 5116 |
\l_@@_firstlastname_tl=first-last-name |
| 5117 |
,\l_@@_people_role_tl=role |
| 5118 |
}{ |
| 5119 |
\_@@_citeauthor_no_firstinits:n {\c_@@_issue_bib_key_tl -editorinchief- \exp_not:V\DTLcurrentindex} |
| 5120 |
} |
| 5121 |
} |
| 5122 |
\_@@_after_frontmatter_stuff: {} |
| 5123 |
} |
| 5124 |
\cs_new_protected:Nn \_@@_display_editorial:n |
| 5125 |
{ |
| 5126 |
\_@@_before_display_editorial:n {#1} |
| 5127 |
\file_if_exist_input:nF {\c_@@_editorial_file_string_tl} |
| 5128 |
{ |
| 5129 |
\msg_error:nn { gzt } { editorial-file-missing } |
| 5130 |
} |
| 5131 |
\_@@_after_display_editorial: {} |
| 5132 |
} |
| 5133 |
\AddToHook{begindocument/before}{ |
| 5134 |
\tl_set_eq:NN \g_@@_editorial_heading_tl \c_@@_editorial_heading_string_tl |
| 5135 |
\bool_if:NT {\g_@@_special_edition_bool} { |
| 5136 |
\tl_if_empty:NF \g_@@_special_edition_editorial_heading_tl { |
| 5137 |
\tl_set_eq:NN \g_@@_editorial_heading_tl \g_@@_special_edition_editorial_heading_tl |
| 5138 |
} |
| 5139 |
} |
| 5140 |
\NewDocumentCommand \editorial { O{\g_@@_editorial_heading_tl} } |
| 5141 |
{ |
| 5142 |
\bool_if:NF {\g_@@_for_authors_bool} { |
| 5143 |
\_@@_display_editorial:n {#1} |
| 5144 |
} |
| 5145 |
} |
| 5146 |
} |
| 5147 |
% \end{macrocode} |
| 5148 |
% |
| 5149 |
% \begin{macrocode} |
| 5150 |
%</class|class-article> |
| 5151 |
% \end{macrocode} |
| 5152 |
% |
| 5153 |
% \begin{macrocode} |
| 5154 |
%<*class> |
| 5155 |
% \end{macrocode} |
| 5156 |
% |
| 5157 |
% \subsection{Displaying the table of contents} |
| 5158 |
% |
| 5159 |
% We create an internal function that displays the table of contents. |
| 5160 |
% \begin{macrocode} |
| 5161 |
\cs_new_protected:Nn \_@@_display_toc: |
| 5162 |
{ |
| 5163 |
\_@@_before_frontmatter_stuff: {} |
| 5164 |
\@@_boxed_issue_number:nn {\g_@@_frontcover_image_file_tl}{\c_@@_toc_string_tl} |
| 5165 |
\phantomsection |
| 5166 |
\hypertarget{@@_toc}{} |
| 5167 |
\bool_if:NTF {\g_@@_special_edition_bool} { |
| 5168 |
\bookmark[dest=@@_toc,level=chapter]{\c_@@_toc_string_tl} |
| 5169 |
}{ |
| 5170 |
\bookmark[dest=@@_toc,level=part]{\c_@@_toc_string_tl} |
| 5171 |
} |
| 5172 |
\etocsettocdepth.toc{chapter} |
| 5173 |
\tableofcontents |
| 5174 |
\the\toctabletok |
| 5175 |
\_@@_after_frontmatter_stuff: {} |
| 5176 |
} |
| 5177 |
\NewDocumentCommand \gzttableofcontents {} |
| 5178 |
{ |
| 5179 |
\bool_if:NF {\g_@@_for_authors_bool} { |
| 5180 |
\_@@_display_toc: {} |
| 5181 |
} |
| 5182 |
} |
| 5183 |
% \end{macrocode} |
| 5184 |
% |
| 5185 |
% \subsection{Displaying the mini table of contents of the front cover} |
| 5186 |
% |
| 5187 |
% We create an internal function that displays the president's message. |
| 5188 |
% \begin{macrocode} |
| 5189 |
\tl_new:N \g_@@_frontcover_minitoc_tl |
| 5190 |
\tl_new:N \l_@@_minitoc_label_tl |
| 5191 |
\cs_new_protected:Nn \_@@_frontcover_minitoc:n |
| 5192 |
{ |
| 5193 |
\tl_gset:Nn \g_@@_frontcover_minitoc_tl {#1} |
| 5194 |
} |
| 5195 |
\NewDocumentCommand \minitoc { O{} m } |
| 5196 |
{ |
| 5197 |
\keys_set:nn { gzt/minitoc } { #1 } |
| 5198 |
\_@@_frontcover_minitoc:n {#2} |
| 5199 |
} |
| 5200 |
% |
| 5201 |
\newlist{@@_minitoc_list}{itemize}{1} |
| 5202 |
\setlist[@@_minitoc_list]{itemsep=2ex,label=\textcolor{@@_cover_itemize_label_color}\textbullet} |
| 5203 |
% |
| 5204 |
\NewDocumentEnvironment{minitoclist}{} |
| 5205 |
{ |
| 5206 |
\cs_set_eq:NN \_@@_orig_item \item |
| 5207 |
\RenewDocumentCommand \item { s O{} }{ |
| 5208 |
\tl_set:Nn \l_@@_minitoc_label_tl {##2} |
| 5209 |
\_@@_orig_item\textbf{##2} |
| 5210 |
\IfBooleanT {##1} |
| 5211 |
{ |
| 5212 |
\c_@@_minitoc_rubric_title_separator_string_tl |
| 5213 |
} |
| 5214 |
} |
| 5215 |
\begin{@@_minitoc_list} |
| 5216 |
}{ |
| 5217 |
\end{@@_minitoc_list} |
| 5218 |
\cs_set_eq:NN \item \_@@_orig_item |
| 5219 |
} |
| 5220 |
% \end{macrocode} |
| 5221 |
% |
| 5222 |
% \begin{macrocode} |
| 5223 |
%</class> |
| 5224 |
% \end{macrocode} |
| 5225 |
% |
| 5226 |
% \begin{macrocode} |
| 5227 |
%<*class|class-article> |
| 5228 |
% \end{macrocode} |
| 5229 |
% |
| 5230 |
% \subsection{Chapter, sections, etc. customization} |
| 5231 |
% |
| 5232 |
% Thanks to \Pkg{titlesec}, the chapter, section, subsection and subsubsection |
| 5233 |
% formats are customized. |
| 5234 |
% |
| 5235 |
% \begin{description} |
| 5236 |
% \item[Chapter] has a \enquote{block} shape, is typeset in huge and bold face, |
| 5237 |
% without any number, with a null distance between the (missing) number and |
| 5238 |
% the title, with a title in enforced lower case but small caps. |
| 5239 |
% \begin{macrocode} |
| 5240 |
\titleformat{\chapter} |
| 5241 |
[block] |
| 5242 |
{\Huge\bfseries} |
| 5243 |
{} |
| 5244 |
{\c_zero_dim} |
| 5245 |
{\scshape} |
| 5246 |
% \end{macrocode} |
| 5247 |
% |
| 5248 |
% \item[Section] has a \enquote{frame} shape, is typeset in bold face, left |
| 5249 |
% justified and in color, with number typeset in huge, with a negative |
| 5250 |
% distance between the number and the title, with a title in 12.5pt. |
| 5251 |
% \begin{macrocode} |
| 5252 |
\titleformat{\section} |
| 5253 |
{ |
| 5254 |
\raggedright |
| 5255 |
\bfseries |
| 5256 |
\color{@@_section_color} |
| 5257 |
} |
| 5258 |
{\fontsize{20}{15}\selectfont\thesection.\enspace} |
| 5259 |
{-3pt} |
| 5260 |
{\fontsize{13}{15}\selectfont} |
| 5261 |
% \end{macrocode} |
| 5262 |
% |
| 5263 |
% \item[Subsection:] |
| 5264 |
% \begin{macrocode} |
| 5265 |
\titleformat{\subsection} |
| 5266 |
% [frame] |
| 5267 |
{ |
| 5268 |
\fontsize{11}{16}\selectfont |
| 5269 |
\bfseries |
| 5270 |
\color{@@_subsection_color} |
| 5271 |
} |
| 5272 |
{\thesubsection\ \textendash{}\ } |
| 5273 |
{\c_zero_dim} |
| 5274 |
{} |
| 5275 |
% \end{macrocode} |
| 5276 |
% |
| 5277 |
% \item[Subsubsection:] |
| 5278 |
% \begin{macrocode} |
| 5279 |
\titleformat{\subsubsection} |
| 5280 |
% [frame] |
| 5281 |
{ |
| 5282 |
\fontsize{11}{16}\selectfont |
| 5283 |
\bfseries |
| 5284 |
\color{@@_subsubsection_color} |
| 5285 |
} |
| 5286 |
{} |
| 5287 |
{\c_zero_dim} |
| 5288 |
{} |
| 5289 |
% \end{macrocode} |
| 5290 |
% \end{description} |
| 5291 |
% |
| 5292 |
% \subsection{First pages} |
| 5293 |
% |
| 5294 |
% At begin of the document, we automatically : |
| 5295 |
% \begin{itemize} |
| 5296 |
% \item set the graphic path, |
| 5297 |
% \item set the page grid if the corresponding option has been passed, |
| 5298 |
% \item display the front cover and the inside front cover. |
| 5299 |
% \end{itemize} |
| 5300 |
% |
| 5301 |
% \begin{macrocode} |
| 5302 |
\AddToHook{begindocument}{ |
| 5303 |
\graphicspath{{\c_@@_issue_images_path_string_tl//}{../\c_@@_issue_images_path_string_tl//}} |
| 5304 |
% \glsdisablehyper |
| 5305 |
\g_@@_mainmatter_switch_tl |
| 5306 |
% \bool_gset_false:N \g_@@_frontmatter_bool |
| 5307 |
% \bool_gset_true:N \g_@@_mainmatter_bool |
| 5308 |
% \SetParskip{\c_@@_mainmatter_parskip_skip} |
| 5309 |
% \pagestyle{@@_mainmatter_ps} |
| 5310 |
\exp_after:wN\newgeometry\exp_after:wN{\c_@@_main_geometry_tl} |
| 5311 |
} |
| 5312 |
% \end{macrocode} |
| 5313 |
% |
| 5314 |
% \begin{macrocode} |
| 5315 |
%</class|class-article> |
| 5316 |
% \end{macrocode} |
| 5317 |
% |
| 5318 |
% \begin{macrocode} |
| 5319 |
%<*class> |
| 5320 |
% \end{macrocode} |
| 5321 |
% |
| 5322 |
% \begin{macrocode} |
| 5323 |
\AddToHook{begindocument}{ |
| 5324 |
\dim_if_exist:NTF \g_@@_pagegrid_dim { |
| 5325 |
\pagegridsetup{ |
| 5326 |
enable, |
| 5327 |
step=\g_@@_pagegrid_dim |
| 5328 |
} |
| 5329 |
}{ |
| 5330 |
\pagegridsetup{ |
| 5331 |
disable |
| 5332 |
} |
| 5333 |
} |
| 5334 |
% \bool_if:NTF {\g_@@_for_authors_bool} { |
| 5335 |
% \thispagestyle{empty} |
| 5336 |
% \includegraphics{gzt-logo} |
| 5337 |
% \hfill |
| 5338 |
% \includegraphics[height=22.5mm]{\c_@@_smf_logo_file_string_tl} |
| 5339 |
% \par |
| 5340 |
% \vfill |
| 5341 |
% \begin{adjustbox}{valign=c,minipage=\linewidth} |
| 5342 |
% \Large |
| 5343 |
% \c_@@_preliminary_version_string_tl |
| 5344 |
% \end{adjustbox} |
| 5345 |
% \vfill |
| 5346 |
% \newpage |
| 5347 |
% }{ |
| 5348 |
% \bool_if:NF {\g_@@_inside_pages_bool} { |
| 5349 |
% \g_@@_display_frontcover_tl |
| 5350 |
% \g_@@_display_inside_frontcover_tl |
| 5351 |
% } |
| 5352 |
% } |
| 5353 |
\bool_if:NF {\g_@@_for_authors_bool} { |
| 5354 |
\bool_if:NF {\g_@@_inside_pages_bool} { |
| 5355 |
\g_@@_display_frontcover_tl |
| 5356 |
\bool_if:NTF {\g_@@_coverpage_bool} { |
| 5357 |
\AddToHook{begindocument/end}{\end{document}} |
| 5358 |
}{ |
| 5359 |
\g_@@_display_inside_frontcover_tl |
| 5360 |
} |
| 5361 |
} |
| 5362 |
} |
| 5363 |
} |
| 5364 |
% \end{macrocode} |
| 5365 |
% |
| 5366 |
% \begin{macrocode} |
| 5367 |
%</class> |
| 5368 |
% \end{macrocode} |
| 5369 |
% |
| 5370 |
% \begin{macrocode} |
| 5371 |
%<*class|class-article> |
| 5372 |
% \end{macrocode} |
| 5373 |
% |
| 5374 |
% \subsection{Page styles} |
| 5375 |
% |
| 5376 |
% Thanks to \Pkg{titleps} loaded by \pkg{titlesec}'s ×pagestyles× option, we define |
| 5377 |
% some page styles. |
| 5378 |
% |
| 5379 |
% \subsubsection{Common tools} |
| 5380 |
% |
| 5381 |
% Here, we define some tools shared by sevral pages styles. |
| 5382 |
% |
| 5383 |
% The background footer: |
| 5384 |
% \begin{macrocode} |
| 5385 |
\tl_new:N \g_@@_background_footer_tl |
| 5386 |
\tl_gset:Nn \g_@@_background_footer_tl { |
| 5387 |
\draw [@@_footer_bg_color,fill] |
| 5388 |
(current~ page.south~ west) |
| 5389 |
rectangle ([yshift=\c_@@_footer_background_height_dim]current~ page.south~ east) |
| 5390 |
; |
| 5391 |
} |
| 5392 |
% \end{macrocode} |
| 5393 |
% |
| 5394 |
% The frontmatter head text: |
| 5395 |
% \begin{macrocode} |
| 5396 |
\tl_new:N \l_@@_frontmatter_head_text_tl |
| 5397 |
\tl_set:Nn \l_@@_frontmatter_head_text_tl { |
| 5398 |
\bool_if:NTF {\g_@@_special_edition_bool} { |
| 5399 |
\g_@@_special_edition_title_tl |
| 5400 |
}{ |
| 5401 |
\includegraphics[scale=1]{gzt-logo} |
| 5402 |
} |
| 5403 |
} |
| 5404 |
% \end{macrocode} |
| 5405 |
% |
| 5406 |
% The rubric head text: |
| 5407 |
% \begin{macrocode} |
| 5408 |
% \tl_new:N \l_@@_rubric_head_text_tl |
| 5409 |
% \tl_set:Nn \l_@@_rubric_head_text_tl { |
| 5410 |
% \color{@@_rubric_head_text_color} |
| 5411 |
% \fontsize{20}{20}\fontseries{bx}\fontshape{sc}\selectfont |
| 5412 |
% \g_@@_rubric_title_tl |
| 5413 |
% } |
| 5414 |
% \end{macrocode} |
| 5415 |
% |
| 5416 |
% The frontmatter page head rule: |
| 5417 |
% \begin{macrocode} |
| 5418 |
\tl_new:N \g_@@_frontmatter_page_headrule_tl |
| 5419 |
\tl_gset:Nn \g_@@_frontmatter_page_headrule_tl { |
| 5420 |
\draw [@@_headrule_color,line~ width=\c_@@_header_line_width_dim] |
| 5421 |
([yshift=\c_@@_header_line_yshift_dim]current~ page~ header~ area.south~ west -| current~ page.north~ west) |
| 5422 |
-- |
| 5423 |
([yshift=\c_@@_header_line_yshift_dim]current~ page~ header~ area.south~ east -| current~ page.north~ east) |
| 5424 |
; |
| 5425 |
} |
| 5426 |
% \end{macrocode} |
| 5427 |
% |
| 5428 |
% The frontmatter page head text: |
| 5429 |
% \begin{macrocode} |
| 5430 |
\tl_new:N \g_@@_frontmatter_headtext_tl |
| 5431 |
\tl_gset:Nn \g_@@_frontmatter_headtext_tl { |
| 5432 |
\mbox{} |
| 5433 |
\checkoddpage |
| 5434 |
\ifoddpage |
| 5435 |
\node[ |
| 5436 |
anchor=north~ east, |
| 5437 |
align=center, |
| 5438 |
fill=white, |
| 5439 |
inner~ xsep=3.5mm, |
| 5440 |
outer~ sep=\c_zero_dim, |
| 5441 |
] at |
| 5442 |
([ |
| 5443 |
xshift=\c_@@_frontmatter_headtext_o_xshift_dim, |
| 5444 |
yshift=\c_@@_frontmatter_headtext_yshift_dim |
| 5445 |
]current~ page.north~ east) { |
| 5446 |
\Large |
| 5447 |
\bool_if:NT {\g_@@_special_edition_bool} { |
| 5448 |
\c_@@_short_special_edition_string_tl |
| 5449 |
\c_space_tl |
| 5450 |
} |
| 5451 |
\l_@@_frontmatter_head_text_tl |
| 5452 |
} |
| 5453 |
; |
| 5454 |
\else |
| 5455 |
\node[ |
| 5456 |
anchor=north~ west, |
| 5457 |
align=center, |
| 5458 |
fill=white, |
| 5459 |
inner~ xsep=3.5mm, |
| 5460 |
outer~ sep=\c_zero_dim, |
| 5461 |
] at |
| 5462 |
([ |
| 5463 |
xshift=\c_@@_frontmatter_headtext_e_xshift_dim, |
| 5464 |
yshift=\c_@@_frontmatter_headtext_yshift_dim |
| 5465 |
]current~ page.north~ west) { |
| 5466 |
\Large |
| 5467 |
\bool_if:NT {\g_@@_special_edition_bool} { |
| 5468 |
\c_@@_short_special_edition_string_tl |
| 5469 |
\c_space_tl |
| 5470 |
} |
| 5471 |
\l_@@_frontmatter_head_text_tl |
| 5472 |
} |
| 5473 |
; |
| 5474 |
\fi |
| 5475 |
} |
| 5476 |
% \end{macrocode} |
| 5477 |
% |
| 5478 |
% The mainmatter odd page head rule: |
| 5479 |
% \begin{macrocode} |
| 5480 |
\tl_new:N \g_@@_mainmatter_oddpage_headrule_tl |
| 5481 |
\tl_gset:Nn \g_@@_mainmatter_oddpage_headrule_tl { |
| 5482 |
\draw [@@_headrule_color,line~ width=\c_@@_header_line_width_dim] |
| 5483 |
([yshift=\c_@@_header_line_yshift_dim]current~ page~ header~ area.south~ east) |
| 5484 |
-- |
| 5485 |
([yshift=\c_@@_header_line_yshift_dim]current~ page~ header~ area.south~ west -| current~ page.north~ west) |
| 5486 |
; |
| 5487 |
} |
| 5488 |
% \end{macrocode} |
| 5489 |
% |
| 5490 |
% The mainmatter even page head rule: |
| 5491 |
% \begin{macrocode} |
| 5492 |
\tl_new:N \g_@@_mainmatter_evenpage_headrule_tl |
| 5493 |
\tl_gset:Nn \g_@@_mainmatter_evenpage_headrule_tl { |
| 5494 |
\draw [@@_headrule_color,line~ width=\c_@@_header_line_width_dim] |
| 5495 |
([yshift=\c_@@_header_line_yshift_dim]current~ page~ header~ area.south~ west) |
| 5496 |
-- |
| 5497 |
([yshift=\c_@@_header_line_yshift_dim]current~ page~ header~ area.south~ east -| current~ page.north~ east) |
| 5498 |
; |
| 5499 |
} |
| 5500 |
% \end{macrocode} |
| 5501 |
% |
| 5502 |
% We momentarily switch to a \enquote{normal} category code régime in which the |
| 5503 |
% colon (:) is treated as \enquote{letter}, which is necessary where (here |
| 5504 |
% \pkg{TikZ} and \pkg{tcolorbox}) code makes use of colon. |
| 5505 |
% \begin{macrocode} |
| 5506 |
\ExplSyntaxOff |
| 5507 |
\tcbuselibrary{breakable,skins,hooks,xparse,theorems,listingsutf8} |
| 5508 |
\usetikzlibrary{babel,fadings,positioning,calc} |
| 5509 |
% \end{macrocode} |
| 5510 |
% |
| 5511 |
% We create a \enquote{minus} version of each of the previous styles for floats |
| 5512 |
% with number (and keywords) but without any caption: in such cases, the number |
| 5513 |
% should not be followed by any separator. |
| 5514 |
% \begin{macrocode} |
| 5515 |
\tcbset{ |
| 5516 |
new/blend into/tables-/.style={ |
| 5517 |
use counter*=table, |
| 5518 |
/tcb/code={\appto\tcb@new@colopt{,before title={\fnum@table}}}}, |
| 5519 |
new/blend into/figures-/.style={ |
| 5520 |
use counter*=figure, |
| 5521 |
/tcb/code={\appto\tcb@new@colopt{,before title={\fnum@figure}}}}, |
| 5522 |
} |
| 5523 |
% \end{macrocode} |
| 5524 |
% |
| 5525 |
% \begin{macrocode} |
| 5526 |
%</class|class-article> |
| 5527 |
% \end{macrocode} |
| 5528 |
% |
| 5529 |
% \begin{macrocode} |
| 5530 |
%<*class> |
| 5531 |
% \end{macrocode} |
| 5532 |
% |
| 5533 |
% \begin{macrocode} |
| 5534 |
\newcommand\gzt@arcthroughthreepoints[4][] |
| 5535 |
{ |
| 5536 |
\coordinate (middle1) at ($(#2)!.5!(#3)$); |
| 5537 |
\coordinate (middle2) at ($(#3)!.5!(#4)$); |
| 5538 |
\coordinate (aux1) at ($(middle1)!1!90:(#3)$); |
| 5539 |
\coordinate (aux2) at ($(middle2)!1!90:(#4)$); |
| 5540 |
\coordinate (center) at ($(intersection of middle1--aux1 and middle2--aux2)$); |
| 5541 |
\filldraw[fill=white,draw=@@_headrule_color,line width=0.25mm,#1] |
| 5542 |
let \p1=($(#2)-(center)$), |
| 5543 |
\p2=($(#4)-(center)$), |
| 5544 |
\n0={veclen(\p1)}, |
| 5545 |
\n1={atan2(\y1,\x1)}, |
| 5546 |
\n2={atan2(\y2,\x2)}, |
| 5547 |
\n3={\n2>\n1?\n2:\n2+360} |
| 5548 |
in (#2) arc(\n1:\n3:\n0); |
| 5549 |
% \foreach \p in {#2,#3,#4,center} |
| 5550 |
% \fill[red] (\p) circle(2pt); |
| 5551 |
} |
| 5552 |
% \end{macrocode} |
| 5553 |
% |
| 5554 |
% \begin{macrocode} |
| 5555 |
%</class> |
| 5556 |
% \end{macrocode} |
| 5557 |
% |
| 5558 |
% \begin{macrocode} |
| 5559 |
%<*class|class-article> |
| 5560 |
% \end{macrocode} |
| 5561 |
% |
| 5562 |
% \begin{macrocode} |
| 5563 |
\ExplSyntaxOn |
| 5564 |
% \end{macrocode} |
| 5565 |
% |
| 5566 |
% \begin{macrocode} |
| 5567 |
%</class|class-article> |
| 5568 |
% \end{macrocode} |
| 5569 |
% |
| 5570 |
% \begin{macrocode} |
| 5571 |
%<*class> |
| 5572 |
% \end{macrocode} |
| 5573 |
% |
| 5574 |
% The rubric page head rule: |
| 5575 |
% \begin{macrocode} |
| 5576 |
\tl_new:N \g_@@_rubric_page_head_tl |
| 5577 |
\tl_gset:Nn \g_@@_rubric_page_head_tl { |
| 5578 |
\bool_if:nF { \g_@@_for_authors_bool } { |
| 5579 |
\tikz[remember~ picture,overlay] { |
| 5580 |
\path (current~ page.north~ west |- current~ page~ header~ area.south~ west) coordinate (_@@_pwest); |
| 5581 |
\path (current~ page.north~ east |- current~ page~ header~ area.south~ east) coordinate (_@@_peast); |
| 5582 |
\draw [@@_headrule_color,line~ width=\c_@@_header_line_width_dim] |
| 5583 |
([yshift=\c_@@_header_line_yshift_dim]_@@_pwest) |
| 5584 |
-- |
| 5585 |
([yshift=\c_@@_header_line_yshift_dim]_@@_peast) |
| 5586 |
; |
| 5587 |
\tl_if_empty:NF \g_@@_rubric_abstract_tl { |
| 5588 |
\mbox{} |
| 5589 |
\checkoddpage |
| 5590 |
\ifoddpage |
| 5591 |
\coordinate (@@_A) at ( |
| 5592 |
[ |
| 5593 |
xshift=\c_@@_xshift_arccircle_A_dim, |
| 5594 |
yshift=\c_@@_yshift_arccircle_A_dim |
| 5595 |
] |
| 5596 |
current~ page.north~ west |
| 5597 |
); |
| 5598 |
\coordinate (@@_B) at ( |
| 5599 |
[ |
| 5600 |
xshift=\c_@@_xshift_arccircle_B_dim, |
| 5601 |
yshift=\c_@@_yshift_arccircle_B_dim |
| 5602 |
] |
| 5603 |
current~ page.north~ west |
| 5604 |
); |
| 5605 |
\coordinate (@@_C) at ( |
| 5606 |
[ |
| 5607 |
xshift=\c_@@_xshift_arccircle_C_dim, |
| 5608 |
yshift=\c_@@_yshift_arccircle_C_dim |
| 5609 |
] |
| 5610 |
current~ page.north~ west |
| 5611 |
); |
| 5612 |
\gzt@arcthroughthreepoints{@@_A}{@@_B}{@@_C}; |
| 5613 |
\else |
| 5614 |
\coordinate (@@_A) at ( |
| 5615 |
[ |
| 5616 |
xshift=-\c_@@_xshift_arccircle_A_dim, |
| 5617 |
yshift=\c_@@_yshift_arccircle_A_dim |
| 5618 |
] |
| 5619 |
current~ page.north~ east |
| 5620 |
); |
| 5621 |
\coordinate (@@_B) at ( |
| 5622 |
[ |
| 5623 |
xshift=-\c_@@_xshift_arccircle_B_dim, |
| 5624 |
yshift=\c_@@_yshift_arccircle_B_dim |
| 5625 |
] |
| 5626 |
current~ page.north~ east |
| 5627 |
); |
| 5628 |
\coordinate (@@_C) at ( |
| 5629 |
[ |
| 5630 |
xshift=-\c_@@_xshift_arccircle_C_dim, |
| 5631 |
yshift=\c_@@_yshift_arccircle_C_dim |
| 5632 |
] |
| 5633 |
current~ page.north~ east |
| 5634 |
); |
| 5635 |
\gzt@arcthroughthreepoints{@@_C}{@@_B}{@@_A}; |
| 5636 |
\fi |
| 5637 |
} |
| 5638 |
} |
| 5639 |
} |
| 5640 |
} |
| 5641 |
% \end{macrocode} |
| 5642 |
% |
| 5643 |
% \subsubsection{Front cover page style} |
| 5644 |
% |
| 5645 |
% \begin{macrocode} |
| 5646 |
\newpagestyle{@@_frontcover_ps}[]{ |
| 5647 |
\sethead |
| 5648 |
{} |
| 5649 |
{ |
| 5650 |
\adjustbox{stack=c}{ |
| 5651 |
{\Large |
| 5652 |
\c_@@_frontcover_header_string_tl |
| 5653 |
}\\[7mm] |
| 5654 |
\adjustbox{scale=2.08}{ |
| 5655 |
\huge |
| 5656 |
\bool_if:NT {\g_@@_special_edition_bool} { |
| 5657 |
\color{@@_generic_dark_color} |
| 5658 |
} |
| 5659 |
\l_@@_frontmatter_head_text_tl |
| 5660 |
} |
| 5661 |
} |
| 5662 |
} |
| 5663 |
{} |
| 5664 |
\setfoot |
| 5665 |
{} |
| 5666 |
{} |
| 5667 |
{} |
| 5668 |
} |
| 5669 |
% \end{macrocode} |
| 5670 |
% |
| 5671 |
% \subsubsection{Inside front cover page style} |
| 5672 |
% |
| 5673 |
% \begin{macrocode} |
| 5674 |
\newpagestyle{@@_inside_frontcover_ps}[]{ |
| 5675 |
\sethead |
| 5676 |
[ |
| 5677 |
\tikz[remember~ picture,overlay] { |
| 5678 |
\g_@@_frontmatter_page_headrule_tl |
| 5679 |
\g_@@_frontmatter_headtext_tl |
| 5680 |
} |
| 5681 |
] |
| 5682 |
[] |
| 5683 |
[] |
| 5684 |
{} |
| 5685 |
{ |
| 5686 |
\tikz[remember~ picture,overlay] { |
| 5687 |
\g_@@_frontmatter_page_headrule_tl |
| 5688 |
\g_@@_frontmatter_headtext_tl |
| 5689 |
} |
| 5690 |
} |
| 5691 |
{} |
| 5692 |
\setfoot |
| 5693 |
[] |
| 5694 |
[ |
| 5695 |
\c_@@_footer_string_tl |
| 5696 |
] |
| 5697 |
[] |
| 5698 |
{} |
| 5699 |
{ |
| 5700 |
\c_@@_footer_string_tl |
| 5701 |
} |
| 5702 |
{} |
| 5703 |
} |
| 5704 |
% \end{macrocode} |
| 5705 |
% |
| 5706 |
% \begin{macrocode} |
| 5707 |
%</class> |
| 5708 |
% \end{macrocode} |
| 5709 |
% |
| 5710 |
% \begin{macrocode} |
| 5711 |
%<*class|class-article> |
| 5712 |
% \end{macrocode} |
| 5713 |
% |
| 5714 |
% \subsubsection{Front matter page style} |
| 5715 |
% |
| 5716 |
% \begin{macrocode} |
| 5717 |
\newpagestyle{@@_frontmatter_ps}[]{ |
| 5718 |
\widenhead*{\c_@@_front_matter_extra_innermargin_dim}{\c_@@_front_matter_extra_outermargin_dim} |
| 5719 |
\sethead |
| 5720 |
[ |
| 5721 |
\tikz[remember~ picture,overlay] { |
| 5722 |
\g_@@_frontmatter_page_headrule_tl |
| 5723 |
\g_@@_frontmatter_headtext_tl |
| 5724 |
} |
| 5725 |
] |
| 5726 |
[] |
| 5727 |
[] |
| 5728 |
{} |
| 5729 |
{ |
| 5730 |
\tikz[remember~ picture,overlay] { |
| 5731 |
\g_@@_frontmatter_page_headrule_tl |
| 5732 |
\g_@@_frontmatter_headtext_tl |
| 5733 |
} |
| 5734 |
} |
| 5735 |
{} |
| 5736 |
\setfoot |
| 5737 |
[\c_@@_footer_size_font_tl\thepage] |
| 5738 |
[ |
| 5739 |
\c_@@_footer_string_tl |
| 5740 |
] |
| 5741 |
[ |
| 5742 |
%<class-article>\c_@@_compiled_string_tl |
| 5743 |
] |
| 5744 |
{ |
| 5745 |
%<class-article>\c_@@_compiled_string_tl |
| 5746 |
} |
| 5747 |
{ |
| 5748 |
\c_@@_footer_string_tl |
| 5749 |
} |
| 5750 |
{\c_@@_footer_size_font_tl\thepage} |
| 5751 |
} |
| 5752 |
% \end{macrocode} |
| 5753 |
% |
| 5754 |
% \begin{macrocode} |
| 5755 |
%</class|class-article> |
| 5756 |
% \end{macrocode} |
| 5757 |
% |
| 5758 |
% \begin{macrocode} |
| 5759 |
%<*class> |
| 5760 |
% \end{macrocode} |
| 5761 |
% |
| 5762 |
% \subsubsection{Rubric first page style} |
| 5763 |
% |
| 5764 |
% \begin{macrocode} |
| 5765 |
\newpagestyle{@@_rubric_ps}[]{ |
| 5766 |
\widenhead{\c_zero_dim}{\c_zero_dim} |
| 5767 |
\sethead |
| 5768 |
[ |
| 5769 |
] |
| 5770 |
[ |
| 5771 |
] |
| 5772 |
[ |
| 5773 |
\g_@@_rubric_page_head_tl |
| 5774 |
\bool_if:nF { \g_@@_for_authors_bool } { |
| 5775 |
\adjustbox{raise={\c_@@_header_yshift_dim}{\height},lap=-\c_@@_header_xshift_dim-\linewidth}{ |
| 5776 |
\includegraphics[width=\c_@@_pictogram_width_dim]{\g_@@_rubric_pictofile_tl} |
| 5777 |
} |
| 5778 |
} |
| 5779 |
] |
| 5780 |
{ |
| 5781 |
\g_@@_rubric_page_head_tl |
| 5782 |
} |
| 5783 |
{} |
| 5784 |
{ |
| 5785 |
\bool_if:nF { \g_@@_for_authors_bool } { |
| 5786 |
\adjustbox{raise={\c_@@_header_yshift_dim}{\height},lap=\c_@@_header_xshift_dim}{ |
| 5787 |
\includegraphics[width=\c_@@_pictogram_width_dim]{\g_@@_rubric_pictofile_tl} |
| 5788 |
} |
| 5789 |
} |
| 5790 |
} |
| 5791 |
\setfoot |
| 5792 |
[\c_@@_footer_size_font_tl\thepage] |
| 5793 |
[ |
| 5794 |
\c_@@_footer_string_tl |
| 5795 |
] |
| 5796 |
[] |
| 5797 |
{} |
| 5798 |
{ |
| 5799 |
\c_@@_footer_string_tl |
| 5800 |
} |
| 5801 |
{\c_@@_footer_size_font_tl\thepage} |
| 5802 |
} |
| 5803 |
% \end{macrocode} |
| 5804 |
% |
| 5805 |
% \subsubsection{Advertisement page style} |
| 5806 |
% |
| 5807 |
% \begin{macrocode} |
| 5808 |
\newpagestyle{@@_advertisement_ps}[]{ |
| 5809 |
\widenhead{\c_zero_dim}{\c_zero_dim} |
| 5810 |
\sethead |
| 5811 |
[ |
| 5812 |
\tikz[remember~ picture,overlay] {\g_@@_mainmatter_evenpage_headrule_tl} |
| 5813 |
] |
| 5814 |
[ |
| 5815 |
\adjustbox{raise={\c_@@_header_yshift_dim}{\height}}{ |
| 5816 |
\large\bfseries\scshape\color{@@_head_text_color}\c_@@_advertisement_string_tl |
| 5817 |
} |
| 5818 |
] |
| 5819 |
[] |
| 5820 |
{} |
| 5821 |
{ |
| 5822 |
\adjustbox{raise={\c_@@_header_yshift_dim}{\height}}{ |
| 5823 |
\large\bfseries\scshape\color{@@_head_text_color}\c_@@_advertisement_string_tl |
| 5824 |
} |
| 5825 |
} |
| 5826 |
{ |
| 5827 |
\tikz[remember~ picture,overlay] {\g_@@_mainmatter_oddpage_headrule_tl} |
| 5828 |
} |
| 5829 |
\setfoot |
| 5830 |
[\c_@@_footer_size_font_tl\thepage] |
| 5831 |
[ |
| 5832 |
\c_@@_footer_string_tl |
| 5833 |
] |
| 5834 |
[] |
| 5835 |
{} |
| 5836 |
{ |
| 5837 |
\c_@@_footer_string_tl |
| 5838 |
} |
| 5839 |
{\c_@@_footer_size_font_tl\thepage} |
| 5840 |
} |
| 5841 |
% \end{macrocode} |
| 5842 |
% |
| 5843 |
% \subsubsection{For blank pages added in order to ensure document total page |
| 5844 |
% numbers is a multiple of four} |
| 5845 |
% |
| 5846 |
% \begin{macrocode} |
| 5847 |
\newpagestyle{@@_blank_pages_ps}[]{ |
| 5848 |
\sethead |
| 5849 |
{} |
| 5850 |
{} |
| 5851 |
{} |
| 5852 |
\setfoot |
| 5853 |
[\c_@@_footer_size_font_tl\thepage] |
| 5854 |
[ |
| 5855 |
\c_@@_footer_string_tl |
| 5856 |
] |
| 5857 |
[] |
| 5858 |
{} |
| 5859 |
{ |
| 5860 |
\c_@@_footer_string_tl |
| 5861 |
} |
| 5862 |
{\c_@@_footer_size_font_tl\thepage} |
| 5863 |
} |
| 5864 |
% \end{macrocode} |
| 5865 |
% |
| 5866 |
% \subsubsection{Inside back cover page style} |
| 5867 |
% |
| 5868 |
% \begin{macrocode} |
| 5869 |
\newpagestyle{@@_inside_backcover_ps}[]{ |
| 5870 |
\sethead |
| 5871 |
[ |
| 5872 |
\tikz[remember~ picture,overlay] { |
| 5873 |
\g_@@_frontmatter_page_headrule_tl |
| 5874 |
\g_@@_frontmatter_headtext_tl |
| 5875 |
} |
| 5876 |
] |
| 5877 |
[] |
| 5878 |
[] |
| 5879 |
{} |
| 5880 |
{ |
| 5881 |
\tikz[remember~ picture,overlay] { |
| 5882 |
\g_@@_frontmatter_page_headrule_tl |
| 5883 |
\g_@@_frontmatter_headtext_tl |
| 5884 |
} |
| 5885 |
} |
| 5886 |
{} |
| 5887 |
\setfoot |
| 5888 |
[] |
| 5889 |
[ |
| 5890 |
\c_@@_footer_string_tl |
| 5891 |
] |
| 5892 |
[] |
| 5893 |
{} |
| 5894 |
{ |
| 5895 |
\c_@@_footer_string_tl |
| 5896 |
} |
| 5897 |
{} |
| 5898 |
} |
| 5899 |
% \end{macrocode} |
| 5900 |
% |
| 5901 |
% \subsubsection{Back cover page style} |
| 5902 |
% |
| 5903 |
% \begin{macrocode} |
| 5904 |
\newpagestyle{@@_backcover_ps}[]{ |
| 5905 |
\sethead |
| 5906 |
{} |
| 5907 |
{} |
| 5908 |
{} |
| 5909 |
\setfoot |
| 5910 |
{} |
| 5911 |
{} |
| 5912 |
{} |
| 5913 |
} |
| 5914 |
% \end{macrocode} |
| 5915 |
% |
| 5916 |
% We define crop marks. |
| 5917 |
% \begin{macrocode} |
| 5918 |
% \bool_if:NT {\g_@@_for_printer_bool} { |
| 5919 |
% \AddEverypageHook{ |
| 5920 |
% \tikz[remember~ picture,overlay] { |
| 5921 |
% \draw ([yshift=\c_@@_potential_layoutoffset_dim]current~ page.south~ west) -- +(0.25,0); |
| 5922 |
% \draw ([xshift=\c_@@_potential_layoutoffset_dim]current~ page.south~ west) -- +(0,0.25); |
| 5923 |
% %% lower right |
| 5924 |
% \draw ([yshift=\c_@@_potential_layoutoffset_dim]current~ page.south~ east) -- +(-0.25,0); |
| 5925 |
% \draw |
| 5926 |
% ( |
| 5927 |
% [xshift=-\c_@@_potential_layoutoffset_dim-\c_@@_potential_bindingoffset_dim] |
| 5928 |
% current~ page.south~ east |
| 5929 |
% ) -- +(0,0.25); |
| 5930 |
% %% upper left |
| 5931 |
% \draw ([yshift=-\c_@@_potential_layoutoffset_dim]current~ page.north~ west) -- +(0.25,0); |
| 5932 |
% \draw ([xshift=\c_@@_potential_layoutoffset_dim]current~ page.north~ west) -- +(0,-0.25); |
| 5933 |
% %% upper right |
| 5934 |
% \draw ([yshift=-\c_@@_potential_layoutoffset_dim]current~ page.north~ east) -- +(-0.25,0); |
| 5935 |
% \draw |
| 5936 |
% ( |
| 5937 |
% [xshift=-\c_@@_potential_layoutoffset_dim-\c_@@_potential_bindingoffset_dim] |
| 5938 |
% current~ page.north~ east) -- +(0,-0.25 |
| 5939 |
% ); |
| 5940 |
% } |
| 5941 |
% } |
| 5942 |
% } |
| 5943 |
% \end{macrocode} |
| 5944 |
% |
| 5945 |
% \begin{macrocode} |
| 5946 |
%</class> |
| 5947 |
% \end{macrocode} |
| 5948 |
% |
| 5949 |
% \begin{macrocode} |
| 5950 |
%<*class|class-article> |
| 5951 |
% \end{macrocode} |
| 5952 |
% |
| 5953 |
% We draw a gray background at the bottom of each page, but the first one. |
| 5954 |
% \begin{macrocode} |
| 5955 |
\AddToHook{shipout/background}{ |
| 5956 |
%<class> \bool_if:nF { \g_@@_frontcover_bool || \g_@@_backcover_bool }{ |
| 5957 |
\bool_if:NF {\g_@@_advertisement_bool} { |
| 5958 |
\tikz[remember~ picture,overlay] { \g_@@_background_footer_tl } |
| 5959 |
} |
| 5960 |
%<class> } |
| 5961 |
} |
| 5962 |
% \end{macrocode} |
| 5963 |
% |
| 5964 |
% \subsubsection{Main matter page style} |
| 5965 |
% |
| 5966 |
% \begin{macrocode} |
| 5967 |
\newpagestyle{@@_mainmatter_ps}[]{ |
| 5968 |
\widenhead{\c_zero_dim}{\c_zero_dim} |
| 5969 |
\sethead |
| 5970 |
[ |
| 5971 |
\tikz[remember~ picture,overlay] {\g_@@_mainmatter_evenpage_headrule_tl} |
| 5972 |
] |
| 5973 |
[ |
| 5974 |
\adjustbox{raise={\c_@@_header_yshift_dim}{\height}}{ |
| 5975 |
\large\bfseries\scshape\color{@@_head_text_color} |
| 5976 |
\tl_if_empty:NTF \g_@@_rubric_header_tl { |
| 5977 |
\g_@@_rubric_title_tl |
| 5978 |
}{ |
| 5979 |
\g_@@_rubric_header_tl |
| 5980 |
} |
| 5981 |
} |
| 5982 |
] |
| 5983 |
[] |
| 5984 |
{} |
| 5985 |
{ |
| 5986 |
\bool_if:nF { |
| 5987 |
\g_@@_rearviewmirror_rubric_bool || \g_@@_books_rubric_bool |
| 5988 |
}{ |
| 5989 |
\adjustbox{raise={\c_@@_header_yshift_dim}{\height}}{ |
| 5990 |
\bfseries\color{@@_head_text_color}\g_@@_short_title_tl |
| 5991 |
} |
| 5992 |
} |
| 5993 |
} |
| 5994 |
{ |
| 5995 |
\tikz[remember~ picture,overlay] {\g_@@_mainmatter_oddpage_headrule_tl} |
| 5996 |
} |
| 5997 |
\bool_if:nTF { \g_@@_for_authors_bool } { |
| 5998 |
\setfoot |
| 5999 |
[\c_@@_footer_size_font_tl\thepage] |
| 6000 |
[ |
| 6001 |
\c_@@_footer_string_tl |
| 6002 |
] |
| 6003 |
[\c_@@_compiled_string_tl] |
| 6004 |
{\c_@@_compiled_string_tl} |
| 6005 |
{ |
| 6006 |
\c_@@_footer_string_tl |
| 6007 |
} |
| 6008 |
{\c_@@_footer_size_font_tl\thepage} |
| 6009 |
}{ |
| 6010 |
\setfoot |
| 6011 |
[\c_@@_footer_size_font_tl\thepage] |
| 6012 |
[ |
| 6013 |
\c_@@_footer_string_tl |
| 6014 |
] |
| 6015 |
[] |
| 6016 |
{} |
| 6017 |
{ |
| 6018 |
\c_@@_footer_string_tl |
| 6019 |
} |
| 6020 |
{\c_@@_footer_size_font_tl\thepage} |
| 6021 |
} |
| 6022 |
} |
| 6023 |
% \end{macrocode} |
| 6024 |
% |
| 6025 |
% We define a public macro for possible acknowledgements to be used by author(s) |
| 6026 |
% of articles. |
| 6027 |
% \begin{macrocode} |
| 6028 |
\NewDocumentCommand \acknowledgements { +m } { |
| 6029 |
\@@_article_acknowledgements:n {#1} |
| 6030 |
} |
| 6031 |
% \end{macrocode} |
| 6032 |
% |
| 6033 |
% \begin{macro}{\printminibios} |
| 6034 |
% We define the public command which displays |
| 6035 |
% \begin{itemize} |
| 6036 |
% \item the affiliation(s), email(s) and minibiographie(s) of the authors, |
| 6037 |
% \item the acknowledgements if not empty. |
| 6038 |
% \end{itemize} |
| 6039 |
% \begin{macrocode} |
| 6040 |
\NewDocumentCommand \printminibios { s } { |
| 6041 |
\bool_if:NT {\g_@@_multicols_bool} { |
| 6042 |
\end{multicols} |
| 6043 |
} |
| 6044 |
% \end{macrocode} |
| 6045 |
% We force all the previous floats to be processed no later on the page |
| 6046 |
% following the beginning of the bibliography, \textsc{cv} or |
| 6047 |
% acknowledgements. |
| 6048 |
% \begin{macrocode} |
| 6049 |
\FloatBarrier |
| 6050 |
\nopagebreak[0] |
| 6051 |
\IfBooleanTF {#1} |
| 6052 |
{ |
| 6053 |
\tl_if_empty:NF \l_@@_article_acknowledgements_tl { |
| 6054 |
\begin{_@@_minibiographies_acknowledgements_tcbox} |
| 6055 |
} |
| 6056 |
}{ |
| 6057 |
\begin{_@@_minibiographies_acknowledgements_tcbox} |
| 6058 |
\@@_display_people_by_role:n { author-art-\int_use:N \g_@@_articles_int } |
| 6059 |
} |
| 6060 |
\DTLsavelastrowcount{\_@@_authors_number} |
| 6061 |
\tl_if_empty:NF \l_@@_article_acknowledgements_tl |
| 6062 |
{ |
| 6063 |
\footnotesize |
| 6064 |
\int_compare:nNnT {\_@@_authors_number}>{0} |
| 6065 |
{ |
| 6066 |
\par |
| 6067 |
\bigskip |
| 6068 |
} |
| 6069 |
\begin{adjustbox}{valign=t,minipage=\linewidth} |
| 6070 |
\color{@@_acknowledgements_color} |
| 6071 |
\setlength{\parskip}{\c_@@_mainmatter_parskip_skip} |
| 6072 |
\l_@@_article_acknowledgements_tl |
| 6073 |
\end{adjustbox} |
| 6074 |
} |
| 6075 |
\bool_gset_true:N \g_@@_previous_article_with_bibliography_or_minibio_bool |
| 6076 |
\IfBooleanTF {#1} |
| 6077 |
{ |
| 6078 |
\tl_if_empty:NF \l_@@_article_acknowledgements_tl { |
| 6079 |
\end{_@@_minibiographies_acknowledgements_tcbox} |
| 6080 |
} |
| 6081 |
}{ |
| 6082 |
\end{_@@_minibiographies_acknowledgements_tcbox} |
| 6083 |
} |
| 6084 |
} |
| 6085 |
% \end{macrocode} |
| 6086 |
% \end{macro} |
| 6087 |
% |
| 6088 |
% \begin{macro}{\printbibliography} |
| 6089 |
% The command for bibliography printing production is redefined in order to let |
| 6090 |
% it silently: |
| 6091 |
% \begin{itemize} |
| 6092 |
% \item beforehand quit the multicolumn environment and enter in the |
| 6093 |
% ×_@@_bibliography_tcbox× environment (which gives a special layout to |
| 6094 |
% bibliographies, \textsc{cv} and acknowledgements), |
| 6095 |
% \item afterwards quit the ×bibliography_minibiographies_acknowledgements× environment and enter in |
| 6096 |
% the multicolumn environment. |
| 6097 |
% \end{itemize} |
| 6098 |
% \begin{macrocode} |
| 6099 |
\cs_set_eq:NN \_@@_printbibliography \printbibliography |
| 6100 |
\RenewDocumentCommand \printbibliography { s O{} } { |
| 6101 |
\bool_if:NT {\g_@@_multicols_bool} { |
| 6102 |
\end{multicols} |
| 6103 |
} |
| 6104 |
% \end{macrocode} |
| 6105 |
% We force all the previous floats to be processed no later on the page |
| 6106 |
% following the beginning of the bibliography, \textsc{cv} or |
| 6107 |
% acknowledgements. |
| 6108 |
% \begin{macrocode} |
| 6109 |
% \afterpage{ |
| 6110 |
\FloatBarrier |
| 6111 |
% } |
| 6112 |
\begin{_@@_bibliography_tcbox} |
| 6113 |
\_@@_printbibliography[heading=subbibliography,resetnumbers,#2] |
| 6114 |
\end{_@@_bibliography_tcbox} |
| 6115 |
\nopagebreak[0] |
| 6116 |
\IfBooleanTF {#1} |
| 6117 |
{ |
| 6118 |
\printminibios* |
| 6119 |
}{ |
| 6120 |
\printminibios |
| 6121 |
} |
| 6122 |
} |
| 6123 |
\cs_set_eq:NN \_@@_bibbycategory \bibbycategory |
| 6124 |
\RenewDocumentCommand \bibbycategory { s O{} } { |
| 6125 |
\bool_if:NT {\g_@@_multicols_bool} { |
| 6126 |
\end{multicols} |
| 6127 |
} |
| 6128 |
% \end{macrocode} |
| 6129 |
% We force all the previous floats to be processed no later on the page |
| 6130 |
% following the beginning of the bibliography, \textsc{cv} or |
| 6131 |
% acknowledgements. |
| 6132 |
% \begin{macrocode} |
| 6133 |
% \afterpage{ |
| 6134 |
\FloatBarrier |
| 6135 |
% } |
| 6136 |
\begin{_@@_bibliography_tcbox} |
| 6137 |
\defbibheading{bibliography}{% |
| 6138 |
\section*{Références}} |
| 6139 |
\printbibheading |
| 6140 |
\_@@_bibbycategory[#2] |
| 6141 |
\end{_@@_bibliography_tcbox} |
| 6142 |
\nopagebreak[0] |
| 6143 |
\IfBooleanTF {#1} |
| 6144 |
{ |
| 6145 |
\printminibios* |
| 6146 |
}{ |
| 6147 |
\printminibios |
| 6148 |
} |
| 6149 |
} |
| 6150 |
% \end{macrocode} |
| 6151 |
% \end{macro} |
| 6152 |
% |
| 6153 |
% \subsection{Miscellaneous private commands specific to the journal} |
| 6154 |
% |
| 6155 |
% We create miscellaneous private commands specific to the journal. |
| 6156 |
% |
| 6157 |
% Command for centuries. |
| 6158 |
% \begin{macrocode} |
| 6159 |
\deftranslation[to=French]{_@@_century}{si\`ecle} |
| 6160 |
\deftranslation[to=English]{_@@_century}{century} |
| 6161 |
\deftranslation[to=French]{_@@_first}{\ier} |
| 6162 |
\deftranslation[to=English]{_@@_first}{\up{st}\xspace} |
| 6163 |
\deftranslation[to=French]{_@@_nth}{\ieme} |
| 6164 |
\deftranslation[to=English]{_@@_nth}{\up{th}\xspace} |
| 6165 |
\deftranslation[to=French]{_@@_bc}{avant~ J.-C} |
| 6166 |
\deftranslation[to=English]{_@@_bc}{BC} |
| 6167 |
\cs_new_protected:Nn \_@@_century:n |
| 6168 |
{ |
| 6169 |
\textsc{ |
| 6170 |
\int_to_roman:n {\int_abs:n {#1}} |
| 6171 |
} |
| 6172 |
\int_compare:nNnTF { \int_abs:n {#1} } > { 1 }{\translate{_@@_nth}}{\translate{_@@_first}} |
| 6173 |
} |
| 6174 |
\cs_new_protected:Nn \_@@_century_suffix:n |
| 6175 |
{ |
| 6176 |
\translate{_@@_century} |
| 6177 |
\int_compare:nNnT { #1 } < { 0 }{ |
| 6178 |
\c_space_tl |
| 6179 |
\translate{_@@_bc} |
| 6180 |
% \end{macrocode} |
| 6181 |
% In case of French language, we add a period just after \enquote{avant~ J.-C}, |
| 6182 |
% but only if the character following the ×\century× macro is not a period |
| 6183 |
% itself. |
| 6184 |
% \begin{macrocode} |
| 6185 |
\IfLanguageName {french}{ |
| 6186 |
\@ifnextchar. |
| 6187 |
{ |
| 6188 |
}{ |
| 6189 |
.\xspace |
| 6190 |
} |
| 6191 |
} |
| 6192 |
}{ |
| 6193 |
} |
| 6194 |
} |
| 6195 |
% \end{macrocode} |
| 6196 |
% |
| 6197 |
% \begin{macrocode} |
| 6198 |
%</class|class-article> |
| 6199 |
% \end{macrocode} |
| 6200 |
% |
| 6201 |
% \begin{macrocode} |
| 6202 |
%<*class> |
| 6203 |
% \end{macrocode} |
| 6204 |
% |
| 6205 |
% \subsection{Miscellaneous public commands specific to the journal} |
| 6206 |
% |
| 6207 |
% We create miscellaneous public commands specific to the journal. |
| 6208 |
% |
| 6209 |
% \begin{macro}{\advertisement} |
| 6210 |
% For a (not full page) advertisement. |
| 6211 |
% \begin{macrocode} |
| 6212 |
\cs_new_protected:Nn \_@@_advertisement:nn |
| 6213 |
{ |
| 6214 |
\vfill |
| 6215 |
\begin{center} |
| 6216 |
\dim_set:Nn \fboxsep {\c_zero_dim} |
| 6217 |
\fbox{ |
| 6218 |
\includegraphics[max~ size={\linewidth}{\textheight},#1]{#2} |
| 6219 |
} |
| 6220 |
\end{center} |
| 6221 |
\vfill |
| 6222 |
} |
| 6223 |
\NewDocumentCommand \advertisement { O{} m } |
| 6224 |
{ |
| 6225 |
\_@@_advertisement:nn {#1}{#2} |
| 6226 |
} |
| 6227 |
% \end{macro} |
| 6228 |
% |
| 6229 |
% \begin{macro}{\fullpageadvertisement} |
| 6230 |
% For a full page advertisement. |
| 6231 |
% \begin{macrocode} |
| 6232 |
\cs_new_protected:Nn \_@@_fullpageadvertisement:nn |
| 6233 |
{ |
| 6234 |
\newpage |
| 6235 |
\thispagestyle{@@_advertisement_ps} |
| 6236 |
\begin{minipage}[c][\textheight][c]{\textwidth} |
| 6237 |
\centering\includegraphics[max~ size={\linewidth}{\textheight},#1]{#2} |
| 6238 |
\end{minipage} |
| 6239 |
} |
| 6240 |
\NewDocumentCommand \fullpageadvertisement { O{} m } |
| 6241 |
{ |
| 6242 |
\_@@_fullpageadvertisement:nn {#1}{#2} |
| 6243 |
} |
| 6244 |
% \end{macro} |
| 6245 |
% |
| 6246 |
% \begin{macro}{\aboutfrontcover} |
| 6247 |
% For a few words about the front cover. |
| 6248 |
% \begin{macrocode} |
| 6249 |
\NewDocumentCommand \aboutfrontcover { O{} O{\c_@@_about_frontcover_string_tl} m } |
| 6250 |
{ |
| 6251 |
\_@@_about_frontcover:nnn {#1}{#2}{#3} |
| 6252 |
} |
| 6253 |
% \end{macrocode} |
| 6254 |
% \end{macro} |
| 6255 |
% |
| 6256 |
% \begin{macrocode} |
| 6257 |
\cs_new_protected:Nn \_@@_prepare_rubric:nnn { |
| 6258 |
\newpage |
| 6259 |
\tl_gclear:N \g_@@_rubric_abstract_tl |
| 6260 |
\tl_gset:Nn \g_@@_rubric_title_tl {#2} |
| 6261 |
\tl_gset:Nn \g_@@_rubric_pictofile_tl {#3} |
| 6262 |
\IfNoValueF {#1} |
| 6263 |
{ |
| 6264 |
\keys_set:nn { gzt/rubric } { #1 } |
| 6265 |
} |
| 6266 |
\_@@_rubric:nnn |
| 6267 |
{\g_@@_rubric_abstract_tl}{\g_@@_rubric_title_tl}{\g_@@_rubric_pictofile_tl} |
| 6268 |
} |
| 6269 |
% \end{macrocode} |
| 6270 |
% |
| 6271 |
% \begin{macro}{\rubric} |
| 6272 |
% For a \enquote{free} rubric. In case of special edition, we set the rubric |
| 6273 |
% title first as empty and then as the special edition's title plus a constant |
| 6274 |
% string. Otherwise, this title is freely set. |
| 6275 |
% \begin{macrocode} |
| 6276 |
\NewDocumentCommand \rubric {O{}mm} |
| 6277 |
{ |
| 6278 |
\bool_if:NTF {\g_@@_special_edition_bool} { |
| 6279 |
\_@@_rubric:nnn {#1}{#2}{#3} |
| 6280 |
\tl_gset:Nn \g_@@_rubric_title_tl { |
| 6281 |
\c_@@_short_special_edition_string_tl |
| 6282 |
\c_space_tl |
| 6283 |
\g_@@_special_edition_title_tl |
| 6284 |
} |
| 6285 |
}{ |
| 6286 |
\_@@_rubric:nnn {#1}{#2}{#3} |
| 6287 |
} |
| 6288 |
} |
| 6289 |
% \end{macrocode} |
| 6290 |
% \end{macro} |
| 6291 |
% |
| 6292 |
% \begin{macro}{\mathematics,\dossier,\community,\interview,\teaching,\parity,\tellme,\information,\rearviewmirror,\tribute,\books,\latextips,\forum,\moralreport} |
| 6293 |
% \begin{macrocode} |
| 6294 |
\NewDocumentCommand \mathematics {O{}} |
| 6295 |
{ |
| 6296 |
\_@@_rubric:nnn {#1}{\c_@@_mathematics_rubric_string_tl}{\c_@@_mathematics_pictogram_file_name_tl} |
| 6297 |
} |
| 6298 |
\NewDocumentCommand \dossier {O{}} |
| 6299 |
{ |
| 6300 |
\_@@_rubric:nnn {#1}{\c_@@_dossier_rubric_string_tl}{\c_@@_dossier_pictogram_file_name_tl} |
| 6301 |
} |
| 6302 |
\NewDocumentCommand \community {O{}} |
| 6303 |
{ |
| 6304 |
\_@@_rubric:nnn {#1}{\c_@@_community_rubric_string_tl}{\c_@@_hands_pictogram_file_name_tl} |
| 6305 |
} |
| 6306 |
\NewDocumentCommand \interview {O{}} |
| 6307 |
{ |
| 6308 |
\_@@_rubric:nnn {#1}{\c_@@_interview_rubric_string_tl}{\c_@@_interview_pictogram_file_name_tl} |
| 6309 |
\bool_gset_true:N \g_@@_interview_rubric_bool |
| 6310 |
} |
| 6311 |
\NewDocumentCommand \teaching {O{}} |
| 6312 |
{ |
| 6313 |
\_@@_rubric:nnn {#1}{\c_@@_teaching_rubric_string_tl}{\c_@@_teaching_pictogram_file_name_tl} |
| 6314 |
} |
| 6315 |
\NewDocumentCommand \parity {O{}} |
| 6316 |
{ |
| 6317 |
\_@@_rubric:nnn {#1}{\c_@@_parity_rubric_string_tl}{\c_@@_parity_pictogram_file_name_tl} |
| 6318 |
} |
| 6319 |
\NewDocumentCommand \tellme {O{}} |
| 6320 |
{ |
| 6321 |
\_@@_rubric:nnn {#1}{\c_@@_tellme_rubric_string_tl}{\c_@@_tellme_pictogram_file_name_tl} |
| 6322 |
\bool_gset_true:N \g_@@_tellme_rubric_bool |
| 6323 |
} |
| 6324 |
\NewDocumentCommand \information {O{}} |
| 6325 |
{ |
| 6326 |
\_@@_rubric:nnn {#1}{\c_@@_information_rubric_string_tl}{\c_@@_information_pictogram_file_name_tl} |
| 6327 |
} |
| 6328 |
\NewDocumentCommand \rearviewmirror {O{}} |
| 6329 |
{ |
| 6330 |
\_@@_rubric:nnn {#1}{\c_@@_rearviewmirror_rubric_string_tl}{\c_@@_rearviewmirror_pictogram_file_name_tl} |
| 6331 |
\bool_gset_true:N \g_@@_rearviewmirror_rubric_bool |
| 6332 |
} |
| 6333 |
\NewDocumentCommand \tribute {O{}} |
| 6334 |
{ |
| 6335 |
\_@@_rubric:nnn {#1}{\c_@@_tribute_rubric_string_tl}{\c_@@_tribute_pictogram_file_name_tl} |
| 6336 |
} |
| 6337 |
\NewDocumentCommand \books {O{}} |
| 6338 |
{ |
| 6339 |
\_@@_rubric:nnn {#1}{\c_@@_books_rubric_string_tl}{\c_@@_books_pictogram_file_name_tl} |
| 6340 |
\bool_gset_true:N \g_@@_books_rubric_bool |
| 6341 |
\vspace{1.5\c_@@_book_review_frontcover_extend_dim} |
| 6342 |
} |
| 6343 |
\NewDocumentCommand \latextips {O{}} |
| 6344 |
{ |
| 6345 |
\_@@_rubric:nnn {#1}{\c_@@_latex_rubric_string_tl}{} |
| 6346 |
} |
| 6347 |
\NewDocumentCommand \forum {O{}} |
| 6348 |
{ |
| 6349 |
\_@@_rubric:nnn {#1}{\c_@@_forum_rubric_string_tl}{\c_@@_forum_pictogram_file_name_tl} |
| 6350 |
} |
| 6351 |
\NewDocumentCommand \moralreport {O{}} |
| 6352 |
{ |
| 6353 |
\_@@_rubric:nnn {#1}{\c_@@_moralreport_rubric_string_tl}{\c_@@_smf_logo_file_string_tl} |
| 6354 |
} |
| 6355 |
% \end{macrocode} |
| 6356 |
% \end{macro} |
| 6357 |
% |
| 6358 |
% \begin{macrocode} |
| 6359 |
%</class> |
| 6360 |
% \end{macrocode} |
| 6361 |
% |
| 6362 |
% \begin{macrocode} |
| 6363 |
%<*class|class-article> |
| 6364 |
% \end{macrocode} |
| 6365 |
% |
| 6366 |
% \begin{macro}{\email} |
| 6367 |
% \begin{macrocode} |
| 6368 |
\DeclareCiteCommand{\citeinterviewee}{}{ |
| 6369 |
\printnames{interviewee} |
| 6370 |
} |
| 6371 |
{}{} |
| 6372 |
\DeclareCiteCommand{\citereviewer}{}{ |
| 6373 |
\g_@@_blx_given_first_inits_false_tl |
| 6374 |
\printnames{reviewer} |
| 6375 |
} |
| 6376 |
{}{} |
| 6377 |
\DeclareCiteCommand{\citereviewerinstitution}{}{ |
| 6378 |
\printlist{reviewerinstitution} |
| 6379 |
} |
| 6380 |
{}{} |
| 6381 |
\DeclareCiteCommand{\_@@_cite_public_price}{}{ |
| 6382 |
\printfield{publicprice} |
| 6383 |
} |
| 6384 |
{}{} |
| 6385 |
\DeclareCiteCommand{\_@@_cite_smf_price}{}{ |
| 6386 |
\printfield{smfprice} |
| 6387 |
} |
| 6388 |
{}{} |
| 6389 |
\DeclareCiteCommand{\citecopublisher}{}{ |
| 6390 |
\printlist{copublisher} |
| 6391 |
} |
| 6392 |
{}{} |
| 6393 |
\DeclareCiteCommand{\citefrenchabstract}{}{ |
| 6394 |
\printfield{frenchabstract} |
| 6395 |
} |
| 6396 |
{}{} |
| 6397 |
\DeclareCiteCommand{\_@@_cite_englishabstract}{}{ |
| 6398 |
\printfield{englishabstract} |
| 6399 |
} |
| 6400 |
{}{} |
| 6401 |
% \end{macrocode} |
| 6402 |
% \end{macro} |
| 6403 |
% |
| 6404 |
% \begin{macro}{\email} |
| 6405 |
% For typesetting an email. |
| 6406 |
% \begin{macrocode} |
| 6407 |
\NewDocumentCommand \email {m} |
| 6408 |
{ |
| 6409 |
\_@@_email:n {#1} |
| 6410 |
} |
| 6411 |
% \end{macro} |
| 6412 |
% |
| 6413 |
% \begin{macro}{\question} |
| 6414 |
% We define a private function for the questions/answers of interviews. |
| 6415 |
% \begin{macrocode} |
| 6416 |
\cs_new_protected:Nn \_@@_question:n |
| 6417 |
{ |
| 6418 |
\int_incr:N \g_@@_question_int |
| 6419 |
{ |
| 6420 |
\par |
| 6421 |
\bigskip |
| 6422 |
\color{@@_question_color} |
| 6423 |
#1 |
| 6424 |
\par |
| 6425 |
} |
| 6426 |
} |
| 6427 |
\NewDocumentCommand \question {m} |
| 6428 |
{ |
| 6429 |
\_@@_question:n {#1} |
| 6430 |
} |
| 6431 |
% \end{macrocode} |
| 6432 |
% \end{macro} |
| 6433 |
% |
| 6434 |
% \begin{macro}{\smf} |
| 6435 |
% \begin{macrocode} |
| 6436 |
\NewDocumentCommand \smf { s } { |
| 6437 |
\IfBooleanTF {#1} |
| 6438 |
{ |
| 6439 |
\g_@@_smf_string_tl |
| 6440 |
} |
| 6441 |
{ |
| 6442 |
\g_@@_smf_short_string_tl |
| 6443 |
} |
| 6444 |
\xspace |
| 6445 |
} |
| 6446 |
% \end{macrocode} |
| 6447 |
% \end{macro} |
| 6448 |
% |
| 6449 |
% \begin{macro}{\surname} |
| 6450 |
% \begin{macrocode} |
| 6451 |
\DeclareExpandableDocumentCommand \surname { m } { |
| 6452 |
\textsc{#1} |
| 6453 |
} |
| 6454 |
% \end{macrocode} |
| 6455 |
% \end{macro} |
| 6456 |
% |
| 6457 |
% \begin{macro}{\cad,\Cad} |
| 6458 |
% \begin{macrocode} |
| 6459 |
\NewDocumentCommand \cad { s } { |
| 6460 |
\IfBooleanTF {#1} |
| 6461 |
{ |
| 6462 |
\c_@@_cad_string_tl |
| 6463 |
} |
| 6464 |
{ |
| 6465 |
\c_@@_cad_short_string_tl |
| 6466 |
} |
| 6467 |
\xspace |
| 6468 |
} |
| 6469 |
\NewDocumentCommand \Cad { s } { |
| 6470 |
\IfBooleanTF {#1} |
| 6471 |
{ |
| 6472 |
\c_@@_Cad_string_tl |
| 6473 |
} |
| 6474 |
{ |
| 6475 |
\c_@@_Cad_short_string_tl |
| 6476 |
} |
| 6477 |
\xspace |
| 6478 |
} |
| 6479 |
% \end{macrocode} |
| 6480 |
% \end{macro} |
| 6481 |
% |
| 6482 |
% \begin{macro}{\gzt} |
| 6483 |
% \begin{macrocode} |
| 6484 |
\NewDocumentCommand \gzt { s } { |
| 6485 |
\IfBooleanTF {#1} |
| 6486 |
{ |
| 6487 |
\l_@@_gzt_string_tl |
| 6488 |
} |
| 6489 |
{ |
| 6490 |
\l_@@_gzt_short_string_tl |
| 6491 |
} |
| 6492 |
\xspace |
| 6493 |
} |
| 6494 |
% \end{macrocode} |
| 6495 |
% \end{macro} |
| 6496 |
% |
| 6497 |
% \begin{macro}{\gztcl,\gztarticle} |
| 6498 |
% \begin{macrocode} |
| 6499 |
\NewDocumentCommand \gztcl {} |
| 6500 |
{ |
| 6501 |
\textsl{\texttt{\c_@@_class_name_tl}} |
| 6502 |
\xspace |
| 6503 |
} |
| 6504 |
\NewDocumentCommand \gztarticlecl {} |
| 6505 |
{ |
| 6506 |
\textsl{\texttt{\c_@@_article_class_name_tl}} |
| 6507 |
\xspace |
| 6508 |
} |
| 6509 |
% \end{macrocode} |
| 6510 |
% \end{macro} |
| 6511 |
% |
| 6512 |
% \begin{macro}{\century} |
| 6513 |
% \begin{macrocode} |
| 6514 |
\NewDocumentCommand \century { s m } { |
| 6515 |
\_@@_century:n {#2} |
| 6516 |
\IfBooleanTF {#1} |
| 6517 |
{ |
| 6518 |
\int_compare:nNnT { #2 } < { 0 }{ |
| 6519 |
\_@@_century_suffix:n {#2} |
| 6520 |
} |
| 6521 |
} |
| 6522 |
{ |
| 6523 |
\_@@_century_suffix:n {#2} |
| 6524 |
} |
| 6525 |
} |
| 6526 |
% \end{macrocode} |
| 6527 |
% \end{macro} |
| 6528 |
% |
| 6529 |
% \begin{macro}{\aside} |
| 6530 |
% \begin{macrocode} |
| 6531 |
\NewDocumentCommand \aside { s m } { |
| 6532 |
\IfBooleanTF {#1} |
| 6533 |
{ |
| 6534 |
\c_@@_aside_string_tl{}~ #2 |
| 6535 |
} |
| 6536 |
{ |
| 6537 |
\c_@@_aside_string_tl{}~ #2~ \c_@@_aside_string_tl |
| 6538 |
} |
| 6539 |
} |
| 6540 |
% \end{macrocode} |
| 6541 |
% \end{macro} |
| 6542 |
% |
| 6543 |
% \begin{macrocode} |
| 6544 |
\tl_new:N \g_@@_font_designer_text_tl |
| 6545 |
\cs_new_protected:Nn \@@_font_designer_text:n |
| 6546 |
{ |
| 6547 |
\tl_gset:Nn \g_@@_font_designer_text_tl { #1 } |
| 6548 |
} |
| 6549 |
\NewDocumentCommand \fontdesignertext {m} |
| 6550 |
{ |
| 6551 |
\_@@_font_designer_text:n {#1} |
| 6552 |
} |
| 6553 |
% \end{macrocode} |
| 6554 |
% |
| 6555 |
% \begin{macrocode} |
| 6556 |
\tl_new:N \g_@@_printer_text_tl |
| 6557 |
\cs_new_protected:Nn \@@_printer_text:n |
| 6558 |
{ |
| 6559 |
\tl_gset:Nn \g_@@_printer_text_tl { #1 } |
| 6560 |
} |
| 6561 |
\NewDocumentCommand \printertext {m} |
| 6562 |
{ |
| 6563 |
\_@@_printer_text:n {#1} |
| 6564 |
} |
| 6565 |
% \end{macrocode} |
| 6566 |
% |
| 6567 |
% Command for epigraphs. |
| 6568 |
% \begin{macrocode} |
| 6569 |
\renewcommand{\textflush}{flushepinormal} |
| 6570 |
\cs_set_eq:NN \_@@_orig_epigraph \epigraph |
| 6571 |
\cs_new_protected:Nn \_@@_epigraph:nn |
| 6572 |
{ |
| 6573 |
\bool_if:nTF { \tl_if_empty_p:n {#2} } |
| 6574 |
{ |
| 6575 |
\setlength{\epigraphrule}{\c_zero_dim} |
| 6576 |
} |
| 6577 |
{ |
| 6578 |
\setlength{\epigraphrule}{.4\p@} |
| 6579 |
} |
| 6580 |
\_@@_orig_epigraph{ |
| 6581 |
\emph{ |
| 6582 |
\enquote{ |
| 6583 |
#1 |
| 6584 |
} |
| 6585 |
} |
| 6586 |
} |
| 6587 |
{ |
| 6588 |
#2 |
| 6589 |
} |
| 6590 |
} |
| 6591 |
\RenewDocumentCommand \epigraph { m m } |
| 6592 |
{ |
| 6593 |
\_@@_epigraph:nn {#1}{#2} |
| 6594 |
} |
| 6595 |
% \end{macrocode} |
| 6596 |
% |
| 6597 |
% \begin{macrocode} |
| 6598 |
\NewDocumentEnvironment{authorsinstructions}{} |
| 6599 |
{ |
| 6600 |
\begingroup |
| 6601 |
\tcbverbatimwrite{\c_@@_authors_instructions_file_tl} |
| 6602 |
} |
| 6603 |
{ |
| 6604 |
\endtcbverbatimwrite |
| 6605 |
\endgroup |
| 6606 |
} |
| 6607 |
% \end{macrocode} |
| 6608 |
% |
| 6609 |
% We provide some public commands and environments to be used for displaying |
| 6610 |
% (mainly \LaTeX{}) code. |
| 6611 |
% \begin{macrocode} |
| 6612 |
\lstdefinestyle{@@_lst_style}{ |
| 6613 |
escapechar=+, |
| 6614 |
language=[LaTeX]TeX, |
| 6615 |
texcsstyle=*\bfseries, |
| 6616 |
breaklines=true, |
| 6617 |
basicstyle=\normalfont\ttfamily, |
| 6618 |
columns=flexible, |
| 6619 |
inputencoding=utf8/latin1 |
| 6620 |
} |
| 6621 |
\DeclareTotalTCBox{\gztverb}{ v }{verbatim,blank,fuzzy~ halo=0pt~ with~ @@_generic_dark_color!8}{#1} |
| 6622 |
% \end{macrocode} |
| 6623 |
% |
| 6624 |
% The optional argument declaration must be prefixed with an ×!× (see |
| 6625 |
% \url{https://github.com/T-F-S/tcolorbox/issues/43}). |
| 6626 |
% \begin{macrocode} |
| 6627 |
\NewTCBListing{gztcode}{ !O{} }{ |
| 6628 |
listing~ style=@@_lst_style, |
| 6629 |
listing~ only, |
| 6630 |
enlarge~ top~ by=\medskipamount, |
| 6631 |
breakable, |
| 6632 |
#1 |
| 6633 |
} |
| 6634 |
% \end{macrocode} |
| 6635 |
% |
| 6636 |
% We provide public environments ×gztfigure× and ×gzttable× (and friends) for |
| 6637 |
% the usual floats. Their layout is based upon \pkg{tcolorbox} features. |
| 6638 |
% \begin{macrocode} |
| 6639 |
\DeclareTColorBox[blend~ into=figures]{gztfigure}{ O{} } |
| 6640 |
{ |
| 6641 |
,width=\linewidth |
| 6642 |
,blend~ before~ title=dash |
| 6643 |
,_@@_tcb_floats_style |
| 6644 |
,#1 |
| 6645 |
,code={\ifdefempty{\kvtcb@title}{\tcbset{_@@_tcb_notitle}}{}} |
| 6646 |
} |
| 6647 |
\DeclareTColorBox[blend~ into=figures]{gztfigure*}{ O{} } |
| 6648 |
{ |
| 6649 |
,float* |
| 6650 |
,blend~ before~ title=dash |
| 6651 |
,width=\textwidth |
| 6652 |
,_@@_tcb_floats_style |
| 6653 |
,#1 |
| 6654 |
,code={\ifdefempty{\kvtcb@title}{\tcbset{_@@_tcb_notitle}}{}} |
| 6655 |
} |
| 6656 |
\DeclareTColorBox[blend~ into=tables]{gzttable}{ O{} } |
| 6657 |
{ |
| 6658 |
,width=\linewidth |
| 6659 |
,blend~ before~ title=dash |
| 6660 |
,_@@_tcb_floats_style |
| 6661 |
,#1 |
| 6662 |
,code={\ifdefempty{\kvtcb@title}{\tcbset{_@@_tcb_notitle}}{}} |
| 6663 |
} |
| 6664 |
\DeclareTColorBox[blend~ into=tables]{gzttable*}{ O{} } |
| 6665 |
{ |
| 6666 |
,float* |
| 6667 |
,blend~ before~ title=dash |
| 6668 |
,width=\textwidth |
| 6669 |
,_@@_tcb_floats_style |
| 6670 |
,#1 |
| 6671 |
,code={\ifdefempty{\kvtcb@title}{\tcbset{_@@_tcb_notitle}}{}} |
| 6672 |
} |
| 6673 |
\DeclareTColorBox{gztframe}{ O{} } |
| 6674 |
{ |
| 6675 |
,width=\linewidth |
| 6676 |
,_@@_tcb_floats_style |
| 6677 |
,#1 |
| 6678 |
} |
| 6679 |
\DeclareTColorBox{gztframe*}{ O{} } |
| 6680 |
{ |
| 6681 |
,float* |
| 6682 |
,width=\textwidth |
| 6683 |
,_@@_tcb_floats_style |
| 6684 |
,#1 |
| 6685 |
} |
| 6686 |
% |
| 6687 |
\DeclareTColorBox{gztscan}{ O{} } |
| 6688 |
{ |
| 6689 |
#1 |
| 6690 |
,width=\textwidth |
| 6691 |
,_@@_tcb_floats_style |
| 6692 |
,size=tight |
| 6693 |
} |
| 6694 |
\DeclareTColorBox{_@@_book_review}{ O{} } |
| 6695 |
{ |
| 6696 |
overlay~ unbroken~ and~ first={ |
| 6697 |
\node at (frame.north~ west) { |
| 6698 |
{ |
| 6699 |
\makebox[\c_zero_dim][l]{ |
| 6700 |
\adjustbox{raise={-2\height+\c_@@_book_review_frontcover_extend_dim}{\c_zero_dim}}{ |
| 6701 |
\includegraphics[width=20mm]{\g_@@_bookreview_frontcover_tl} |
| 6702 |
} |
| 6703 |
} |
| 6704 |
} |
| 6705 |
}; |
| 6706 |
}, |
| 6707 |
_@@_tcb_book_review_box_style, |
| 6708 |
#1 |
| 6709 |
} |
| 6710 |
\DeclareTColorBox{_@@_bibliography_tcbox}{ O{} } |
| 6711 |
{ |
| 6712 |
_@@_tcb_bibliography_style, |
| 6713 |
#1 |
| 6714 |
} |
| 6715 |
\DeclareTColorBox{_@@_minibiographies_acknowledgements_tcbox}{ O{} } |
| 6716 |
{ |
| 6717 |
_@@_tcb_minibiographies_acknowledgements_style, |
| 6718 |
#1 |
| 6719 |
} |
| 6720 |
% \end{macrocode} |
| 6721 |
% |
| 6722 |
% We provide a public environment ×inset× for insets that has the same layout as |
| 6723 |
% minibiographies and acknowledgements. Its layout is based upon \pkg{tcolorbox} |
| 6724 |
% features. |
| 6725 |
% \begin{macrocode} |
| 6726 |
\DeclareTColorBox{inset}{ O{} } |
| 6727 |
{ |
| 6728 |
_@@_tcb_minibiographies_acknowledgements_style, |
| 6729 |
#1 |
| 6730 |
} |
| 6731 |
% \end{macrocode} |
| 6732 |
% |
| 6733 |
% We create a ×bookreview× environment for the book reviews. |
| 6734 |
% \begin{macrocode} |
| 6735 |
\NewDocumentEnvironment{bookreview}{ O{} m } |
| 6736 |
{ |
| 6737 |
\keys_set:nn { gzt/bookreview } { #2 } |
| 6738 |
\begin{_@@_book_review}[#1] |
| 6739 |
\xpatchfieldformat{title}{mkbibemph}{textbf}{}{} |
| 6740 |
\xpretonameformat{author}{\color{@@_people_color}}{}{} |
| 6741 |
\g_@@_blx_given_first_inits_false_tl |
| 6742 |
\noindent |
| 6743 |
\parbox[][21.5mm][l]{\linewidth}{\fullcite{\g_@@_bookreview_bibkey_tl}} |
| 6744 |
\tcblower |
| 6745 |
}{ |
| 6746 |
\begin{flushright} |
| 6747 |
% \g_@@_reviewer_tl |
| 6748 |
\bigskip |
| 6749 |
\citereviewer{\g_@@_bookreview_bibkey_tl}\\ |
| 6750 |
\citereviewerinstitution{\g_@@_bookreview_bibkey_tl} |
| 6751 |
\end{flushright} |
| 6752 |
% \vspace*{10mm} |
| 6753 |
\mbox{} |
| 6754 |
\end{_@@_book_review} |
| 6755 |
} |
| 6756 |
% \end{macrocode} |
| 6757 |
% |
| 6758 |
% \begin{macrocode} |
| 6759 |
\DeclareTColorBox{_@@_book_advertisement}{ O{} } |
| 6760 |
{ |
| 6761 |
_@@_tcb_book_advertisement_box_style, |
| 6762 |
#1 |
| 6763 |
} |
| 6764 |
\DeclareTColorBox{_@@_inside_cover_tcb}{ O{} } |
| 6765 |
{ |
| 6766 |
#1 |
| 6767 |
} |
| 6768 |
% \end{macrocode} |
| 6769 |
% |
| 6770 |
% We create a ×bookadvertisement× environment for the book advertisements. |
| 6771 |
% \begin{macrocode} |
| 6772 |
\NewDocumentCommand \bookadvertisement {O{} m} |
| 6773 |
{ |
| 6774 |
\newpage{} |
| 6775 |
\mbox{} |
| 6776 |
\vfill |
| 6777 |
\begin{_@@_book_advertisement}[#1] |
| 6778 |
\fullcite{#2} |
| 6779 |
\par |
| 6780 |
\bigskip |
| 6781 |
\tcblower |
| 6782 |
\includegraphics[height=22.5mm]{\c_@@_smf_logo_file_string_tl} |
| 6783 |
\par{} |
| 6784 |
\smallskip |
| 6785 |
\url{\l_@@_journal_url_tl} |
| 6786 |
\end{_@@_book_advertisement} |
| 6787 |
\vfill |
| 6788 |
\newpage |
| 6789 |
\bool_gset_false:N \g_@@_advertisement_bool |
| 6790 |
\bool_gset_true:N \g_@@_mainmatter_bool |
| 6791 |
} |
| 6792 |
% \end{macrocode} |
| 6793 |
% |
| 6794 |
% \begin{macrocode} |
| 6795 |
%</class|class-article> |
| 6796 |
% \end{macrocode} |
| 6797 |
% |
| 6798 |
% \begin{macrocode} |
| 6799 |
%<*class> |
| 6800 |
% \end{macrocode} |
| 6801 |
% |
| 6802 |
% We create a variant of the ×\input× macro which cleans the local |
| 6803 |
% customizations if any and, if necessary opens and closes the ×refsection× and |
| 6804 |
% ×multicols× environments. |
| 6805 |
% \begin{macrocode} |
| 6806 |
\NewDocumentCommand \gztinput { m m } { |
| 6807 |
\tl_gclear:N \g_@@_people_affiliation_tl |
| 6808 |
\tl_gclear:N \g_@@_people_email_tl |
| 6809 |
\tl_gclear:N \g_@@_people_minibio_tl |
| 6810 |
\tl_gclear:N \g_@@_people_photo_tl |
| 6811 |
\tl_gclear:N \g_@@_people_webpage_tl |
| 6812 |
\tl_clear:N \l_@@_article_acknowledgements_tl |
| 6813 |
\startcustomization |
| 6814 |
\bool_if:NF {\g_@@_refsection_bool} { |
| 6815 |
\begin{refsection} |
| 6816 |
} |
| 6817 |
\bool_if:NF { \g_@@_backcover_bool } { |
| 6818 |
\tl_if_in:NnT |
| 6819 |
{ \c_@@_advertisement_directory_string_tl } { #1 } { |
| 6820 |
\newpage |
| 6821 |
\thispagestyle{@@_advertisement_ps} |
| 6822 |
} |
| 6823 |
} |
| 6824 |
\inputfrom{#1}{#2} |
| 6825 |
\bool_if:NT {\g_@@_multicols_bool} { |
| 6826 |
\end{multicols} |
| 6827 |
} |
| 6828 |
\bool_if:NT {\g_@@_refsection_bool} { |
| 6829 |
\end{refsection} |
| 6830 |
} |
| 6831 |
\cleancustomization |
| 6832 |
} |
| 6833 |
% \end{macrocode} |
| 6834 |
% |
| 6835 |
% If we don't ask the cover page (only), the inside back cover and back cover |
| 6836 |
% pages are automatically included at the end of the document, the former |
| 6837 |
% containing some condensed instructions to authors. But, this cannot be done |
| 6838 |
% within ×\AddToHook{enddocument}× and ×\preto\@enddocumenthook× should be used |
| 6839 |
% instead (see \url{https://tex.stackexchange.com/q/240318/18401}). (Update |
| 6840 |
% (2021-02-14): we now rely on the new ×\AddToHook{env/document/end}×.) (Update |
| 6841 |
% (2021-12-16): we have to be more carefull with the hooks, see |
| 6842 |
% \url{https://github.com/plk/biblatex/issues/1197}.) |
| 6843 |
% \begin{macrocode} |
| 6844 |
\DeclareHookRule{enddocument}{citations}{before}{biblatex} |
| 6845 |
\bool_if:NF {\g_@@_coverpage_bool} { |
| 6846 |
\bool_if:NF {\g_@@_inside_pages_bool} { |
| 6847 |
\AddToHook{enddocument}[citations]{ |
| 6848 |
\bool_gset_true:N \g_@@_backmatter_bool |
| 6849 |
\g_@@_display_inside_backcover_tl |
| 6850 |
\newpage |
| 6851 |
\g_@@_display_backcover_tl |
| 6852 |
} |
| 6853 |
} |
| 6854 |
} |
| 6855 |
% \end{macrocode} |
| 6856 |
% |
| 6857 |
% If we don't ask the cover page (only), the document total page numbers should |
| 6858 |
% be a multiple of four and we add the necessary and sufficient number of blank |
| 6859 |
% pages if it isn't the case (code borrowed from |
| 6860 |
% \url{https://tex.stackexchange.com/a/83498/18401}). |
| 6861 |
% \begin{macrocode} |
| 6862 |
\bool_if:NF {\g_@@_coverpage_bool} { |
| 6863 |
\bool_if:nF { \g_@@_for_authors_bool } { |
| 6864 |
\bool_if:nT { \g_@@_inside_pages_bool } { |
| 6865 |
\AddToHook{enddocument}{ |
| 6866 |
\prg_replicate:nn |
| 6867 |
{ \int_mod:nn { 4 - \int_mod:nn { \getpagerefnumber{LastPage} } { 4 } } { 4 } } |
| 6868 |
{ \thispagestyle{@@_blank_pages_ps}\null\clearpage } |
| 6869 |
} |
| 6870 |
} |
| 6871 |
} |
| 6872 |
} |
| 6873 |
% \end{macrocode} |
| 6874 |
% |
| 6875 |
% \begin{macrocode} |
| 6876 |
%</class> |
| 6877 |
% \end{macrocode} |
| 6878 |
% |
| 6879 |
% \begin{macrocode} |
| 6880 |
%<*class-article> |
| 6881 |
% \end{macrocode} |
| 6882 |
% |
| 6883 |
% \begin{macrocode} |
| 6884 |
\ProcessKeysOptions { gztarticle } |
| 6885 |
% \end{macrocode} |
| 6886 |
% |
| 6887 |
% \begin{macrocode} |
| 6888 |
\AddToHook{enddocument}{ |
| 6889 |
\bool_if:NT {\g_@@_multicols_bool} { |
| 6890 |
\end{multicols} |
| 6891 |
} |
| 6892 |
\bool_if:NT {\g_@@_refsection_bool} { |
| 6893 |
\end{refsection} |
| 6894 |
} |
| 6895 |
} |
| 6896 |
% \end{macrocode} |
| 6897 |
% |
| 6898 |
% \begin{macrocode} |
| 6899 |
%</class-article> |
| 6900 |
% \end{macrocode} |
| 6901 |
% |
| 6902 |
% \begin{macrocode} |
| 6903 |
%<*class|class-article> |
| 6904 |
% \end{macrocode} |
| 6905 |
% |
| 6906 |
% \subsection{Miscellaneous settings} |
| 6907 |
% |
| 6908 |
% We gather here miscellaneous settings. |
| 6909 |
% |
| 6910 |
% \subsubsection{Related to \texorpdfstring{\Pkg{pgfplots}}{pgfplots}} |
| 6911 |
% |
| 6912 |
% (French) Numbers format: |
| 6913 |
% \begin{macrocode} |
| 6914 |
\pgfplotsset{ |
| 6915 |
/pgf/number~ format/.cd, |
| 6916 |
use~ comma, |
| 6917 |
1000~ sep={\,}, |
| 6918 |
min~ exponent~ for~ 1000~ sep=4 |
| 6919 |
} |
| 6920 |
% \end{macrocode} |
| 6921 |
% |
| 6922 |
% \subsubsection{Related to \texorpdfstring{\Pkg{biblatex}}{biblatex}} |
| 6923 |
% |
| 6924 |
% \begin{macrocode} |
| 6925 |
\defbibheading{bibassection}[\bibname]{\section*{#1}} |
| 6926 |
\renewcommand{\bibfont}{\normalfont\footnotesize} |
| 6927 |
% \end{macrocode} |
| 6928 |
% |
| 6929 |
% As bibiliographic resource, we add the file of the current issue. |
| 6930 |
% \begin{macrocode} |
| 6931 |
\exp_after:wN\addbibresource\exp_after:wN{\c_@@_issue_bib_path_string_tl} |
| 6932 |
% \end{macrocode} |
| 6933 |
% |
| 6934 |
% We create a name format that prints the initial(s) of the first name(s) before |
| 6935 |
% last name of a cited author. |
| 6936 |
% \begin{macrocode} |
| 6937 |
\@ifpackagelater{biblatex}{2016/01/01}{ |
| 6938 |
\DeclareNameFormat{giveninits-last}{ |
| 6939 |
\nameparts{#1} |
| 6940 |
\usebibmacro{name:given-family} |
| 6941 |
{\namepartfamily} |
| 6942 |
{\namepartgiveni} |
| 6943 |
{\namepartprefix} |
| 6944 |
{\namepartsuffix} |
| 6945 |
\usebibmacro{name:andothers} |
| 6946 |
} |
| 6947 |
}{ |
| 6948 |
\DeclareNameFormat{giveninits-last}{ |
| 6949 |
\usebibmacro{name:first-last}{#1}{#4}{#5}{#7} |
| 6950 |
\usebibmacro{name:andothers} |
| 6951 |
} |
| 6952 |
} |
| 6953 |
\DeclareNameAlias{labelname}{giveninits-last} |
| 6954 |
% \end{macrocode} |
| 6955 |
% |
| 6956 |
% We ensure the space between initial(s) and last name is unbreakable. |
| 6957 |
% \begin{macrocode} |
| 6958 |
\renewcommand*\bibnamedelimc{\addnbspace} |
| 6959 |
\renewcommand*\bibnamedelimd{\addnbspace} |
| 6960 |
% \end{macrocode} |
| 6961 |
% |
| 6962 |
% \begin{macrocode} |
| 6963 |
\renewbibmacro{in:}{ |
| 6964 |
\ifentrytype{article}{}{\printtext{\bibstring{in}\intitlepunct}}} |
| 6965 |
\renewbibmacro*{journal}{ |
| 6966 |
\iffieldundef{shortjournal} |
| 6967 |
{ |
| 6968 |
\iffieldundef{journaltitle} |
| 6969 |
{} |
| 6970 |
{ |
| 6971 |
\printtext[journaltitle] |
| 6972 |
{ |
| 6973 |
\printfield[titlecase]{journaltitle} |
| 6974 |
\setunit{\subtitlepunct} |
| 6975 |
\printfield[titlecase]{journalsubtitle} |
| 6976 |
} |
| 6977 |
} |
| 6978 |
} |
| 6979 |
{\printtext[journaltitle]{\printfield[titlecase]{shortjournal}}} |
| 6980 |
} |
| 6981 |
\renewbibmacro*{volume+number+eid}{ |
| 6982 |
\printfield{volume} |
| 6983 |
\setunit{\addcomma\c_space_tl} |
| 6984 |
\printfield{number} |
| 6985 |
\setunit{\addcomma\c_space_tl} |
| 6986 |
\printfield{eid}} |
| 6987 |
\DeclareFieldFormat[article]{volume}{\mkbibbold{#1}} |
| 6988 |
\DeclareFieldFormat[book]{volume}{\mkbibbold{#1}} |
| 6989 |
\DeclareFieldFormat[article]{number}{\bibstring{number}#1} |
| 6990 |
\DeclareLanguageMapping{french}{gzt} |
| 6991 |
% \end{macrocode} |
| 6992 |
% |
| 6993 |
% \subsubsection{Related to \texorpdfstring{\Pkg{kpfonts}}{kpfonts}} |
| 6994 |
% |
| 6995 |
% We replace the \pkg{kpfonts}' \enquote{mathfrak} by the one from |
| 6996 |
% \enquote{eufrak}, as the former doesn't provide Euler Fraktur digits. |
| 6997 |
% \begin{macrocode} |
| 6998 |
\DeclareMathAlphabet\mathfrak{U}{euf}{m}{n} |
| 6999 |
\SetMathAlphabet\mathfrak{bold}{U}{euf}{b}{n} |
| 7000 |
% \end{macrocode} |
| 7001 |
% |
| 7002 |
% \subsubsection{Related to \texorpdfstring{\Pkg{draftwatermark}}{draftwatermark}} |
| 7003 |
% |
| 7004 |
% \begin{macrocode} |
| 7005 |
\@ifpackageloaded{draftwatermark}{ |
| 7006 |
\SetWatermarkColor{gray!10} |
| 7007 |
\SetWatermarkFontSize{30mm} |
| 7008 |
\SetWatermarkText{\text_uppercase:n{\c_@@_draftwatermark_string_tl}} |
| 7009 |
}{ |
| 7010 |
} |
| 7011 |
% \end{macrocode} |
| 7012 |
% |
| 7013 |
% \subsubsection{Related to \texorpdfstring{\Pkg{TikZ}}{TikZ}} |
| 7014 |
% |
| 7015 |
% \begin{macrocode} |
| 7016 |
\tikzset{ |
| 7017 |
_@@_dots/.style={ |
| 7018 |
line~ width=\c_@@_tikz_dot_diameter_dim, |
| 7019 |
line~ cap=round, |
| 7020 |
dash~ pattern=on~ 0pt~ off~ \c_@@_tikz_dot_spacing_dim |
| 7021 |
}, |
| 7022 |
_@@_tcb_segmentation_style/.style={ |
| 7023 |
_@@_dots, |
| 7024 |
draw=@@_dotfill_color, |
| 7025 |
shorten~ >=~ \c_@@_tcb_left_dim+\c_@@_tcb_boxsep_dim, |
| 7026 |
shorten~ <=~ \c_@@_tcb_left_dim+\c_@@_tcb_boxsep_dim, |
| 7027 |
} |
| 7028 |
} |
| 7029 |
% \end{macrocode} |
| 7030 |
% |
| 7031 |
% \subsubsection{Related to \texorpdfstring{\Pkg{tcolorbox}}{tcolorbox}} |
| 7032 |
% |
| 7033 |
% We set some styles for |
| 7034 |
% \begin{itemize} |
| 7035 |
% \item the two public environments ×gztfigure(*)× and ×gzttable(*)× for the |
| 7036 |
% usual floats, |
| 7037 |
% \item the book reviews, |
| 7038 |
% \item the book advertisements, |
| 7039 |
% \item the inside frontcover, |
| 7040 |
% \end{itemize} |
| 7041 |
% whom layout is based upon \pkg{tcolorbox} features. |
| 7042 |
% \begin{macrocode} |
| 7043 |
\tcbset{ |
| 7044 |
copyright/.style={ |
| 7045 |
overlay={ |
| 7046 |
\node[rotate=90,anchor=south~ west,font=\tiny] at (frame.south~ east) { |
| 7047 |
\begin{minipage}[t]{\tcbtextheight} |
| 7048 |
\copyright{}~ #1 |
| 7049 |
\end{minipage} |
| 7050 |
}; |
| 7051 |
} |
| 7052 |
} |
| 7053 |
} |
| 7054 |
\tcbset{ |
| 7055 |
_@@_tcb_floats_style/.style={ |
| 7056 |
enhanced |
| 7057 |
,every~ float=\centering |
| 7058 |
,coltitle=@@_generic_dark_color |
| 7059 |
,colbacktitle=@@_float_title_bg_color |
| 7060 |
,colback=white |
| 7061 |
,colframe=@@_float_frame_color |
| 7062 |
,center~ upper |
| 7063 |
,sharp~ corners=all |
| 7064 |
,boxrule=0.3mm |
| 7065 |
} |
| 7066 |
} |
| 7067 |
\tcbset{ |
| 7068 |
_@@_tcb_notitle/.style={ |
| 7069 |
blend~ before~ title~ code={##1} |
| 7070 |
,title={\c_space_tl} |
| 7071 |
} |
| 7072 |
} |
| 7073 |
\tcbset{ |
| 7074 |
_@@_tcb_book_review_box_style/.style={ |
| 7075 |
enhanced, |
| 7076 |
colback=@@_book_review_frame_bg_color, |
| 7077 |
breakable, |
| 7078 |
use~ color~ stack, |
| 7079 |
% height=50mm, |
| 7080 |
boxrule=\c_zero_dim, |
| 7081 |
sharp~ corners=all, |
| 7082 |
skin=enhancedlast, |
| 7083 |
leftupper=25mm, |
| 7084 |
enlarge~ bottom~ finally~ by=-1mm, |
| 7085 |
middle=4mm, |
| 7086 |
segmentation~ style={_@@_tcb_segmentation_style} |
| 7087 |
} |
| 7088 |
} |
| 7089 |
\tcbset{ |
| 7090 |
_@@_tcb_book_advertisement_box_style/.style={ |
| 7091 |
enhanced, |
| 7092 |
colframe=@@_book_advertisement_frame_color, |
| 7093 |
colback=@@_book_advertisement_bg_color, |
| 7094 |
center~ lower, |
| 7095 |
sharp~ corners=all, |
| 7096 |
% skin=enhancedlast, |
| 7097 |
% middle=4mm, |
| 7098 |
lower~ separated=false, |
| 7099 |
% segmentation~ style={_@@_tcb_segmentation_style} |
| 7100 |
} |
| 7101 |
} |
| 7102 |
\tcbset{ |
| 7103 |
_@@_tcb_inside_cover_style/.style={ |
| 7104 |
% split=0.6, |
| 7105 |
colback=@@_inside_frontcover_frame_bg_color, |
| 7106 |
colbacktitle=@@_inside_frontcover_frame_bg_color, |
| 7107 |
sharp~ corners=all, |
| 7108 |
center~ title, |
| 7109 |
coltitle=@@_inside_frontcover_frame_title_color, |
| 7110 |
fonttitle=\bfseries\large, |
| 7111 |
boxrule=\c_zero_dim, |
| 7112 |
toptitle=3mm, |
| 7113 |
bottomtitle=4mm, |
| 7114 |
frame~ hidden, |
| 7115 |
enhanced, |
| 7116 |
height=\c_@@_layoutheight_dim-\c_@@_topmargin_inside_cover_dim-\c_@@_botmargin_dim, |
| 7117 |
width=\c_@@_inside_cover_box_width_dim, |
| 7118 |
middle=4mm, |
| 7119 |
segmentation~ style={_@@_tcb_segmentation_style} |
| 7120 |
}, |
| 7121 |
_@@_tcb_inside_frontcover_style/.style={ |
| 7122 |
_@@_tcb_inside_cover_style, |
| 7123 |
enlarge~ left~ by=-\c_@@_inside_cover_offset_dim, |
| 7124 |
}, |
| 7125 |
_@@_tcb_inside_backcover_style/.style={ |
| 7126 |
_@@_tcb_inside_cover_style, |
| 7127 |
enlarge~ left~ by=\c_@@_inside_cover_offset_dim, |
| 7128 |
} |
| 7129 |
} |
| 7130 |
\AddToHook{begindocument/before}{ |
| 7131 |
\bool_if:NTF {\g_@@_special_edition_bool} { |
| 7132 |
\tcbset{ |
| 7133 |
_@@_tcb_inside_frontcover_style/.append~ style={ |
| 7134 |
title=\c_@@_special_edition_editorial_board_string_tl |
| 7135 |
}, |
| 7136 |
_@@_tcb_inside_backcover_style/.append~ style={ |
| 7137 |
notitle |
| 7138 |
}, |
| 7139 |
} |
| 7140 |
}{ |
| 7141 |
\tcbset{ |
| 7142 |
_@@_tcb_inside_frontcover_style/.append~ style={ |
| 7143 |
title=\c_@@_editorial_board_string_tl |
| 7144 |
}, |
| 7145 |
_@@_tcb_inside_backcover_style/.append~ style={ |
| 7146 |
title=\file_if_exist:nT { \c_@@_authors_instructions_file_tl } { |
| 7147 |
\c_@@_authors_instructions_string_tl |
| 7148 |
} |
| 7149 |
}, |
| 7150 |
} |
| 7151 |
} |
| 7152 |
} |
| 7153 |
\tcbset{ |
| 7154 |
_@@_tcb_bibliography_style/.style={ |
| 7155 |
colback=@@_bibliography_minibios_acknowledgements_bg_color, |
| 7156 |
breakable, |
| 7157 |
use~ color~ stack, |
| 7158 |
boxrule=\c_zero_dim, |
| 7159 |
sharp~ corners=all, |
| 7160 |
enhanced |
| 7161 |
} |
| 7162 |
} |
| 7163 |
\tcbset{ |
| 7164 |
_@@_tcb_minibiographies_acknowledgements_style/.style={ |
| 7165 |
colback=@@_bibliography_minibios_acknowledgements_bg_color, |
| 7166 |
breakable, |
| 7167 |
use~ color~ stack, |
| 7168 |
boxrule=\c_zero_dim, |
| 7169 |
extras~ unbroken~ and~ last={drop~ lifted~ shadow}, |
| 7170 |
sharp~ corners=all, |
| 7171 |
skin=enhancedlast, |
| 7172 |
height~ fixed~ for=middle, |
| 7173 |
} |
| 7174 |
} |
| 7175 |
\tcbset{ |
| 7176 |
enlargepage~ flexible=\baselineskip, |
| 7177 |
left=\c_@@_tcb_left_dim, |
| 7178 |
boxsep=\c_@@_tcb_boxsep_dim, |
| 7179 |
} |
| 7180 |
% \end{macrocode} |
| 7181 |
% |
| 7182 |
% \subsubsection{Lists} |
| 7183 |
% |
| 7184 |
% We now set the lists layout in order to benefit from \Pkg{enumitem}'s features |
| 7185 |
% and preserve the layout from \pkg{frenchb}. |
| 7186 |
% \begin{macrocode} |
| 7187 |
\setlist[1]{labelindent=\parindent} |
| 7188 |
\setlist[itemize]{label=\textendash{}, nosep} |
| 7189 |
\setlist{ |
| 7190 |
labelwidth=\widthof{\textendash}, |
| 7191 |
itemsep=0.4ex plus 0.2ex minus 0.2ex, |
| 7192 |
parsep=0.4ex plus 0.2ex minus 0.2ex, |
| 7193 |
topsep=0.8ex plus 0.4ex minus 0.4ex, |
| 7194 |
partopsep=0.4ex plus 0.2ex minus 0.2ex, |
| 7195 |
leftmargin=! |
| 7196 |
} |
| 7197 |
% \end{macrocode} |
| 7198 |
% |
| 7199 |
% \begin{macrocode} |
| 7200 |
\setlist[description]{ |
| 7201 |
font= |
| 7202 |
\bool_if:nTF { \g_@@_books_rubric_bool || \g_@@_inside_frontcover_bool || \g_@@_inside_backcover_bool } |
| 7203 |
{ |
| 7204 |
\color{black} |
| 7205 |
}{ |
| 7206 |
\color{@@_description_label_light_color} |
| 7207 |
} |
| 7208 |
\bfseries |
| 7209 |
} |
| 7210 |
% \end{macrocode} |
| 7211 |
% |
| 7212 |
% \subsubsection{Miscellaneous} |
| 7213 |
% |
| 7214 |
% We fix the \pkg{csquotes}' quotes for PDF strings. |
| 7215 |
% \begin{macrocode} |
| 7216 |
\DeclarePlainStyle{«~ }{~ »}{`}{'} |
| 7217 |
% \end{macrocode} |
| 7218 |
% |
| 7219 |
% We change the default settings of the floats placement. |
| 7220 |
% \begin{macrocode} |
| 7221 |
\setcounter{topnumber}{3} |
| 7222 |
\renewcommand{\topfraction}{0.8} |
| 7223 |
% \end{macrocode} |
| 7224 |
% |
| 7225 |
% We change the default vertical space between text and footnotes. |
| 7226 |
% \begin{macrocode} |
| 7227 |
\addtolength{\skip\footins}{.25\baselineskip} |
| 7228 |
% \end{macrocode} |
| 7229 |
% |
| 7230 |
% We change the default horizontal space between columns in multicolumn mode. |
| 7231 |
% \begin{macrocode} |
| 7232 |
\setlength{\columnsep}{7mm} |
| 7233 |
% \end{macrocode} |
| 7234 |
% |
| 7235 |
% We change the way the section counter is displayed (the chapter should not appear). |
| 7236 |
% \begin{macrocode} |
| 7237 |
\renewcommand{\thesection}{\arabic{section}} |
| 7238 |
% \end{macrocode} |
| 7239 |
% |
| 7240 |
% In case \Pkg{siunitx} is loaded, we make it follow the French rules. |
| 7241 |
% \begin{macrocode} |
| 7242 |
\@ifpackageloaded{siunitx}{ |
| 7243 |
\sisetup{locale=FR} |
| 7244 |
} |
| 7245 |
% \end{macrocode} |
| 7246 |
% |
| 7247 |
% We change the color of the table rules. |
| 7248 |
% \begin{macrocode} |
| 7249 |
\arrayrulecolor{@@_arrayrule_color} |
| 7250 |
% \end{macrocode} |
| 7251 |
% |
| 7252 |
% We change the floating table name (as translated by the \pkg{french-babel} |
| 7253 |
% module from \Pkg{babel}) from \enquote{Table} to \enquote{Tableau}. |
| 7254 |
% \begin{macrocode} |
| 7255 |
\addto\captionsfrench{\def\tablename{{\scshape Tableau}}} |
| 7256 |
% \end{macrocode} |
| 7257 |
% |
| 7258 |
% \subsection{Miscellaneous (re)definitions} |
| 7259 |
% |
| 7260 |
% We gather here miscellaneous redefinitions. |
| 7261 |
% |
| 7262 |
% \subsubsection{Vectors} |
| 7263 |
% |
| 7264 |
% Vectors, even written with ×\vec×, are typeset with \pkg{esvect}'s ×\vv×: |
| 7265 |
% \begin{macrocode} |
| 7266 |
\RenewDocumentCommand \vec { m } { |
| 7267 |
\vv{#1} |
| 7268 |
} |
| 7269 |
% \end{macrocode} |
| 7270 |
% |
| 7271 |
% \begin{macro}{\usetikzlibrary} |
| 7272 |
% The ×\usetikzlibrary× switch is redefined in order to get rid of the bug |
| 7273 |
% reported here: \url{https://sourceforge.net/p/pgf/bugs/353/}. |
| 7274 |
% \begin{macrocode} |
| 7275 |
\cs_set_eq:NN \_@@_orig_usetikzlibrary \usetikzlibrary |
| 7276 |
\RenewDocumentCommand \usetikzlibrary { m } { |
| 7277 |
\shorthandoff{:} |
| 7278 |
\_@@_orig_usetikzlibrary{#1} |
| 7279 |
\shorthandon{:} |
| 7280 |
% \begingroup |
| 7281 |
% \NoAutoSpacing |
| 7282 |
% \_@@_orig_usetikzlibrary{#1} |
| 7283 |
% \endgroup |
| 7284 |
} |
| 7285 |
% \end{macrocode} |
| 7286 |
% \end{macro} |
| 7287 |
% |
| 7288 |
% \subsubsection{Usual theorems and the like} |
| 7289 |
% |
| 7290 |
% Some usual theorems and the like are defined, thanks to \Pkg{thmtools}. First, |
| 7291 |
% we define a private function ×\_@@_new_theorem× that defines: |
| 7292 |
% \begin{enumerate} |
| 7293 |
% \item a new (private, \pkg{thmtools}) theorem with 4 arguments: |
| 7294 |
% \begin{enumerate} |
| 7295 |
% \item possible additional options to the style ×_@@_tcb_alltheorems_style× |
| 7296 |
% defined earlier for all \enquote{theorems}, |
| 7297 |
% \item name of the (private) \pkg{thmtools} theorem, |
| 7298 |
% \item French title for this theorem, |
| 7299 |
% \item English title for this theorem. |
| 7300 |
% \end{enumerate} |
| 7301 |
% \item a public environment based on this private theorem with a the usual |
| 7302 |
% syntax of \pkg{amsthm} theorems, except it has an optional argument for |
| 7303 |
% possible additional options to the default styles (×theorem× or |
| 7304 |
% ×definition×). |
| 7305 |
% \end{enumerate} |
| 7306 |
% |
| 7307 |
% \begin{macro}{\_@@_bilingual} |
| 7308 |
% \begin{macrocode} |
| 7309 |
\cs_new_protected:Nn \_@@_bilingual:nnn |
| 7310 |
{ |
| 7311 |
\deftranslation[to=French]{#1}{#2} |
| 7312 |
\deftranslation[to=English]{#1}{#3} |
| 7313 |
} |
| 7314 |
% \end{macrocode} |
| 7315 |
% \end{macro} |
| 7316 |
% |
| 7317 |
% \begin{macrocode} |
| 7318 |
\cs_new_protected:Nn \_@@_new_theorem:nnnn |
| 7319 |
{ |
| 7320 |
% \_@@_bilingual:nnn {#2}{#3}{#4} |
| 7321 |
\deftranslation[to=French]{#2}{#3} |
| 7322 |
\deftranslation[to=English]{#2}{#4} |
| 7323 |
\declaretheorem[ |
| 7324 |
#1, |
| 7325 |
name=\translate{#2} |
| 7326 |
]{#2} |
| 7327 |
\declaretheorem[ |
| 7328 |
#1, |
| 7329 |
name=\translate{#2}, |
| 7330 |
numbered=no |
| 7331 |
]{#2*} |
| 7332 |
} |
| 7333 |
\cs_generate_variant:Nn \_@@_new_theorem:nnnn { nnVV } |
| 7334 |
\declaretheoremstyle[spaceabove=3pt,notefont=\bfseries,bodyfont=\itshape]{theorem} |
| 7335 |
\declaretheoremstyle[spaceabove=3pt,notefont=\bfseries,bodyfont=\normalfont]{definition} |
| 7336 |
\declaretheoremstyle[spaceabove=3pt,bodyfont=\normalfont, |
| 7337 |
qed=\ensuremath{\qedsymbol},headfont=\normalfont\itshape,numbered=no]{proof} |
| 7338 |
% \end{macrocode} |
| 7339 |
% |
| 7340 |
% Then, we define a public command, similar to ×\newtheorem×, based on |
| 7341 |
% ×\_@@_new_theorem×, that lets the user define his own theorems: |
| 7342 |
% \begin{macrocode} |
| 7343 |
\RenewDocumentCommand \newtheorem { O{} m } |
| 7344 |
{ |
| 7345 |
\tl_clear:N \l_@@_newtheorem_style_tl |
| 7346 |
\tl_clear:N \l_@@_newtheorem_frenchtitle_tl |
| 7347 |
\tl_clear:N \l_@@_newtheorem_englishtitle_tl |
| 7348 |
\tl_set:Nn \l_@@_newtheorem_englishtitle_tl { |
| 7349 |
\text_titlecase_first:n {#2} |
| 7350 |
} |
| 7351 |
\tl_set:Nf \l_@@_newtheorem_frenchtitle_tl { |
| 7352 |
\l_@@_newtheorem_englishtitle_tl |
| 7353 |
} |
| 7354 |
\tl_set:Nn \l_@@_newtheorem_style_tl { |
| 7355 |
theorem |
| 7356 |
} |
| 7357 |
\IfNoValueF {#1} |
| 7358 |
{ |
| 7359 |
\keys_set:nn { gzt/newtheorem } { #1 } |
| 7360 |
} |
| 7361 |
% \tl_if_eq:VVF { \l_@@_newtheorem_englishtitle_tl } { \MakeUppercase #2 } |
| 7362 |
% { |
| 7363 |
% \tl_if_eq:NNF { \l_@@_newtheorem_frenchtitle_tl } { \l_@@_newtheorem_englishtitle_tl } |
| 7364 |
% { |
| 7365 |
% \tl_set:Nf \l_@@_newtheorem_frenchtitle_tl { |
| 7366 |
% \l_@@_newtheorem_englishtitle_tl |
| 7367 |
% } |
| 7368 |
% } |
| 7369 |
% } |
| 7370 |
\_@@_new_theorem:nnVV |
| 7371 |
{style=\l_@@_newtheorem_style_tl} |
| 7372 |
{#2} |
| 7373 |
{\l_@@_newtheorem_frenchtitle_tl} |
| 7374 |
{\l_@@_newtheorem_englishtitle_tl} |
| 7375 |
} |
| 7376 |
% \end{macrocode} |
| 7377 |
% |
| 7378 |
% Finally, we define some usual theorems: |
| 7379 |
% \begin{macrocode} |
| 7380 |
\newtheorem[frenchtitle=Th\'eor\`eme]{theorem} |
| 7381 |
% \newtheorem[frenchtitle=Th\'eor\`eme,englishtitle=Theorem]{theoreme} |
| 7382 |
\newtheorem[frenchtitle=Corollaire]{corollary} |
| 7383 |
% \newtheorem[englishtitle=corollary]{corollaire} |
| 7384 |
\newtheorem{conjecture} |
| 7385 |
\newtheorem{proposition} |
| 7386 |
\newtheorem[frenchtitle=Lemme]{lemma} |
| 7387 |
% \newtheorem[englishtitle=Lemma]{lemme} |
| 7388 |
\newtheorem[frenchtitle=Axiome]{axiom} |
| 7389 |
% \newtheorem[englishtitle=Axiom]{axiome} |
| 7390 |
% |
| 7391 |
\newtheorem[style=definition,frenchtitle=D\'efinition]{definition} |
| 7392 |
\newtheorem[style=definition,frenchtitle=Remarque]{remark} |
| 7393 |
\newtheorem[style=definition,frenchtitle=Exemple]{example} |
| 7394 |
\newtheorem[style=definition]{notation} |
| 7395 |
% |
| 7396 |
\let\proof\relax |
| 7397 |
\newtheorem[style=proof,frenchtitle=Preuve]{proof} |
| 7398 |
% |
| 7399 |
\cs_new_protected:Nn \_@@_clone_theorem:nn |
| 7400 |
{ |
| 7401 |
\NewDocumentEnvironment{#1}{} |
| 7402 |
{ |
| 7403 |
\begin{#2} |
| 7404 |
} |
| 7405 |
{ |
| 7406 |
\end{#2} |
| 7407 |
} |
| 7408 |
\NewDocumentEnvironment{#1*}{} |
| 7409 |
{ |
| 7410 |
\begin{#2*} |
| 7411 |
} |
| 7412 |
{ |
| 7413 |
\end{#2*} |
| 7414 |
} |
| 7415 |
} |
| 7416 |
\_@@_clone_theorem:nn {theoreme} {theorem} |
| 7417 |
\_@@_clone_theorem:nn {corollaire}{corollary} |
| 7418 |
\_@@_clone_theorem:nn {lemme}{lemma} |
| 7419 |
\_@@_clone_theorem:nn {axiome}{axiom} |
| 7420 |
\_@@_clone_theorem:nn {remarque}{remark} |
| 7421 |
\_@@_clone_theorem:nn {exemple}{example} |
| 7422 |
\_@@_clone_theorem:nn {preuve}{proof} |
| 7423 |
% \end{macrocode} |
| 7424 |
% |
| 7425 |
% \subsubsection{(Reciprocal) Trigonometric and hyperbolic functions} |
| 7426 |
% |
| 7427 |
% Reciprocal trigonometric functions, even written with usual ×\arccos×, |
| 7428 |
% ×\arcsin×, ×\arctan×, etc. are typeset with an uppercase \enquote{A}: |
| 7429 |
% \begin{macrocode} |
| 7430 |
\DeclareMathOperator{\cotan}{cotan} |
| 7431 |
\DeclareMathOperator{\Arccos}{Arccos} |
| 7432 |
\DeclareMathOperator{\Arcsin}{Arcsin} |
| 7433 |
\DeclareMathOperator{\Arctan}{Arctan} |
| 7434 |
\DeclareMathOperator{\Argch}{Argch} |
| 7435 |
\DeclareMathOperator{\Argsh}{Argsh} |
| 7436 |
\DeclareMathOperator{\Argth}{Argth} |
| 7437 |
\cs_set_eq:NN \_@@_orig_arccos \arccos |
| 7438 |
\cs_set_eq:NN \_@@_orig_arcsin \arcsin |
| 7439 |
\cs_set_eq:NN \_@@_orig_arctan \arctan |
| 7440 |
\RenewDocumentCommand \arccos {} { |
| 7441 |
\IfLanguageName {french}{\Arccos}{\_@@_orig_arccos} |
| 7442 |
} |
| 7443 |
\RenewDocumentCommand \arcsin {} { |
| 7444 |
\IfLanguageName {french}{\Arcsin}{\_@@_orig_arcsin} |
| 7445 |
} |
| 7446 |
\RenewDocumentCommand \arctan {} { |
| 7447 |
\IfLanguageName {french}{\Arctan}{\_@@_orig_arctan} |
| 7448 |
} |
| 7449 |
\DeclareMathOperator{\ch}{ch} |
| 7450 |
\DeclareMathOperator{\sh}{sh} |
| 7451 |
\cs_set_eq:NN \_@@_orig_tanh \tanh |
| 7452 |
\RenewDocumentCommand \tanh {} { |
| 7453 |
\IfLanguageName {french}{\operatorname{th}}{\_@@_orig_tanh} |
| 7454 |
} |
| 7455 |
\cs_set_eq:NN \_@@_orig_log \log |
| 7456 |
\cs_set_eq:NN \_@@_orig_lg \lg |
| 7457 |
\RenewDocumentCommand \log { s } { |
| 7458 |
\IfBooleanTF {#1} |
| 7459 |
{ |
| 7460 |
\_@@_orig_log |
| 7461 |
} |
| 7462 |
{ |
| 7463 |
\ln |
| 7464 |
} |
| 7465 |
} |
| 7466 |
\RenewDocumentCommand \lg { s } { |
| 7467 |
\IfBooleanTF {#1} |
| 7468 |
{ |
| 7469 |
\_@@_orig_lg |
| 7470 |
} |
| 7471 |
{ |
| 7472 |
\ln |
| 7473 |
} |
| 7474 |
} |
| 7475 |
\cs_set_eq:NN \_@@_orig_leq \leq |
| 7476 |
\cs_set_eq:NN \_@@_orig_geq \geq |
| 7477 |
\RenewDocumentCommand \le {} { |
| 7478 |
\IfLanguageName {french}{\leqslant}{\_@@_orig_leq} |
| 7479 |
} |
| 7480 |
\RenewDocumentCommand \leq {} { |
| 7481 |
\IfLanguageName {french}{\leqslant}{\_@@_orig_leq} |
| 7482 |
} |
| 7483 |
\RenewDocumentCommand \ge {} { |
| 7484 |
\IfLanguageName {french}{\geqslant}{\_@@_orig_geq} |
| 7485 |
} |
| 7486 |
\RenewDocumentCommand \geq {} { |
| 7487 |
\IfLanguageName {french}{\geqslant}{\_@@_orig_geq} |
| 7488 |
} |
| 7489 |
\NewDocumentCommand \N {} {\mathbb{N}} |
| 7490 |
\NewDocumentCommand \Z {} {\mathbb{Z}} |
| 7491 |
\NewDocumentCommand \D {} {\mathbb{D}} |
| 7492 |
\NewDocumentCommand \Q {} {\mathbb{Q}} |
| 7493 |
\NewDocumentCommand \R {} {\mathbb{R}} |
| 7494 |
\NewDocumentCommand \C {} {\mathbb{C}} |
| 7495 |
\NewDocumentCommand \K {} {\mathbb{K}} |
| 7496 |
% \end{macrocode} |
| 7497 |
% |
| 7498 |
% We define a token list variable that contains the color of the description |
| 7499 |
% labels because it won't be constant but will be: |
| 7500 |
% \begin{itemize} |
| 7501 |
% \item black in the front matter and in the books rubric |
| 7502 |
% \end{itemize} |
| 7503 |
% |
| 7504 |
% We now leave the \LaTeX3{} programming environment. |
| 7505 |
% \begin{macrocode} |
| 7506 |
% \ExplSyntaxOff |
| 7507 |
% \end{macrocode} |
| 7508 |
% |
| 7509 |
% \begin{macrocode} |
| 7510 |
%</class|class-article> |
| 7511 |
% \end{macrocode} |
| 7512 |
% |
| 7513 |
% \subsection{Initial configuration file} |
| 7514 |
% Before the code of the \Class{gzt} by itself, we give the initial configuration |
| 7515 |
% file. |
| 7516 |
% |
| 7517 |
% \begin{macrocode} |
| 7518 |
%<*configuration> |
| 7519 |
% \end{macrocode} |
| 7520 |
% |
| 7521 |
% \begin{macrocode} |
| 7522 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 7523 |
%% Journal data |
| 7524 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 7525 |
\journalsetup{ |
| 7526 |
publisher = \smf, |
| 7527 |
address = Institut Henri Poincar\'e\newline |
| 7528 |
11 rue Pierre et Marie Curie\newline |
| 7529 |
75231 Paris cedex 05, |
| 7530 |
phone = 01 44 27 67 96, |
| 7531 |
fax = 01 40 46 90 96, |
| 7532 |
email = [email protected], |
| 7533 |
url = https://smf.emath.fr, |
| 7534 |
issn = 0224-8999 |
| 7535 |
} |
| 7536 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 7537 |
%% SMF President |
| 7538 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 7539 |
\president{Seuret, Stéphane}{}{} |
| 7540 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 7541 |
%% Editor in chief |
| 7542 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 7543 |
\editorinchief{Adamczewski, Boris}{Institut de Mathématiques de Marseille}{[email protected]} |
| 7544 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 7545 |
%% Editors |
| 7546 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 7547 |
\editor{Colin, Vincent}{Université de Nantes}{[email protected]} |
| 7548 |
\editor{Ehrhardt, Caroline}{Université Vincennes Saint-Denis}{[email protected]} |
| 7549 |
\editor{Gayet, Damien}{Institut Fourier, Grenoble}{[email protected]} |
| 7550 |
\editor{Gouëzel, Sébastien}{Université Rennes 1}{[email protected]} |
| 7551 |
\editor{Helffer, Bernard}{Université Paris-Sud}{[email protected]} |
| 7552 |
\editor{Loidreau, Pierre}{Université Rennes 1}{[email protected]} |
| 7553 |
\editor{Planchon, Fabrice}{Université de Nice}{[email protected]} |
| 7554 |
\editor{Queffélec, Martine}{Université Lille 1}{[email protected]} |
| 7555 |
\editor{Seuret, Stéphane}{Université Paris Est Créteil}{[email protected]} |
| 7556 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 7557 |
%% Graphic designer |
| 7558 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 7559 |
\graphicdesigner{Lozanne, Nathalie}{}{[email protected]} |
| 7560 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 7561 |
%% Secretary |
| 7562 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 7563 |
\secretary{Ropartz, Claire}{}{} |
| 7564 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 7565 |
%% LaTeX class designer (and maintainer(s)) |
| 7566 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 7567 |
\classdesigner{Bitouzé, Denis}{Université du Littoral Côte d'Opale}{[email protected]} |
| 7568 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 7569 |
%% Font designer text |
| 7570 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 7571 |
\fontdesignertext{% |
| 7572 |
Nous utilisons la police \href{https://ctan.org/pkg/kpfonts}{Kp-Fonts} créée |
| 7573 |
par Christophe \textsc{Caignaert}.% |
| 7574 |
} |
| 7575 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 7576 |
%% Printer text |
| 7577 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 7578 |
\printertext{Jouve \aside*{1 rue du docteur Sauvé 53100 Mayenne}} |
| 7579 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 7580 |
%% Authors instructions |
| 7581 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 7582 |
\begin{authorsinstructions} |
| 7583 |
\begin{description} |
| 7584 |
\item[Objectifs de la \gzt*{}.] Bulletin interne de la \smf{}, la \gzt{} est |
| 7585 |
un support privilégié d'expression au sein de la communauté |
| 7586 |
mathématique. À ce titre, elle informe de l'actualité des mathématiques, de |
| 7587 |
leur enseignement, de leur histoire, de leur relations avec d'autres |
| 7588 |
sciences (physique, informatique, biologie, etc.). |
| 7589 |
|
| 7590 |
On y trouve donc des articles scientifiques de présentation, ainsi que des |
| 7591 |
récensions de parutions mathématiques récentes. Elle contient aussi des |
| 7592 |
informations sur tout ce qui concerne la vie professionnelle d'un |
| 7593 |
mathématicien (recrutements, conditions de travail, publications |
| 7594 |
scientifiques, etc.) et aussi des témoignages ou des tribunes libres. |
| 7595 |
|
| 7596 |
La \gzt{} paraît à raison de quatre numéros par an avec, optionnellement, un |
| 7597 |
numéro spécial consacré à un sujet particulier de mathématiques ou bien à un |
| 7598 |
grand mathématicien. |
| 7599 |
|
| 7600 |
Elle est envoyée gratuitement à chaque adhérent. Les numéros actuel et |
| 7601 |
anciens sont disponibles en ligne |
| 7602 |
(\url{https://smf4.emath.fr/Publications/Gazette/}). |
| 7603 |
|
| 7604 |
\item[Soumission d'article.] Les articles doivent être envoyés au secrétariat, |
| 7605 |
de préférence par courrier électronique (\email{[email protected]}), pour |
| 7606 |
être examinés par le comité de rédaction. Si un article est accepté, son |
| 7607 |
fichier source doit alors être fourni, de préférence sous forme d'un fichier |
| 7608 |
\TeX{} ou, à l'extrême rigueur, LibreOffice, OpenOffice ou |
| 7609 |
Word\textregistered{} ; une saisie de manuscrits est cependant possible pour |
| 7610 |
des textes courts. |
| 7611 |
|
| 7612 |
Les fichiers \TeX{} doivent : |
| 7613 |
\begin{itemize} |
| 7614 |
\item de préférence recourir au format \LaTeXe{} : éviter les commandes des |
| 7615 |
autres formats (tels que plain \TeX{}) ; |
| 7616 |
\item être si possible \enquote{encodés} en \texttt{UTF-8} ; |
| 7617 |
\item être le plus \enquote{pur} possible : éviter les macros |
| 7618 |
\enquote{exotiques} ainsi que les insertions manuelles d'espacements |
| 7619 |
horizontaux ou verticaux (\gztverb{\hspace}, \gztverb{\hskip}, |
| 7620 |
\gztverb{\vspace}, \gztverb{\vskip}, \gztverb{\enlargethispage}, etc.). |
| 7621 |
\end{itemize} |
| 7622 |
Les illustrations qui ne sont pas directement codées en \TeX{} doivent être |
| 7623 |
fournies aux formats \texttt{.pdf} (à privilégier) ou, avec un bonne |
| 7624 |
définition (300~\textsc{dpi} minimum), \texttt{.png} ou \texttt{.jpg}. Le |
| 7625 |
format \texttt{.eps}, quoique indirectement supporté, est déconseillé. |
| 7626 |
|
| 7627 |
Pour faciliter la composition de textes destinés à la \gzt{}, la \smf{} |
| 7628 |
propose la classe \LaTeX{} \gztarticlecl{} fournie par les distributions |
| 7629 |
\TeX{} courantes (\TeX{} Live et Mac\TeX{} \aside{à partir de leur version |
| 7630 |
2015} ainsi que MiK\TeX{}), et sinon téléchargeable depuis la page |
| 7631 |
\url{https://ctan.org/pkg/gzt}. Sa documentation détaillée se trouve à la |
| 7632 |
page \url{https://mirrors.ctan.org/macros/latex/contrib/gzt/doc/gzt-fr.pdf}. |
| 7633 |
On prendra garde au fait que l'usage de cette classe nécessite une |
| 7634 |
distribution \TeX{} à jour. |
| 7635 |
|
| 7636 |
Pour plus de détails, consulter la page |
| 7637 |
\url{https://smf.emath.fr/les-publications/la-gazette}. |
| 7638 |
% |
| 7639 |
% \item[Rubrique \enquote{Mathématiques}] La \gzt{} publie des articles de |
| 7640 |
% mathématiques et d'interactions ou applications des mathématiques, |
| 7641 |
% chargés |
| 7642 |
% de présenter un résultat, exposer une notion ou de commenter une |
| 7643 |
% actualité. |
| 7644 |
% |
| 7645 |
% Ils s'adressent à un public étendu. Les textes privilégiés sont courts, |
| 7646 |
% pédagogiques et illustrés par des exemples. |
| 7647 |
% |
| 7648 |
% La bibliographie ne vise pas à l'exhaustivité et se concentre sur les |
| 7649 |
% textes |
| 7650 |
% introductifs et de référence. |
| 7651 |
% |
| 7652 |
% Les articles d'histoire des mathématiques ou contenant des vues |
| 7653 |
% historiques |
| 7654 |
% ou épistémologiques sont également bienvenus et doivent être conçus dans |
| 7655 |
% le |
| 7656 |
% même esprit. |
| 7657 |
% |
| 7658 |
% \item[Rubrique \enquote{Livres}] La rubrique \enquote{Livres} publie des |
| 7659 |
% recensions s'attachant à présenter des ouvrages de mathématiques et des |
| 7660 |
% ouvrages sur les mathématiques (leur histoire, leur philosophie, et plus |
| 7661 |
% généralement tout ce qui a trait aux mathématiques et aux |
| 7662 |
% mathématiciens). |
| 7663 |
% |
| 7664 |
% Quelques recommendations : |
| 7665 |
% \begin{itemize} |
| 7666 |
% \item Commencez la recension en donnant quelques informations sur le |
| 7667 |
% livre |
| 7668 |
% (titre, nom l'auteur, collection à laquelle il appartient, nom de |
| 7669 |
% l'éditeur, ville de la maison d'édition, année de la publication, |
| 7670 |
% nombre |
| 7671 |
% de pages, \textsc{isbn} et prix en euros ou en dollars). |
| 7672 |
% \item Précisez à quel public (de quel niveau) s'adresse le livre. |
| 7673 |
% \item Vous êtes libre de dire ce que vous pensez (dans les limites de la |
| 7674 |
% politesse et de la correction). Le comité de rédaction se réserve la |
| 7675 |
% décision finale de publication après relecture de votre recension. |
| 7676 |
% \item Les recensions doivent être brèves (une ou deux pages, trois au |
| 7677 |
% maximum) et synthétiser l'apport original d'un ouvrage. Dans le cas |
| 7678 |
% des |
| 7679 |
% ouvrages de mathématiques, elles n'ont pas pour objectif de rendre |
| 7680 |
% compte |
| 7681 |
% d'une théorie et d'en donner un exposé ; la recension proprement dite |
| 7682 |
% peut |
| 7683 |
% toutefois être précédée, à titre d'introduction à l'analyse de |
| 7684 |
% l'ouvrage, |
| 7685 |
% d'un bref exposé panoramique et historique des idées générales du |
| 7686 |
% domaine. |
| 7687 |
% \item N'insérez pas de bibliographie. |
| 7688 |
% \item Signez de vos nom et prénom et indiquez les noms de |
| 7689 |
% l'établissement et |
| 7690 |
% de la ville où vous exercez. |
| 7691 |
% \end{itemize} |
| 7692 |
\end{description} |
| 7693 |
\end{authorsinstructions} |
| 7694 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 7695 |
%% Font designer |
| 7696 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 7697 |
\fontdesigner{Caignaert, Christophe}{}{} |
| 7698 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 7699 |
%% Réglages divers |
| 7700 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 7701 |
\pgfplotsset{compat=1.12} |
| 7702 |
% \end{macrocode} |
| 7703 |
% |
| 7704 |
% \begin{macrocode} |
| 7705 |
%</configuration> |
| 7706 |
% \end{macrocode} |
| 7707 |
% |
| 7708 |
% We now give the rest of the code of the source file of the Gazette's logo. |
| 7709 |
% \begin{macrocode} |
| 7710 |
%<*class-logo> |
| 7711 |
% \end{macrocode} |
| 7712 |
% |
| 7713 |
% \begin{macrocode} |
| 7714 |
\ExplSyntaxOff |
| 7715 |
\begin{document} |
| 7716 |
\frontmatterheadtext |
| 7717 |
\end{document} |
| 7718 |
% \end{macrocode} |
| 7719 |
% |
| 7720 |
% \begin{macrocode} |
| 7721 |
%</class-logo> |
| 7722 |
% \end{macrocode} |
| 7723 |
% |
| 7724 |
% \end{implementation} |
| 7725 |
% |
| 7726 |
% \PrintIndex |
| 7727 |
\endinput |
| 7728 |
% |
| 7729 |
%%% Local Variables: |
| 7730 |
%%% mode: doctex |
| 7731 |
%%% TeX-command-default: "TeX" |
| 7732 |
%%% TeX-master: t |
| 7733 |
%%% End: |