From b4fc5f639874db951177ec539299d20908adb654 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 9 Jan 2006 00:44:40 +0000 Subject: doc 4 git-svn-id: svn://tug.org/texlive/trunk@80 c570f23f-e606-0410-a88d-b1316a301751 --- .../doc/latex/struktex/struktex-test-1.tex | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Master/texmf-dist/doc/latex/struktex/struktex-test-1.tex (limited to 'Master/texmf-dist/doc/latex/struktex/struktex-test-1.tex') diff --git a/Master/texmf-dist/doc/latex/struktex/struktex-test-1.tex b/Master/texmf-dist/doc/latex/struktex/struktex-test-1.tex new file mode 100644 index 00000000000..6473d80cca5 --- /dev/null +++ b/Master/texmf-dist/doc/latex/struktex/struktex-test-1.tex @@ -0,0 +1,46 @@ +%% +%% This is file `struktex-test-1.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% struktex.dtx (with options: `example2') +%% +\documentclass{article} +\usepackage{struktex} + +\begin{document} + +\begin{struktogramm}(90,137) + \assign% + { + \begin{declaration}[] + \description{\(a, b, c\)}{three variables which are to be sorted} + \description{\(tmp\)}{temporary variable for the circular swap} + \end{declaration} + } + \ifthenelse{1}{2}{\(a\le c\)}{j}{n} + \change + \assign{\(tmp\gets a\)} + \assign{\(a\gets c\)} + \assign{\(c\gets tmp\)} + \ifend + \ifthenelse{2}{1}{\(a\le b\)}{j}{n} + \ifthenelse{1}{1}{\(b\le c\)}{j}{n} + \change + \assign{\(tmp\gets c\)} + \assign{\(c\gets b\)} + \assign{\(b\gets tmp\)} + \ifend + \change + \assign{\(tmp\gets a\)} + \assign{\(a\gets b\)} + \assign{\(b\gets tmp\)} + \ifend +\end{struktogramm} + +\end{document} +%% +%% +%% +%% End of file `struktex-test-1.tex'. -- cgit v1.2.3