| 1 |
\ProvidesExplPackage{stricttex}{2020/09/08}{0.2beta}{} |
| 2 |
|
| 3 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 4 |
% % |
| 5 |
% stricttex -- strictly paired brackets and numbers in command names % |
| 6 |
% https://ctan.org/pkg/semantex % |
| 7 |
% (C) 2020 Sebastian Ørsted % |
| 8 |
% [email protected] % |
| 9 |
% % |
| 10 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 11 |
|
| 12 |
\msg_new:nnn { stricttex } { not_luatex } { This~package~only~works~with~LuaTeX;~the~current~TeX~run~has~been~terminated. } |
| 13 |
|
| 14 |
\msg_new:nnn { stricttex } { callback_not_registered } { Found~#2 with~no~preceding~#1 } |
| 15 |
|
| 16 |
\sys_if_engine_luatex:F { \msg_fatal:nn { stricttex } { not_luatex } } |
| 17 |
|
| 18 |
\lua_now:e { require('stricttex.lua') } |
| 19 |
|
| 20 |
\cs_new_protected:Npn\StrictBracketsOn |
| 21 |
{ |
| 22 |
\lua_now:e { stricttexStrictBracketsOn() } |
| 23 |
} |
| 24 |
|
| 25 |
\cs_new_protected:Npn\StrictBracketsOff |
| 26 |
{ |
| 27 |
\lua_now:e { stricttexStrictBracketsOff() } |
| 28 |
} |
| 29 |
|
| 30 |
\cs_new_protected:Npn\NumbersInCommandsOn |
| 31 |
{ |
| 32 |
\lua_now:e { stricttexNumbersInCommandsOn() } |
| 33 |
} |
| 34 |
|
| 35 |
\cs_new_protected:Npn\NumbersInCommandsOff |
| 36 |
{ |
| 37 |
\lua_now:e { stricttexNumbersInCommandsOff() } |
| 38 |
} |
| 39 |
|
| 40 |
\cs_new_protected:Npn\NumbersAndPrimesInCommandsOn |
| 41 |
{ |
| 42 |
\lua_now:e { stricttexNumbersAndPrimesInCommandsOn() } |
| 43 |
} |
| 44 |
|
| 45 |
\cs_new_protected:Npn\NumbersAndPrimesInCommandsOff |
| 46 |
{ |
| 47 |
\lua_now:e { stricttexNumbersAndPrimesInCommandsOff() } |
| 48 |
} |