diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/minimalist/minimalist-flow.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/minimalist/minimalist-flow.sty | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/minimalist/minimalist-flow.sty b/Master/texmf-dist/tex/latex/minimalist/minimalist-flow.sty index caaf9e51af5..9f3e52f939d 100644 --- a/Master/texmf-dist/tex/latex/minimalist/minimalist-flow.sty +++ b/Master/texmf-dist/tex/latex/minimalist/minimalist-flow.sty @@ -18,7 +18,7 @@ \NeedsTeXFormat{LaTeX2e}[2022-06-01] \ProvidesExplPackage {minimalist-flow} - {2023/09/27} {} + {2023/09/28} {} {The "flow" style of minimalist} \IfPackageLoadedTF { minimalist } {} @@ -715,6 +715,19 @@ heading_suffix "}\n" \RequirePackage { mathtools } \RequirePackage { amsthm } +\tl_const:Nn \c_minimalist_l_mathparen_latin_tl { $($ } +\tl_const:Nn \c_minimalist_r_mathparen_latin_tl { $)$ } +\tl_const:Nn \c_minimalist_l_mathparen_cjk_tl { \!\,( } +\tl_const:Nn \c_minimalist_r_mathparen_cjk_tl { )\!\, } +\cs_new:Nn \minimalist_insert_l_mathparen: + { + \tl_use:c { c_minimalist_l_mathparen_ \l_projlib_language_current_languagetype_tl _tl } + } +\cs_new:Nn \minimalist_insert_r_mathparen: + { + \tl_use:c { c_minimalist_r_mathparen_ \l_projlib_language_current_languagetype_tl _tl } + } + \def\tagform@#1{\maketag@@@{\textcolor{.!39!paper}{(\ignorespaces#1\unskip\@@italiccorr)}}} \PassOptionsToPackage { nopatch = eqnum } { microtype } @@ -733,7 +746,7 @@ heading_suffix "}\n" { \rlap{\vbox{\hbox{\parbox{\linewidth}{ {\thmnumber{ \minimalist_apply_title_numbering_style:n { #2 } \hspace{.75em} }\thmname{#1}} - {\color{main-text!50!paper}\thmnote{\hspace{.4em}$($#3$)$}} + {\color{main-text!50!paper}\thmnote{\hspace{.4em} \minimalist_insert_l_mathparen: #3 \minimalist_insert_r_mathparen: }} }}\hbox{\strut}\vspace{0pt}}} } \newtheoremstyle{simple-var} @@ -748,7 +761,7 @@ heading_suffix "}\n" { \rlap{\vbox{\hbox{\parbox{\linewidth}{ {\thmnumber{ \minimalist_apply_title_numbering_style:n { #2 } \hspace{.75em} }\thmname{#1}} - {\color{main-text!50!paper}\thmnote{\hspace{.4em}$($#3$)$}} + {\color{main-text!50!paper}\thmnote{\hspace{.4em} \minimalist_insert_l_mathparen: #3 \minimalist_insert_r_mathparen: }} }}\hbox{\strut}\vspace{0pt}}} } } @@ -763,7 +776,7 @@ heading_suffix "}\n" {\normalfont}{} {0pt} {{\thmnumber{ \minimalist_apply_title_numbering_style:n { #2 } \hspace{.75em} }\thmname{#1}} - {\color{main-text!50!paper}\thmnote{\hspace{.4em}$($#3$)$}}\nobreakspace\nobreakspace{\normalfont\textcolor{main-text!27!paper}{---}}\nobreakspace\nobreakspace} + {\color{main-text!50!paper}\thmnote{\hspace{.4em} \minimalist_insert_l_mathparen: #3 \minimalist_insert_r_mathparen: }}\nobreakspace\nobreakspace{\normalfont\textcolor{main-text!27!paper}{---}}\nobreakspace\nobreakspace} \newtheoremstyle{simple-var} {}{} { @@ -774,7 +787,7 @@ heading_suffix "}\n" {\normalfont}{} {0pt} {{\thmnumber{ \minimalist_apply_title_numbering_style:n { #2 } \hspace{.75em} }\thmname{#1}} - {\color{main-text!50!paper}\thmnote{\hspace{.4em}$($#3$)$}}\nobreakspace\nobreakspace{\normalfont\textcolor{main-text!27!paper}{---}}\nobreakspace\nobreakspace} + {\color{main-text!50!paper}\thmnote{\hspace{.4em} \minimalist_insert_l_mathparen: #3 \minimalist_insert_r_mathparen: }}\nobreakspace\nobreakspace{\normalfont\textcolor{main-text!27!paper}{---}}\nobreakspace\nobreakspace} } \theoremstyle{simple} |