| 1 |
%% |
| 2 |
%% This is file `struktex-test-1.tex', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% struktex.dtx (with options: `example1') |
| 8 |
%% |
| 9 |
\documentclass[draft]{article} |
| 10 |
\usepackage{struktex} |
| 11 |
|
| 12 |
\begin{document} |
| 13 |
|
| 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 |
\ifthenelse{1}{2}{\(a\le c\)}{j}{n} |
| 23 |
\change |
| 24 |
\assign{\(tmp\gets a\)} |
| 25 |
\assign{\(a\gets c\)} |
| 26 |
\assign{\(c\gets tmp\)} |
| 27 |
\ifend |
| 28 |
\ifthenelse{2}{1}{\(a\le b\)}{j}{n} |
| 29 |
\ifthenelse{1}{1}{\(b\le c\)}{j}{n} |
| 30 |
\change |
| 31 |
\assign{\(tmp\gets c\)} |
| 32 |
\assign{\(c\gets b\)} |
| 33 |
\assign{\(b\gets tmp\)} |
| 34 |
\ifend |
| 35 |
\change |
| 36 |
\assign{\(tmp\gets a\)} |
| 37 |
\assign{\(a\gets b\)} |
| 38 |
\assign{\(b\gets tmp\)} |
| 39 |
\ifend |
| 40 |
\end{struktogramm} |
| 41 |
|
| 42 |
\end{document} |
| 43 |
|
| 44 |
%% |
| 45 |
%% |
| 46 |
%% End of file `struktex-test-1.tex'. |