From 3e9c5c6e1c118283b7775fd707379f8c9fdd3fd5 Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Tue, 17 Oct 2023 03:01:53 +0000
Subject: CTAN sync 202310170301

---
 macros/latex/contrib/stex/tex/etc/lststex.sty | 21 +++++++++++++++++----
 1 file changed, 17 insertions(+), 4 deletions(-)

(limited to 'macros/latex/contrib/stex/tex/etc/lststex.sty')

diff --git a/macros/latex/contrib/stex/tex/etc/lststex.sty b/macros/latex/contrib/stex/tex/etc/lststex.sty
index 423e0b4a20..7d127fddc5 100644
--- a/macros/latex/contrib/stex/tex/etc/lststex.sty
+++ b/macros/latex/contrib/stex/tex/etc/lststex.sty
@@ -15,6 +15,7 @@
       symdef,symdecl,notation,sref},
    morekeywords={smodule,sdefinition,sassertion,sparagraph,
      inputref,
+     sproblem,hint,exnote,solution,gnote,
      sproof,spfstep,spfcases,spfcase,justification,premise}}
 
 \definecolor{backcolor}{gray}{.96}
@@ -71,8 +72,10 @@
   classoffset=5,keywordstyle=\color{magenta},morekeywords={
     smodule,sdefinition,sassertion,sparagraph,sexample,
     sproof,subproof,spfcases,spfcase,spfstep,spfcomment,spfblock,
+    sproblem,subproblem,solution,hint,exnote,mcb,scb,
     \\spfidea,\\spfsketch,\\spfcasesketch,\\sproofend,
     \\spfjust,\\premise,\\justarg,\\inlinedef,\\inlineex,\\inlineass,
+    \\scc,\\mcc,\\objective,
     \\varbind,
     copymodule,interpretmodule,mathstructure,sexample,extstructure,
     extstructure*,realization
@@ -125,11 +128,21 @@
     }
   },
   unknown   .code:n = {
-    \tl_if_empty:nTF{#1}{
-      \exp_args:NNo \clist_put_right:Nn \l_lststex_pass_on_args_clist \l_keys_key_str
+    \str_if_empty:NTF \l_keys_key_str {
+      \tl_if_empty:nTF{#1}{
+        \exp_args:NNo \clist_put_right:Nn \l_lststex_pass_on_args_clist \l_keys_key_tl
+      }{
+        \exp_args:NNx \clist_put_right:Nn \l_lststex_pass_on_args_clist {
+          \l_keys_key_tl = \exp_not:n{{#1}}
+        }
+      }
     }{
-      \exp_args:NNx \clist_put_right:Nn \l_lststex_pass_on_args_clist {
-        \l_keys_key_str = \exp_not:n{{#1}}
+      \tl_if_empty:nTF{#1}{
+        \exp_args:NNo \clist_put_right:Nn \l_lststex_pass_on_args_clist \l_keys_key_str
+      }{
+        \exp_args:NNx \clist_put_right:Nn \l_lststex_pass_on_args_clist {
+          \l_keys_key_str = \exp_not:n{{#1}}
+        }
       }
     }
   }
-- 
cgit v1.2.3

