-
Notifications
You must be signed in to change notification settings - Fork 0
/
stukicommands.sty
67 lines (54 loc) · 1.34 KB
/
stukicommands.sty
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
%%%
%%% stukicommands.sty - Style file for LaTeX structograms, typedefinitions, class diagrams, version 1.0.
%%%
%%% 2018 Bereczky Péter.
%%%
%%% E-mail: peti.ber007@gmail.com
%%%
%%% The latest official version of this package is available at
%%% http://aszt.inf.elte.hu/~asvanyi/szd
%%%
\NeedsTeXFormat{LaTeX2e}
\def\stukicommands@@version{1.0}
\def\stukicommands@@date{2018/04/21}
%\ProvidesPackage{stukicommands}[\stukicommands@@date\space\stukicommands@@version\stukicommands Bereczky]
\typeout{Struktogram parancsok\space\stukicommands@@version\space[\stukicommands@@date]}
\usepackage{stmaryrd}
%% sign for nullpointer
\newcommand{\NIL}{\varobslash}
%% UML-style class begin
\newcommand{\struct}[1]{
\begin{tabular}{|l|}
\hline
\multicolumn{1}{|c|}{\bf #1} \\
\hline
}
%% UML-style class ending
\newcommand{\eoStruct}{
\hline
\end{tabular}
}
%% typedef
\newcommand{\typedef}[2]{
\begin{tabular}{|l|}
\hline
{\bf typedef} #1 {\bf #2}\\
\hline
\end{tabular}
}
%% for loop for stuki.sty
\newcommand{\for}[3]{
\stm{ $for$(#1; #2; #3) }
}
%% do-while loop for stuki.sty
\newcommand{\dowhile}[1]{
\stm{ $do$(#1) }
}
%% making one line comments
\newcommand{\linecomment}[1]{
//#1
}
%%making multiline comments
\newcommand{\multicomment}[1]{
/*#1*/
}