diff options
author | Karl Berry <karl@freefriends.org> | 2016-04-04 21:20:32 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-04-04 21:20:32 +0000 |
commit | 2973164cd6b8a0c3ce5fbabdeafb5cbe231e6827 (patch) | |
tree | 53fbdd5c6e0d9509bdc12c29c750829a0e0b18d5 /Master/texmf-dist/tex/latex/gzt/gzt.cls | |
parent | 9426e9b293fe6ebaddfc5b5238a27684ca6040e2 (diff) |
gzt (4apr16)
git-svn-id: svn://tug.org/texlive/trunk@40240 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/gzt/gzt.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/gzt/gzt.cls | 857 |
1 files changed, 513 insertions, 344 deletions
diff --git a/Master/texmf-dist/tex/latex/gzt/gzt.cls b/Master/texmf-dist/tex/latex/gzt/gzt.cls index c5918d975f4..171be6707f1 100644 --- a/Master/texmf-dist/tex/latex/gzt/gzt.cls +++ b/Master/texmf-dist/tex/latex/gzt/gzt.cls @@ -7,7 +7,7 @@ %% gzt.dtx (with options: `class') %% ----------------------------------------------------------------------------- %% gzt --- SMF bundle of classes for the French journal "La Gazette des -%% Math'ematiciens", version 0.9 +%% Math'ematiciens", version 0.95 %% %% E-mail: denis.bitouze@lmpa.univ-littoral.fr %% Released under the LaTeX Project Public License v1.3c or later @@ -81,30 +81,51 @@ \ExplSyntaxOn \ProvidesExplClass {gzt} - {2015/05/02} - {0.9} + {2016/04/03} + {0.95} { - SMF class for the French journal^^J - "La Gazette des Math'ematiciens". + SMF~class~for~the~French~journal^^J + "La~Gazette~des~Math'ematiciens". } \NeedsTeXFormat{LaTeX2e} +\bool_new:N \g__gzt_for_authors_bool +\bool_new:N \g__gzt_cover_bool +\bool_new:N \g__gzt_coverpage_bool +\bool_new:N \g__gzt_inside_pages_bool \dim_const:Nn \c__gzt_pagegrid_dim { 1mm} +\tl_gset:Nn \g__gzt_frontcover_image_file_tl {\c__gzt_issue_frontcover_default_image_file_tl} \keys_define:nn { gzt } { pagegrid .dim_gset:N = \g__gzt_pagegrid_dim, pagegrid .default:n = {\c__gzt_pagegrid_dim}, + forauthors .code:n = {% + \bool_gset_true:N \g__gzt_for_authors_bool% + \bool_gset_true:N \g__gzt_inside_pages_bool% + },% forprinter .bool_gset:N = \g__gzt_for_printer_bool, - insidepages .bool_gset:N = \g__gzt_inside_pages_bool, - noinsidebackcover .bool_gset:N = \g__gzt_no_inside_backcover_bool, - cover .code:n = {% + frontcoverimagefile .tl_gset:N = \g__gzt_frontcover_image_file_tl, + frontcoverimagefile .default:n = {frontcover}, + output .choice:, + output / frontcover .code:n = {% \bool_gset_true:N \g__gzt_for_printer_bool% \bool_gset_true:N \g__gzt_cover_bool% },% - forauthors .bool_gset:N = \g__gzt_for_authors_bool,% + output / coverpage .code:n = {% + \bool_gset_true:N \g__gzt_coverpage_bool% + },% + output / insidepages .code:n = {% + \bool_gset_true:N \g__gzt_for_printer_bool% + \bool_gset_true:N \g__gzt_inside_pages_bool% + },% + output / backcover .code:n = {% + \bool_gset_true:N \g__gzt_for_printer_bool% + },% + output / web .code:n = {% + },% }% \ProcessKeysOptions { gzt } \PassOptionsToClass{openany,english,french}{book} -\LoadClassWithOptions { book } +\LoadClass { book } \PassOptionsToPackage{table,cmyk}{xcolor}% \PassOptionsToPackage{export}{adjustbox}% \PassOptionsToPackage{english,french}{translator} @@ -112,7 +133,6 @@ \PassOptionsToPackage{english,french}{varioref} \PassOptionsToPackage{english,french}{cleveref} \RequirePackage[group=false]{standalone}% -\RequirePackage{xpatch}% \RequirePackage{datatool}% \pdftex_if_engine:TF { @@ -132,13 +152,19 @@ } \RequirePackage{adjustbox}% \RequirePackage{zref-totpages} +\RequirePackage{lastpage} \RequirePackage{zref-xr}% \RequirePackage{ragged2e}% \RequirePackage{xspace}% \RequirePackage{textcase}% \RequirePackage{epigraph}% \RequirePackage[autostyle]{csquotes}% -\RequirePackage[datamodel=gzt,backend=biber,defernumbers=true,firstinits,autolang=other]{biblatex}% +\RequirePackage[backend=biber,datamodel=gzt,defernumbers=true,autolang=other]{biblatex}% +\@ifpackagelater{biblatex}{2016/01/01}{% + \ExecuteBibliographyOptions{giveninits} +}{ + \ExecuteBibliographyOptions{firstinits} +} \RequirePackage{array} \RequirePackage{booktabs} \RequirePackage{tabularx} @@ -175,7 +201,11 @@ \RequirePackage{placeins}% \RequirePackage[hidelinks,hypertexnames=false]{hyperref}% \RequirePackage[numbered]{bookmark}% +\RequirePackage[nowarn]{glossaries}% \RequirePackage{cleveref}% +\makeglossaries +\setglossarystyle{indexhypergroup} +\setacronymstyle{long-sc-short} \pdftex_if_engine:T { \renewcommand\familydefault{\sfdefault} @@ -203,8 +233,8 @@ \tl_const:Nn \c__gzt_journal_title_string_tl { \c__gzt_journal_short_title_string_tl{}~des~Math\'ematiciens% } -\tl_const:Nn \c__gzt_gzt_class_name_tl {gzt} -\tl_const:Nn \c__gzt_gztarticle_class_name_tl {gztarticle} +\tl_const:Nn \c__gzt_class_name_tl {gzt} +\tl_const:Nn \c__gzt_article_class_name_tl {gztarticle} \tl_const:Nn \c__gzt_editors_in_chief_string_tl { \int_compare:nNnTF { \g__gzt_editors_in_chief_int } > { 1 } @@ -230,7 +260,7 @@ \tl_const:Nn \c__gzt_editorinchief_signatory_string_tl {\c__gzt_editorinchief_string_tl~de~la~\c__gzt_journal_title_string_tl} \tl_const:Nn \c__gzt_toc_string_tl {Sommaire} \tl_const:Nn \c__gzt_president_message_string_tl {Mot~du~pr\'esident} -\tl_const:Nn \c__gzt_president_signatory_string_tl {pr\'esident~de~la~\l__gzt_smf_short_string_tl} +\tl_const:Nn \c__gzt_president_signatory_string_tl {pr\'esident~de~la~\g__gzt_smf_short_string_tl} \tl_const:Nn \c__gzt_editorinchief_message_date_string_tl {Le~\displaydate{__gzt_editorinchief_message_date}} \tl_const:Nn \c__gzt_president_message_date_string_tl {Le~} \tl_const:Nn \c__gzt_frontcover_header_string_tl { @@ -240,6 +270,17 @@ \space \No\int_use:N\g__gzt_issue_number_int% } +\tl_const:Nn \c__gzt_pdftitle_string_tl { + \c__gzt_journal_title_string_tl + % \space + % \textendash{} + % \space + % \l__gzt_uppercased_date_format{\displaydate{__gzt_date}} + \space + \textendash{} + \space + N^^c2^^b0\int_use:N\g__gzt_issue_number_int +} \tl_const:Nn \c__gzt_frontmatter_directory_string_tl {frontmatter} \tl_const:Nn \c__gzt_backmatter_directory_string_tl {backmatter} \tl_const:Nn \c__gzt_editorial_file_string_tl {\c__gzt_frontmatter_directory_string_tl/editorial} @@ -248,10 +289,10 @@ \tl_const:Nn \c__gzt_images_directory_string_tl {images} \tl_const:Nn \c__gzt_issue_images_path_string_tl {% \c__gzt_issue_path_string_tl/ \c__gzt_images_directory_string_tl} -\tl_const:Nn \c__gzt_issue_frontcover_image_file_string_tl {frontcover} -\tl_const:Nn \c__gzt_issue_frontcover_image_path_string_tl {\c__gzt_issue_images_path_string_tl/\c__gzt_issue_frontcover_image_file_string_tl} +\tl_const:Nn \c__gzt_issue_frontcover_default_image_file_tl {frontcover} \tl_const:Nn \c__gzt_issue_backcover_text_file_string_tl {backcover} \tl_const:Nn \c__gzt_backcover_page_file_string_tl {\c__gzt_backmatter_directory_string_tl/\c__gzt_issue_backcover_text_file_string_tl} +\tl_const:Nn \c__gzt_acronyms_file_string_tl {\c__gzt_class_name_tl acronyms} \tl_const:Nn \c__gzt_authors_instructions_file_extension_tl {ain} \tl_const:Nn \c__gzt_authors_instructions_file_tl {\c_job_name_tl.\c__gzt_authors_instructions_file_extension_tl} \tl_const:Nn \c__gzt_about_frontcover_string_tl {\`A~propos~de~la~couverture.} @@ -278,9 +319,11 @@ \tl_const:Nn \c__gzt_tribute_rubric_string_tl {Carnet} \tl_const:Nn \c__gzt_books_rubric_string_tl {Livres} \tl_const:Nn \c__gzt_latex_rubric_string_tl {Astuces~\LaTeX{}} +\tl_const:Nn \c__gzt_forum_rubric_string_tl {Tribune~libre} \tl_const:Nn \c__gzt_published_with_help_of_string_tl {Publi\'e~avec~le~concours~de~:} \tl_const:Nn \c__gzt_advertisement_directory_string_tl {advertisement/} \tl_const:Nn \c__gzt_advertisement_string_tl {Publicit\'e} +\tl_const:Nn \c__gzt_moralreport_rubric_string_tl {Rapport~moral} \tl_const:Nn \c__gzt_smf_short_string_tl {\textsc{smf}} \tl_const:Nn \c__gzt_smf_short_pdf_string_tl {SMF} \tl_const:Nn \c__gzt_smf_string_tl {Soci\'et\'e~Math\'ematique~de~France} @@ -290,12 +333,12 @@ \tl_const:Nn \c__gzt_Cad_string_tl {C'est-\`a-dire} \tl_const:Nn \c__gzt_footer_string_tl { \c__gzt_footer_size_font_tl - \textcolor{__gzt_smf_number_color}{\c__gzt_smf_short_string_tl} + \textcolor{__gzt_smf_number_color}{\MakeTextUppercase{\c__gzt_smf_short_string_tl}} \space \textcolor{__gzt_date_color}{ \textendash{}\space \MakeTextUppercase{\c__gzt_journal_short_title_string_tl} - \bool_if:nF { \g__gzt_inside_frontcover_bool || \g__gzt_backmatter_bool } + \bool_if:nF { \g__gzt_inside_frontcover_bool || \g__gzt_backmatter_bool || \g__gzt_for_authors_bool } { \space\textendash{}\space \l__gzt_uppercased_date_format\displaydate{__gzt_date} @@ -313,6 +356,13 @@ \tl_const:Nn \c__gzt_interview_title_string_tl {En~apart\'e~avec~} \tl_const:Nn \c__gzt_aside_string_tl {--} \tl_const:Nn \c__gzt_draftwatermark_string_tl {draft} +\tl_const:Nn \c__gzt_compiled_string_tl { + \IfLanguageName{french}{ + Compil\'e~le~ + }{ + Compiled~on~ + } +} \bool_new:N \g__gzt_frontcover_bool \bool_new:N \g__gzt_inside_frontcover_bool \bool_new:N \g__gzt_inside_backcover_bool @@ -336,40 +386,54 @@ \dim_new:N \l__gzt_rubrics_head_text_width_dim \dim_const:Nn \c__gzt_layoutheight_dim { 270mm} \dim_const:Nn \c__gzt_layoutwidth_dim { 210mm} -\dim_const:Nn \c__gzt_future_layoutoffset_dim { 5mm} +\dim_const:Nn \c__gzt_printer_layoutoffset_dim { 5mm} \bool_if:NTF {\g__gzt_for_printer_bool} { - \dim_const:Nn \c__gzt_layoutoffset_dim { \c__gzt_future_layoutoffset_dim} + \dim_const:Nn \c__gzt_potential_layoutoffset_dim { \c__gzt_printer_layoutoffset_dim} }{ - \dim_const:Nn \c__gzt_layoutoffset_dim {\c_zero_dim} -} + \dim_const:Nn \c__gzt_potential_layoutoffset_dim {\c_zero_dim} +} +\int_const:Nn \c__gzt_thresold_a_int {68} +\int_const:Nn \c__gzt_thresold_b_int {80} +\int_const:Nn \c__gzt_thresold_c_int {88} +\int_const:Nn \c__gzt_thresold_d_int {96} +\int_const:Nn \c__gzt_thresold_e_int {104} +\int_const:Nn \c__gzt_thresold_f_int {120} +\dim_const:Nn \c__gzt_bindingoffset_a_dim {3mm} +\dim_const:Nn \c__gzt_bindingoffset_b_dim {3.5mm} +\dim_const:Nn \c__gzt_bindingoffset_c_dim {3.9mm} +\dim_const:Nn \c__gzt_bindingoffset_d_dim {4.1mm} +\dim_const:Nn \c__gzt_bindingoffset_e_dim {4.5mm} +\dim_const:Nn \c__gzt_bindingoffset_f_dim {5mm} \zexternaldocument[self]{\jobname}% -\int_new:N \g__gzt_total_page_number_int% -\int_gset:Nn \g__gzt_total_page_number_int { \zref@extractdefault{selfLastPage}{abspage}{0} } -\int_compare:nNnTF {\g__gzt_total_page_number_int-4}<{68} +\int_new:N \g__gzt_total_pages_number_int% +\int_new:N \g__gzt_total_inside_pages_number_int% +\int_gset:Nn \g__gzt_total_pages_number_int { \zref@extractdefault{selfLastPage}{abspage}{0} } +\int_gset:Nn \g__gzt_total_inside_pages_number_int { \g__gzt_total_pages_number_int - 4 } +\int_compare:nNnTF {\g__gzt_total_inside_pages_number_int}<{\c__gzt_thresold_a_int} { - \dim_const:Nn \c__gzt_future_bindingoffset_dim { \c_zero_dim } + \dim_const:Nn \c__gzt_printer_bindingoffset_dim { \c_zero_dim } }{ - \int_compare:nNnTF {\g__gzt_total_page_number_int-4}<{80} + \int_compare:nNnTF {\g__gzt_total_inside_pages_number_int}<{\c__gzt_thresold_b_int} { - \dim_const:Nn \c__gzt_future_bindingoffset_dim { 3mm } + \dim_const:Nn \c__gzt_printer_bindingoffset_dim { \c__gzt_bindingoffset_a_dim } }{ - \int_compare:nNnTF {\g__gzt_total_page_number_int-4}<{88} + \int_compare:nNnTF {\g__gzt_total_inside_pages_number_int}<{\c__gzt_thresold_c_int} { - \dim_const:Nn \c__gzt_future_bindingoffset_dim { 3.5mm } + \dim_const:Nn \c__gzt_printer_bindingoffset_dim { \c__gzt_bindingoffset_b_dim } }{ - \int_compare:nNnTF {\g__gzt_total_page_number_int-4}<{96} + \int_compare:nNnTF {\g__gzt_total_inside_pages_number_int}<{\c__gzt_thresold_d_int} { - \dim_const:Nn \c__gzt_future_bindingoffset_dim { 3.9mm } + \dim_const:Nn \c__gzt_printer_bindingoffset_dim { \c__gzt_bindingoffset_c_dim } }{ - \int_compare:nNnTF {\g__gzt_total_page_number_int-4}<{104} + \int_compare:nNnTF {\g__gzt_total_inside_pages_number_int}<{\c__gzt_thresold_e_int} { - \dim_const:Nn \c__gzt_future_bindingoffset_dim { 4.1mm } + \dim_const:Nn \c__gzt_printer_bindingoffset_dim { \c__gzt_bindingoffset_d_dim } }{ - \int_compare:nNnTF {\g__gzt_total_page_number_int-4}<{120} + \int_compare:nNnTF {\g__gzt_total_inside_pages_number_int}<{\c__gzt_thresold_f_int} { - \dim_const:Nn \c__gzt_future_bindingoffset_dim { 4.5mm } + \dim_const:Nn \c__gzt_printer_bindingoffset_dim { \c__gzt_bindingoffset_e_dim } }{ - \dim_const:Nn \c__gzt_future_bindingoffset_dim { 5mm } + \dim_const:Nn \c__gzt_printer_bindingoffset_dim { \c__gzt_bindingoffset_f_dim } } } } @@ -377,33 +441,33 @@ } } \bool_if:NTF {\g__gzt_cover_bool} { - \dim_const:Nn \c__gzt_bindingoffset_dim { \c__gzt_future_bindingoffset_dim } + \dim_const:Nn \c__gzt_potential_bindingoffset_dim { \c__gzt_printer_bindingoffset_dim } }{ - \dim_const:Nn \c__gzt_bindingoffset_dim {\c_zero_dim} + \dim_const:Nn \c__gzt_potential_bindingoffset_dim {\c_zero_dim} } -\dim_const:Nn \c__gzt_paperheight_dim { \c__gzt_layoutheight_dim+2\c__gzt_layoutoffset_dim} +\dim_const:Nn \c__gzt_paperheight_dim { \c__gzt_layoutheight_dim+2\c__gzt_potential_layoutoffset_dim} \bool_if:NTF {\g__gzt_cover_bool} { \dim_const:Nn \c__gzt_paperwidth_dim { \c__gzt_layoutwidth_dim + - \c__gzt_layoutoffset_dim - +\c__gzt_bindingoffset_dim + \c__gzt_potential_layoutoffset_dim + +\c__gzt_potential_bindingoffset_dim } }{ \dim_const:Nn \c__gzt_paperwidth_dim { \c__gzt_layoutwidth_dim + 2 - \c__gzt_layoutoffset_dim - +\c__gzt_bindingoffset_dim + \c__gzt_potential_layoutoffset_dim + +\c__gzt_potential_bindingoffset_dim } } \dim_const:Nn \c__gzt_frontcover_image_width_dim { \c__gzt_layoutwidth_dim + - \c__gzt_future_layoutoffset_dim + \c__gzt_printer_layoutoffset_dim } -\dim_const:Nn \c__gzt_topmargin_dim { 31mm} +\dim_const:Nn \c__gzt_topmargin_dim { 31mm} \dim_const:Nn \c__gzt_topmargin_frontcover_dim { \c__gzt_topmargin_dim + 30mm @@ -415,11 +479,11 @@ \dim_const:Nn \c__gzt_topmargin_front_matter_dim { \c__gzt_topmargin_inside_cover_dim } -\dim_const:Nn \c__gzt_headsep_dim { 24mm} +\dim_const:Nn \c__gzt_headsep_dim { 24mm} \dim_const:Nn \c__gzt_headsep_frontcover_dim { \c__gzt_headsep_dim +31mm - -\c__gzt_layoutoffset_dim + % -\c__gzt_potential_layoutoffset_dim } \dim_const:Nn \c__gzt_headsep_inside_frontcover_dim { \c__gzt_headsep_dim @@ -429,15 +493,15 @@ \c__gzt_headsep_inside_frontcover_dim } \dim_const:Nn \c__gzt_headheight_dim { \c_zero_dim } -\dim_const:Nn \c__gzt_botmargin_dim { 30mm} -\dim_const:Nn \c__gzt_footskip_dim { 26mm} -\dim_const:Nn \c__gzt_shift_margin_dim { 5mm } -\dim_const:Nn \c__gzt_innermargin_dim { 15mm - \c__gzt_bindingoffset_dim + \c__gzt_shift_margin_dim} -\dim_const:Nn \c__gzt_outermargin_dim { 30mm - \c__gzt_shift_margin_dim } +\dim_const:Nn \c__gzt_botmargin_dim { 30mm} +\dim_const:Nn \c__gzt_footskip_dim { 26mm} +\dim_const:Nn \c__gzt_extra_margin_dim { 5mm } +\dim_const:Nn \c__gzt_innermargin_dim { 15mm - \c__gzt_potential_bindingoffset_dim + \c__gzt_extra_margin_dim} +\dim_const:Nn \c__gzt_outermargin_dim { 30mm - \c__gzt_extra_margin_dim } \dim_const:Nn \c__gzt_inside_cover_box_width_dim { 165mm }% \dim_const:Nn \c__gzt_innermargin_inside_cover_dim { (\c__gzt_layoutwidth_dim - \c__gzt_inside_cover_box_width_dim)/2 - - \c__gzt_bindingoffset_dim + - \c__gzt_potential_bindingoffset_dim % + \c__gzt_adjustmargin_dim } \dim_const:Nn \c__gzt_outermargin_inside_cover_dim { @@ -448,35 +512,35 @@ \dim_const:Nn \c__gzt_outermargin_backcover_dim { \c__gzt_innermargin_backcover_dim } \dim_const:Nn \c__gzt_topmargin_backcover_dim { \c__gzt_innermargin_backcover_dim } \dim_const:Nn \c__gzt_bottommargin_backcover_dim { \c__gzt_innermargin_backcover_dim } -\dim_const:Nn \c__gzt_frontcover_image_height_dim { 160mm} +\dim_const:Nn \c__gzt_frontcover_image_height_dim { 160mm} \dim_const:Nn \c__gzt_radius_arc_dim { 85mm }% \dim_const:Nn \c__gzt_frontmatter_headtext_xshift_dim { 19mm }% \dim_const:Nn \c__gzt_frontmatter_headtext_o_xshift_dim { - -\c__gzt_frontmatter_headtext_xshift_dim -\c__gzt_layoutoffset_dim% + -\c__gzt_frontmatter_headtext_xshift_dim -\c__gzt_potential_layoutoffset_dim% }% \dim_const:Nn \c__gzt_frontmatter_headtext_e_xshift_dim { - \c__gzt_frontmatter_headtext_xshift_dim +\c__gzt_layoutoffset_dim% + \c__gzt_frontmatter_headtext_xshift_dim +\c__gzt_potential_layoutoffset_dim% }% -\dim_const:Nn \c__gzt_frontmatter_headtext_yshift_dim { -6.5mm-\c__gzt_layoutoffset_dim }% -\dim_const:Nn \c__gzt_header_line_width_dim { 0.25mm} -\dim_const:Nn \c__gzt_header_line_yshift_dim { -1mm-\c__gzt_header_line_width_dim}% -\dim_const:Nn \c__gzt_footer_background_height_dim { 10mm + \c__gzt_layoutoffset_dim } -\dim_const:Nn \c__gzt_front_matter_extra_innermargin_dim { 28mm } -\dim_const:Nn \c__gzt_front_matter_extra_outermargin_dim { 7mm } +\dim_const:Nn \c__gzt_frontmatter_headtext_yshift_dim { -6.5mm-\c__gzt_potential_layoutoffset_dim }% +\dim_const:Nn \c__gzt_header_line_width_dim { 0.25mm} +\dim_const:Nn \c__gzt_header_line_yshift_dim { -1mm-\c__gzt_header_line_width_dim}% +\dim_const:Nn \c__gzt_footer_background_height_dim { 10mm + \c__gzt_potential_layoutoffset_dim } +\dim_const:Nn \c__gzt_front_matter_extra_innermargin_dim { 28mm } +\dim_const:Nn \c__gzt_front_matter_extra_outermargin_dim { 7mm } \dim_const:Nn \c__gzt_inside_cover_offset_dim { \c_zero_dim }% \dim_const:Nn \c__gzt_pictogram_width_dim { 23mm }% \dim_const:Nn \c__gzt_header_xshift_dim { \c__gzt_pictogram_width_dim-6mm }% \dim_const:Nn \c__gzt_header_yshift_dim { 5mm }% -\dim_const:Nn \c__gzt_xshift_arccircle_A_dim { \c__gzt_rubrics_abstract_width_dim+\c__gzt_innermargin_dim+10mm+\c__gzt_layoutoffset_dim }% -\dim_const:Nn \c__gzt_yshift_arccircle_A_dim { -22mm-\c__gzt_layoutoffset_dim }% +\dim_const:Nn \c__gzt_xshift_arccircle_A_dim { \c__gzt_rubrics_abstract_width_dim+\c__gzt_innermargin_dim+10mm+\c__gzt_potential_layoutoffset_dim }% +\dim_const:Nn \c__gzt_yshift_arccircle_A_dim { -22mm-\c__gzt_potential_layoutoffset_dim }% \dim_const:Nn \c__gzt_xshift_arccircle_B_dim {% (\c__gzt_rubrics_abstract_width_dim+\c__gzt_innermargin_dim)/2% % \c__gzt_innermargin_dim+(\c__gzt_rubrics_abstract_width_dim/2)% % \c__gzt_xshift_arccircle_A_dim/2 }% -\dim_const:Nn \c__gzt_yshift_arccircle_B_dim { -\c__gzt_layoutoffset_dim }% -\dim_const:Nn \c__gzt_xshift_arccircle_C_dim { \c__gzt_layoutoffset_dim-5mm }% -\dim_const:Nn \c__gzt_yshift_arccircle_C_dim { -19.75mm-\c__gzt_layoutoffset_dim }% +\dim_const:Nn \c__gzt_yshift_arccircle_B_dim { -\c__gzt_potential_layoutoffset_dim }% +\dim_const:Nn \c__gzt_xshift_arccircle_C_dim { \c__gzt_potential_layoutoffset_dim-5mm }% +\dim_const:Nn \c__gzt_yshift_arccircle_C_dim { -19.75mm-\c__gzt_potential_layoutoffset_dim }% \dim_const:Nn \c__gzt_book_review_frontcover_extend_dim { 12mm }% \dim_const:Nn \c__gzt_tcb_left_dim { 4mm }% \dim_const:Nn \c__gzt_tcb_boxsep_dim { 1mm }% @@ -504,56 +568,60 @@ \dim_const:Nn \c__gzt_minitoc_from_circle_yshift_dim {-\c__gzt_minitoc_from_circle_xshift_dim} \dim_const:Nn \c__gzt_footer_height_font_dim {3mm} \dim_const:Nn \c__gzt_minitoc_list_labelsep_dim {1em} +\dim_const:Nn \c__gzt_authors_photos_width_dim {16mm} +\dim_const:Nn \c__gzt_authors_photos_box_width_dim {\c__gzt_authors_photos_width_dim + + 2mm} +\dim_new:N \l__gzt_minibio_width_dim \geometry{% papersize={\c__gzt_paperwidth_dim,\c__gzt_paperheight_dim} } \bool_if:NTF {\g__gzt_cover_bool} { \tl_const:Nn \c__gzt_frontcover_geometry_tl {% ,layoutsize={\c__gzt_layoutwidth_dim,\c__gzt_layoutheight_dim} - ,layoutvoffset=\c__gzt_layoutoffset_dim - ,bindingoffset=\c__gzt_bindingoffset_dim + ,layoutvoffset=\c__gzt_potential_layoutoffset_dim + ,bindingoffset=\c__gzt_potential_bindingoffset_dim ,top=\c__gzt_topmargin_frontcover_dim ,headsep=\c__gzt_headsep_frontcover_dim ,headheight=\c__gzt_headheight_dim ,bottom=\c_zero_dim ,footskip=\c_zero_dim ,outer=\c_zero_dim - ,inner=\c__gzt_layoutoffset_dim + ,inner=\c__gzt_potential_layoutoffset_dim ,nomarginpar% }% }{ \tl_const:Nn \c__gzt_frontcover_geometry_tl {% ,layoutsize={\c__gzt_layoutwidth_dim,\c__gzt_layoutheight_dim} - ,layoutoffset=\c__gzt_layoutoffset_dim - ,bindingoffset=\c__gzt_bindingoffset_dim + ,layoutoffset=\c__gzt_potential_layoutoffset_dim + ,bindingoffset=\c__gzt_potential_bindingoffset_dim ,top=\c__gzt_topmargin_frontcover_dim ,headsep=\c__gzt_headsep_frontcover_dim ,headheight=\c__gzt_headheight_dim ,bottom=\c_zero_dim ,footskip=\c_zero_dim - ,hmargin=\c__gzt_layoutoffset_dim + ,hmargin=\c__gzt_potential_layoutoffset_dim ,nomarginpar% }% } \bool_if:NTF {\g__gzt_cover_bool} { \tl_const:Nn \c__gzt_inside_cover_geometry_tl {% ,layoutsize={\c__gzt_layoutwidth_dim,\c__gzt_layoutheight_dim} - ,layoutvoffset=\c__gzt_layoutoffset_dim - ,bindingoffset=\c__gzt_bindingoffset_dim + ,layoutvoffset=\c__gzt_potential_layoutoffset_dim + ,bindingoffset=\c__gzt_potential_bindingoffset_dim ,top=\c__gzt_topmargin_inside_cover_dim ,headheight=\c__gzt_headheight_dim ,headsep=\c__gzt_headsep_inside_frontcover_dim ,bottom=\c__gzt_botmargin_dim ,footskip=\c__gzt_footskip_dim - ,inner=\c__gzt_innermargin_inside_cover_dim-\c__gzt_layoutoffset_dim - ,outer=\c__gzt_outermargin_inside_cover_dim+\c__gzt_layoutoffset_dim + ,inner=\c__gzt_innermargin_inside_cover_dim-\c__gzt_potential_layoutoffset_dim + ,outer=\c__gzt_outermargin_inside_cover_dim+\c__gzt_potential_layoutoffset_dim ,nomarginpar% }% }{ \tl_const:Nn \c__gzt_inside_cover_geometry_tl {% ,layoutsize={\c__gzt_layoutwidth_dim,\c__gzt_layoutheight_dim} - ,layoutoffset=\c__gzt_layoutoffset_dim - ,bindingoffset=\c__gzt_bindingoffset_dim + ,layoutoffset=\c__gzt_potential_layoutoffset_dim + ,bindingoffset=\c__gzt_potential_bindingoffset_dim ,top=\c__gzt_topmargin_inside_cover_dim ,headheight=\c__gzt_headheight_dim ,headsep=\c__gzt_headsep_inside_frontcover_dim @@ -566,8 +634,8 @@ } \tl_const:Nn \c__gzt_front_matter_geometry_tl {% ,layoutsize={\c__gzt_layoutwidth_dim,\c__gzt_layoutheight_dim} - ,layoutoffset=\c__gzt_layoutoffset_dim - % ,bindingoffset=\c__gzt_bindingoffset_dim + ,layoutoffset=\c__gzt_potential_layoutoffset_dim + % ,bindingoffset=\c__gzt_potential_bindingoffset_dim ,top=\c__gzt_topmargin_front_matter_dim% ,headheight=\c__gzt_headheight_dim ,headsep=\c__gzt_headsep_front_matter_dim @@ -579,8 +647,8 @@ }% \tl_const:Nn \c__gzt_main_geometry_tl {% ,layoutsize={\c__gzt_layoutwidth_dim,\c__gzt_layoutheight_dim} - ,layoutoffset=\c__gzt_layoutoffset_dim - % ,bindingoffset=\c__gzt_bindingoffset_dim + ,layoutoffset=\c__gzt_potential_layoutoffset_dim + % ,bindingoffset=\c__gzt_potential_bindingoffset_dim ,top=\c__gzt_topmargin_dim-15mm% ,headheight=\c__gzt_headheight_dim ,headsep=\c__gzt_headsep_dim-18mm @@ -591,8 +659,8 @@ }% \tl_const:Nn \c__gzt_backcover_geometry_tl {% ,layoutsize={\c__gzt_layoutwidth_dim,\c__gzt_layoutheight_dim} - ,layoutoffset=\c__gzt_layoutoffset_dim - % ,bindingoffset=\c__gzt_bindingoffset_dim + ,layoutoffset=\c__gzt_potential_layoutoffset_dim + % ,bindingoffset=\c__gzt_potential_bindingoffset_dim ,top=\c__gzt_topmargin_backcover_dim% % ,top=\c__gzt_topmargin_dim-15mm% % ,headheight=\c__gzt_headheight_dim @@ -607,6 +675,7 @@ \int_new:N \g__gzt_issue_number_int \int_new:N \g__gzt_issue_month_int \int_new:N \g__gzt_issue_year_int +\tl_new:N \g__gzt_frontcover_image_options_tl \keys_define:nn { gzt/issuesetup } { number .int_gset:N = \g__gzt_issue_number_int, @@ -615,7 +684,8 @@ number .value_required:, month .value_required:, year .value_required:, - number .initial:n = 0 + number .initial:n = 0, + frontcoverimageoptions .tl_gset:N = \g__gzt_frontcover_image_options_tl } \tl_new:N \l__gzt_journal_publisher_tl \tl_new:N \l__gzt_journal_address_tl @@ -748,9 +818,11 @@ \colorlet{__gzt_generic_light_color}{black!50} \colorlet{__gzt_dark_generic_light_color}{black!60} \colorlet{__gzt_description_label_light_color}{__gzt_dark_generic_light_color} +\colorlet{__gzt_minitoc_color}{__gzt_generic_light_color} \colorlet{__gzt_cover_itemize_label_color}{__gzt_light_generic_dark_color} \colorlet{__gzt_default_text_color}{black} -\colorlet{__gzt_rubric_head_text_color}{black!65} +\colorlet{__gzt_head_text_color}{black!65} +\colorlet{__gzt_rubric_head_text_color}{__gzt_head_text_color} \colorlet{__gzt_bibliography_minibios_acknowledgments_bg_color}{black!10} \colorlet{__gzt_headrule_color}{__gzt_generic_light_color!65} \colorlet{__gzt_circlerule_color}{__gzt_generic_dark_color!65} @@ -762,7 +834,7 @@ \colorlet{__gzt_boxed_issue_number_bg_color}{__gzt_generic_dark_color} \colorlet{__gzt_rule_in_toc_color}{__gzt_generic_dark_color} \colorlet{__gzt_rubric_in_toc_color}{__gzt_generic_dark_color} -\colorlet{__gzt_article_in_toc_color}{__gzt_generic_light_color} +\colorlet{__gzt_article_in_toc_color}{__gzt_frontmatter_text_color} \colorlet{__gzt_rubric_title_color}{__gzt_generic_light_color} \colorlet{__gzt_article_title_color}{__gzt_generic_dark_color} \colorlet{__gzt_section_color}{__gzt_generic_dark_color} @@ -801,9 +873,9 @@ \tl_const:Nn \c__gzt_footer_size_font_tl { \fontsize{\c__gzt_footer_height_font_dim}{\c_zero_dim}\selectfont% } -\tl_new:N \l__gzt_smf_short_string_tl -\tl_new:N \l__gzt_smf_string_tl -\tl_set:Nn \l__gzt_smf_short_string_tl { +\tl_new:N \g__gzt_smf_short_string_tl +\tl_new:N \g__gzt_smf_string_tl +\tl_gset:Nn \g__gzt_smf_short_string_tl { % \cs_if_exist:cTF {texorpdfstring} % { \texorpdfstring{\c__gzt_smf_short_string_tl}{\c__gzt_smf_short_pdf_string_tl} @@ -811,7 +883,7 @@ % \c__gzt_smf_short_pdf_string_tl % }% } -\tl_set:Nn \l__gzt_smf_string_tl { +\tl_gset:Nn \g__gzt_smf_string_tl { % \cs_if_exist:cTF {texorpdfstring} % { % \texorpdfstring{Soci\'et\'e~Math\'ematique~de~France}{\c__gzt_smf_string_tl} @@ -838,13 +910,19 @@ \emph{\c__gzt_journal_title_string_tl} }% } -\tl_new:N \l__gzt_pdftitle_string_tl -\tl_new:N \l__gzt_pdfauthor_string_tl -\tl_set:Nn \l__gzt_pdftile_string_tl { - \c__gzt_journal_title_string_tl\space--\space{}N°\int_use:N\g__gzt_issue_number_int +\tl_new:N \g__gzt_pdftitle_string_tl +\tl_new:N \g__gzt_pdfauthor_string_tl +\tl_gset:Nn \g__gzt_pdftitle_string_tl { + \c__gzt_pdftitle_string_tl } -\tl_set:Nn \l__gzt_pdfauthor_string_tl { - \l__gzt_smf_string_tl +\tl_gset:Nn \g__gzt_pdfauthor_string_tl { + \g__gzt_smf_string_tl +} +\AtEndPreamble{% + \hypersetup{% + pdftitle=\g__gzt_pdftitle_string_tl, + pdfauthor=\g__gzt_pdfauthor_string_tl% + } } \DTLnewdb{__gzt_authors} \cs_new_protected:Nn \__gzt_authors:nnnnnn @@ -864,11 +942,11 @@ \cs_generate_variant:Nn \__gzt_authors:nnnnnn { nVVVVV } \cs_new_protected:Nn \__gzt_display_author:nnnnn { - \begin{tabular}[t]{p{18mm}p{0.75\linewidth}} + \begin{tabular}[t]{p{\c__gzt_authors_photos_box_width_dim}p{0.75\linewidth}} \tl_if_empty:nF {#5} {% \begin{adjustbox}{valign=t} - \includegraphics[width=16mm]{#5} + \includegraphics[width=\c__gzt_authors_photos_width_dim]{#5} \end{adjustbox}% } & @@ -976,16 +1054,19 @@ }{ \tl_if_in:NnTF \l__gzt_people_role_tl { author } { \footnotesize% - \noindent% - \tl_if_empty:NF \l__gzt_people_photo_tl - {% - \begin{adjustbox}{valign=t,minipage=18mm} - \includegraphics[width=16mm]{\l__gzt_people_photo_tl} + % \noindent% + \dim_set:Nn \l__gzt_minibio_width_dim {\linewidth-1em - \c__gzt_authors_photos_box_width_dim} + \tl_if_empty:NTF \l__gzt_people_photo_tl + {% + \dim_add:Nn \l__gzt_minibio_width_dim {\c__gzt_authors_photos_box_width_dim} + }{% + \begin{adjustbox}{valign=t,minipage=\c__gzt_authors_photos_box_width_dim} + \includegraphics[width=\c__gzt_authors_photos_width_dim]{\l__gzt_people_photo_tl} \end{adjustbox}% - } \quad% - \begin{adjustbox}{valign=t,minipage=\linewidth-18mm-1em} - \begin{description}[leftmargin=1em,style=nextline] + } + \begin{adjustbox}{valign=t,minipage=\l__gzt_minibio_width_dim} + \begin{description}[leftmargin=1em,style=nextline] \item[% \textcolor{__gzt_people_color}{% \__gzt_citeauthor_no_firstinits:n {\c__gzt_issue_bib_key_tl -#1- \exp_not:V\DTLcurrentindex}% @@ -1055,29 +1136,21 @@ \exp_after:wN\newgeometry\exp_after:wN{\c__gzt_frontcover_geometry_tl}% \noindent% \bool_if:NTF {\g__gzt_cover_bool} { - \hspace*{-\c__gzt_layoutoffset_dim} + \hspace*{-\c__gzt_potential_layoutoffset_dim} }{ - \hspace*{-2\c__gzt_layoutoffset_dim} - } - \includegraphics[ - width=\c__gzt_frontcover_image_width_dim - % min~width=\paperwidth - % width=\c__gzt_layoutwidth_dim + 2\c__gzt_layoutoffset_dim - % min~size={\paperwidth}{\c__gzt_frontcover_image_height_dim+\c__gzt_layoutoffset_dim}, - % max~size={\paperwidth}{\c__gzt_frontcover_image_height_dim+\c__gzt_layoutoffset_dim}, - % Clip*=0mm~40mm~211mm~160mm - % Clip*=0mm~{\height-\c__gzt_frontcover_image_height_dim}~{\paperwidth}~{\height} - ]{\c__gzt_issue_frontcover_image_path_string_tl} + \hspace*{-2\c__gzt_potential_layoutoffset_dim} + } + \exp_after:wN\includegraphics\exp_after:wN[\g__gzt_frontcover_image_options_tl]{\g__gzt_frontcover_image_file_tl} \begin{tikzpicture}[remember~picture, overlay] \coordinate (__gzt_circle_minitoc_center) at - ([xshift=\g__gzt_minitoc_xshift_dim-\c__gzt_layoutoffset_dim,yshift=\g__gzt_minitoc_yshift_dim+\c__gzt_layoutoffset_dim]current~page.south~east) ; + ([xshift=\g__gzt_minitoc_xshift_dim-\c__gzt_potential_layoutoffset_dim,yshift=\g__gzt_minitoc_yshift_dim+\c__gzt_potential_layoutoffset_dim]current~page.south~east) ; \node[name=__gzt_circle_minitoc,shape=circle,inner~sep=\c_zero_dim,fill=white,text~width=\g__gzt_minitoc_circle_diameter_dim] at (__gzt_circle_minitoc_center) {}; \node[text~width=\g__gzt_minitoc_textwidth_dim,anchor=north~west] at ([xshift=\c__gzt_minitoc_from_circle_xshift_dim,yshift=\c__gzt_minitoc_from_circle_yshift_dim]$ (__gzt_circle_minitoc.north)!.5!(__gzt_circle_minitoc.west) $) { \large - \color{__gzt_dark_generic_light_color} + \color{__gzt_minitoc_color} \bool_if:NF {\g__gzt_frontcover_minitoc_tl} { \g__gzt_frontcover_minitoc_tl } @@ -1090,15 +1163,15 @@ \small \begin{tikzpicture}[remember~picture, overlay] \node[name=__gzt_binding_sw,inner~sep=\c_zero_dim,fill=white,rotate=90,anchor=west] at - ([xshift=0.45\c__gzt_bindingoffset_dim,yshift=15mm+\c__gzt_layoutoffset_dim]current~page.south~west) { + ([xshift=0.45\c__gzt_potential_bindingoffset_dim,yshift=15mm+\c__gzt_potential_layoutoffset_dim]current~page.south~west) { \No\int_use:N\g__gzt_issue_number_int }; \node[name=__gzt_binding_w,inner~sep=\c_zero_dim,fill=white,rotate=90] at - ([xshift=0.45\c__gzt_bindingoffset_dim]current~page.west) { + ([xshift=0.45\c__gzt_potential_bindingoffset_dim]current~page.west) { \MakeUppercase{\c__gzt_journal_title_string_tl} }; \node[name=__gzt_binding_nw,inner~sep=\c_zero_dim,fill=white,rotate=90,anchor=east] at - ([xshift=0.45\c__gzt_bindingoffset_dim,yshift=-15mm-\c__gzt_layoutoffset_dim]current~page.north~west) { + ([xshift=0.45\c__gzt_potential_bindingoffset_dim,yshift=-15mm-\c__gzt_potential_layoutoffset_dim]current~page.north~west) { \l__gzt_uppercased_date_format\displaydate{__gzt_date} }; \end{tikzpicture} @@ -1106,7 +1179,7 @@ \vfill% \noindent% \hspace*{10mm}% - \hspace*{-\c__gzt_layoutoffset_dim} + \hspace*{-\c__gzt_potential_layoutoffset_dim} \includegraphics[height=22.5mm]{\c__gzt_smf_logo_file_string_tl}% \vfill% \clearpage% @@ -1205,41 +1278,32 @@ \tl_new:N \g__gzt_display_inside_backcover_tl% \tl_gset:Nn \g__gzt_display_inside_backcover_tl {% \bool_gset_true:N \g__gzt_inside_backcover_bool% + \cleardoublepage% \pagestyle{__gzt_inside_backcover_ps}% \exp_after:wN\newgeometry\exp_after:wN{\c__gzt_inside_cover_geometry_tl}% - % \file_if_exist:nT { \c__gzt_authors_instructions_file_tl } {% - \bool_if:NTF {\g__gzt_no_inside_backcover_bool} { - \hbox{} - }{% - \small% - \begin{__gzt_inside_cover_tcb}[__gzt_tcb_inside_backcover_style] - % \small% - % Page~ - % \ifoddpage% - % im - % \fi - % paire.\par{} - \file_if_exist:nT { \c__gzt_authors_instructions_file_tl } {% - % \begin{multicols}{2} - % \setlength{\columnsep}{1mm} - \file_input:n {\c__gzt_authors_instructions_file_tl} - % \end{multicols} - % \setlength{\columnseprule}{1pt} - \tcblower - } - \begin{description}[leftmargin=1em] - \item[\c__gzt_latexclass_string_tl{}~:] - \__gzt_display_people_by_role:n { classdesigner } - \item[\c__gzt_artistic_director_string_tl{}~:] - \__gzt_display_people_by_role:n { graphicdesigner } - \item[\c__gzt_printer_string_tl{}~:] \g__gzt_printer_text_tl - \end{description} - \g__gzt_font_designer_text_tl - \end{__gzt_inside_cover_tcb} - } - % }{% - % \hbox{} - % } + \bool_if:NTF {\g__gzt_no_inside_backcover_bool} { + \hbox{} + }{% + \small% + \begin{__gzt_inside_cover_tcb}[__gzt_tcb_inside_backcover_style] + \file_if_exist:nT { \c__gzt_authors_instructions_file_tl } {% + % \begin{multicols}{2} + % \setlength{\columnsep}{1mm} + \file_input:n {\c__gzt_authors_instructions_file_tl} + % \end{multicols} + % \setlength{\columnseprule}{1pt} + \tcblower + } + \begin{description}[leftmargin=1em] + \item[\c__gzt_latexclass_string_tl{}~:] + \__gzt_display_people_by_role:n { classdesigner } + \item[\c__gzt_artistic_director_string_tl{}~:] + \__gzt_display_people_by_role:n { graphicdesigner } + \item[\c__gzt_printer_string_tl{}~:] \g__gzt_printer_text_tl + \end{description} + \g__gzt_font_designer_text_tl + \end{__gzt_inside_cover_tcb} + } \bool_gset_false:N \g__gzt_inside_backcover_bool } \tl_new:N \g__gzt_display_backcover_tl% @@ -1288,9 +1352,7 @@ \__gzt_people:nnnnnnnn {#2}{#3}{#4}{}{}{#1}{secretary}{} } \NewDocumentCommand \issuesetup { m } { - \keys_set:nn { gzt/issuesetup } { #1 } -\hypersetup{pdftitle=\l__gzt_pdftitle_string_tl} -\hypersetup{pdfauthor=\l__gzt_pdfauthor_string_tl} + \keys_set:nn { gzt/issuesetup } {frontcoverimageoptions={width=\c__gzt_frontcover_image_width_dim},#1} \int_compare:nNnT {\g__gzt_issue_number_int}<{1} { \int_set:Nn \g__gzt_issue_number_int { \c__gzt_first_issue_number_int } @@ -1342,7 +1404,7 @@ } \IfNoValueF {#1} { - \keys_set:nn { gzt/authors } { #1 } + \keys_set:nn { gzt/interviewees } { #1 } } \tl_set:Nn \l__gzt_people_first_last_name_tl {#2} \__gzt_people:nVVVVnxV @@ -1354,7 +1416,7 @@ {} {interviewee-art-\int_use:N \g__gzt_articles_int} {} - \maketitle + % \maketitle } \NewDocumentCommand \academicsignature { m } { \__gzt_display_academic_signature:n {#1} @@ -1473,7 +1535,7 @@ } \iow_open:Nn \g__gzt_bib_out_iow { \c__gzt_issue_bib_path_string_tl } \tl_new:N \g__gzt_abstract_body_tl -\NewDocumentEnvironment{abstract}{ } +\NewDocumentEnvironment{abstract}{} {\CollectAbstract} {\endCollectAbstract} \NewEnviron{CollectAbstract} @@ -1596,11 +1658,23 @@ \tl_new:N \g__gzt_citeauthor_no_firstinits% \tl_new:N \g__gzt_citeauthor_tl% \tl_new:N \g__gzt_citeinterviewee_tl% +\tl_new:N \g__gzt_blx_given_first_inits_tl% +\@ifpackagelater{biblatex}{2016/01/01}{% + \tl_set:Nn \g__gzt_blx_given_first_inits_false_tl + {% + \togglefalse{blx@giveninits}% + } +}{ + \tl_set:Nn \g__gzt_blx_given_first_inits_false_tl + {% + \togglefalse{blx@firstinits}% + } +} \cs_new_protected:Nn \__gzt_citeauthor_no_firstinits:n {% \tl_gset:Nn \g__gzt_citeauthor_tl {% \DeclareNameAlias{labelname}{default}% \group_begin: - \togglefalse{blx@firstinits}% + \g__gzt_blx_given_first_inits_false_tl \citeauthor{#1} \group_end: }% @@ -1634,6 +1708,7 @@ \FloatBarrier% \int_gincr:N \g__gzt_item_in_rubric_int \dim_set_eq:NN \parindent \c__gzt_original_parindent_dim +\glsresetall \setcounter{section}{0} \setcounter{figure}{0} \setcounter{table}{0} @@ -1670,6 +1745,22 @@ } } } +\DTLforeach*[\DTLiseq{\l__gzt_people_role_tl}{interviewee-art-\int_use:N \g__gzt_articles_int}]{people}{% + \l__gzt_people_first_last_name_tl=first-last-name% + ,\l__gzt_people_role_tl=role% +}{% + \tl_if_in:NnT \l__gzt_people_role_tl { interviewee } { + \DTLiffirstrow{% + \tl_put_right:Nx + \l__gzt_people_first_last_names_tl + {\exp_not:V\l__gzt_people_first_last_name_tl} + }{ + \tl_put_right:Nx + \l__gzt_people_first_last_names_tl + {~and~\exp_not:V\l__gzt_people_first_last_name_tl} + } + } +} \tl_if_empty:NF \g__gzt_title_tl {% \iow_now:Nx \g__gzt_bib_out_iow {% @article{ @@ -1701,7 +1792,7 @@ {% \begin{tikzpicture}[remember~picture,overlay] \draw[fill=__gzt_circlerule_color,draw=__gzt_circlerule_color,line~width=0.7mm] - ([xshift=-\c__gzt_innermargin_dim-\c__gzt_layoutoffset_dim]0,0 -| current~page.west) -- (\linewidth,0);% + ([xshift=-\c__gzt_innermargin_dim-\c__gzt_potential_layoutoffset_dim]0,0 -| current~page.west) -- (\linewidth,0);% \fill[__gzt_circlerule_color] (\linewidth-2\pgflinewidth,0) circle [radius=2.75mm]; \end{tikzpicture}% }% @@ -1738,9 +1829,11 @@ }{ \g__gzt_short_title_tl% } - \bool_if:nF { \tl_if_empty_p:N \g__gzt_short_subtitle_tl || \g__gzt_interview_rubric_bool || \g__gzt_rearviewmirror_rubric_bool } - { - \space\textendash{}\space\g__gzt_short_subtitle_tl + \bool_if:NF {\g__gzt_subtitle_not_in_toc_bool} { + \bool_if:nF { \tl_if_empty_p:N \g__gzt_short_subtitle_tl || \g__gzt_interview_rubric_bool || \g__gzt_rearviewmirror_rubric_bool } + { + \space\textendash{}\space\g__gzt_short_subtitle_tl + } } \bool_if:nF { \tl_if_empty_p:N \l__gzt_people_first_last_names_tl || \g__gzt_interview_rubric_bool || \g__gzt_rearviewmirror_rubric_bool } { @@ -1768,14 +1861,12 @@ {% \begin{adjustbox}{minipage=\g__gzt_abstract_box_width_dim,max~width=\g__gzt_abstract_box_width_dim,valign=t} \mbox{} - \tl_if_exist:NTF \g__gzt_abstract_body_tl + \tl_if_exist:NT \g__gzt_abstract_body_tl {% \raggedright% \bfseries% \color{__gzt_article_abstract_color}% \g__gzt_abstract_body_tl - } - {% }% \end{adjustbox} }% @@ -1832,6 +1923,12 @@ } } \bool_gset_false:N \g__gzt_previous_article_with_bibliography_or_minibio_bool +\bool_if:NT {\g__gzt_for_authors_bool} { + \hypersetup{% + pdftitle=\g__gzt_short_title_tl, + pdfauthor=\l__gzt_people_first_last_names_tl + } +} \bool_if:nF { \g__gzt_for_authors_bool } { % \xleaders\vbox { % \bigskip% @@ -1888,23 +1985,34 @@ \bool_if:nT \g__gzt_interview_rubric_bool { \dim_zero:N \parindent - \tl_if_empty:NF \g__gzt_people_photo_tl - { - \begin{adjustbox}{center} - \includegraphics[height=50mm]{\g__gzt_people_photo_tl} - \end{adjustbox} - } + % \tl_if_empty:NF \l__gzt_people_photo_tl + % { + % \begin{adjustbox}{center} + % \includegraphics[height=50mm]{\l__gzt_people_photo_tl} + % \end{adjustbox} + % } } \color{__gzt_default_text_color}% \IfBooleanF {#1}% { - \bool_if:nF { \g__gzt_multicols_bool || \g__gzt_rearviewmirror_rubric_bool} + \bool_if:nF { \g__gzt_multicols_bool || \g__gzt_rearviewmirror_rubric_bool } { \begin{multicols}{2}% + } } } +\bool_if:nT { \g__gzt_for_authors_bool } +{ + \AtEndDocument{% + \bool_if:NT {\g__gzt_multicols_bool} { + \end{multicols}% + } +} } \AtEndPreamble{\file_input:n {\c__gzt_configuration_file_string_tl}} +\file_if_exist:nT { \c__gzt_acronyms_file_string_tl } {% + \AtEndPreamble{\loadglsentries{\c__gzt_acronyms_file_string_tl}} +} \@ifpackageloaded{etoc}{% \newif\ifShowPartPageInToc % used before \part{Livres} \newtoks\toctabletok @@ -2055,7 +2163,7 @@ \cs_new_protected:Nn \__gzt_display_toc: { \__gzt_before_frontmatter_stuff: {} - \__gzt_boxed_issue_number:nn {\c__gzt_issue_frontcover_image_path_string_tl}{\c__gzt_toc_string_tl} + \__gzt_boxed_issue_number:nn {\g__gzt_frontcover_image_file_tl}{\c__gzt_toc_string_tl} \phantomsection \hypertarget{__gzt_toc}{} \bookmark[dest=__gzt_toc,level=part]{\c__gzt_toc_string_tl} @@ -2083,7 +2191,7 @@ } \newlist{__gzt_minitoc_list}{itemize}{1} \setlist[__gzt_minitoc_list]{itemsep=2ex,label=\textcolor{__gzt_cover_itemize_label_color}\textbullet} -\NewDocumentEnvironment{minitoclist}{ } +\NewDocumentEnvironment{minitoclist}{} {% \cs_set_eq:NN \__gzt_orig_item \item \RenewDocumentCommand \item { s O{} }{% @@ -2104,7 +2212,7 @@ \__gzt_before_editorial_presidentmessage:nn {\c__gzt_smf_logo_file_string_tl}{\c__gzt_president_message_string_tl} \phantomsection \par% - \addcontentsline{toc}{part}{\l__gzt_smf_short_string_tl}% + \addcontentsline{toc}{part}{\g__gzt_smf_short_string_tl}% \addcontentsline{toc}{chapter}{\c__gzt_president_message_string_tl}% } \cs_new_protected:Nn \__gzt_after_display_presidentmessage: @@ -2168,7 +2276,7 @@ {\c_zero_dim} {} \AtBeginDocument{% - % \graphicspath{{\c__gzt_issue_images_path_string_tl//}} + \graphicspath{{\c__gzt_issue_images_path_string_tl//}{../\c__gzt_issue_images_path_string_tl//}} % \glsdisablehyper \g__gzt_mainmatter_switch_tl % \bool_gset_false:N \g__gzt_frontmatter_bool @@ -2188,26 +2296,33 @@ disable% } } - \bool_if:NTF {\g__gzt_for_authors_bool} { - \thispagestyle{empty} - \includegraphics{gzt-logo} - \hfill - \includegraphics[height=22.5mm]{\c__gzt_smf_logo_file_string_tl}% - \par - \vfill - \begin{adjustbox}{valign=c,minipage=\linewidth} - \Large% - \c__gzt_preliminary_version_string_tl% - \end{adjustbox} - \vfill - \newpage - }{ + % \bool_if:NTF {\g__gzt_for_authors_bool} { + % \thispagestyle{empty} + % \includegraphics{gzt-logo} + % \hfill + % \includegraphics[height=22.5mm]{\c__gzt_smf_logo_file_string_tl}% + % \par + % \vfill + % \begin{adjustbox}{valign=c,minipage=\linewidth} + % \Large% + % \c__gzt_preliminary_version_string_tl% + % \end{adjustbox} + % \vfill + % \newpage + % }{ + % \bool_if:NF {\g__gzt_inside_pages_bool} { + % \g__gzt_display_frontcover_tl + % \g__gzt_display_inside_frontcover_tl + % } + % } + \bool_if:NF {\g__gzt_for_authors_bool} { \bool_if:NF {\g__gzt_inside_pages_bool} { \g__gzt_display_frontcover_tl - \g__gzt_display_inside_frontcover_tl - } - \bool_if:NT {\g__gzt_cover_bool} { - % \end{document} + \bool_if:NTF {\g__gzt_coverpage_bool} { + \AfterEndPreamble{\end{document}} + }{ + \g__gzt_display_inside_frontcover_tl + } } } } @@ -2474,14 +2589,14 @@ ]% [% \adjustbox{raise={\c__gzt_header_yshift_dim}{\height}}{% - \large\bfseries\scshape\c__gzt_advertisement_string_tl% + \large\bfseries\scshape\color{__gzt_head_text_color}\c__gzt_advertisement_string_tl% }% ]% []% {}% {% \adjustbox{raise={\c__gzt_header_yshift_dim}{\height}}{% - \large\bfseries\scshape\c__gzt_advertisement_string_tl% + \large\bfseries\scshape\color{__gzt_head_text_color}\c__gzt_advertisement_string_tl% } }% { @@ -2500,6 +2615,24 @@ }% {\c__gzt_footer_size_font_tl\thepage}% } +\newpagestyle{__gzt_blank_pages_ps}[]{% + \sethead + {}% + {}% + {}% + % + \setfoot% + [\c__gzt_footer_size_font_tl\thepage]% + [% + \uppercase{\c__gzt_footer_string_tl} + ]% + []% + {}% + {% + \uppercase{\c__gzt_footer_string_tl}% + }% + {\c__gzt_footer_size_font_tl\thepage}% +}% \newpagestyle{__gzt_inside_backcover_ps}[]{% \sethead% [ @@ -2557,7 +2690,7 @@ ]% [% \adjustbox{raise={\c__gzt_header_yshift_dim}{\height}}{% - \large\bfseries\scshape\color{__gzt_rubric_head_text_color}\g__gzt_rubric_title_tl% + \large\bfseries\scshape\color{__gzt_head_text_color}\g__gzt_rubric_title_tl% }% ]% []% @@ -2567,7 +2700,7 @@ \g__gzt_rearviewmirror_rubric_bool || \g__gzt_books_rubric_bool }{ \adjustbox{raise={\c__gzt_header_yshift_dim}{\height}}{% - \bfseries\color{__gzt_rubric_head_text_color}\g__gzt_short_title_tl% + \bfseries\color{__gzt_head_text_color}\g__gzt_short_title_tl% } } }% @@ -2575,22 +2708,36 @@ \tikz[remember~picture,overlay] {\g__gzt_mainmatter_oddpage_headrule_tl} }% % - \setfoot% - [\c__gzt_footer_size_font_tl\thepage]% - [% +\bool_if:nTF { \g__gzt_for_authors_bool } { + \setfoot% + [\c__gzt_footer_size_font_tl\thepage]% + [% \uppercase{\c__gzt_footer_string_tl} - ]% - []% - {}% - {% - \uppercase{\c__gzt_footer_string_tl}% - }% - {\c__gzt_footer_size_font_tl\thepage}% + ]% + [\c__gzt_footer_size_font_tl \c__gzt_compiled_string_tl\today]% + {\c__gzt_footer_size_font_tl \c__gzt_compiled_string_tl\today}% + {% + \uppercase{\c__gzt_footer_string_tl}% + }% + {\c__gzt_footer_size_font_tl\thepage}% + }{ + \setfoot% + [\c__gzt_footer_size_font_tl\thepage]% + [% + \uppercase{\c__gzt_footer_string_tl} + ]% + []% + {}% + {% + \uppercase{\c__gzt_footer_string_tl}% + }% + {\c__gzt_footer_size_font_tl\thepage}% + } } -\NewDocumentCommand \acknowledgements { m } { +\NewDocumentCommand \acknowledgements { +m } { \__gzt_article_acknowledgements:n {#1}% } -\NewDocumentCommand \printminibios { } { +\NewDocumentCommand \printminibios {} { \bool_if:NT {\g__gzt_multicols_bool} { \end{multicols}% } @@ -2620,17 +2767,20 @@ } \let\printauthorsdetails\printminibios \cs_set_eq:NN \__gzt_printbibliography \printbibliography -\RenewDocumentCommand \printbibliography { O{} } { +\RenewDocumentCommand \printbibliography { s O{} } { \bool_if:NT {\g__gzt_multicols_bool} { \end{multicols}% } \FloatBarrier% \begin{__gzt_bibliography_tcbox} - \__gzt_printbibliography[heading=subbibliography,resetnumbers,#1] + \__gzt_printbibliography[heading=subbibliography,resetnumbers,#2] \end{__gzt_bibliography_tcbox} % - \nopagebreak[0] - \printauthorsdetails + \IfBooleanF {#1} + { + \nopagebreak[0] + \printauthorsdetails + } } \deftranslation[to=French]{__gzt_century}{si\`ecle}% \deftranslation[to=English]{__gzt_century}{century}% @@ -2638,7 +2788,7 @@ \deftranslation[to=English]{__gzt_first}{\up{st}\xspace}% \deftranslation[to=French]{__gzt_nth}{\ieme}% \deftranslation[to=English]{__gzt_nth}{\up{th}\xspace}% -\deftranslation[to=French]{__gzt_bc}{avant~J.-C.}% +\deftranslation[to=French]{__gzt_bc}{avant~J.-C}% \deftranslation[to=English]{__gzt_bc}{BC}% \cs_new_protected:Nn \__gzt_century:n { @@ -2646,9 +2796,49 @@ \int_to_roman:n {\int_abs:n {#1}} }% \int_compare:nNnTF { \int_abs:n {#1} } > { 1 }{\translate{__gzt_nth}}{\translate{__gzt_first}} +} +\cs_new_protected:Nn \__gzt_century_suffix:n +{ \translate{__gzt_century}% - \space - \int_compare:nNnT { #1 } < { 0 }{\translate{__gzt_bc}} + \int_compare:nNnT { #1 } < { 0 }{ + \space + \translate{__gzt_bc} + \IfLanguageName {french}{ + \@ifnextchar.% + { + }{ + .\xspace + }% + } + }{ + } +} +\cs_new_protected:Nn \__gzt_advertisement:nn + { + \vfill + \begin{center} + \dim_set:Nn \fboxsep {\c_zero_dim} + \fbox{% + \includegraphics[max~size={\linewidth}{\textheight},#1]{#2} + } + \end{center} + \vfill + } +\NewDocumentCommand \advertisement { O{} m } + { + \__gzt_advertisement:nn {#1}{#2} + } +\cs_new_protected:Nn \__gzt_fullpageadvertisement:nn + { + \newpage + \thispagestyle{__gzt_advertisement_ps} + \begin{minipage}[c][\textheight][c]{\textwidth}% + \centering\includegraphics[max~size={\linewidth}{\textheight},#1]{#2}% + \end{minipage}% + } +\NewDocumentCommand \fullpageadvertisement { O{} m } +{ + \__gzt_fullpageadvertisement:nn {#1}{#2} } \NewDocumentCommand \aboutfrontcover { O{} O{\c__gzt_about_frontcover_string_tl} m } { @@ -2723,12 +2913,20 @@ { \__gzt_rubric:nnn {#1}{\c__gzt_latex_rubric_string_tl}{} } +\NewDocumentCommand \forum {O{}} +{ + \__gzt_rubric:nnn {#1}{\c__gzt_forum_rubric_string_tl}{picto-forum} +} +\NewDocumentCommand \moralreport {O{}} +{ + \__gzt_rubric:nnn {#1}{\c__gzt_moralreport_rubric_string_tl}{\c__gzt_smf_logo_file_string_tl} +} \DeclareCiteCommand{\citeinterviewee}{}{% \printnames{interviewee}% } {}{} \DeclareCiteCommand{\citereviewer}{}{% - \togglefalse{blx@firstinits}% + \g__gzt_blx_given_first_inits_false_tl \printnames{reviewer}% } {}{} @@ -2778,10 +2976,10 @@ \NewDocumentCommand \smf { s } { \IfBooleanTF {#1} { - \l__gzt_smf_string_tl + \g__gzt_smf_string_tl } { - \l__gzt_smf_short_string_tl + \g__gzt_smf_short_string_tl } \xspace } @@ -2818,18 +3016,27 @@ } \xspace } -\NewDocumentCommand \gztcl { } +\NewDocumentCommand \gztcl {} {% - \textsl{\texttt{\c__gzt_gzt_class_name_tl}} + \textsl{\texttt{\c__gzt_class_name_tl}} \xspace } -\NewDocumentCommand \gztarticlecl { } +\NewDocumentCommand \gztarticlecl {} {% - \textsl{\texttt{\c__gzt_gztarticle_class_name_tl}} + \textsl{\texttt{\c__gzt_article_class_name_tl}} \xspace } -\NewDocumentCommand \century { m } {% - \__gzt_century:n {#1}% +\NewDocumentCommand \century { s m } {% + \__gzt_century:n {#2}% + \IfBooleanTF {#1} + { + \int_compare:nNnT { #2 } < { 0 }{ + \__gzt_century_suffix:n {#2}% + } + } + { + \__gzt_century_suffix:n {#2}% + } } \NewDocumentCommand \aside { s m } {% \IfBooleanTF {#1} @@ -2884,7 +3091,7 @@ { \__gzt_epigraph:nn {#1}{#2}% } -\NewDocumentEnvironment{authorsinstructions}{ } +\NewDocumentEnvironment{authorsinstructions}{} {% \begingroup \tcbverbatimwrite{\c__gzt_authors_instructions_file_tl} @@ -2974,13 +3181,18 @@ __gzt_tcb_minibiographies_acknowledgments_style, #1 } +\DeclareTColorBox{inset}{ O{} } +{ + __gzt_tcb_minibiographies_acknowledgments_style, + #1 +} \NewDocumentEnvironment{bookreview}{ O{} m } { \keys_set:nn { gzt/bookreview } { #2 } \begin{__gzt_book_review}[#1] \xpatchfieldformat{title}{mkbibemph}{textbf}{}{}% \xpretonameformat{author}{\color{__gzt_people_color}}{}{}% - \togglefalse{blx@firstinits}% + \g__gzt_blx_given_first_inits_false_tl \noindent\fullcite{\g__gzt_bookreview_bibkey_tl} \vspace{10mm} \tcblower @@ -3004,77 +3216,17 @@ { #1 } -\NewDocumentEnvironment{bookadvertisement}{ O{} m } -{% - \keys_set:nn { gzt/bookadvertisement } { #2 }% +\NewDocumentCommand \bookadvertisement {O{} m} +{ \newpage{} \mbox{} \vfill \begin{__gzt_book_advertisement}[#1] - \begin{tcolorbox}[ - lefthand~width=47.5mm - ,sidebyside - ,colback=__gzt_book_advertisement_bg_color - % ,sharp~corners=all - ,fontlower=\large - ,flushleft~lower - ,boxrule=\c_zero_dim - ,frame~hidden% - ,leftright~skip=\c_zero_dim - ,before~skip=\c_zero_dim - ,lower~separated=false - ] - \adjustbox{frame}{\includegraphics[width=45mm]{\g__gzt_bookadvertisement_frontcover_tl}}% - \tcblower - \xpatchfieldformat{title}{mkbibemph}{textbf}{}{}% - \def\abx@str{abx@lstr}% - \noindent\fullcite{\g__gzt_bookadvertisement_bibkey_tl} - \def\abx@str{abx@sstr}% - \end{tcolorbox} - \bigskip - \c__gzt_published_with_help_of_string_tl~\citecopublisher{\g__gzt_bookadvertisement_bibkey_tl}. - \par - \bigskip - \citefrenchabstract{\g__gzt_bookadvertisement_bibkey_tl} - \par - \medskip - % - \begin{center} - Prix~public~:\space - \EUR{\__gzt_cite_public_price{\g__gzt_bookadvertisement_bibkey_tl}} - \space\textendash\space Prix~membre~\smf{}~:\space - \EUR{\__gzt_cite_smf_price{\g__gzt_bookadvertisement_bibkey_tl}} - \space\textendash\space Frais~de~port~non~compris - \end{center} - % + \fullcite{#2} \par \bigskip - \begin{otherlanguage}{english} - \itshape - \__gzt_cite_englishabstract{\g__gzt_bookadvertisement_bibkey_tl} - % - \par - \medskip - % - \begin{center} - Public~price:\space - \EUR{\__gzt_cite_public_price{\g__gzt_bookadvertisement_bibkey_tl}} - \space\textendash\space \smf{}~member~price:\space - \EUR{\__gzt_cite_smf_price{\g__gzt_bookadvertisement_bibkey_tl}} - \space\textendash\space Shipping~costs~not~included - \end{center} - \end{otherlanguage} - \par - \bigskip - }{ \tcblower \includegraphics[height=22.5mm]{\c__gzt_smf_logo_file_string_tl}% - % \newline - % \smallskip - % % \begin{adjustbox}{valign=t,minipage=60mm} - % \l__gzt_journal_address_tl - % % \end{adjustbox} - % \newline \par{} \smallskip% \url{\l__gzt_journal_url_tl} @@ -3090,10 +3242,12 @@ \bool_if:NF {\g__gzt_refsection_bool} { \begin{refsection} } - \tl_if_in:NnT - { \c__gzt_advertisement_directory_string_tl } { #1 } {% - \newpage - \thispagestyle{__gzt_advertisement_ps} + \bool_if:NF { \g__gzt_backcover_bool } { + \tl_if_in:NnT + { \c__gzt_advertisement_directory_string_tl } { #1 } {% + \newpage + \thispagestyle{__gzt_advertisement_ps} + } } \inputfrom{#1}{#2} \bool_if:NT {\g__gzt_multicols_bool} { @@ -3104,21 +3258,27 @@ } \cleancustomization% } -\bool_if:NF {\g__gzt_inside_pages_bool} { - \preto\@enddocumenthook{ - \clearpage - \pagenumbering{roman}% - \addtocounter{page}{2} - \ifoddpage% - \hbox{} - \fi - \newpage - \bool_gset_true:N \g__gzt_backmatter_bool - \g__gzt_display_inside_backcover_tl - \newpage - \g__gzt_display_backcover_tl +\bool_if:NF {\g__gzt_coverpage_bool} { + \bool_if:NF {\g__gzt_inside_pages_bool} { + \preto\@enddocumenthook{ + \bool_gset_true:N \g__gzt_backmatter_bool + \g__gzt_display_inside_backcover_tl + \newpage + \g__gzt_display_backcover_tl + }% }% }% +\bool_if:NF {\g__gzt_coverpage_bool} { + \bool_if:nF { \g__gzt_for_authors_bool } { + \bool_if:nT { \g__gzt_inside_pages_bool } { + \AtEndDocument{% + \prg_replicate:nn + { \int_mod:nn { 4 - \int_mod:nn { \getpagerefnumber{LastPage} } { 4 } } { 4 } } + { \thispagestyle{__gzt_blank_pages_ps}\null\clearpage } + } + } + } +} \pgfplotsset{% /pgf/number~format/.cd, use~comma, @@ -3128,11 +3288,22 @@ \defbibheading{bibassection}[\bibname]{\section*{#1}}% \renewcommand{\bibfont}{\normalfont\footnotesize} \exp_after:wN\addbibresource\exp_after:wN{\c__gzt_issue_bib_path_string_tl} -\DeclareNameFormat{firstinits-last}{% - \usebibmacro{name:first-last}{#1}{#4}{#5}{#7}% - \usebibmacro{name:andothers}% +\@ifpackagelater{biblatex}{2016/01/01}{% + \DeclareNameFormat{giveninits-last}{% + \nameparts{#1} + \usebibmacro{name:given-family} + {\namepartfamily} + {\namepartgiveni} + {\namepartprefix} + {\namepartsuffix}% + } +}{ + \DeclareNameFormat{giveninits-last}{% + \usebibmacro{name:first-last}{#1}{#4}{#5}{#7}% + \usebibmacro{name:andothers}% + } } -\DeclareNameAlias{labelname}{firstinits-last} +\DeclareNameAlias{labelname}{giveninits-last} \renewcommand*\bibnamedelimc{\addnbspace} \renewcommand*\bibnamedelimd{\addnbspace} \renewbibmacro{in:}{% @@ -3287,12 +3458,10 @@ colback=__gzt_bibliography_minibios_acknowledgments_bg_color, breakable, boxrule=\c_zero_dim, - drop~lifted~shadow=black, + extras~unbroken~and~last={drop~lifted~shadow}, sharp~corners=all,% skin=enhancedlast, - skin~first~is~subskin~of={enhancedmiddle}{no~shadow}, - skin~middle~is~subskin~of={enhancedmiddle}{no~shadow}, - skin~last~is~subskin~of={enhancedlast}{drop~lifted~shadow} + height~fixed~for=middle, } } \tcbset{% @@ -3320,7 +3489,7 @@ } \bfseries } -\DeclarePlainStyle{«~}{~»}{`}{'} +\DeclarePlainStyle{^^c2^^ab~}{~^^c2^^bb}{`}{'} \setcounter{topnumber}{3} \renewcommand{\topfraction}{0.8} \addtolength{\skip\footins}{.25\baselineskip} @@ -3416,14 +3585,14 @@ \newtheorem[style=proof,frenchtitle=Preuve]{proof} \cs_new_protected:Nn \__gzt_clone_theorem:nn { - \NewDocumentEnvironment{#1}{ } + \NewDocumentEnvironment{#1}{} { \begin{#2} } { \end{#2} } - \NewDocumentEnvironment{#1*}{ } + \NewDocumentEnvironment{#1*}{} { \begin{#2*} } @@ -3448,19 +3617,19 @@ \cs_set_eq:NN \__gzt_orig_arccos \arccos \cs_set_eq:NN \__gzt_orig_arcsin \arcsin \cs_set_eq:NN \__gzt_orig_arctan \arctan -\RenewDocumentCommand \arccos { } { +\RenewDocumentCommand \arccos {} { \IfLanguageName {french}{\Arccos}{\__gzt_orig_arccos}% } -\RenewDocumentCommand \arcsin { } { +\RenewDocumentCommand \arcsin {} { \IfLanguageName {french}{\Arcsin}{\__gzt_orig_arcsin}% } -\RenewDocumentCommand \arctan { } { +\RenewDocumentCommand \arctan {} { \IfLanguageName {french}{\Arctan}{\__gzt_orig_arctan}% } \DeclareMathOperator{\ch}{ch} \DeclareMathOperator{\sh}{sh} \cs_set_eq:NN \__gzt_orig_tanh \tanh -\RenewDocumentCommand \tanh { } { +\RenewDocumentCommand \tanh {} { \IfLanguageName {french}{\operatorname{th}}{\__gzt_orig_tanh}% } \cs_set_eq:NN \__gzt_orig_log \log @@ -3485,25 +3654,25 @@ } \cs_set_eq:NN \__gzt_orig_leq \leq \cs_set_eq:NN \__gzt_orig_geq \geq -\RenewDocumentCommand \le { } {% +\RenewDocumentCommand \le {} {% \IfLanguageName {french}{\leqslant}{\__gzt_orig_leq}% } -\RenewDocumentCommand \leq { } {% +\RenewDocumentCommand \leq {} {% \IfLanguageName {french}{\leqslant}{\__gzt_orig_leq}% } -\RenewDocumentCommand \ge { } {% +\RenewDocumentCommand \ge {} {% \IfLanguageName {french}{\geqslant}{\__gzt_orig_geq}% } -\RenewDocumentCommand \geq { } {% +\RenewDocumentCommand \geq {} {% \IfLanguageName {french}{\geqslant}{\__gzt_orig_geq}% } -\NewDocumentCommand \N { } {\mathbb{N}} -\NewDocumentCommand \Z { } {\mathbb{Z}} -\NewDocumentCommand \D { } {\mathbb{D}} -\NewDocumentCommand \Q { } {\mathbb{Q}} -\NewDocumentCommand \R { } {\mathbb{R}} -\NewDocumentCommand \C { } {\mathbb{C}} -\NewDocumentCommand \K { } {\mathbb{K}} +\NewDocumentCommand \N {} {\mathbb{N}} +\NewDocumentCommand \Z {} {\mathbb{Z}} +\NewDocumentCommand \D {} {\mathbb{D}} +\NewDocumentCommand \Q {} {\mathbb{Q}} +\NewDocumentCommand \R {} {\mathbb{R}} +\NewDocumentCommand \C {} {\mathbb{C}} +\NewDocumentCommand \K {} {\mathbb{K}} \ExplSyntaxOff %% ---------------------------------------------------------------------------- |