texmf-dist/doc/latex/tikzcodeblocks/examples/bsp-english.tikz
raw| 1 | \begin{otherlanguage}{english} |
| 2 | \begin{tikzpicture}[codeblocks] |
| 3 | \moveindent{ |
| 4 | \node[start,pinlow](one){start}; |
| 5 | } |
| 6 | \ifthenelseblocks[under={one}{1}{0}]{A=B}{\node{A++};}{\node{B-{}-};}{two} |
| 7 | \loopblocks[under={two}{0}{0}]{for}{A!=B}{\node{A-{}-};}{three} |
| 8 | \node[under={three}{0}{0},aktion,pinhigh]{\intbox{3}+\intbox[puzzlepiece]{5}}; |
| 9 | \end{tikzpicture} |
| 10 | \end{otherlanguage} |