diff options
author | Karl Berry <karl@freefriends.org> | 2022-03-17 20:32:09 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-03-17 20:32:09 +0000 |
commit | 48e05a672362ea9ddfdebd15a757252692380468 (patch) | |
tree | fe1fc103ce0a224d9727c401bc2cfb839fb8d7e3 /Master/texmf-dist/tex/latex/projlib | |
parent | 68c7fc4adb0973c55d9dab22d0f03dffc6e15bb8 (diff) |
jxu (17mar22)
git-svn-id: svn://tug.org/texlive/trunk@62769 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/projlib')
10 files changed, 136 insertions, 72 deletions
diff --git a/Master/texmf-dist/tex/latex/projlib/ProjLib.sty b/Master/texmf-dist/tex/latex/projlib/ProjLib.sty index cf262b3fe19..80741f79a12 100644 --- a/Master/texmf-dist/tex/latex/projlib/ProjLib.sty +++ b/Master/texmf-dist/tex/latex/projlib/ProjLib.sty @@ -19,7 +19,7 @@ \RequirePackage{l3keys2e} \ProvidesExplPackage {ProjLib} - {2022/03/11} {} + {2022/03/17} {} {Collective interface of the ProjLib toolkit} \keys_define:nn { ProjLib } 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 diff --git a/Master/texmf-dist/tex/latex/projlib/projlib-datetime.sty b/Master/texmf-dist/tex/latex/projlib/projlib-datetime.sty index aa182abe7c0..64ba9baf2a0 100644 --- a/Master/texmf-dist/tex/latex/projlib/projlib-datetime.sty +++ b/Master/texmf-dist/tex/latex/projlib/projlib-datetime.sty @@ -19,7 +19,7 @@ \RequirePackage{l3keys2e} \ProvidesExplPackage {projlib-datetime} - {2022/03/11} {} + {2022/03/17} {} {Convert numeric date-time string to natural language} \tl_new:N \g__projlib_datetime_input_format_tl diff --git a/Master/texmf-dist/tex/latex/projlib/projlib-draft.sty b/Master/texmf-dist/tex/latex/projlib/projlib-draft.sty index 9c9fd22e01b..02a2d884046 100644 --- a/Master/texmf-dist/tex/latex/projlib/projlib-draft.sty +++ b/Master/texmf-dist/tex/latex/projlib/projlib-draft.sty @@ -19,7 +19,7 @@ \RequirePackage{l3keys2e} \ProvidesExplPackage {projlib-draft} - {2022/03/11} {} + {2022/03/17} {} {Useful commands during draft stage} \keys_define:nn { projlib-draft } @@ -59,7 +59,7 @@ } } -\projlib_langauge_define_multilingual_text:Nn \__dnf_text +\projlib_langauge_define_multilingual_text:Nn \__projlib_draft_dnf_text { EN = To\ be\ finished , FR = Pas\ encore\ fini , @@ -74,7 +74,7 @@ RU = Не\ закончен , } -\projlib_langauge_define_multilingual_text:Nn \__dnf_report_text +\projlib_langauge_define_multilingual_text:Nn \__projlib_draft_dnf_report_text { EN = { Below\ is\ a\ list\ of\ outstanding\ items, \ followed\ by\ the\ corresponding\ page\ numbers. } , @@ -97,30 +97,30 @@ \ с\ соответствующими\ номерами\ страниц\ в\ скобках. } , } -\tl_new:c { __dnf_font } -\tl_gset:cn { __dnf_font } { \normalfont \ttfamily \bfseries \small } +\tl_new:c { __projlib_draft_dnf_font } +\tl_gset:cn { __projlib_draft_dnf_font } { \normalfont \ttfamily \bfseries \small } -\definecolor { __dnf_color } { RGB } { 21, 122, 20 } +\definecolor { __projlib_draft_dnf_color } { RGB } { 21, 122, 20 } -\newcounter { __dnf_counter } +\newcounter { __projlib_draft_dnf_counter } \tl_new:N \g__projlib_draft_dnf_report_tl \NewDocumentCommand \dnf { d<> } { \noindent - \projlib_draft_plain_box [ __dnf_color ] + \projlib_draft_plain_box [ __projlib_draft_dnf_color ] { - \stepcounter { __dnf_counter } - \__dnf_font - \__dnf_text + \stepcounter { __projlib_draft_dnf_counter } + \__projlib_draft_dnf_font + \__projlib_draft_dnf_text \c_space_tl - \# \the__dnf_counter + \# \the__projlib_draft_dnf_counter \IfNoValueF { #1 } { \, : ~ #1 } \tl_gput_right:Nx \g__projlib_draft_dnf_report_tl { \# \, - \int_value:w \the__dnf_counter + \int_value:w \the__projlib_draft_dnf_counter \c_space_tl \c_space_tl $\langle$ \skip_horizontal:n { 0.1em } @@ -144,14 +144,78 @@ { \tl_if_blank:VF \g__projlib_draft_dnf_report_tl { - \clearpage \noindent - \color { __dnf_color } - \__dnf_font - \__dnf_report_text \\[0.75\baselineskip] + \clearpage + \pagestyle{empty} + \noindent + \color { __projlib_draft_dnf_color } + \__projlib_draft_dnf_font + \__projlib_draft_dnf_report_text \\[0.75\baselineskip] \g__projlib_draft_dnf_report_tl } } +\projlib_langauge_define_multilingual_text:Nn \__projlib_draft_blind_text_tl + { + , EN = { + Hello,~here~is~some~text~without~a~meaning.~This~text~should~show~what~a~printed~text~will~look~like~at~this~place.~If~you~read~this~text,~you~will~get~no~information.~Really?~Is~there~no~information?~Is~there~a~difference~between~this~text~and~some~nonsense~like~``Huardest~gefburn''?~Not~at~all!~A~blind~text~like~this~gives~you~information~about~the~selected~font,~how~the~letters~are~written~and~an~impression~of~the~look.~This~text~should~contain~all~letters~of~the~alphabet~and~it~should~be~written~in~of~the~original~language.~There~is~no~need~for~special~content,~but~the~length~of~words~should~match~the~language. + } + , FR = { + Bonjour,~voici~un~texte~sans~signification.~Ce~texte~doit~montrer~à~quoi~ressemble~un~texte~imprimé~à~cet~endroit.~Si~vous~lisez~ce~texte,~vous~n'obtiendrez~aucune~information.~Vraiment~?~Il~n'y~a~aucune~information~?~Y~a-t-il~une~différence~entre~ce~texte~et~une~absurdité~comme~«~Huardest~gefburn~»~?~Pas~du~tout~!~Un~texte~aveugle~comme~celui-ci~vous~donne~des~informations~sur~la~police~choisie,~la~façon~dont~les~lettres~sont~écrites~et~une~impression~de~l'apparence.~Ce~texte~doit~contenir~toutes~les~lettres~de~l'alphabet~et~être~écrit~dans~la~langue~d'origine.~Il~n'est~pas~nécessaire~de~prévoir~un~contenu~spécial,~mais~la~longueur~des~mots~doit~correspondre~à~la~langue. + } + , DE = { + Hallo,~hier~ist~ein~Text~ohne~Bedeutung.~Dieser~Text~soll~zeigen,~wie~ein~gedruckter~Text~an~dieser~Stelle~aussehen~wird.~Wenn~Sie~diesen~Text~lesen,~werden~Sie~keine~Informationen~erhalten.~Wirklich?~Gibt~es~keine~Informationen?~Gibt~es~einen~Unterschied~zwischen~diesem~Text~und~irgendeinem~Blödsinn~wie~``Huardest~gefburn''?~Ganz~und~gar~nicht!~Ein~solcher~Blindtext~gibt~Ihnen~Informationen~über~die~gewählte~Schriftart,~wie~die~Buchstaben~geschrieben~sind~und~einen~Eindruck~vom~Aussehen.~Dieser~Text~sollte~alle~Buchstaben~des~Alphabets~enthalten~und~in~der~Originalsprache~geschrieben~sein.~Es~ist~kein~besonderer~Inhalt~erforderlich,~aber~die~Länge~der~Wörter~sollte~der~Sprache~entsprechen. + } + , IT = { + Ciao,~qui~c'è~un~drafto~senza~significato.~Questo~drafto~dovrebbe~mostrare~come~sarà~un~drafto~stampato~in~questo~posto.~Se~leggete~questo~drafto,~non~otterrete~alcuna~informazione.~Davvero?~Non~c'è~nessuna~informazione?~C'è~una~differenza~tra~questo~drafto~e~qualche~sciocchezza~come~``Huardest~gefburn''?~Niente~affatto!~Un~drafto~cieco~come~questo~ti~dà~informazioni~sul~font~selezionato,~su~come~sono~scritte~le~lettere~e~un'impressione~dell'aspetto.~Questo~drafto~dovrebbe~contenere~tutte~le~lettere~dell'alfabeto~e~dovrebbe~essere~scritto~nella~lingua~originale.~Non~c'è~bisogno~di~contenuti~speciali,~ma~la~lunghezza~delle~parole~dovrebbe~corrispondere~alla~lingua. + } + , PT = { + Olá,~aqui~está~um~texto~sem~significado.~Este~texto~deve~mostrar~como~será~um~texto~impresso~neste~local.~Se~ler~este~texto,~não~obterá~qualquer~informação.~A~sério?~Não~há~informação?~Há~alguma~diferença~entre~este~texto~e~alguns~disparates~como~"Huardest~gefburn"?~De~modo~algum!~Um~texto~cego~como~este~dá-lhe~informações~sobre~a~fonte~seleccionada,~como~as~letras~são~escritas~e~uma~impressão~do~aspecto.~Este~texto~deve~conter~todas~as~letras~do~alfabeto~e~deve~ser~escrito~na~língua~original.~Não~há~necessidade~de~conteúdo~especial,~mas~o~tamanho~das~palavras~deve~corresponder~à~língua. + } + , BR = { + Olá,~aqui~está~um~texto~sem~sentido.~Este~texto~deve~mostrar~como~será~um~texto~impresso~neste~lugar.~Se~você~ler~este~texto,~você~não~obterá~nenhuma~informação.~É~mesmo?~Não~há~nenhuma~informação?~Há~alguma~diferença~entre~este~texto~e~alguns~disparates~como~"Huardest~gefburn"?~De~jeito~nenhum!~Um~texto~cego~como~este~lhe~dá~informações~sobre~a~fonte~selecionada,~como~as~letras~são~escritas~e~uma~impressão~da~aparência.~Este~texto~deve~conter~todas~as~letras~do~alfabeto~e~deve~ser~escrito~no~idioma~original.~Não~há~necessidade~de~conteúdo~especial,~mas~o~tamanho~das~palavras~deve~corresponder~ao~idioma. + } + , ES = { + Hola,~aquí~hay~un~texto~sin~significado.~Este~texto~debe~mostrar~cómo~se~verá~un~texto~impreso~en~este~lugar.~Si~lees~este~texto,~no~obtendrás~ninguna~información.~¿En~serio?~¿No~hay~información?~¿Hay~alguna~diferencia~entre~este~texto~y~alguna~tontería~como~``Huardest~gefburn''?~¡Para~nada!~Un~texto~oculto~como~este~le~brinda~información~sobre~la~fuente~seleccionada,~cómo~se~escriben~las~letras~y~una~impresión~de~la~apariencia.~Este~texto~debe~contener~todas~las~letras~del~alfabeto~y~debe~estar~escrito~en~el~idioma~original.~No~hay~necesidad~de~contenido~especial,~pero~la~longitud~de~las~palabras~debe~coincidir~con~el~idioma. + } + , CN = { + 你好,这里有一些没有意义的文字。 此文本应显示打印文本在此位置的外观。 如果你阅读这段文字,你将不会得到任何信息。 真的没有信息吗? 这段文字和诸如 “劳仑衣普桑,认至将指点效则机,最你更枝” 或者 “想极整月正进好志次回总般,段然取向使张规军证回,世市总李率英茄持伴” 之类的废话有区别吗? 一点都没有! 这样的一段文本会给你提供关于所选字体的信息、字母的书写方式以及对外观的印象。 该文本应包含字母表中的所有字母,并且应使用原始语言编写。 不需要特别的内容,但字长要与语言相匹配。 + } + , TC = { + 你好,這裡有一些沒有意義的文字。此文本應顯示打印文本在此位置的外觀。如果你閱讀這段文字,你將不會得到任何信息。真的沒有信息嗎?這段文字和諸如 “勞崙衣普桑,認至將指點效則機,最你更枝” 或者 “想極整月正進好志次回總般,段然取向使張規軍證回,世市總李率英茄持伴” 之類的廢話有區別嗎?一點都沒有!這樣的一段文本會給你提供關於所選字體的信息、字母的書寫方式以及對外觀的印象。該文本應包含字母表中的所有字母,並且應使用原始語言編寫。不需要特別的內容,但字長要與語言相匹配。 + } + , JP = { + こんにちは、ここに意味のないテキストがあります。 このテキストは、この場所で印刷されたテキストがどのように見えるかを示す必要があります。 このテキストを読んでも、情報は得られません。 本当に? 情報はありませんか? このテキストと「アでニンはすミ」のようなナンセンスとの間に違いはありますか? 全くない! このようなブラインドテキストは、選択したフォント、文字の書き方、外観の印象に関する情報を提供します。 このテキストにはアルファベットのすべての文字が含まれている必要があり、元の言語で書かれている必要があります。 特別なコンテンツは必要ありませんが、単語の長さは言語と一致している必要があります。 + } + , RU = { + Здравствуйте,~вот~какой-то~текст~без~смысла.~Этот~текст~должен~показывать,~как~будет~выглядеть~печатный~текст~в~этом~месте.~Если~вы~прочитаете~этот~текст,~вы~не~получите~никакой~информации.~Действительно?~Нет~информации?~Есть~ли~разница~между~этим~текстом~и~какой-то~чепухой~вроде~``Бзостачщв~дрероих''?~Нисколько!~Слепой~текст,~подобный~этому,~дает~вам~информацию~о~выбранном~шрифте,~о~том,~как~написаны~буквы,~и~о~впечатлении~от~внешнего~вида.~Этот~текст~должен~содержать~все~буквы~алфавита~и~должен~быть~написан~на~языке~оригинала.~В~специальном~содержании~нет~необходимости,~но~длина~слов~должна~соответствовать~языку. + } + } + +\cs_new:Nn \projlib_draft_blind_text:n + { + \int_set:Nn \l_tmpa_int { #1 } + \int_do_until:nNnn { \l_tmpa_int } = { 0 } + { + \__projlib_draft_blind_text_tl + \c_space_tl + \int_add:Nn \l_tmpa_int { -1 } + } + } + +\hook_gput_code:nnn { begindocument/before } { projlib-draft } + { + \ProvideDocumentCommand \blindtext { O{} } + { + \tl_if_blank:nTF { #1 } + { + \__projlib_draft_blind_text_tl + } + { + \projlib_draft_blind_text:n { #1 } + } + } + } + \endinput %% %% End of file `projlib-draft.sty'. diff --git a/Master/texmf-dist/tex/latex/projlib/projlib-font.sty b/Master/texmf-dist/tex/latex/projlib/projlib-font.sty index 50ffb4258c2..136873b0462 100644 --- a/Master/texmf-dist/tex/latex/projlib/projlib-font.sty +++ b/Master/texmf-dist/tex/latex/projlib/projlib-font.sty @@ -19,7 +19,7 @@ \RequirePackage{l3keys2e} \ProvidesExplPackage {projlib-font} - {2022/03/11} {} + {2022/03/17} {} {Font selection and configuration} \keys_define:nn { projlib-font } diff --git a/Master/texmf-dist/tex/latex/projlib/projlib-language.sty b/Master/texmf-dist/tex/latex/projlib/projlib-language.sty index df1df41fd72..37b73af2598 100644 --- a/Master/texmf-dist/tex/latex/projlib/projlib-language.sty +++ b/Master/texmf-dist/tex/latex/projlib/projlib-language.sty @@ -19,7 +19,7 @@ \RequirePackage{l3keys2e} \ProvidesExplPackage {projlib-language} - {2022/03/11} {} + {2022/03/17} {} {Multi-language configuration} \clist_const:Nn \c__projlib_language_supported_clist @@ -405,7 +405,7 @@ \tl_new:N \g_projlib_language_parindent_latin_tl \tl_new:N \g_projlib_language_parindent_cjk_tl -\@ifclassloaded{beamer} +\@ifclassloaded { beamer } { \tl_gset:Nn \g_projlib_language_parindent_latin_tl { @@ -429,7 +429,7 @@ \hook_gput_code:nnn { begindocument } { projlib-language } { - \@ifpackageloaded{parskip} + \@ifpackageloaded { parskip } { \tl_gset:Nn \g_projlib_language_parindent_latin_tl { diff --git a/Master/texmf-dist/tex/latex/projlib/projlib-logo.sty b/Master/texmf-dist/tex/latex/projlib/projlib-logo.sty index ee59a9e5f43..2aec50e7db3 100644 --- a/Master/texmf-dist/tex/latex/projlib/projlib-logo.sty +++ b/Master/texmf-dist/tex/latex/projlib/projlib-logo.sty @@ -19,7 +19,7 @@ \RequirePackage{l3keys2e} \ProvidesExplPackage {projlib-logo} - {2022/03/11} {} + {2022/03/17} {} {The ProjLib logo} \keys_define:nn { projlib-logo } diff --git a/Master/texmf-dist/tex/latex/projlib/projlib-math.sty b/Master/texmf-dist/tex/latex/projlib/projlib-math.sty index 04d1f190bd4..b3b333c0cac 100644 --- a/Master/texmf-dist/tex/latex/projlib/projlib-math.sty +++ b/Master/texmf-dist/tex/latex/projlib/projlib-math.sty @@ -19,7 +19,7 @@ \RequirePackage{l3keys2e} \ProvidesExplPackage {projlib-math} - {2022/03/11} {} + {2022/03/17} {} {Efficient math setup} \keys_define:nn { projlib-math } diff --git a/Master/texmf-dist/tex/latex/projlib/projlib-paper.sty b/Master/texmf-dist/tex/latex/projlib/projlib-paper.sty index 6835198f3a7..240426477b0 100644 --- a/Master/texmf-dist/tex/latex/projlib/projlib-paper.sty +++ b/Master/texmf-dist/tex/latex/projlib/projlib-paper.sty @@ -19,7 +19,7 @@ \RequirePackage{l3keys2e} \ProvidesExplPackage {projlib-paper} - {2022/03/11} {} + {2022/03/17} {} {Configuration of the paper style} \keys_define:nn { projlib-paper } diff --git a/Master/texmf-dist/tex/latex/projlib/projlib-theorem.sty b/Master/texmf-dist/tex/latex/projlib/projlib-theorem.sty index 69d1ed3261d..8ef33efffcd 100644 --- a/Master/texmf-dist/tex/latex/projlib/projlib-theorem.sty +++ b/Master/texmf-dist/tex/latex/projlib/projlib-theorem.sty @@ -19,7 +19,7 @@ \RequirePackage{l3keys2e} \ProvidesExplPackage {projlib-theorem} - {2022/03/11} {} + {2022/03/17} {} {Configuration of theorem-like environments} \keys_define:nn { projlib-theorem } @@ -31,7 +31,7 @@ , nothms .bool_set:N = \l__projlib_theorem_no_theorems_bool , no-theorem-numbering .bool_set:N = \l__projlib_theorem_no_theorem_numbering_bool , no-theorem-numbering .initial:n = { false } - , no~theorem~numbering .bool_set:N = \l__projlib_theorem_no_theorem_numbering_bool + , no~theorem~numbering .bool_set:N = \l__projlib_theorem_no_theorem_numbering_bool , no theorem numbering .bool_set:N = \l__projlib_theorem_no_theorem_numbering_bool , nothmnum .bool_set:N = \l__projlib_theorem_no_theorem_numbering_bool , theorem-numbering .tl_set:N = \l__projlib_theorem_theorem_numbering_tl @@ -53,7 +53,7 @@ , no-preset-names .initial:n = { false } , no~preset~names .bool_set_inverse:N = \l__projlib_theorem_presetname_bool , no preset names .bool_set_inverse:N = \l__projlib_theorem_presetname_bool - , unknown .code:n = { \PassOptionsToPackage { \CurrentOption } { create-theorem } } + , unknown .code:n = { \PassOptionsToPackage { \CurrentOption } { create-theorem } } } \ProcessKeysOptions { projlib-theorem } @@ -112,30 +112,30 @@ { \bool_if:NTF \l__projlib_theorem_no_theorem_numbering_bool { - \exp_args:Nv \CreateTheorem { c_projlib_theorem_supported_clist } { numberless } + \exp_args:Nv \CreateTheorem { c_projlib_theorem_supported_clist } { numberless, create starred version } } { \tl_if_blank:eTF \l__projlib_theorem_theorem_numbering_tl { \cs_if_exist:cTF { c@chapter } { % with \chapter - \CreateTheorem {theorem} { parent counter = chapter } + \CreateTheorem {theorem} { parent counter = chapter, create starred version } } { % without \chapter - \CreateTheorem {theorem} { parent counter = section } + \CreateTheorem {theorem} { parent counter = section, create starred version } } } { \tl_if_eq:NnTF \l__projlib_theorem_theorem_numbering_tl { * } { - \CreateTheorem {theorem} { } + \CreateTheorem {theorem} { create starred version } } { - \CreateTheorem {theorem} { parent counter = \l__projlib_theorem_theorem_numbering_tl } + \CreateTheorem {theorem} { parent counter = \l__projlib_theorem_theorem_numbering_tl, create starred version } } } - \exp_args:Nv \CreateTheorem { c_projlib_theorem_supported_clist } { shared counter = theorem, quiet } + \exp_args:Nv \CreateTheorem { c_projlib_theorem_supported_clist } { shared counter = theorem, create starred version, quiet } } } |