diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/semantex/stripsemantex.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/semantex/stripsemantex.sty | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/semantex/stripsemantex.sty b/Master/texmf-dist/tex/latex/semantex/stripsemantex.sty index eba56386248..96c40fdb873 100644 --- a/Master/texmf-dist/tex/latex/semantex/stripsemantex.sty +++ b/Master/texmf-dist/tex/latex/semantex/stripsemantex.sty @@ -1,4 +1,5 @@ -\ProvidesExplPackage{stripsemantex}{2020/09/07}{0.1alpha}{} +\RequirePackage{xparse} +\ProvidesExplPackage{stripsemantex}{2020/09/05}{0.1alpha}{} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % @@ -66,7 +67,16 @@ openFile('\lua_escape:e{#1}_stripped.tex') } - \cs_set:Npn\SemantexID##1\BeginSource##2\EndSource\BeginOutput##3\EndOutput + \DeclareDocumentCommand\SemantexID{ m t{\BeginSource} } + { + \IfBooleanT{##2} + { + \strip_semantex_id_command:w ##1 \BeginSource + } + } + + + \cs_set:Npn\strip_semantex_id_command:w##1\BeginSource##2\EndSource\BeginOutput##3\EndOutput { \lua_now:e { |