Debian Codegraph @

texmf-dist/doc/latex/struktex/struktex-test-2.tex

raw
1 %%
2 %% This is file `struktex-test-2.tex',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% struktex.dtx (with options: `example2')
8 %%
9 \documentclass{article}
10 \usepackage[pict2e, verification]{struktex}
11
12 \begin{document}
13 \def\StruktBoxHeight{7}
14 \begin{struktogramm}(90,137)
15 \assign%
16 {
17 \begin{declaration}[]
18 \description{\(a, b, c\)}{three variables which are to be sorted}
19 \description{\(tmp\)}{temporary variable for the circular swap}
20 \end{declaration}
21 }
22 \assert[\StruktBoxHeight]{\sTrue}
23 \ifthenelse[\StruktBoxHeight]{1}{2}{\(a\le c\)}{j}{n}
24 \assert[\StruktBoxHeight]{\(a\le c\)}
25 \change
26 \assert[\StruktBoxHeight]{\(a>c\)}
27 \assign[\StruktBoxHeight]{\(tmp\gets a\)}
28 \assign[\StruktBoxHeight]{\(a\gets c\)}
29 \assign[\StruktBoxHeight]{\(c\gets tmp\)}
30 \assert[\StruktBoxHeight]{\(a<c\)}
31 \ifend
32 \assert[\StruktBoxHeight]{\(a\le c\)}
33 \ifthenelse[\StruktBoxHeight]{2}{1}{\(a\le b\)}{j}{n}
34 \assert[\StruktBoxHeight]{\(a\le b \wedge a\le c\)}
35 \ifthenelse[\StruktBoxHeight]{1}{1}{\(b\le c\)}{j}{n}
36 \assert[\StruktBoxHeight]{\(a\le b \le c\)}
37 \change
38 \assert[\StruktBoxHeight]{\(a \le c<b\)}
39 \assign[\StruktBoxHeight]{\(tmp\gets c\)}
40 \assign[\StruktBoxHeight]{\(c\gets b\)}
41 \assign[\StruktBoxHeight]{\(b\gets tmp\)}
42 \assert[\StruktBoxHeight]{\(a\le b<c\)}
43 \ifend
44 \change
45 \assert[\StruktBoxHeight]{\(b < a\le c\)}
46 \assign[\StruktBoxHeight]{\(tmp\gets a\)}
47 \assign[\StruktBoxHeight]{\(a\gets b\)}
48 \assign[\StruktBoxHeight]{\(b\gets tmp\)}
49 \assert[\StruktBoxHeight]{\(a<b\le c\)}
50 \ifend
51 \assert[\StruktBoxHeight]{\(a\le b \le c\)}
52 \end{struktogramm}
53
54 \end{document}
55
56 %%
57 %%
58 %% End of file `struktex-test-2.tex'.