summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/semtex/semtex.sty
blob: 28c9303f69a197c8a2a0b1fedea1dfd3f9efbef1 (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
\RequirePackage{xparse}
\ProvidesExplPackage{semtex}{2020/09/27}{0.44}{}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%																%
%		semtex -- for documents stripped of SemanTeX markup		%
%		https://ctan.org/pkg/semantex							%
%		(C) 2020 Sebastian Ørsted								%
%       sorsted@gmail.com										%
%																%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% Bullets:

\box_if_exist:NF \g__semantex_bullet_box
{
	\box_new:N \g__semantex_bullet_box
	\hbox_set:Nn \g__semantex_bullet_box { $\cdot$ }
	\box_scale:Nnn \g__semantex_bullet_box {1.2} {1.2}
	\tl_set:Nn\g_semantex_bullet
	{
		\box_move_up:nn{-0.25ex}{\box_use:N \g__semantex_bullet_box}
	}

	\tl_set:Nn\g_semantex_double_bullet{\g_semantex_bullet \g_semantex_bullet}
	
	\tl_set_eq:NN\SemantexBullet \g_semantex_bullet
	
	\tl_set_eq:NN \SemantexDoubleBullet \g_semantex_double_bullet
}

% Parentheses:

\cs_set:Npn\SemantexLeft { \mathopen{}\mathclose\bgroup\left }

\cs_set:Npn\SemantexRight { \aftergroup\egroup\right }