summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/minimalist/minimalist-flow.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-09-28 21:19:40 +0000
committerKarl Berry <karl@freefriends.org>2023-09-28 21:19:40 +0000
commitc10857d5176043583649dec41eb40f76c55d9090 (patch)
treefb5c52d52f2964a3285373492940cd94a6c6adc0 /Master/texmf-dist/tex/latex/minimalist/minimalist-flow.sty
parent755d66cda858e523a28c32ff6486709d115cc51b (diff)
jxu (28sep23)
git-svn-id: svn://tug.org/texlive/trunk@68391 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/minimalist/minimalist-flow.sty')
-rw-r--r--Master/texmf-dist/tex/latex/minimalist/minimalist-flow.sty23
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}