summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/lualatex/stricttex/stricttex.sty
blob: e1c0b4599c55a1100ca4f4b3a2a9fcc7bcf00f85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
\ProvidesExplPackage{stricttex}{2020/09/08}{0.2beta}{}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%																				%
%		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() }
}