summaryrefslogtreecommitdiff
path: root/macros/luatex/latex/stricttex/stricttex.sty
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-08-29 03:01:08 +0000
committerNorbert Preining <norbert@preining.info>2020-08-29 03:01:08 +0000
commit84ead792ae29b5dcefb36517d42178c278b8cb9b (patch)
treea259dd45fe4ddea8c28e6f12cb04897178d2c5d9 /macros/luatex/latex/stricttex/stricttex.sty
parent4d43c69d8ce1c8e128aa59c4eb19189219ac8b3d (diff)
CTAN sync 202008290301
Diffstat (limited to 'macros/luatex/latex/stricttex/stricttex.sty')
-rw-r--r--macros/luatex/latex/stricttex/stricttex.sty48
1 files changed, 48 insertions, 0 deletions
diff --git a/macros/luatex/latex/stricttex/stricttex.sty b/macros/luatex/latex/stricttex/stricttex.sty
new file mode 100644
index 0000000000..8a3e9874dd
--- /dev/null
+++ b/macros/luatex/latex/stricttex/stricttex.sty
@@ -0,0 +1,48 @@
+\ProvidesExplPackage{stricttex}{2020/07/28}{0.1beta}{}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% %
+% stricttex -- strictly paired brackets and numbers in command names %
+% https://ctan.org/pkg/semantex %
+% (C) 2020 Sebastian Ørsted %
+% sorsted@gmail.com %
+% %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\msg_new:nnn { stricttex } { not_luatex } { This~package~only~works~with~LuaTeX;~the~current~TeX~run~has~been~terminated. }
+
+\msg_new:nnn { stricttex } { callback_not_registered } { Found~#2 with~no~preceding~#1 }
+
+\sys_if_engine_luatex:F { \msg_fatal:nn { stricttex } { not_luatex } }
+
+\lua_now:e { require('stricttex.lua') }
+
+\cs_new_protected:Npn\StrictBracketsOn
+{
+ \lua_now:e { stricttexStrictBracketsOn() }
+}
+
+\cs_new_protected:Npn\StrictBracketsOff
+{
+ \lua_now:e { stricttexStrictBracketsOff() }
+}
+
+\cs_new_protected:Npn\NumbersInCommandsOn
+{
+ \lua_now:e { stricttexNumbersInCommandsOn() }
+}
+
+\cs_new_protected:Npn\NumbersInCommandsOff
+{
+ \lua_now:e { stricttexNumbersInCommandsOff() }
+}
+
+\cs_new_protected:Npn\NumbersAndPrimesInCommandsOn
+{
+ \lua_now:e { stricttexNumbersAndPrimesInCommandsOn() }
+}
+
+\cs_new_protected:Npn\NumbersAndPrimesInCommandsOff
+{
+ \lua_now:e { stricttexNumbersAndPrimesInCommandsOff() }
+} \ No newline at end of file