From 0176b9de995188e96b71b6a6445a801b17fca741 Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Fri, 29 Sep 2023 03:01:08 +0000
Subject: CTAN sync 202309290301

---
 .../latex/contrib/minimalist/minimalist-stream.sty | 23 +++++++++++++++++-----
 1 file changed, 18 insertions(+), 5 deletions(-)

(limited to 'macros/latex/contrib/minimalist/minimalist-stream.sty')

diff --git a/macros/latex/contrib/minimalist/minimalist-stream.sty b/macros/latex/contrib/minimalist/minimalist-stream.sty
index 19f236637f..afe534e03c 100644
--- a/macros/latex/contrib/minimalist/minimalist-stream.sty
+++ b/macros/latex/contrib/minimalist/minimalist-stream.sty
@@ -18,7 +18,7 @@
 \NeedsTeXFormat{LaTeX2e}[2022-06-01]
 \ProvidesExplPackage
   {minimalist-stream}
-  {2023/09/27} {}
+  {2023/09/28} {}
   {The "stream" style of minimalist}
 
 \IfPackageLoadedTF { minimalist } {}
@@ -784,6 +784,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 }
@@ -802,7 +815,7 @@ heading_suffix "}\n"
       }
       \vspace*{-\baselineskip}
       {\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: }}
       \phantom{q} % To provide something below the baseline
     }}\hbox{\strut}\vspace{0pt}}}
   }
@@ -820,7 +833,7 @@ heading_suffix "}\n"
       }
       \vspace*{-\baselineskip}
       {\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: }}
       \phantom{q} % To provide something below the baseline
     }}\hbox{\strut}\vspace{0pt}}}
   }
@@ -847,7 +860,7 @@ heading_suffix "}\n"
     }
     % \minimalist_bfseries:\minimalist_sffamily:
     {\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: }}
     . \hspace{.5em}
   }
 \newtheoremstyle{simple-inline-var}
@@ -863,7 +876,7 @@ heading_suffix "}\n"
     }
     % \minimalist_bfseries:\minimalist_sffamily:
     {\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: }}
     . \hspace{.5em}
   }
 
-- 
cgit v1.2.3

