Debian Codegraph @

texmf-dist/tex/generic/petri-nets/pntext.tex

raw
1 % This file is part of the Petri-nets packages. See file README for
2 % copyright notice.
3
4 \message{ ** Petri-nets / text commands ** }
5 \input pnversion
6
7 % math sets
8
9 \newfam\setfam \def\setfont{\fam\setfam\tenset}
10 \font\tenset=bbm10 \font\sevenset=bbm7 \font\fiveset=bbm5
11 \textfont\setfam=\tenset
12 \scriptfont\setfam=\sevenset
13 \scriptscriptfont\setfam=\fiveset
14
15 \def\mathset #1{{\setfont #1}}
16 \def\setN{{\setfont N}}
17 \def\setZ{{\setfont Z}}
18 \def\setQ{{\setfont Q}}
19 \def\setR{{\setfont R}}
20 \def\setC{{\setfont C}}
21
22 % places status
23
24 \def\placestatus #1{{\ss #1}}
25 \def\eplace{\placestatus{e}}
26 \def\iplace{\placestatus{i}}
27 \def\xplace{\placestatus{x}}
28
29 % synchronisation, restriction and tie
30
31 \def\sy{\relax
32 \ifmmode\mathop{\bf sy}\else{\bf sy}\fi}
33 \def\rs{\relax
34 \ifmmode\mathop{\bf rs}\else{\bf rs}\fi}
35 \def\tie{\relax
36 \ifmmode\mathop{\bf tie}\else{\bf tie}\fi}
37
38 % scoping
39
40 \def\lscope{\relax
41 \ifmmode\left[\mskip -2.05\thinmuskip\left[\else$\lscope$\fi}
42 \def\Lscope{\relax\ifmmode\left.\left.\fi}
43 \def\rscope{\relax
44 \ifmmode\right]\mskip -2.05\thinmuskip\right]\else$\scope$\fi}
45 \def\Rscope{\relax\ifmmode\right.\right.\fi}
46 \def\scope #1#2{\lscope#1:#2\rscope}
47
48 % choice operator
49
50 \def\choice{\relax\ifmmode
51 \mathbin{\mathpalette\choicebody{}}%
52 \else${\choice}$\fi}
53
54 \def\choicebody #1#2{\vcenter{\hrule
55 \hbox{\vrule$#1\phantom{*}$\vrule}\vss\hrule}}
56
57 % B(PB)^2 logo
58
59 \def\bpn{\hbox{B(PN)$^2$}}
60
61 % B(PN)^2 syntax
62
63 \def\bpnkw #1{{\bf #1}} % keyword
64 \def\bpnnt #1{{\ss #1}} % non-terminal
65
66 % Mnet mapping function
67
68 \def\mnet{\hbox{\sf Mnet}}
69
70 % Var and Val
71
72 \def\Val{\relax\ifmmode{V\mskip-1.6\thinmuskip al}%
73 \else{\it Val}\fi}
74 \def\Var{\relax\ifmmode{V\mskip-1.5\thinmuskip ar}%
75 \else{\it Var}\fi}