diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/projlib/projlib-author.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/projlib/projlib-author.sty | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/Master/texmf-dist/tex/latex/projlib/projlib-author.sty b/Master/texmf-dist/tex/latex/projlib/projlib-author.sty index e3929df4e51..b8f389a9270 100644 --- a/Master/texmf-dist/tex/latex/projlib/projlib-author.sty +++ b/Master/texmf-dist/tex/latex/projlib/projlib-author.sty @@ -19,7 +19,7 @@ \RequirePackage{l3keys2e} \ProvidesExplPackage {projlib-author} - {2022/03/11} {} + {2022/03/17} {} {Enhanced author information block} \keys_define:nn { projlib-author } @@ -35,11 +35,13 @@ \cs_if_exist:NT \subjclass { \endinput } \tl_new:N \g__projlib_author_font_author_tl +\tl_new:N \g__projlib_author_font_institute_tl \tl_new:N \g__projlib_author_font_address_tl \tl_new:N \g__projlib_author_font_curraddr_tl \tl_new:N \g__projlib_author_font_email_tl \tl_gset:Nn \g__projlib_author_font_author_tl { \normalsize \normalfont \scshape } +\tl_gset:Nn \g__projlib_author_font_institute_tl { \small \normalfont } \tl_gset:Nn \g__projlib_author_font_address_tl { \small \normalfont \itshape } \tl_gset:Nn \g__projlib_author_font_curraddr_tl { \small \normalfont \itshape } \tl_gset:Nn \g__projlib_author_font_email_tl { \small \normalfont \ttfamily } @@ -67,56 +69,49 @@ } } -\ProvideDocumentCommand \address { m } +\cs_new_protected:Nn \projlib_author_affil_generic:nn + % #1 = the item + % #2 = the text { \hook_gput_code:nnn { cmd/@author/after } { projlib-author } { - \phantom {A} \\[-\baselineskip] + \phantom {A} \\[-.85\baselineskip] \bool_if:NF \g__projlib_author_affil_already_exist_bool { \skip_vertical:n { \g__projlib_author_length_innersep_dim } } \bool_set_true:N \g__projlib_author_affil_already_exist_bool - { \g__projlib_author_font_address_tl #1 } + { \use:c { g__projlib_author_font_ #1 _tl } #2 } \\ \phantom {} } } +\ProvideDocumentCommand \institute { m } + { + \projlib_author_affil_generic:nn { institute } { #1 } + } + +\ProvideDocumentCommand \address { m } + { + \projlib_author_affil_generic:nn { address } { #1 } + } + \ProvideDocumentCommand \curraddr { m } { - \hook_gput_code:nnn { cmd/@author/after } { projlib-author } - { - \phantom {A} \\[-\baselineskip] - \bool_if:NF \g__projlib_author_affil_already_exist_bool - { - \skip_vertical:n { \g__projlib_author_length_innersep_dim } - } - \bool_set_true:N \g__projlib_author_affil_already_exist_bool - { \g__projlib_author_font_curraddr_tl #1 } - \\ \phantom {} - } + \projlib_author_affil_generic:nn { curraddr } { #1 } } \ProvideDocumentCommand \email { m } { - \hook_gput_code:nnn { cmd/@author/after } { projlib-author } - { - \phantom {A} \\[-\baselineskip] - \bool_if:NF \g__projlib_author_affil_already_exist_bool - { - \skip_vertical:n { \g__projlib_author_length_innersep_dim } - } - \bool_set_true:N \g__projlib_author_affil_already_exist_bool - { \g__projlib_author_font_email_tl #1 } - \\ \phantom {} - } + \projlib_author_affil_generic:nn { email } { #1 } } \RequirePackage { regexpatch } -\xpatchcmd { \@maketitle } { \begin{tabular}[t]{c} } {} { - \xpatchcmd { \@maketitle } { \end{tabular} } {} {} {} -} {} +\xpatchcmd { \@maketitle } { \begin{tabular}[t]{c} } {} + { + \xpatchcmd { \@maketitle } { \end{tabular} } {} {} {} + } {} \tl_set:cn {@author} {} @@ -141,17 +136,17 @@ \RequirePackage{ projlib-language } \tl_new:N \g_projlib_author_keywordsname_style_tl - \tl_gset:Nn \g_projlib_author_keywordsname_style_tl {} + \tl_gset:Nn \g_projlib_author_keywordsname_style_tl { \itshape } \projlib_langauge_define_multilingual_text:Nn \keywordsname { - EN = \textsc{Key~words~and~phrases} , - FR = \textsc{Mots~et~phrases~clés} , - DE = \textsc{Schlüsselwörter~und~Phrasen} , - IT = \textsc{Parole~e~frasi~chiave} , - PT = \textsc{Palavras~e~frases~chave} , - BR = \textsc{Palavras~e~frases~chave} , - ES = \textsc{Palabras~y~frases~clave} , + EN = Key~words~and~phrases , + FR = Mots~et~phrases~clés , + DE = Schlüsselwörter~und~Phrasen , + IT = Parole~e~frasi~chiave , + PT = Palavras~e~frases~chave , + BR = Palavras~e~frases~chave , + ES = Palabras~y~frases~clave , CN = 关键词 , TC = 關鍵詞 , JP = キーワード , @@ -233,9 +228,11 @@ { \bool_if:NTF \g__projlib_author_already_maketitle_bool { + \group_begin: \projlib_author_backup_abstract: \getstored{projlib-author-abstract} \projlib_author_backup_endabstract: + \group_end: } { \bool_gset_true:N \g__projlib_author_abstract_before_maketitle_bool @@ -284,10 +281,13 @@ { \bool_if:NT \g__projlib_author_abstract_before_maketitle_bool { + \group_begin: \projlib_author_backup_abstract: \getstored{projlib-author-abstract} \projlib_author_backup_endabstract: + \group_end: } + \cs_undefine:N \institute \cs_undefine:N \address \cs_undefine:N \curraddr \cs_undefine:N \email |