diff options
Diffstat (limited to 'Master/texmf-dist/tex/lualatex/stricttex/stricttex.sty')
-rw-r--r-- | Master/texmf-dist/tex/lualatex/stricttex/stricttex.sty | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/lualatex/stricttex/stricttex.sty b/Master/texmf-dist/tex/lualatex/stricttex/stricttex.sty new file mode 100644 index 00000000000..8a3e9874dd1 --- /dev/null +++ b/Master/texmf-dist/tex/lualatex/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 |