texlive[47265] Master/texmf-dist: tikzcodeblocks (3apr18)

commits+karl at tug.org commits+karl at tug.org
Tue Apr 3 23:30:09 CEST 2018


Revision: 47265
          http://tug.org/svn/texlive?view=revision&revision=47265
Author:   karl
Date:     2018-04-03 23:30:09 +0200 (Tue, 03 Apr 2018)
Log Message:
-----------
tikzcodeblocks (3apr18)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/README.md
    trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/tikzcodeblocks-documentation.pdf
    trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/tikzcodeblocks-documentation.tex
    trunk/Master/texmf-dist/tex/latex/tikzcodeblocks/tikzcodeblocks.sty

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/examples/
    trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/examples/bsp-einruecken.tikz
    trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/examples/bsp-english.tikz
    trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/examples/bsp-hello-world.tikz
    trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/examples/bsp-openroberta-umgebung.tikz
    trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/examples/bsp-openroberta-zacken.tikz
    trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/examples/bsp-start-roberta.tikz
    trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/examples/bsp-start.tikz
    trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/examples/bsp-verschachtelt-zacken.tikz
    trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/examples/bsp-verzweigung.tikz
    trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/examples/smarthome.tikz

Removed Paths:
-------------
    trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/bsp-einruecken.tikz
    trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/bsp-english.tikz
    trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/bsp-openroberta-umgebung.tikz
    trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/bsp-openroberta-zacken.tikz
    trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/bsp-start-roberta.tikz
    trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/bsp-start.tikz
    trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/bsp-verzweigung.tikz
    trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/smarthome.tikz

Modified: trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/README.md	2018-04-03 10:02:15 UTC (rev 47264)
+++ trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/README.md	2018-04-03 21:30:09 UTC (rev 47265)
@@ -5,8 +5,7 @@
 |------------|------------------------------------------------------------|
 |author:     |Adrian Salamon                                              |
 |email:      |adriansalamon at gmail.com                                     |
-|date:       |2017-07-18                                                  |
-|institute:  |Didaktik der Informatik – Bergische Universität Wuppertal   |
+|date:       |2018-04-03                                                  |
 |licence:    |LaTeX Project Public License 1.3c                           |
 
 ## What is tikzcodeblocks?
@@ -19,14 +18,14 @@
 ### Features
 
 - align colored blocks
-- disable colors
 - change the color scheme
 - use jigsaw decorations to see vertical and horizontal relations
 - use predefined structures like loops and branches
 - print LED matrices
-- ... 
+- partly multi-language via babel
+- disable colors for printing
+- ...
 
-
 ### Planed features
 
-- multi-language / english support
+- better multi-language / english support
\ No newline at end of file

Deleted: trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/bsp-einruecken.tikz
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/bsp-einruecken.tikz	2018-04-03 10:02:15 UTC (rev 47264)
+++ trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/bsp-einruecken.tikz	2018-04-03 21:30:09 UTC (rev 47265)
@@ -1,8 +0,0 @@
-\begin{tikzpicture}[codeblocks]
-\einruecken{
-	\node[grundlage,pinlow](grund){dauerhaft};
-}
-\node[logik,unter={grund}{1}{0}](wenn1){wenn \tikz\node[platzhalter,boden,keinezacken]{\dropdown{modus}}; \dropdown{=} \intbox{1} };
-
-%\draw[->] (grund.south west) |- (wenn1.west);
-\end{tikzpicture}
\ No newline at end of file

Deleted: trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/bsp-english.tikz
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/bsp-english.tikz	2018-04-03 10:02:15 UTC (rev 47264)
+++ trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/bsp-english.tikz	2018-04-03 21:30:09 UTC (rev 47265)
@@ -1,10 +0,0 @@
-\begin{otherlanguage}{english}
-\begin{tikzpicture}[codeblocks]
-\moveindent{
-	\node[start,pinlow](one){start};
-	}
-	\ifthenelseblocks[under={one}{1}{0}]{A=B}{\node{A++};}{\node{B-{}-};}{two}
-	\loopblocks[under={two}{0}{0}]{for}{A!=B}{\node{A-{}-};}{three}
-	\node[under={three}{0}{0},aktion,pinhigh]{\intbox{3}+\intbox[puzzlepiece]{5}};
-\end{tikzpicture}
-\end{otherlanguage}
\ No newline at end of file

Deleted: trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/bsp-openroberta-umgebung.tikz
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/bsp-openroberta-umgebung.tikz	2018-04-03 10:02:15 UTC (rev 47264)
+++ trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/bsp-openroberta-umgebung.tikz	2018-04-03 21:30:09 UTC (rev 47265)
@@ -1,13 +0,0 @@
-\begin{tikzpicture}[codeblocks,openroberta]
-\wenndann{\tikz\node[mathe,keinezacken]{A==B};}{
-	\node[aktion] (two) {mache das };
-	\node[mathe, unter={two}{0}{0}] (three)	{und das };}
-{one} 
-\node[mathe,unter={one}{0}{0}] (four) {später das }; % TODO: Ungenau. Warum nicht -1?
-\node[kontrolle,unter={four}{0}{0}] (five)	{und danach das };
-
-\begin{pgfonlayer}{background}
-\node[logik, fit=(one) (two) (three)] {};
-\end{pgfonlayer}	
-
-\end{tikzpicture}
\ No newline at end of file

Deleted: trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/bsp-openroberta-zacken.tikz
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/bsp-openroberta-zacken.tikz	2018-04-03 10:02:15 UTC (rev 47264)
+++ trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/bsp-openroberta-zacken.tikz	2018-04-03 21:30:09 UTC (rev 47265)
@@ -1,7 +0,0 @@
-\begin{tikzpicture}[codeblocks]
-\wenndann
-	{\tikz\node[mathe,keinezacken]{\intbox{2} \dropdown{<} \intbox{5}};}
-	{\node[bild]{zeige Bild \\\bild[0.4]{\fullled}};}
-	{one}
-\node[aktion,draw,unter={one}{0}{0}] (two) {spreche \stringbox{Hallo}};
-\end{tikzpicture}
\ No newline at end of file

Deleted: trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/bsp-start-roberta.tikz
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/bsp-start-roberta.tikz	2018-04-03 10:02:15 UTC (rev 47264)
+++ trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/bsp-start-roberta.tikz	2018-04-03 21:30:09 UTC (rev 47265)
@@ -1,24 +0,0 @@
-\begin{tikzpicture}[codeblocks,,openroberta,scale=.90]
-
-\node[start,pinlow](start){start};
-\schleife[unter={start}{0}{0}]{wiederhole}{\intbox{4} mal}{\node[aktion]{setzte LED-Farbe auf \dropdown{Violett}};}{schl1}
-\wenndann[unter={schl1}{0}{0}]{\dropdown{wahr}}{\node[bild]{erstelle Bild:\\ \bild{\emptyled}};}{verz1}
-\node[variablen,unter={verz1}{0}{0}](plz1){ändere \dropdown{Platzhalter} auf \tikz\node[mathe,boden,keinezacken,puzzleteil]{\intbox{15}\dropdown{$\div$}\intbox{3}};};
-\node[aktion,unter={plz1}{0}{0}](bild1){Zeige LEDs:
-	\bild[0.3]{
-		\X \X \X \X \X \\
-		\0 \X \X \X \0 \\
-		\0 \0 \X \0 \0 \\
-		\0 \X \X \X \0 \\
-		\X \X \X \X \X \\							
-	}
-};
-
-\wenndannsonst[unter={bild1}{0}{0}]
-{\intbox{5}\dropdown{<}\intbox{5}}
-{\node[sensor]{setze \intbox{5}V an Ausgang \stringbox{powerOut}};}
-{\node[aktion,draw,](akt1){spiele Note \dropdown{C} für \dropdown{1/4}Takt};
- \node[aktion,draw,pinhigh,unter={akt1}{0}{0}](akt2){spiele Note \dropdown{D} für \dropdown{1/4}Takt};}
-{wds1}
-
-\end{tikzpicture}

Deleted: trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/bsp-start.tikz
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/bsp-start.tikz	2018-04-03 10:02:15 UTC (rev 47264)
+++ trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/bsp-start.tikz	2018-04-03 21:30:09 UTC (rev 47265)
@@ -1,49 +0,0 @@
-\begin{tikzpicture}[codeblocks,scale=.90]
-\node[grundlage] (start) {dauerhaft}; 
-	\node[schleife,unter={start}{1}{3}]	(schleife1) {\intbox{4} mal wiederholen mache};
-		\node[grundlage,unter={schleife1}{1}{0.5}]
-(musik1) {setze LED-Farbe auf \dropdown{Violett}};
-		\node[musik, unter={musik1}{0}{1}]
-(musik2) {Spiele Note \dropdown{C} für \dropdown{1/16} Takt};
-	\node[logik, unter={musik2}{-1}{4.5}]
-(logik1) {wenn \boolbox{\dropdown{wahr}}};
-		\node[bild, unter={logik1}{1}{1}] (bild) {
-			erstelle Bild:\\
-			\bild{\emptyled}
-		};
-	
-		\node[platzhalter, unter={bild}{-1}{3}] (platz1) {ändere \dropdown{Platzhalter} auf
-		\tikz[boden]\node[mathe]{\intbox{15}\dropdown{$\div$}\intbox{3}};
-	}; 
-	\node[grundlage,umgebung, unter={platz1}{0}{1}]  (bildmalen){
-		Zeige LEDs:
-		\bild[0.3]{
-			\X \X \X \X \X \\
-			\0 \X \X \X \0 \\
-			\0 \0 \X \0 \0 \\
-			\0 \X \X \X \0 \\
-			\X \X \X \X \X \\						
-		}
-	};
-\node[logik, unter={bildmalen}{0}{3}](log3wenndann) {Wenn \dropdown{5} \dropdown{<} \intbox{5} dann mache};
-	\node[motor, unter={log3wenndann}{1}{1}]		(motorlogik1)		{setze \intbox{5}V an Ausgang \stringbox{powerOut}};
-\node[logik, unter={motorlogik1}{-1}{0}]	(log3sonst)			{ansonsten mache};
-	\node[musik, unter={log3sonst}{1}{1}]		(musiklogik2)		{spiele Note \dropdown{C} für \dropdown{1/4} Takt};
-
-% Umgebungen setzen 		
-\begin{pgfonlayer}{background}
-	\node[grundlage,umgebung,fit= (start) (musiklogik2) (motorlogik1) (platz1)]{};
-	\node[schleife, umgebung, fit = (schleife1) (musik1)(musik2)] (schleife1fit) {};
-	\node[logik,umgebung, fit=(bild) (logik1)] (log1fit){};
-	
-	
-	\node[logik,umgebung,fit=(log3wenndann)(motorlogik1)(log3sonst)(musiklogik2)]{};
-	
-	\node[umgebung, logik, fit=(log3wenndann) (motorlogik1)](log11){};
-	\node[umgebung, logik, fit=(log3sonst) (musiklogik2)](log22){};
-\end{pgfonlayer}	
-
-% Puzzlenippel setzen
-\setzenippel{start,schleife1,musik1,logik1,platz1,schleife1fit,log1fit,bildmalen,log3wenndann, log3sonst}
-
-\end{tikzpicture}
\ No newline at end of file

Deleted: trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/bsp-verzweigung.tikz
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/bsp-verzweigung.tikz	2018-04-03 10:02:15 UTC (rev 47264)
+++ trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/bsp-verzweigung.tikz	2018-04-03 21:30:09 UTC (rev 47265)
@@ -1,13 +0,0 @@
-\begin{tikzpicture}[codeblocks]
-\wenndannsonst[draw]
-	{\dropdown{A}~\dropdown{<}\,\intbox{5}}	%wenn
-	{	\node[aktion](akt1){i=i++};
-		\node[farbe,unter={akt1}{0}{0}](akt2){j=j++};} %dann
-	{	\node[aktion,](akt1){erstelle Bild:\\ 
-				\bild[0.4]{\fullled}
-		};
-		\node[farbe,unter={akt1}{0}{0}](akt2){j=j--};
-	}	% sonst-ende
-		{eins}; % eigener Name
-\node[aktion,unter={eins}{0}{0}]{weiter mit anderen sachen};
-\end{tikzpicture}
\ No newline at end of file

Added: trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/examples/bsp-einruecken.tikz
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/examples/bsp-einruecken.tikz	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/examples/bsp-einruecken.tikz	2018-04-03 21:30:09 UTC (rev 47265)
@@ -0,0 +1,8 @@
+\begin{tikzpicture}[codeblocks]
+\einruecken{
+	\node[grundlage,pinlow](grund){dauerhaft};
+}
+\node[logik,unter={grund}{1}{0}](wenn1){wenn \tikz\node[platzhalter,boden,keinezacken]{\dropdown{modus}}; \dropdown{=} \intbox{1} };
+
+%\draw[->] (grund.south west) |- (wenn1.west);
+\end{tikzpicture}
\ No newline at end of file

Added: trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/examples/bsp-english.tikz
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/examples/bsp-english.tikz	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/examples/bsp-english.tikz	2018-04-03 21:30:09 UTC (rev 47265)
@@ -0,0 +1,10 @@
+\begin{otherlanguage}{english}
+\begin{tikzpicture}[codeblocks]
+\moveindent{
+	\node[start,pinlow](one){start};
+	}
+	\ifthenelseblocks[under={one}{1}{0}]{A=B}{\node{A++};}{\node{B-{}-};}{two}
+	\loopblocks[under={two}{0}{0}]{for}{A!=B}{\node{A-{}-};}{three}
+	\node[under={three}{0}{0},aktion,pinhigh]{\intbox{3}+\intbox[puzzlepiece]{5}};
+\end{tikzpicture}
+\end{otherlanguage}
\ No newline at end of file

Added: trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/examples/bsp-hello-world.tikz
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/examples/bsp-hello-world.tikz	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/examples/bsp-hello-world.tikz	2018-04-03 21:30:09 UTC (rev 47265)
@@ -0,0 +1,7 @@
+\documentclass{standalone}
+\usepackage{tikzcodeblocks}
+\begin{document}
+	\begin{tikzpicture}[codeblocks]
+		\node[mathe]{Hello World;};
+	\end{tikzpicture}
+\end{document}
\ No newline at end of file

Added: trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/examples/bsp-openroberta-umgebung.tikz
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/examples/bsp-openroberta-umgebung.tikz	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/examples/bsp-openroberta-umgebung.tikz	2018-04-03 21:30:09 UTC (rev 47265)
@@ -0,0 +1,13 @@
+\begin{tikzpicture}[codeblocks,openroberta]
+\wenndann{\tikz\node[mathe,keinezacken]{A==B};}{
+	\node[aktion] (two) {mache das };
+	\node[mathe, unter={two}{0}{0}] (three)	{und das };}
+{one} 
+\node[mathe,unter={one}{0}{0}] (four) {später das }; % TODO: Ungenau. Warum nicht -1?
+\node[kontrolle,unter={four}{0}{0}] (five)	{und danach das };
+
+\begin{pgfonlayer}{background}
+\node[logik, fit=(one) (two) (three)] {};
+\end{pgfonlayer}	
+
+\end{tikzpicture}
\ No newline at end of file

Added: trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/examples/bsp-openroberta-zacken.tikz
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/examples/bsp-openroberta-zacken.tikz	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/examples/bsp-openroberta-zacken.tikz	2018-04-03 21:30:09 UTC (rev 47265)
@@ -0,0 +1,7 @@
+\begin{tikzpicture}[codeblocks]
+\wenndann
+	{\tikz\node[mathe,keinezacken]{\intbox{2} \dropdown{<} \intbox{5}};}
+	{\node[bild]{zeige Bild \\\bild[0.4]{\fullled}};}
+	{one}
+\node[aktion,draw,unter={one}{0}{0}] (two) {spreche \stringbox{Hallo}};
+\end{tikzpicture}
\ No newline at end of file

Added: trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/examples/bsp-start-roberta.tikz
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/examples/bsp-start-roberta.tikz	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/examples/bsp-start-roberta.tikz	2018-04-03 21:30:09 UTC (rev 47265)
@@ -0,0 +1,24 @@
+\begin{tikzpicture}[codeblocks,openroberta,scale=.90]
+
+\node[start,pinlow](start){start};
+\schleife[unter={start}{0}{0}]{wiederhole}{\intbox{4} mal}{\node[aktion]{setzte LED-Farbe auf \dropdown{Violett}};}{schl1}
+\wenndann[unter={schl1}{0}{0}]{\dropdown{wahr}}{\node[bild]{erstelle Bild: \bild[0.3]{\emptyled}};}{verz1}
+\node[variablen,unter={verz1}{0}{0}](plz1){ändere \dropdown{Platzhalter} auf \tikz\node[mathe,boden,keinezacken,puzzleteil]{\intbox{15}\dropdown{$\div$}\intbox{3}};};
+\node[aktion,unter={plz1}{0}{0}](bild1){Zeige LEDs:\\
+	\bild{
+		\X \X \X \X \X \\
+		\0 \X \X \X \0 \\
+		\0 \0 \X \0 \0 \\
+		\0 \X \X \X \0 \\
+		\X \X \X \X \X \\							
+	}
+};
+
+\wenndannsonst[unter={bild1}{0}{0}]
+{\intbox{5}\dropdown{<}\intbox{5}}
+{\node[sensor]{setze \intbox{5}V an Ausgang \stringbox{powerOut}};}
+{\node[aktion,draw,](akt1){spiele Note \dropdown{C} für \dropdown{1/4}\,Takt};
+ \node[aktion,draw,pinhigh,unter={akt1}{0}{0}](akt2){spiele Note \dropdown{D} für \dropdown{1/4}\,Takt};}
+{wds1}
+
+\end{tikzpicture}

Added: trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/examples/bsp-start.tikz
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/examples/bsp-start.tikz	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/examples/bsp-start.tikz	2018-04-03 21:30:09 UTC (rev 47265)
@@ -0,0 +1,49 @@
+\begin{tikzpicture}[codeblocks,scale=.90]
+\node[grundlage] (start) {dauerhaft}; 
+	\node[schleife,unter={start}{1}{3}]	(schleife1) {\intbox{4} mal wiederholen mache};
+		\node[grundlage,unter={schleife1}{1}{0.5}]
+(musik1) {setze LED-Farbe auf \dropdown{Violett}};
+		\node[musik, unter={musik1}{0}{1}]
+(musik2) {Spiele Note \dropdown{C} für \dropdown{1/16} Takt};
+	\node[logik, unter={musik2}{-1}{4.5}]
+(logik1) {wenn \boolbox{\dropdown{wahr}}};
+		\node[bild, unter={logik1}{1}{1}] (bild) {
+			erstelle Bild:\\
+			\bild{\emptyled}
+		};
+	
+		\node[platzhalter, unter={bild}{-1}{3}] (platz1) {ändere \dropdown{Platzhalter} auf
+		\tikz[boden]\node[mathe]{\intbox{15}\dropdown{$\div$}\intbox{3}};
+	}; 
+	\node[grundlage,umgebung, unter={platz1}{0}{1}]  (bildmalen){
+		Zeige LEDs:
+		\bild[0.3]{
+			\X \X \X \X \X \\
+			\0 \X \X \X \0 \\
+			\0 \0 \X \0 \0 \\
+			\0 \X \X \X \0 \\
+			\X \X \X \X \X \\						
+		}
+	};
+\node[logik, unter={bildmalen}{0}{3}](log3wenndann) {Wenn \dropdown{5} \dropdown{<} \intbox{5} dann mache};
+	\node[motor, unter={log3wenndann}{1}{1}]		(motorlogik1)		{setze \intbox{5}V an Ausgang \stringbox{powerOut}};
+\node[logik, unter={motorlogik1}{-1}{0}]	(log3sonst)			{ansonsten mache};
+	\node[musik, unter={log3sonst}{1}{1}]		(musiklogik2)		{spiele Note \dropdown{C} für \dropdown{1/4} Takt};
+
+% Umgebungen setzen 		
+\begin{pgfonlayer}{background}
+	\node[grundlage,umgebung,fit= (start) (musiklogik2) (motorlogik1) (platz1)]{};
+	\node[schleife, umgebung, fit = (schleife1) (musik1)(musik2)] (schleife1fit) {};
+	\node[logik,umgebung, fit=(bild) (logik1)] (log1fit){};
+	
+	
+	\node[logik,umgebung,fit=(log3wenndann)(motorlogik1)(log3sonst)(musiklogik2)]{};
+	
+	\node[umgebung, logik, fit=(log3wenndann) (motorlogik1)](log11){};
+	\node[umgebung, logik, fit=(log3sonst) (musiklogik2)](log22){};
+\end{pgfonlayer}	
+
+% Puzzlenippel setzen
+%\setzenippel{start,schleife1,musik1,logik1,platz1,schleife1fit,log1fit,bildmalen,log3wenndann, log3sonst}
+
+\end{tikzpicture}
\ No newline at end of file

Added: trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/examples/bsp-verschachtelt-zacken.tikz
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/examples/bsp-verschachtelt-zacken.tikz	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/examples/bsp-verschachtelt-zacken.tikz	2018-04-03 21:30:09 UTC (rev 47265)
@@ -0,0 +1,8 @@
+\begin{tikzpicture}[codeblocks,minimum width=1.2cm]
+\einruecken{\node[kontrolle](eins){A\\ B};
+	\einruecken{\node[logik,unter={eins}{1}{0}](zwei){C\\ D};
+		\einruecken{\node[mathe,unter={zwei}{1}{0}](drei){E\\ F};}
+			\node[aktion,unter={drei}{1}{0}](vier){G\\ H};
+	}
+}
+\end{tikzpicture}
\ No newline at end of file

Added: trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/examples/bsp-verzweigung.tikz
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/examples/bsp-verzweigung.tikz	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/examples/bsp-verzweigung.tikz	2018-04-03 21:30:09 UTC (rev 47265)
@@ -0,0 +1,13 @@
+\begin{tikzpicture}[codeblocks]
+\wenndannsonst[draw]
+	{\dropdown{A}~\dropdown{<}\,\intbox{5}}	%wenn
+	{	\node[aktion](akt1){i=i++};
+		\node[farbe,unter={akt1}{0}{0}](akt2){j=j++};} %dann
+	{	\node[aktion,](akt1){erstelle Bild:\\ 
+				\bild[0.4]{\fullled}
+		};
+		\node[farbe,unter={akt1}{0}{0}](akt2){j=j--};
+	}	% sonst-ende
+		{eins}; % eigener Name
+\node[aktion,unter={eins}{0}{0}]{weiter mit anderen sachen};
+\end{tikzpicture}
\ No newline at end of file

Added: trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/examples/smarthome.tikz
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/examples/smarthome.tikz	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/examples/smarthome.tikz	2018-04-03 21:30:09 UTC (rev 47265)
@@ -0,0 +1,101 @@
+\begin{tikzpicture}[codeblocks]
+\einruecken{\node[grundlage,pinlow] (start){beim Start};}
+	\node[platzhalter,unter={start}{1}{0}] (plz1){ändere \dropdown{modus} auf \intbox{1}};
+	\node[konsole,unter={plz1}{0}{0}] (ser1) {serial \\redirect to\\ \hspace{5em} TX \dropdown{C17}\\\hspace{5em} RX \dropdown{C16}\\ at baud rate \dropdown{9600}~};
+\end{tikzpicture}
+	
+\begin{tikzpicture}[codeblocks]
+\wenndann[eingabe]
+	{Knopf \dropdown{A} gedrückt} 
+	{
+	 \node[konsole] (ser1) {serial write line \stringbox{test\_line}};
+	 \node[steuerung, unter={ser1}{0}{0}]  (wait1){Warte $\mu$ \intbox{300000}};
+	}
+	{buttonA}
+\end{tikzpicture}
+
+
+\begin{tikzpicture}[codeblocks]
+
+\schleife[konsole]{\usb{}}{serial on data recived \usb{} \dropdown{\#}}{
+	\node[platzhalter, unter={start}{1}{0}] (plz1) {ändere \dropdown{befehl} auf \tikz\node[konsole,boden,keinezacken,puzzleteil,]{\usb{} serial read until \dropdown{\#}};};
+	\wenndann[unter={plz1}{0}{0}]{\tikz\node[pins,boden,keinezacken,puzzleteil]{\dropdown{befehl}}; \dropdown{=} \stringbox{aus}}{
+			\node[pins] (pin1) {schreibe analogen Pin \dropdown{P2} auf \intbox{0}};
+			\node[pins,unter={pin1}{0}{0}] (pin2) {ändere \dropdown{modus} auf \intbox{0}};	
+	}{wenn1}
+	\wenndann[unter={wenn1}{0}{0}]{\tikz\node[pins,boden,keinezacken,puzzleteil]{\dropdown{befehl}}; \dropdown{=} \stringbox{ein}}{
+		\node[pins] (pin2) {ändere \dropdown{modus} auf \intbox{1}};	
+	}{wenn2}
+	\wenndann[unter={wenn2}{0}{0}]{\tikz\node[pins,boden,keinezacken,puzzleteil]{\dropdown{befehl}}; \dropdown{=} \stringbox{solar}}{
+		\node[pins] (pin3) {schreibe analogen Pin \dropdown{P2} auf \intbox{1023}};
+		\node[pins,unter={pin3}{0}{0}] (pin2) {ändere \dropdown{solar} auf \intbox{1}};	
+	}{wenn3}
+	\wenndann[unter={wenn3}{0}{0}]{\tikz\node[pins,boden,keinezacken,puzzleteil]{\dropdown{befehl}}; \dropdown{=} \stringbox{solar\_aus}}{
+		\node[pins] (pin4) {schreibe analogen Pin \dropdown{P2} auf \intbox{0}};	
+	}{wenn4}
+}%ende Schleifenrumpf
+{start}
+\end{tikzpicture}
+
+
+\begin{tikzpicture}[codeblocks,scale=0.72]
+\schleife[grundlage,keinezacken]{dauerhaft}{}{
+	\wenndannsonst[robertashape]{\tikz\node[platzhalter,boden,keinezacken,puzzleteil]{\dropdown{modus}}; \dropdown{=} \intbox{1}} %wenn außen
+	{
+		\wenndann{\tikz\node[eingabe,boden,keinezacken,puzzleteil]{Lichtstärke}; \dropdown{$\leq$}\intbox{50}}
+			{\node[pins](pin1){schreibe analogen Ping \dropdown{P1} auf \intbox{1023}};
+				\node[grundlage,unter={pin1}{0}{0}](bild1){zeige LEDs\\\bild{\emptyled}};
+			}{wenn1}
+		
+		\wenndann[unter={wenn1}{0}{0}]{\tikz\node[eingabe,boden,keinezacken,puzzleteil]{Lichtstärke}; \dropdown{$>$}\intbox{50} \dropdown{und} \tikz\node[eingabe,boden,keinezacken,puzzleteil]{Lichtstärke}; \dropdown{$\leq$}\intbox{100}}{
+			\node[pins](pin2){schreibe analogen Ping \dropdown{P1} auf \intbox{800}};
+			\node[grundlage,unter={pin2}{0}{0}](bild2){zeige LEDs\\
+				\bild{\0 \0 \0 \0 \0 \\
+					\0 \0 \0 \0 \0 \\
+					\0 \0 \0 \0 \0 \\
+					\0 \X \0 \0 \0 \\
+					\X \X \0 \0 \0 \\
+			}};}{wenn2}
+		
+		\wenndann[unter={wenn2}{0}{0}]{\tikz\node[eingabe,boden,keinezacken,puzzleteil]{Lichtstärke}; \dropdown{$>$}\intbox{100} \dropdown{und} \tikz\node[eingabe,boden,keinezacken,puzzleteil]{Lichtstärke}; \dropdown{$\leq$}\intbox{150}}{\node[pins](pin3){schreibe analogen Ping \dropdown{P1} auf \intbox{600}};
+			\node[grundlage,unter={pin3}{0}{0}](bild3){zeige LEDs\\
+				\bild{
+					\0 \0 \0 \0 \0 \\
+					\0 \0 \0 \0 \0 \\
+					\0 \0 \X \0 \0 \\
+					\0 \X \X \0 \0 \\
+					\X \X \X \0 \0 \\
+			}};}{wenn3}
+		
+		\wenndann[unter={wenn3}{0}{0}]{\tikz\node[eingabe,boden,keinezacken,puzzleteil]{Lichtstärke}; \dropdown{$>$}\intbox{150} \dropdown{und} \tikz\node[eingabe,boden,keinezacken,puzzleteil]{Lichtstärke}; \dropdown{$\leq$}\intbox{200}}{\node[pins](pin4){schreibe analogen Ping \dropdown{P1} auf \intbox{200}};
+			\node[grundlage,unter={pin4}{0}{0}](bild4){zeige LEDs\\
+				\bild{
+					\0 \0 \0 \0 \0 \\
+					\0 \0 \0 \X \0 \\
+					\0 \0 \X \X \0 \\
+					\0 \X \X \X \0 \\
+					\X \X \X \X \0 \\
+			}};}{wenn4}
+		
+		\wenndann[unter={wenn3}{0}{0}]{\tikz\node[eingabe,boden,keinezacken,puzzleteil]{Lichtstärke}; \dropdown{$>$}\intbox{200} \dropdown{und} \tikz\node[eingabe,boden,keinezacken,puzzleteil]{Lichtstärke}; \dropdown{$\leq$}\intbox{255}}{\node[pins](pin5){schreibe analogen Ping \dropdown{P1} auf \intbox{0}};
+			\node[grundlage,unter={pin5}{0}{0}](bild5){zeige LEDs\\
+				\bild{
+					\0 \0 \0 \0 \X \\
+					\0 \0 \0 \X \X \\
+					\0 \0 \X \X \X \\
+					\0 \X \X \X \X \\
+					\X \X \X \X \X \\
+			}};}{wenn5}
+	}%dann außen
+	{\node[pins](pin6){schreibe analogen Ping \dropdown{P1} auf \intbox{0}};
+		\node[grundlage,unter={pin6}{0}{0}](bild5){zeige LEDs\\
+			\bild{
+				\X \0 \0 \0 \X \\
+				\0 \X \0 \X \0 \\
+				\0 \0 \X \0 \0 \\
+				\0 \X \0 \X \0 \\
+				\X \0 \0 \0 \X \\
+		}};}% sonst außen
+	{wenn}
+}{schleife1}
+\end{tikzpicture}

Deleted: trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/smarthome.tikz
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/smarthome.tikz	2018-04-03 10:02:15 UTC (rev 47264)
+++ trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/smarthome.tikz	2018-04-03 21:30:09 UTC (rev 47265)
@@ -1,101 +0,0 @@
-\begin{tikzpicture}[codeblocks]
-\einruecken{\node[grundlage,pinlow] (start){beim Start};}
-	\node[platzhalter,unter={start}{1}{0}] (plz1){ändere \dropdown{modus} auf \intbox{1}};
-	\node[konsole,unter={plz1}{0}{0}] (ser1) {serial \\redirect to\\ \hspace{5em} TX \dropdown{C17}\\\hspace{5em} RX \dropdown{C16}\\ at baud rate \dropdown{9600}~};
-\end{tikzpicture}
-	
-\begin{tikzpicture}[codeblocks]
-\wenndann[eingabe]
-	{Knopf \dropdown{A} gedrückt} 
-	{
-	 \node[konsole] (ser1) {serial write line \stringbox{test\_line}};
-	 \node[steuerung, unter={ser1}{0}{0}]  (wait1){Warte $\mu$ \intbox{300000}};
-	}
-	{buttonA}
-\end{tikzpicture}
-
-
-\begin{tikzpicture}[codeblocks]
-
-\schleife[konsole]{\usb{}}{serial on data recived \usb{} \dropdown{\#}}{
-	\node[platzhalter, unter={start}{1}{0}] (plz1) {ändere \dropdown{befehl} auf \tikz\node[konsole,boden,keinezacken,puzzleteil,]{\usb{} serial read until \dropdown{\#}};};
-	\wenndann[unter={plz1}{0}{0}]{\tikz\node[pins,boden,keinezacken,puzzleteil]{\dropdown{befehl}}; \dropdown{=} \stringbox{aus}}{
-			\node[pins] (pin1) {schreibe analogen Pin \dropdown{P2} auf \intbox{0}};
-			\node[pins,unter={pin1}{0}{0}] (pin2) {ändere \dropdown{modus} auf \intbox{0}};	
-	}{wenn1}
-	\wenndann[unter={wenn1}{0}{0}]{\tikz\node[pins,boden,keinezacken,puzzleteil]{\dropdown{befehl}}; \dropdown{=} \stringbox{ein}}{
-		\node[pins] (pin2) {ändere \dropdown{modus} auf \intbox{1}};	
-	}{wenn2}
-	\wenndann[unter={wenn2}{0}{0}]{\tikz\node[pins,boden,keinezacken,puzzleteil]{\dropdown{befehl}}; \dropdown{=} \stringbox{solar}}{
-		\node[pins] (pin3) {schreibe analogen Pin \dropdown{P2} auf \intbox{1023}};
-		\node[pins,unter={pin3}{0}{0}] (pin2) {ändere \dropdown{solar} auf \intbox{1}};	
-	}{wenn3}
-	\wenndann[unter={wenn3}{0}{0}]{\tikz\node[pins,boden,keinezacken,puzzleteil]{\dropdown{befehl}}; \dropdown{=} \stringbox{solar\_aus}}{
-		\node[pins] (pin4) {schreibe analogen Pin \dropdown{P2} auf \intbox{0}};	
-	}{wenn4}
-}%ende Schleifenrumpf
-{start}
-\end{tikzpicture}
-
-
-\begin{tikzpicture}[codeblocks,scale=0.5]
-\schleife[grundlage,keinezacken]{dauerhaft}{}{
-	\wenndannsonst[robertashape]{\tikz\node[platzhalter,boden,keinezacken,puzzleteil]{\dropdown{modus}}; \dropdown{=} \intbox{1}} %wenn außen
-	{
-		\wenndann{\tikz\node[eingabe,boden,keinezacken,puzzleteil]{Lichtstärke}; \dropdown{$\leq$}\intbox{50}}
-			{\node[pins](pin1){schreibe analogen Ping \dropdown{P1} auf \intbox{1023}};
-				\node[grundlage,unter={pin1}{0}{0}](bild1){zeige LEDs\\\bild{\emptyled}};
-			}{wenn1}
-		
-		\wenndann[unter={wenn1}{0}{0}]{\tikz\node[eingabe,boden,keinezacken,puzzleteil]{Lichtstärke}; \dropdown{$>$}\intbox{50} \dropdown{und} \tikz\node[eingabe,boden,keinezacken,puzzleteil]{Lichtstärke}; \dropdown{$\leq$}\intbox{100}}{
-			\node[pins](pin2){schreibe analogen Ping \dropdown{P1} auf \intbox{800}};
-			\node[grundlage,unter={pin2}{0}{0}](bild2){zeige LEDs\\
-				\bild{\0 \0 \0 \0 \0 \\
-					\0 \0 \0 \0 \0 \\
-					\0 \0 \0 \0 \0 \\
-					\0 \X \0 \0 \0 \\
-					\X \X \0 \0 \0 \\
-			}};}{wenn2}
-		
-		\wenndann[unter={wenn2}{0}{0}]{\tikz\node[eingabe,boden,keinezacken,puzzleteil]{Lichtstärke}; \dropdown{$>$}\intbox{100} \dropdown{und} \tikz\node[eingabe,boden,keinezacken,puzzleteil]{Lichtstärke}; \dropdown{$\leq$}\intbox{150}}{\node[pins](pin3){schreibe analogen Ping \dropdown{P1} auf \intbox{600}};
-			\node[grundlage,unter={pin3}{0}{0}](bild3){zeige LEDs\\
-				\bild{
-					\0 \0 \0 \0 \0 \\
-					\0 \0 \0 \0 \0 \\
-					\0 \0 \X \0 \0 \\
-					\0 \X \X \0 \0 \\
-					\X \X \X \0 \0 \\
-			}};}{wenn3}
-		
-		\wenndann[unter={wenn3}{0}{0}]{\tikz\node[eingabe,boden,keinezacken,puzzleteil]{Lichtstärke}; \dropdown{$>$}\intbox{150} \dropdown{und} \tikz\node[eingabe,boden,keinezacken,puzzleteil]{Lichtstärke}; \dropdown{$\leq$}\intbox{200}}{\node[pins](pin4){schreibe analogen Ping \dropdown{P1} auf \intbox{200}};
-			\node[grundlage,unter={pin4}{0}{0}](bild4){zeige LEDs\\
-				\bild{
-					\0 \0 \0 \0 \0 \\
-					\0 \0 \0 \X \0 \\
-					\0 \0 \X \X \0 \\
-					\0 \X \X \X \0 \\
-					\X \X \X \X \0 \\
-			}};}{wenn4}
-		
-		\wenndann[unter={wenn3}{0}{0}]{\tikz\node[eingabe,boden,keinezacken,puzzleteil]{Lichtstärke}; \dropdown{$>$}\intbox{200} \dropdown{und} \tikz\node[eingabe,boden,keinezacken,puzzleteil]{Lichtstärke}; \dropdown{$\leq$}\intbox{255}}{\node[pins](pin5){schreibe analogen Ping \dropdown{P1} auf \intbox{0}};
-			\node[grundlage,unter={pin5}{0}{0}](bild5){zeige LEDs\\
-				\bild{
-					\0 \0 \0 \0 \X \\
-					\0 \0 \0 \X \X \\
-					\0 \0 \X \X \X \\
-					\0 \X \X \X \X \\
-					\X \X \X \X \X \\
-			}};}{wenn5}
-	}%dann außen
-	{\node[pins](pin6){schreibe analogen Ping \dropdown{P1} auf \intbox{0}};
-		\node[grundlage,unter={pin6}{0}{0}](bild5){zeige LEDs\\
-			\bild{
-				\X \0 \0 \0 \X \\
-				\0 \X \0 \X \0 \\
-				\0 \0 \X \0 \0 \\
-				\0 \X \0 \X \0 \\
-				\X \0 \0 \0 \X \\
-		}};}% sonst außen
-	{wenn}
-}{schleife1}
-\end{tikzpicture}

Modified: trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/tikzcodeblocks-documentation.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/tikzcodeblocks-documentation.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/tikzcodeblocks-documentation.tex	2018-04-03 10:02:15 UTC (rev 47264)
+++ trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/tikzcodeblocks-documentation.tex	2018-04-03 21:30:09 UTC (rev 47265)
@@ -1,9 +1,15 @@
 \documentclass[12pt,a4paper]{ltxdoc}
 
+% TODO: \ex schön machen
+% TODO: Beispielliste anlegen und am Ende anzeigen lassen
+% TODO: Eckige Boxen in Obenrobertamode ermöglichen
+
 \usepackage[T1]{fontenc}
 \usepackage[utf8]{inputenc}
 \usepackage[english,ngerman]{babel}
 
+\usepackage{standalone}
+
 \usepackage[%print
 ]{tikzcodeblocks}
 \usepackage{todonotes}
@@ -11,7 +17,7 @@
 \usepackage{lmodern} % für textbf in texttt
 \usepackage{wrapfig,booktabs}
 \usepackage[babel]{csquotes}
-\usepackage[right=2cm,left=4cm,bottom=3cm,top=2.5cm]{geometry}
+\usepackage[right=2cm,left=4.5cm,bottom=3cm,top=2.5cm]{geometry}
 
 \definecolor{buw-gruen}{HTML}{446700}%89ba17
 
@@ -49,15 +55,12 @@
 
 \usepackage{comment}
 \usepackage{booktabs}
-\usepackage[nochapter]{vhistory}
+\usepackage[nochapter]{vhistory} %TODO ersetzen oder selber implementieren
 
 \usepackage{array}
 \usepackage{subcaption}
-\usepackage{tocloft}
 
-\newcommand{\listExample}{Liste der Beispiele}
 
-
 \title{TikZ Codeblocks v.\vhCurrentVersion}
 \author{Adrian Salamon}
 \date{\vhCurrentDate}
@@ -72,72 +75,70 @@
 \let\PrintEnvName\PrintDescribeEnv
 
 
-\newcommand{\wichtig}{\noindent{\huge!~}\normalfont Hinweis: }
 
-
 % Define own examples
-\newcommand{\listofexamples}{Liste der Beispiele}
-\newlistof{example}{lex}{\listofexamples}
-\newcounter{examplesave}
-%
-\newcommand{\ex}[1]{\par\vspace*{1em}{\sffamily \bfseries \textcolor{buw-gruen}{#1\label{sec:#1}}\\}\vspace{0.5em}
-% add to list of examples
-\refstepcounter{example}
-\addcontentsline{lex}{example}{\protect\numberline{
-		\theexample}#1}
-}
+\usepackage{marginnote}
+\newcommand{\ex}[1]{\vspace*{1em} \marginnote{\textbf{\sffamily Bsp:} #1}}
 
+\newcommand{\hinweis}{\noindent{\huge!\,}\normalfont\textbf{\sffamily Hinweis:}} 
 
+
+
+
 \begin{document}
-
 \maketitle
-
 \tableofcontents
 
-
 \section*{Versionshistorie}
 
 \begin{versionhistory}
-  \vhEntry{0.1}{2017-07-06}{AS}{published}
-  \vhEntry{0.11}{2017-07-18}{AS}{update}
+  \vhEntry{0.1 }{2017-07-06}{A. Salamon}{published}
+  \vhEntry{0.11}{2017-07-18}{A. Salamon}{update: shapes, translations and fix typos}
+  \vhEntry{0.12}{2018-04-03}{A. Salamon}{update: LED colors}
 \end{versionhistory}
+%
   \begin{itemize}[leftmargin=*,noitemsep]
   \item Translations
   \begin{itemize}[noitemsep]
 	  \item via \textbf{babel} for structures (if/wenn, then/dann\dots)
-	  \item marcos and styles now (partly) also in english
+	  \item marcos and styles are now (partly) also in english\footnote{Feel free to contact me, if you are an english speaker and want to use everything in english.}
   \end{itemize}
   \item new Shapes
 	  \begin{itemize}[noitemsep]
-	  \item \tikz\node[codeblocks,musik,pinhigh]{pinhigh};
-	  \item \tikz\node[codeblocks,start,pinlow]{pinlow};
+		  \item \tikz\node[codeblocks,musik,pinhigh]{pinhigh};
+		  \item \tikz\node[codeblocks,start,pinlow]{pinlow};
 	  \end{itemize}
-	\item Package option print gets rid of all colors: \tikz\node[codeblocks,print, aktion,]{no colors};
+	\item Package option \texttt{print} gets rid of all colors: \tikz\node[codeblocks,print, aktion,]{no colors};
 	\item Open-Roberta colors are now more accurate and usable next to the standard colors. (see \ref{sec:robertacolors}.)
   \end{itemize}
+  \begin{itemize}
+ 	\item fixed LED-Color for NEPO-Editor.
+	\item Nepo:
+		\begin{tikzpicture}[codeblocks,openroberta]
+			\node[bild]{\bild{\0 \X \0 \0 \\}};
+		\end{tikzpicture}
+		%
+		PXT: \begin{tikzpicture}[codeblocks]
+			\node[start]{\bild{\0 \X \0 \0 \\}};
+		\end{tikzpicture}
+  \end{itemize}
 
-%\begin{versionhistory}
-% \vhEntry{0.13}{2017-07-23}{AS}{published}
-%\end{versionhistory}
-
+%\begin{longtable}{llp}
+%0.1. & 2017-07-06 & looong\\
+%\end{longtable} 
+  
 \section{Präambel}
 
-Diese Sammlung von TikZ-Stilen und Kommandos soll helfen, grafische Codeblöcke, wie beim Calliope mini Editor, der Sprache NEPO von Open Roberta oder der Programmierumgebung Scratch zu setzen. Sie ersetzt \textbf{nicht} die Auseinandersetzung mit TikZ und der entsprechenden Syntax. Die Positionierung, Benennung und Referenzierung muss weiterhin per Hand gestaltet werden.
+Diese Sammlung von TikZ Stilen und Kommandos soll helfen, grafische Codeblöcke, wie beim Calliope mini Editor, der Sprache NEPO von Open Roberta oder der Programmierumgebung Scratch zu setzen. Sie ersetzt \textbf{nicht} die Auseinandersetzung mit TikZ und der entsprechenden Syntax. Die Positionierung, Benennung und Referenzierung der Elemente muss weiterhin manuell gestaltet werden.
 
 Dies ist eine Entwicklerversion. Bezeichner und Paketname können in späteren Versionen noch variieren.
 
-Bei Fragen weden Sie sich bitte an \href{mailto:adriansalamon at gmail.com}{adriansalamon at gmail.com}.
+Fragen nehme ich gerne per \href{mailto:adriansalamon at gmail.com?subject=Question for tikzcodeblocks}{adriansalamon at gmail.com} entgegen. 
 
 
-\subsection{Alternativpakete}
-
-Während der Entwicklung dieses Paketes wurde das Paket \texttt{scratch}\footnote{\url{https://www.ctan.org/pkg/scratch?lang=de}.} veröffentlicht. Damit lässt sich graphischer Code in der Optik von Scratch sehr einfach setzen. Die Dokumentation des Pakets ist zur Zeit auf Französisch verfügbar.
-
-Unterschied zu diesem Paket: \texttt{scratch} lässt sich \textbf{nicht} in andere TikZ Umgebungen einbinden. Die einzelnen Objekte sind nicht als Nodes\footnote{In dieser Dokumentation wird die Bezeichnung \textbf{Node} für die Knoten in TikZ verwendet.} ansteuerbar. Die Syntax ist jedoch deutlich schmaler als hier. Ein Blick lohnt sich bestimmt.
-
 \subsection{Editoren mit graphischer Programmierung}
 
-Diese Sammlung wurde erstellt, um Quelltexte auf Blockbasis für Calliope mini zu setzen. Alle verwendeten Farben und Gestaltungen sind daher standardmäßig vom PXT Editor von Calliope inspiriert. Als alternative Farbgebung ist eine Variation nach Open Roberta implementiert (siehe \ref{sec:robertacolors}) . Es lässt sich jedoch auch Code anderer Editoren setzen.
+\texttt{tikzcodeblocks} wurde erstellt, um Quelltexte auf Blockbasis für den Microcontroller Calliope mini zu setzen. Alle verwendeten Farben und Gestaltungen sind daher standardmäßig vom PXT Editor von Calliope inspiriert. Als alternative Farbgebung ist eine Variation nach Open Roberta implementiert (siehe \ref{sec:robertacolors}). Es lässt sich jedoch auch Code mit Farb- und Formgebungen anderer Editoren setzen.
 
 \begin{table}[hbt!]\centering
 \begin{tabular}{ll}
@@ -154,56 +155,84 @@
 
 
 
+\subsection{Alternativpakete}
 
+Während der Entwicklung dieses Paketes wurde das Paket \texttt{scratch}\footnote{\url{https://www.ctan.org/pkg/scratch?lang=de}.} veröffentlicht. Damit lässt sich graphischer Code in der Optik von Scratch sehr einfach setzen. Die Dokumentation des Pakets ist zur Zeit auf Französisch verfügbar.
+
+Ein Unterschied zwischen den Paketen \texttt{scratch} und \texttt{tikzcodeblocks} ist m.\,E. vor allem folgender: \texttt{scratch} lässt sich \textbf{nicht} in andere TikZ Umgebungen einbinden. Die einzelnen Objekte sind nicht als Nodes\footnote{In dieser Dokumentation wird die Bezeichnung \textbf{Node} für die Knoten in TikZ verwendet.} referenzierbar. Die Syntax ist jedoch deutlich schmaler als bei \texttt{tikzcodeblocks}. Ein Blick lohnt sich bestimmt für die meisten interessierten Nutzer.
+
+
+\subsection{Installation und Benutzung}
+
+Das Paket wird über die üblichen \LaTeX-Paketmanager installiert (z.\,B. \TeX{}Live)
+und per \DescribeMacro{tikzcodeblocks} \lstinline|\usepackage{tikzcodeblocks}| in die Präambel des gewünschten Dokuments eingebunden.
+
+\DescribeMacro{codeblocks} Mit \lstinline|\begin{tikzpicture}[codeblocks]| werden die Codeblock-Stile in die jeweilige tikzpicture-Umgebung  geladen. Es setzt das Verhalten für \lstinline[language=TeX]|every Node|.
+
+% Nacktes Beispiel
+\begin{minipage}{0.6\textwidth}
+	\lstinputlisting[language={},morekeywords={usepackage, codeblocks}
+	]{examples/bsp-hello-world.tikz}
+\end{minipage}
+\begin{minipage}{0.4\textwidth}
+\input{examples/bsp-hello-world.tikz}
+\end{minipage}
+
+
 \section{Beispielcode}
 
-%\begin{samepage}
 Eine Beispiel zeigt Ergebnisse der Nutzung des Pakets.
-Der Quellcode zur Erstellung der Vektorgraphik folgt unter dem Beispiel.
-%\begin{center}
-%	\input{bsp-start.tikz}
-%\end{center}
-%\end{samepage}
-%
-%\lstinputlisting[basicstyle=\footnotesize \ttfamily]{bsp-start.tikz}
+Der Quellcode zur Erstellung der Vektorgrafik folgt unter dem Beispiel.
 
 \begin{center}
-	\input{bsp-start-roberta.tikz}
+	\input{examples/bsp-start-roberta.tikz}
 \end{center}
-\lstinputlisting[basicstyle=\footnotesize \ttfamily]{bsp-start-roberta.tikz}
+\lstinputlisting[basicstyle=\footnotesize \ttfamily]{examples/bsp-start-roberta.tikz}
 
+
 \subsection{English Codeexample}
+
 \begin{center}
-	\input{bsp-english.tikz}
+	\input{examples/bsp-english.tikz}
 \end{center}
-\lstinputlisting[basicstyle=\footnotesize \ttfamily, language={},morekeywords={square,moveindent,under,ifthenelsecode,loopcode,puzzlepiece,otherlanuage}]{bsp-english.tikz}
+%
+\lstinputlisting[
+	basicstyle=\footnotesize \ttfamily,
+	language={},
+	morekeywords={
+		square,
+		moveindent,
+		under,
+		ifthenelsecode,
+		loopcode,
+		puzzlepiece,
+		otherlanuage}
+	]{examples/bsp-english.tikz}
 
 \clearpage
-\section{Bausteine und Befehle}
 
-%\begin{commands}
 
-\DescribeMacro{codeblocks} Mit \lstinline|\begin{tikzpicture}[codeblocks]| werden die Codeblock-Stile geladen. Es setzt das Verhalten für every Node.
-Die Skalierung des gesamten Bildes ist mit \lstinline|\begin{tikzpicture}[codeblocks,scale=0.7]| möglich.
+\section{Bausteine und Befehle}
 
-
 \subsection{Bausteinklassen nach PXT-Calliope Editor}
 
+% Hilfskonstruktionen für das schnelle Setzen aller Stile
 \newcommand{\trynode}[1]{\lstinline|#1|& \tikz\node[#1,codeblocks]{#1}; & \tikz\node[openroberta,#1,codeblocks,eckig,]{#1};\\}
 \newcommand{\trynodeOpenRoberta}[1]{\lstinline|#1|& \tikz\node[openroberta,#1,codeblocks,eckig,]{#1};\\}
 
+Die Klassen der Programmierbausteine werden nach folgendem Muster als TikZ-Style angegeben.
 
-Die Klassen der Programmierbausteine werden nach folgendem Muster als TikZ-Style angegeben. Der Standard orientiert sich an den Farben und Formen des Calliope-PXT-Editors.
+\begin{quotation}
+	\lstinline|\node[STYLE] {Inhalt};|
+\end{quotation}
 
-\lstinline|\node[STYLE] {Inhalt};|
+Die Defaulteinstellung orientiert sich an den Farben und Formen des Calliope-PXT-Editors. Mithilfe des Stils \DescribeMacro{openroberta} \lstinline|openroberta| können alternative Farb- und Formdefinitionen geladen werden, die sich an der NEPO-Umgebung von Open-Roberta orientieren. Der Stil kann auch für eine ganze TikZ-Umgebung verwendet werden.
 
-Mithilfe des Stils \DescribeMacro{openroberta} \lstinline|openroberta| können Farb- und Formdefinitionen geladen werden, die sich an der NEPO-Umgebung von Open-Roberta orientieren. Der Stil kann auch für eine ganze TikZ-Umgebung verwendet werden.
-
 \label{sec:robertacolors}
 \renewcommand{\arraystretch}{0.6}
 	\begin{longtable}{lll}
 		\toprule
-\sffamily	Stilname & \sffamily pxt (Standard) & \sffamily openroberta\\\endhead \midrule
+\sffamily	Stilname & \sffamily pxt (Standard) & \sffamily openroberta\\ \midrule \endhead
 		\trynode{grundlage}
 		\trynode{eingabe}
 		\trynode{schleife}
@@ -236,20 +265,48 @@
 		
 	\end{longtable}
 
-\wichtig{In PXT- und im Open-Roberta-Editor heißen der entsprechende Einträge für Zeichenketten \enquote{Texte}. Der Style \enquote{Text} ist von TikZ jedoch bereits intern belegt.}
+\hinweis{In PXT und im Open-Roberta-Editor heißen die entsprechenden Einträge für Zeichenketten \enquote{Texte}. Der Style \enquote{Text} ist von TikZ jedoch bereits intern belegt und wird hier deswegen als \enquote{zeichenkette} verwendet.}
 
 
-Standardmäßig wird das Paket mit der PXT-Farbinformation geladen, um die Farben des PXT-Editors für Calliope zu verwenden.\footnote{Damit beide Stile problemlos ineinander überführt werden können, ohne dass bestimmte Stile in anderen Kontexten undefiniert sind, wurden einige Stile doppelt Zugeordnet: pxt-grundlagen = openroberta-start, pxt-musik = openroberta-aktion, etc.}
+Standardmäßig wird das Paket mit der PXT-Farbinformation geladen, um die Farben des PXT-Editors für Calliope zu verwenden.\footnote{Damit beide Stile problemlos ineinander überführt werden können, ohne dass bestimmte Stile in anderen Kontexten undefiniert sind, wurden einige Stile doppelt Zugeordnet: \texttt{pxt-grundlagen} = \texttt{openroberta-start}, \texttt{pxt-musik} = \texttt{openroberta-aktion}, etc.}
 
 Die Stile unterscheiden sich voneinander nur durch ihre Farben. \lstinline|openroberta| läd standardmäßig noch den Stil \lstinline|eckig|.
  
+ 
+\subsection{Skalierung} 
 
+\ex{Skalierung}  Die Skalierung des gesamten Bildes ist mit dem TikZ-Boardmittel \texttt{scale} möglich.
+ 
+\begin{minipage}{0.78\textwidth}
+\begin{lstlisting}[language={},morekeywords={scale}]
+\begin{tikzpicture}[codeblocks, scale=0.7]
+	\node[variablen]{Hello World;};
+\end{tikzpicture}
+%
+\begin{tikzpicture}[codeblocks, scale=1.3]
+	\node[variablen]{Hello World;};
+\end{tikzpicture}
+\end{lstlisting}
+\end{minipage}
+\begin{minipage}{0.2\textwidth}
+ 	\begin{tikzpicture}[codeblocks, scale=0.7]
+ 		\node[variablen]{Hello World;};
+ 	\end{tikzpicture}
+ 	%
+ 	\begin{tikzpicture}[codeblocks, scale=1.3]
+ 		\node[variablen]{Hello World;};
+ 	\end{tikzpicture}
+\end{minipage} 
+ 
+ 
+ 
+
 \subsection{Farben}
 
 \subsubsection{Lokale Farbänderung}
 Lokale Überschreibungen sind -- wie üblich -- durch Angabe einer Farbe bei den entsprechenden Node-Attributen möglich.
 
-\ex{Bsp. Lokale Farbänderung}
+\ex{Lokale Farbänderung}
 {\tikz\node[codeblocks,fill=black,draw=red]{schwarzer Hintergrund - roter Rahmen};\\
 \lstinline|\node[fill=black,draw=red]{schwarzer Hintergrund - roter Rahmen}|
 }
@@ -258,9 +315,10 @@
 
 \subsubsection{Globale Farbänderung}
 
-\DescribeMacro{\setcolor} \label{sec:setcolor} Der Befehl \cmd\setcolor\marg{farbreferenz}\marg{hexfarbcode} lässt zu, Farben dokumentenweit umzudefinieren.
+\DescribeMacro{\setcolor}\label{sec:setcolor}%
+Der Befehl \cmd\setcolor\marg{farbreferenz}\marg{hexfarbcode} lässt zu, Farben dokumentenweit umzudefinieren.
 
-\ex{Bsp. Globale Farbänderung}
+\ex{Globale Farbänderung}
 \tikz\node[codeblocks,logik,]{Alte Farbe}; \lstinline|\setcolor{logik-color}{ff0000}| \setcolor{logik-color}{ff0000} \tikz\node[codeblocks,logik,]{Neue Farbe!};
 \setcolor{logik-color}{006970}
 
@@ -270,7 +328,7 @@
 
 Mit der Paketoption \lstinline[language={},morekeywords=print]|\usepackage[print]{tikzcodeblocks}| lassen sich alle Farben entfernen. Es werden lediglich Umrisse, sowie ausgefüllte LEDs gezeichnet. Die Schriftfarbe ist schwarz.
 
-\ex{Bsp. print}
+\ex{print}
 \begin{tikzpicture}[codeblocks,print]
 \einruecken{
 	\node[aktion](one){\stringbox{myText}};
@@ -298,52 +356,54 @@
 \end{tabular}
 \end{center}
 
-\lstinline|\intbox|,
-\lstinline|\stringbox|,
-\lstinline|\boolbox| haben alle als optionales Argument die Möglichkeit Stile hinzuzufügen.
+\lstinline|\intbox|, \lstinline|\stringbox|, \lstinline|\boolbox| haben alle als optionales Argument die Möglichkeit Stile hinzuzufügen.
 
 
-\ex{Bsp. optionales Argument bei Boxen}
-\intbox[puzzleteil]{42}\\
-\lstinline|\intbox[puzzleteil]{42}|
+\ex{optionales Argument bei Boxen}
+\begin{tabular}{rl}
+\intbox[]{42} 							& \lstinline|\intbox{42}| \\[1em]
+\intbox[puzzleteil]{42} 	&\lstinline|\intbox[puzzleteil]{42}|\\
+\end{tabular}
 
-\ex{Bsp. Boxen mit Kapselung}
+
+\ex{Boxen mit Kapselung}
 \tikz\node[codeblocks,eingabe]{Meine \dropdown{Dropdown}-Box mit Wert \intbox{5}};\\
 \lstinline|\node[eingabe]{Meine \dropdown{Dropdown}-Box mit Wert \intbox{5}};|
 
 
-\wichtig{} Bei der Verwendung des Stils \texttt{openroberta} ändern sich auch entsprechend die Farben der int-, string- und boolboxen.
+\hinweis{} Bei der Verwendung des Stils \texttt{openroberta} ändern sich auch entsprechend die Farben der int-, string- und boolboxen.
 
 
 \subsection{Bilder/LED-Matrix}
 
-\DescribeMacro{\bild} Mit \cmd\bild\oarg{skalierfaktor}\marg{Inhalt} lassen sich LED-Matrizen setzen. Es erwartet einen Tabelleninhalt. Jede Zeile muss entsprechend per \lstinline|\\| beendet werden. Zeilen und Spalten könen dabei unbegrenzt sein. Dabei gelten weiterhin folgende Befehle:
+\DescribeMacro{\bild} Mit \cmd\bild\oarg{skalierungsfaktor}\marg{Inhalt} lassen sich LED-Matrizen setzen. Es erwartet einen Tabelleninhalt. Jede Zeile muss entsprechend per \lstinline|\\| beendet werden. Zeilen und Spalten könen dabei unbegrenzt sein. Dabei gelten weiterhin folgende Befehle:
 		\begin{itemize}[noitemsep]
 	\item \DescribeMacro{\emptyled} \lstinline|\emptyled| setzt eine $5 \times 5$ LED-Matrix, bei der alle LEDs ausgeschaltet sind.\\ \bild{\emptyled}
 	\item \DescribeMacro{\fullled} \lstinline|\fullled| setzt eine $5 \times 5$ LED-Matrix, bei der alle LEDs angeschaltet sind.\\ \bild{\fullled}
-	\item \DescribeMacro{\X} \lstinline|\X| repräsentiert darin eine angeschaltete LED \bild{\X\\}
-	\item \DescribeMacro{\0} \lstinline|\0| repräsentiert darin eine ausgeschaltete LED \bild{\0\\}
+	\item \DescribeMacro{\X} \lstinline|\X| repräsentiert darin eine angeschaltete LED~~\bild{\X\\}
+	\item \DescribeMacro{\0} \lstinline|\0| repräsentiert darin eine ausgeschaltete LED~~\bild{\0\\}
 	\item Die Kombination von \lstinline|\bild{}|, \lstinline|\X|, und \lstinline|\0| ergiebt schließlich alle möglichen LED-Maritzen:
 
+\ex{Beliebige Matrix}
 \begin{minipage}[l]{0.6\textwidth}
 		\hspace*{-2cm}
 \begin{lstlisting}
 	\bild{
-		\X \X \X \0 \0 \\
-		\X \0 \X \0 \0 \\
+		\X \X \X \X \0 \0 \\
+		\X \X \0 \X \0 \0 \\
 	}
 \end{lstlisting}
 	\end{minipage}
 	\begin{minipage}[c]{0.8\textwidth}
 	\bild{
-		\X \X \X \0 \0 \\
-		\X \0 \X \0 \0 \\
+		\X \X \X \X \0 \0 \\
+		\X \X \0 \X \0 \0 \\
 	}
 	\end{minipage}
 
 \item  \DescribeMacro{\bild} Mit dem optionalen Argument kann ein Skalierungsfaktor angegeben werden.
 
-\ex{Bsp. Bildskalierung}
+\ex{Bildskalierung}
 
 \begin{tabular}{cc}
 	\bild[0.4]{\emptyled} &  \bild[1.5]{\emptyled}\\
@@ -351,7 +411,7 @@
 \end{tabular}
 \end{itemize}
 
-\wichtig{} \lstinline|\X|, \lstinline|\0| sowie \lstinline|\emptyled| und \lstinline|\fullled| können nur innerhalb des \lstinline|\bild|-Kommandos verwendet werden.
+\hinweis{} \lstinline|\X|, \lstinline|\0| sowie \lstinline|\emptyled| und \lstinline|\fullled| können nur innerhalb des \lstinline|\bild|-Kommandos verwendet werden.
 
 
 
@@ -365,9 +425,9 @@
 
 \DescribeMacro{\wenndannsonst} \cmd\wenndannsonst\oarg{TikZ-Stil}\marg{TEXT: Bedingung}\marg{NODE: Dann-Anweisung}\marg{NODE: Sonst-Anweisung}\marg{TEXT: Nodename} verhält sich analog zu \cmd\wenndann, ist jedoch um einen Sonst-Block, der mit Nodes gefüllt wird, erweitert. Automatisch ergänzt werden die Wörter \enquote{wenn}, \enquote{dann} und \enquote{sonst}.
 
-\wichtig{Das optionale Argument ist oft notwendig, um die Verzweigung richtig in Relation zu vorherstehenden Blöcken zu positionieren. Siehe hierfür \ref{sec:unter}.}
+\hinweis{Das optionale Argument ist oft notwendig, um die Verzweigung richtig in Relation zu vorherstehenden Blöcken zu positionieren. Siehe hierfür \ref{sec:unter}.}
 
-\ex{Muster: Verzweigungen}
+%\ex{Muster einer Verzweigungen}
 
 \begin{tabular}{lll}
 &\begin{tikzpicture}[codeblocks]
@@ -382,11 +442,11 @@
 \end{tabular}
 
 
-\ex{Bsp. Verzweigungen}
-\input{bsp-verzweigung.tikz}
-\lstinputlisting[language={},morekeywords={wenndannsonst}]{bsp-verzweigung.tikz}
+\ex{Verzweigungen}
+\input{examples/bsp-verzweigung.tikz}
+\lstinputlisting[language={},morekeywords={wenndannsonst}]{examples/bsp-verzweigung.tikz}
 
-\wichtig{Sollen Nodes in Textfeldern gesetzt werden, so muss \lstinline|\tikz| vorgeschoben werden.}
+\hinweis{Sollen Nodes in Textfeldern gesetzt werden, so muss \lstinline|\tikz| vorgeschoben werden.}
 
 \subsubsection{Schleifen}
 
@@ -405,7 +465,7 @@
 
 
 
-\ex{Bsp. Schleifen}
+\ex{Schleifen}
 \begin{tikzpicture}[codeblocks]
 \schleife[draw]{Solange}{\tikz\node[logik,keinezacken]{\dropdown{A}~\dropdown{=}~\dropdown{B}};}{
 	\node[aktion]{A=B+B};}{schl1}
@@ -437,12 +497,29 @@
 
 \begin{lstlisting}[]
 \begin{otherlanguage}{english}
-\begin{tikzpicture}[codeblocks]
-\wenndannsonst{A = B}{\node[aktion]{A++};}{\node[aktion]{B-{}-};}{name}
-\end{tikzpicture}
+  \begin{tikzpicture}[codeblocks]
+    \wenndannsonst{A = B}{\node[aktion]{A++};}{\node[aktion]{B-{}-};}{name}
+  \end{tikzpicture}
 \end{otherlanguage}
 \end{lstlisting}
 
+\DescribeMacro{\ifthenblocks} 
+\DescribeMacro{\ifthenelseblocks} 
+\DescribeMacro{\loopblocks} To fit the commands to the english language please you can use |\ifthenblocks|, |\ifthenelseblocks| and |\loopblocks|. Notice the added \enquote{blocks}, because the \LaTeX Command \lstinline|\ifthenelse| is already used by the \texttt{ifthen}-Package. 
+
+\begin{table}[htb] \centering
+\begin{tabular}{ll}
+\toprule
+english & german\\ \midrule 
+\lstinline|\ifthenblocks| 		&\lstinline|\wenndann|\\
+\lstinline|\ifthenelseblocks|	&\lstinline|\wenndannsonst|\\
+\lstinline|\loopblocks|				&\lstinline|\schleife| \\ \bottomrule
+\end{tabular}
+\end{table}
+
+
+
+
 \section{Positioneriung der Nodes}
 
 \subsection{Manuelles Positionieren}\label{sec:unter}
@@ -451,12 +528,12 @@
 \DescribeMacro{unter} \texttt{unter=}\marg{NODE}\marg{X-Einzug-Faktor}\marg{Y-Einzug-Faktor} verwendet. Hierbei wird der Einzug als Ankerpunkt jeweils relativ zum Vorgänger gesetzt.
 
 	\vspace{1em}
-	\hspace*{-3cm}
+%	\hspace*{-3cm}
 	\begin{tikzpicture}[codeblocks,scale=1.0]
 	\node[grundlage] (drueber) {Hier beginnt der Code};
-	\node[eingabe, unter={drueber}{1}{4}] (drunter){Das ist das letzte Kommando};
+	\node[eingabe, unter={drueber}{1}{8}] (drunter){Das ist das letzte Kommando};
 
-	\draw[black, ->, rounded corners=0] (drueber) -- (drunter.165) node[midway, black,right] {Abstand 4 (\#3)};
+	\draw[black, ->, rounded corners=0] (drueber) -- (drunter.165) node[midway, black,right] {Abstand 8 (\#3)};
 	\draw[black, ->, rounded corners=0] (drueber.south west) |- (drunter.west) node[midway, black,left] {Einzug 1 (\#2)};
 
 	\draw[black, ->, rounded corners=0] (drunter.east) |- (drueber.east) node[near start,right] {Bezug auf start-node (\#1)};
@@ -463,58 +540,47 @@
 
 	\end{tikzpicture}\vspace{2em}
 
-
 	\begin{lstlisting}[keywords={},morekeywords={drueber,drunter}]
 	\node[grundlage] (drueber) {Hier beginnt der Code};
-	\node[eingabe, unter={drueber}{1}{4}] (drunter){Das ist das letzte Kommando};
+	\node[eingabe, unter={drueber}{1}{8}] (drunter){Das ist das letzte Kommando};
 	\end{lstlisting}
 
+	\hinweis{Dank der Verwendung von Kontrollstrukturen (siehe \ref{sec:strukturen}) ist manuelles Einrücken in der Regel nicht notwendig.}
 
 
 
 \subsubsection{Verschieben der Zacken bei manueller Einrückung}
-%\input{bsp-openroberta-umgebung.tikz}
-%\lstinputlisting[language={},firstline=3, lastline=14,morekeywords={\einruecken}]{bsp-openroberta-umgebung.tikz}
+%\input{examples/bsp-openroberta-umgebung.tikz}
+%\lstinputlisting[language={},firstline=3, lastline=14,morekeywords={\einruecken}]{examples/bsp-openroberta-umgebung.tikz}
 
 \DescribeMacro{\einruecken} Über das Kommando \cmd\einruecken\marg{nodes} lässt sich der untere Zacken eines Nodes um genau einen Einzug verschieben (siehe: \ref{sec:unter};). Die obere Ausbuchtung bleibt an ihrem normalen Platz.
 
+\begin{otherlanguage}{english}
+	\DescribeMacro{\moveindent} The english equivalent to\cmd\einruecken{} is \cmd\moveindent.
+\end{otherlanguage}
+
 \vspace{1em}
-\begin{tikzpicture}[codeblocks,]
+\begin{tikzpicture}[codeblocks]
 \node[kontrolle](eins){wenn\dots \\dann\dots};
-
 \einruecken{
 	\node[kontrolle, right=2cm of eins](zwei){wenn\dots \\dann\dots};
 }
-
 \draw[black,dashed,very thick,->] ($(eins.south west)+(1.5em,-0.2em)$)--($(zwei.south)+(0em,-0.2em)$) node[midway,below]{\normalfont Zacken verschiebt sich nach rechts};
 \end{tikzpicture}\hfil
-\begin{tikzpicture}[codeblocks,]
+%
 %Verschachtelung mit Einrückung und Open Roberta Zacken
-\einruecken{\node[kontrolle](eins){wenn\dots \\dann\dots};
-	\einruecken{\node[logik,unter={eins}{1}{0}](zwei){wenn\dots \\dann\dots};
-		\einruecken{\node[mathe,unter={zwei}{1}{0}](drei){wenn\dots \\dann\dots};}
-			\node[aktion,unter={drei}{1}{0}](vier){wenn\dots \\dann\dots};
-	}
-}
-\end{tikzpicture}
-%
-\begin{lstlisting}[keywords={},language={},morekeywords={einruecken}]
-\einruecken{\node[kontrolle](eins){wenn\dots \\dann\dots};
-	\einruecken{\node[logik,unter={eins}{1}{0}](zwei){wenn\dots \\dann\dots};
-		\einruecken{\node[mathe,unter={zwei}{1}{0}](drei){wenn\dots \\dann\dots};
-		}
-			\node[aktion,unter={drei}{1}{0}](vier){wenn\dots \\dann\dots};
-	}
-}
-\end{lstlisting}
+\ex{Verschachteltes Einrücken}
+\input{examples/bsp-verschachtelt-zacken.tikz}
+\lstinputlisting[basicstyle=\footnotesize \ttfamily, keywords={},language={},morekeywords={einruecken},]{examples/bsp-verschachtelt-zacken.tikz}
 
-\ex{Bsp. einruecken}
-\input{bsp-einruecken.tikz}
-\lstinputlisting[keywords={},language={},morekeywords={einruecken},firstline={2},lastline={5}]{bsp-einruecken.tikz}
 
+\ex{einruecken}
+\input{examples/bsp-einruecken.tikz}
+\lstinputlisting[keywords={},language={},morekeywords={einruecken},firstline={2},lastline={5}]{examples/bsp-einruecken.tikz}
 
+
 \subsection{Automatisches Einrücken}
-Siehe \ref{sec:strukturen}!
+Siehe Strukturen \ref{sec:strukturen}!
 
 
 \clearpage
@@ -560,18 +626,18 @@
 %\end{wraptable}
 
 
-\ex{Bsp. keinezacken}
+\ex{keinezacken}
 Der Stil \enquote{keinezacken} ist z.\,B. bei verschachtelten Nodes notwendig: 
 
 \begin{tikzpicture}
-	\node[codeblocks,logik](A){wenn \tikz\node[mathe]{A=B};};
-	\node[codeblocks,logik,right = 1cm of A](B){wenn \tikz\node[mathe,keinezacken]{A=B};};
+	\node[codeblocks,aktion](A){mache \tikz\node[mathe]{A=B};};
+	\node[codeblocks,aktion,right = 1cm of A](B){mache \tikz\node[mathe,keinezacken]{A=B};};
 
 \draw[->,very thick, dashed,black] (A)--(B);
 \end{tikzpicture}
 %
 \begin{lstlisting}[keywords={},morekeywords={keinezacken}]
-	\node[logik]{wenn \tikz\node[mathe,keinezacken]{A=B};};
+	\node[aktion]{mache \tikz\node[mathe,keinezacken]{A=B};};
 \end{lstlisting}
 
 
@@ -581,31 +647,43 @@
 
 \DescribeMacro{\farbe} \lstinline|\farbe{color}| setzt ein Quadrat mit der angegeben Farbe \farbe{buw-gruen}. Zu verwenden auch in Nodes: \tikz\node[farbe,puzzleteil]{~\farbe{yellow}};
 
+\clearpage
 
-\clearpage
+
 \section{FAQ}
+
 \subsection{Wie kann ich für ein komplettes Dokument eine Farbe umdefinieren?}
 
-\tikz\node[codeblocks,logik,]{Alte Farbe};
+\DescribeMacro{\setcolor} 
+\begin{longtable}{p{0.1\textwidth}p{0.9\textwidth}}
+Ist:		&  \tikz\node[codeblocks,logik,]{Alte Farbe};\\
+Soll:		&  \noindent\setcolor{logik-color}{ff0000}\tikz\node[codeblocks,logik,]{Neue Farbe!};\\
+Lösung:	&  \lstinline|\setcolor{logik-color}{ff0000}|
+\end{longtable}
+%
+% Globale Änderung wieder rückgängig machen
+\setcolor{logik-color}{006970}
 
-\noindent \DescribeMacro{\setcolor} \lstinline|\setcolor{logik-color}{ff0000}| \setcolor{logik-color}{ff0000}
 
-\noindent  \tikz\node[codeblocks,logik,]{Neue Farbe!};
-\setcolor{logik-color}{006970}
-
 \subsection{Eine nested Box ist zu hoch/zu niedrig}
 
-\begin{tikzpicture}[codeblocks]
-\einruecken{\node[grundlage](grund){dauerhaft};}
+
+\begin{longtable}{p{0.1\textwidth}p{0.9\textwidth}}
+Ist:		&  \begin{tikzpicture}[codeblocks]
+\einruecken{\node[grundlage,pinlow](grund){dauerhaft};}
 \node[logik,unter={grund}{1}{0}](wenn1){wenn \tikz\node[platzhalter,keinezacken]{\dropdown{modus}}; \dropdown{=} \intbox{1} };
-\end{tikzpicture}
-
+\end{tikzpicture}\\
+Soll:		&  \input{examples/bsp-einruecken.tikz}\\
+Lösung:	& 
 \noindent Verwende den Hilfstyle \lstinline|boden|:
 
-\lstinputlisting[keywords={},language={},morekeywords={boden},firstline={2},lastline={5}]{bsp-einruecken.tikz}
-\input{bsp-einruecken.tikz}
+\lstinputlisting[keywords={},language={},morekeywords={boden},firstline={2},lastline={5}]{examples/bsp-einruecken.tikz}\\
+\end{longtable}
 
 
+
+
+
 \begin{comment}
 \subsection{Openroberta Stil hat hässliche Rundungen}
 
@@ -649,25 +727,28 @@
 
 \subsection{Mein Block ist sehr klein und deswegen verformt}
 
-\tikz\node[codeblocks,logik](one){1};
+\begin{longtable}{p{0.1\textwidth}p{0.9\textwidth}}
+Ist:		& 	\tikz\node[codeblocks,logik](one){1};\\
+Soll:		&  	\tikz\node[codeblocks,logik,](one){2~~};
+						\tikz\node[codeblocks,logik, minimum width=1cm](one){3};\\
+Lösung:	& Erweitere den Inhalt des Nodes um Whitespace/Phantome oder setzte \lstinline|minimum width| für den Node.
 
-Erweitere den Nodeinhalt und Whitespace/Phantome oder setzte \lstinline|minimum width| für den Node:
-\tikz\node[codeblocks,logik,](one){2~~};
-\tikz\node[codeblocks,logik, minimum width=1cm](one){3};
-
 \begin{lstlisting}
 \node[logik](one){2~~};
 \node[logik, minimum width=1cm](one){3};
 \end{lstlisting}
+\end{longtable}
 
 
+
+
+
+
 \section{Mehr Beispielcode}
 
 \subsection{Bsp: Calliope Smart Home}
-	\input{smarthome.tikz}
+	\input{examples/smarthome.tikz}
+	\lstinputlisting[basicstyle=\footnotesize  \ttfamily]{examples/smarthome.tikz}
 
-	\lstinputlisting[basicstyle=\footnotesize  \ttfamily]{smarthome.tikz}
 
-\listofexample
-
 \end{document}

Modified: trunk/Master/texmf-dist/tex/latex/tikzcodeblocks/tikzcodeblocks.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tikzcodeblocks/tikzcodeblocks.sty	2018-04-03 10:02:15 UTC (rev 47264)
+++ trunk/Master/texmf-dist/tex/latex/tikzcodeblocks/tikzcodeblocks.sty	2018-04-03 21:30:09 UTC (rev 47265)
@@ -2,11 +2,19 @@
 
 % Adrian Salamon
 % Bergische Universitaet Wuppertal
-% 2017-07-18
+% since 2017-09-23
+% to    2018-04-03
 % LaTeX project public license, version 1.3c
 
+% % notes for further development:
+%
+% TODO: Versionnummerierung fixen (evtl besseres) Konzept finden
+% TODO: maybe remove LED-Background?
+%
+% % %
+
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{tikzcodeblocks}[2016/07/18 v.0.11 - TikZ Styles and macros for typesetting blockwise graphic programming languages like scratch, nepo or pxt]
+\ProvidesPackage{tikzcodeblocks}[2018/04/03 v.0.12 - TikZ Styles and macros for typesetting blockwise graphic programming languages like scratch, nepo or pxt]
 
 \RequirePackage{adjustbox}
 \RequirePackage{xcolor}
@@ -56,7 +64,7 @@
 
 
 % % %
-% Variablen für Einzüge und Positonierungen
+% Variables for intents and positioning
 % % %
 
 % xshift=  \blockhspace
@@ -97,11 +105,16 @@
 	\definecolor{string-color}{HTML}{D6C299}
 	\definecolor{boolean-color}{HTML}{99C3C6}
 	\definecolor{color-color}{HTML}{BBE9E9}
+  % Fallback LED-BG
+  \definecolor{led-bg-color}{HTML}{54C9C9}
+  \definecolor{led-on-color}{HTML}{F6F0A6} %das hier ist NEPO color
 
 
 \pgfdeclarelayer{background}
 \pgfsetlayers{background,main}
 
+% allow local colordefinitions 
+\newcommand{\setcolor}[2]{\definecolor{#1}{HTML}{#2}}
 
 
 % % %
@@ -147,7 +160,7 @@
 	steuerung/.style		= {fill=steuerung-color,  	text = white, draw = steuerung-color!60!black,	},
 	bluetooth/.style		= {fill=bluetooth-color,  	text = white, draw = bluetooth-color!60!black,	},
 	%
-	% Fallback styles / Für NEPO Kommandos
+	% Fallback styles / for NEPO commandos
 	aktion/.style = {grundlage},
 	farbe/.style={grundlage},
 	%
@@ -161,12 +174,12 @@
 	funktion/.style={steuerung},
 }
 %
-% % % PXT % %
+% END PXT colors % % % %
 
-% % OpenRoberta-Nodes %
+% % START OpenRoberta-Nodes colors %
 %
-% OpenRoberta Farben als Option setzbar:
-%
+% OpenRoberta Colors als package option:
+
 \tikzset{
  define color/.code 2 args={
 	\definecolor{#1}{HTML}{#2}
@@ -183,6 +196,9 @@
 	define color={listen-color}{39378B},
 	define color={farben-color}{EBC300},
 	define color={bilder-color}{DF01D7},
+	define color={led-bg-color}{DF01D7},
+	define color={led-on-color}{EDFEA0}, 
+	define color={led-off-color}{F299EF},
 	define color={variablen-color}{9085BA},
 	define color={funktionen-color}{179C7D},
 	define color={nachrichten-color}{FF69B4},
@@ -194,44 +210,44 @@
 	%
 	start/.style 				= {fill=start-color,   text = white, draw = start-color!60!black,},
 	aktion/.style 			= {fill=aktion-color,   text = white, draw = aktion-color!60!black,},
-	sensor/.style 		= {fill=sensoren-color,   text = white, draw = sensoren-color!60!black,},
+	sensor/.style 			= {fill=sensoren-color,   text = white, draw = sensoren-color!60!black,},
 	kontrolle/.style 		= {fill=kontrolle-color,   text = white, draw = kontrolle-color!60!black,},
 	logik/.style 				= {fill=logik-color,   text = white, draw = logik-color!60!black,},
-	mathe/.style 	= {fill=mathematik-color,   text = white, draw = mathematik-color!60!black,},
-	zeichenkette/.style 			= {fill=text-color,   text = white, draw = text-color!60!black,},
+	mathe/.style 				= {fill=mathematik-color,   text = white, draw = mathematik-color!60!black,},
+	zeichenkette/.style = {fill=text-color,   text = white, draw = text-color!60!black,},
 	liste/.style			 	= {fill=listen-color,   text = white, draw = listen-color!60!black,},
-	farbe/.style 			= {fill=farben-color,   text = white, draw = farben-color!60!black,},
-	bild/.style			  = {fill=bilder-color,   text = white, draw = bilder-color!60!black,},
+	farbe/.style 				= {fill=farben-color,   text = white, draw = farben-color!60!black,},
+	bild/.style			  	= {fill=bilder-color,   text = white, draw = bilder-color!60!black,},
 	variablen/.style	  = {fill=variablen-color,   text = white, draw = variablen-color!60!black,},
-	funktion/.style 	= {fill=funktionen-color,   text = white, draw = funktionen-color!60!black,},
-	nachricht/.style 	= {fill=nachrichten-color,   text = white, draw = nachrichten-color!60!black,},
+	funktion/.style 		= {fill=funktionen-color,   text = white, draw = funktionen-color!60!black,},
+	nachricht/.style 		= {fill=nachrichten-color,   text = white, draw = nachrichten-color!60!black,},
 	%
-	% Fallback styles / Für PXT Kommandos
-	schleife/.style = {kontrolle},
-	pins/.style={sensor},
-	grundlage/.style={start},
-	eingabe/.style={sensor},
-	konsole/.style={liste},
-	platzhalter/.style={variablen},
-	bluetooth/.style={nachricht},
-	steuerung/.style={funktion},
+	% Fallback styles / for PXT commandos
+	schleife/.style	 	= {kontrolle},
+	pins/.style				= {sensor},
+	grundlage/.style	= {start},
+	eingabe/.style		= {sensor},
+	konsole/.style		= {liste},
+	platzhalter/.style= {variablen},
+	bluetooth/.style	= {nachricht},
+	steuerung/.style	= {funktion},
+  ledOn/.style 			= {node distance = 1mm, circle,radius=2mm,fill=led-on-color, draw=black,opacity=1,draw}, %TODO Color fixen
+  ledOff/.style 		= {node distance = 1mm, circle,radius=2mm,fill=led-off-color, draw=black,opacity=1,draw}, %TODO Color fixen
 	}%robertafarben
 }%tikzset
-
 %
 % 
-% % % Open Roberta % % % % %
+% % % ENDE Open Roberta % % % % %
 
 
 
-% % Allgemeine Styles
+% % global style definitions
 %
 \tikzset{
-	umgebung/.style = {draw,line width=2pt,transform shape=false}, % yshift ausgleich für die einzelnen elemente
-% Bilder/Pictures/LED-Matrix
-	ledOn/.style = {node distance = 1mm, circle,radius=2mm,fill=red,									draw=black,opacity=1,draw},
-  ledOff/.style = {node distance = 1mm, circle,radius=2mm,fill=white,opacity=0.7,draw=black,draw},
-%
+	umgebung/.style = {draw,line width=2pt,transform shape=false}, % yshift ausgleich for each element
+% Pictures/LED-Matrix
+	ledOn/.style  = {node distance = 1mm, circle, radius=2mm, fill=red,   draw=black,opacity=1,   draw},
+  ledOff/.style = {node distance = 1mm, circle, radius=2mm, fill=white, draw=black,opacity=0.7, draw},
 % 
 % Boxes and smaller elements
 %
@@ -256,7 +272,6 @@
 		text = black,
 		anchor=west,
 	},
-%
 	stringbox/.style = {
 		fill=string-color,
 		draw=none,
@@ -277,24 +292,34 @@
 		text = black,
 		anchor=west,
 	},
-% Empty LEDs Help
-	ledanzeige/.style ={matrix of nodes, nodes = {ledOff},row sep=4pt,column sep=4pt,ampersand replacement=\&, anchor=base},
 %
+	ledanzeige/.style = {% LEDs Help
+		matrix of nodes, 
+		row sep=4pt, 
+		column sep=4pt, 
+		ampersand replacement=\&, 
+		anchor=base, fill=led-bg-color, 
+		nopins
+	},
+%
 	boden/.style = {% Für Baseline anordnung der Dropdown
-		baseline,anchor=base, text height=1.7ex,text depth=0.3ex, minimum width=1em
+		baseline,
+		anchor=base, 
+		text height=1.7ex,
+		text depth=0.3ex, 
+		minimum width=1em
 	},
-	base/.style = { % Für Baseline anordnung der Dropdown
-		anchor=base, baseline
-	},
-	keinezacken/.style = { % Für Deaktivierung der OpenRobertaZacken
-	rectangle,
-},
+%	
+	base/.style = {% Für Baseline anordnung der Dropdown
+		anchor=base, baseline},
+	keinezacken/.style = {% Für Deaktivierung der OpenRobertaZacken
+		rectangle},
 %
-% unter={NODENAME}{X--ABSTAND}{Y-ABSTAND}
+% unter={NODENAME}{X-distance}{Y-distance}
  	unter/.style n args={3}{below right = #3\blockvspace and #2\blockhspace of #1.south west},
 %
 % https://tex.stackexchange.com/questions/223910/reference-a-nodes-color-by-using-node-name
-% Farbe des 'aktuellen' Elementes bestimmen
+% get color of 'this' element
 every text node part/.add code={}{
 	\globalcolorstrue
 	\ifx\tikz at fillcolor\pgfutil at empty
@@ -313,59 +338,60 @@
 	\pgfutil at colorlet{\tikz at fig@name.text}{\tikz at textcolor}
 	\fi
 },
-}
+} %end tikzset
 
-% Farbanpassung der Umgebung für OpenRoberta
-%\ifthenelse{\boolean{nepo-colors}}{\tikzset{umgebung/.append  style = {draw=white}}}{}
-
 % % %
-% Makros für Boxen, LEDs, usw
+% macros for boxes, LEDs, etc.
 % % %
-
 \newcommand{\dropdown}[1]{\hspace*{-0.5em}
-	\tikz[boden]\node[dropdown]{#1\,\tikz[scale=0.3,baseline=-0.3em] \draw [fill,rounded corners=0mm,] (0,0)--(0.5,0)--(0.25,-0.5)--cycle;% Dreieck
+	\tikz[boden]\node[dropdown]{
+		#1\,\tikz[scale=0.3,baseline=-0.3em] 
+		\draw [fill,rounded corners=0mm,]
+		(0,0)--(0.5,0)--(0.25,-0.5)--cycle;% Dreieck
 	};\hspace*{-0.5em}
 }
 
 \newcommand{\intbox}[2][]{
-		\tikz[anchor=center,baseline=-4.0pt,]\strut\node[intbox,#1]{
-			%\hspace*{-0.5em}
-			\tikz[boden]\strut\node[fill=white,rounded corners=6pt,opacity=1,keinezacken]{
-				%\hspace*{-0.5em}
-				#2}
-		;};\xspace
+	\tikz[anchor=center,baseline=-4.0pt,]\strut\node[intbox,#1,text width = {width("{#2}")+0.5em}]{ %this is tikz-magic... 1
+		\tikz[boden]\strut\node[fill=white,rounded corners=6pt,opacity=1,keinezacken,text width = {width("{#2}")-0.0em} %this is tikz-magic... 2
+		]{
+			#2};
+	};\xspace
 }
 
-\ifthenelse{\boolean{no-colors}}
-{
-	\newcommand{\setupquotes}{\normalfont \bfseries \huge \vspace*{1em}\color{black}}
-}
-{
-	\newcommand{\setupquotes}{\normalfont \bfseries \huge \vspace*{1em}\color{white}}
-}
+% Fix for print option at stringboxes
+\ifthenelse
+{\boolean{no-colors}}% if
+{\newcommand{\setupquotes}{\normalfont \bfseries \huge \vspace*{1em}\color{black}}}% then
+{\newcommand{\setupquotes}{\normalfont \bfseries \huge \vspace*{1em}\color{white}}}% else
 
+% box containing strings
 \newcommand{\stringbox}[2][]{
-	\begin{tikzpicture}[anchor=center,baseline=-4.0pt,]
-	\strut\node[stringbox,#1](string1){
-		{\setupquotes ``}\,\tikz[boden]\strut\node[yshift=0.5em,fill=white,rounded corners=2pt,opacity=1,keinezacken]{#2}
+  \begin{tikzpicture}[anchor=center,baseline=-4.0pt,]
+  \strut\node[stringbox,#1](string1){
+	  {\setupquotes ``}\,\tikz[boden]\strut\node[yshift=0.5em,fill=white,rounded corners=2pt,opacity=1,keinezacken]{#2}
 		;\setupquotes\,''\vspace*{-0.9em}};
 	\end{tikzpicture}
-
 }
 
+% box containing boolean
 \newcommand{\boolbox}[2][]{
 	\tikz[anchor=center,baseline=-4.0pt,]\strut\node[boolbox,#1]{
-		\tikz[boden]\strut\node[fill=white,rounded corners=2pt,opacity=1,keinezacken]{#2}
-		;};
+		\tikz[boden]\strut\node[fill=white,rounded corners=2pt,opacity=1,keinezacken]{#2};
+	};
 }
 
 
+% % % % % % % % 
+% Images / LEDs
+% Bilder / LEDs
+
+% container for pictures
 \newcommand{\bild}[2][1]{
+	\hspace*{-16pt} %macht es etwas kompakter
 	\scalebox{#1}[#1]{
-	\tikz\matrix[ledanzeige]
-		{
-			#2
-		};
+	\tikz\matrix[ledanzeige] %TODO: outer sep einfuegen/entfernen
+		{#2};
 	\hspace*{-16pt} % Ausgleich des zuvielen &
 	}
 }
@@ -373,6 +399,7 @@
 \newcommand{\0}{|[ledOff]|\&}
 \newcommand{\X}{|[ledOn]|\&}
 
+% template for all LEDs off
 \newcommand{\emptyled}
 {
 	\0 \0 \0 \0 \0 \\
@@ -382,6 +409,7 @@
 	\0 \0 \0 \0 \0 \\
 }
 
+% template for all LEDs on
 \newcommand{\fullled}
 {
 	\X \X \X \X \X \\
@@ -391,10 +419,13 @@
 	\X \X \X \X \X \\
 }
 
+%
+% % % % % END images
 
+
+% % % % % % % % 
 % Structures: Branches and Loops
 % Strukturen: Wenn-Dann/ Wenn-Dann-Sonst / Schleife
-%
 
 \def\myspace{\vspace{5pt}}
 \def\myshift{0.95em}
@@ -423,6 +454,7 @@
 	\end{tabular}};
 }
 
+
 \newcommand{\schleife}[5][]{
 	\node[kontrolle,#1](#5){\\
 		\renewcommand{\arraystretch}{1}
@@ -434,18 +466,20 @@
 	};
 }
 
+%
+% % % % % END structures
 
-% Lokale Farbdefinitonen erlauben
-\newcommand{\setcolor}[2]{\definecolor{#1}{HTML}{#2}}
 
 
-% % Open Roberta Shapes mit Zacken oben und unten % %
+% % % % % % % % 
+% Shapes
+% Formen
+
+% Open Roberta Shapes with pins top and bottom
 %
-%
-\makeatletter
 \pgfdeclareshape{robertashape}
 {
-	% This bit from \pgflibarayshapes.code.tex
+	% This piece is from \pgflibarayshapes.code.tex
 	\inheritsavedanchors[from=rectangle]
 	\inheritanchorborder[from=rectangle]
 	\inheritanchor[from=rectangle]{north}
@@ -477,7 +511,7 @@
 
 		\xdef\blockhspaceoben{1\blockhspace}
 
-		\ifthenelse{\boolean{noIndentForPin}}{				% TODO Bedingungen verschönern? Aktuell globales boolean
+		\ifthenelse{\boolean{noIndentForPin}}{			% TODO Bedingungen verschönern? Aktuell globales boolean
 			\xdef\blockhspaceunten{\blockhspaceoben}}{
 			\xdef\blockhspaceunten{2*\blockhspaceoben}}
 
@@ -500,15 +534,12 @@
 		\pgfpathclose
 	}
 }
-\makeatother
 
-% % Open Roberta Shapes mit Zacken NUR unten % %
-%
+% % Open Roberta Shapes with pins ONLY bottom 
 % 
-\makeatletter
 \pgfdeclareshape{pinlow}
 {
-	% This bit from \pgflibarayshapes.code.tex
+	% This piece is from \pgflibarayshapes.code.tex
 	\inheritsavedanchors[from=rectangle]
 	\inheritanchorborder[from=rectangle]
 	\inheritanchor[from=rectangle]{north}
@@ -555,24 +586,17 @@
 		\pgfpathlineto{\pgfpoint{\pgf at xb}{\pgf at ya}} % south east
 		\pgfpathlineto{\pgfpoint{\pgf at xb}{\pgf at yb}} % north east
 		%
-		%\pgfpathlineto{\pgfpoint{\pgf at xa+\blockhspaceoben+2*\dreieckseite}{\pgf at yb}}
-		%\pgfpathlineto{\pgfpoint{\pgf at xa+\blockhspaceoben+\dreieckseite}{\pgf at yb-\dreieckseite}} 	%Spitze oben
-		%\pgfpathlineto{\pgfpoint{\pgf at xa+\blockhspaceoben}{\pgf at yb}}
-		%
 		\pgfpathlineto{\pgfpoint{\pgf at xa}{\pgf at yb}} %<-- north west
 		\pgfpathclose
 	}
 }
-\makeatother
 
 
-% %  Open Roberta Shapes mit Zacken NUR oben % %
+% %  Open Roberta Shapes with pins ONLY top
 %
-%
-\makeatletter
 \pgfdeclareshape{pinhigh}
 {
-	% This bit from \pgflibarayshapes.code.tex
+	% This piece from \pgflibarayshapes.code.tex
 	\inheritsavedanchors[from=rectangle]
 	\inheritanchorborder[from=rectangle]
 	\inheritanchor[from=rectangle]{north}
@@ -612,10 +636,6 @@
 
 		\pgfpathmoveto{\pgfpoint{\pgf at xa}{\pgf at ya}} %<-- south west
 		%
-		%\pgfpathlineto{\pgfpoint{\pgf at xa+\blockhspaceunten}{\pgf at ya}}
-		%\pgfpathlineto{\pgfpoint{\pgf at xa+\blockhspaceunten+\dreieckseite}{\pgf at ya-\dreieckseite}}	%Spitze unten
-		%\pgfpathlineto{\pgfpoint{\pgf at xa+\blockhspaceunten+2*\dreieckseite}{\pgf at ya}}
-		%
 		\pgfpathlineto{\pgfpoint{\pgf at xb}{\pgf at ya}} % south east
 		\pgfpathlineto{\pgfpoint{\pgf at xb}{\pgf at yb}} % north east
 		%
@@ -627,17 +647,14 @@
 		\pgfpathclose
 	}
 }
-\makeatother
 
 
 
-% % puzzleteil Shapes mit Ausbuchtung links %
+% % puzzlepiece Shapes mit hole at left side 
 %
-% 
-\makeatletter
 \pgfdeclareshape{puzzleteil}
 {
-	% This bit from \pgflibarayshapes.code.tex
+	% This piece is from \pgflibarayshapes.code.tex
 	\inheritsavedanchors[from=rectangle]
 	\inheritanchorborder[from=rectangle]
 	\inheritanchor[from=rectangle]{north}
@@ -682,81 +699,84 @@
 		\pgfpathclose
 	}
 }
-\makeatother
 
+% % % % % END shapes
 
+
 % % colors
 % 
+% print a small box with a certain color in it
 \newcommand{\farbe}[1]{\tikz\node[rectangle,minimum width=1em,minimum height = 1em,fill=#1]{};}
 
-
 % % symbols
 %  
-\newcommand{\usb}{\faUsb}
+\newcommand{\usb}{\faUsb} %USB-symbol
 
-
-
 % % Option: print (no-colors) % %
 % 
 % TODO: Geht das mir einer Schleife?
 \ifthenelse{\boolean{no-colors}}{
-\tikzset{
-%
-% pxt
-%
-grundlage/.append style={nocolor},
-eingabe/.append style={nocolor},
-schleife/.append style={nocolor},
-logik/.append style={nocolor},
-musik/.append style={nocolor},
-led/.append style={nocolor},
-platzhalter/.append style={nocolor},
-mathe/.append style={nocolor},
-funk/.append style={nocolor},
-motor/.append style={nocolor},
-zeichenkette/.append style={nocolor},
-spiel/.append style={nocolor},
-bild/.append style={nocolor},
-pins/.append style={nocolor},
-konsole/.append style={nocolor},
-steuerung/.append style={nocolor},
-bluetooth/.append style={nocolor},
-%
-% openroberta 
-%
-start/.append style={nocolor},
-aktion/.append style={nocolor},
-sensor/.append style={nocolor},
-kontrolle/.append style={nocolor},
-logik/.append style={nocolor},
-mathe/.append style={nocolor},
-zeichenkette/.append style={nocolor},
-liste/.append style={nocolor},
-farbe/.append style={nocolor},
-bild/.append style={nocolor},
-variablen/.append style={nocolor},
-funktion/.append style={nocolor},
-nachricht/.append style={nocolor},
-%
-% Fallback styles / Für PXT Kommandos
-schleife/.append style={nocolor},
-pins/.append style={nocolor},
-grundlage/.append style={nocolor},
-eingabe/.append style={nocolor},
-konsole/.append style={nocolor},
-platzhalte/.append style={nocolor},
-bluetooth/.append style={nocolor},
-steuerung/.append style={nocolor},
-%
-% etc.
-dropdown/.append style={fill=white, draw=black!60, opacity=1},
-ledOn/.append style={nocolor},
-intbox/.append style={nocolor},
-stringbox/.append style={nocolor},
-boolbox/.append style={nocolor},
-}
+\tikzset
+  {
+  %
+  % pxt
+  %
+    grundlage/.append style={nocolor},
+    eingabe/.append style={nocolor},
+    schleife/.append style={nocolor},
+    logik/.append style={nocolor},
+    musik/.append style={nocolor},
+    led/.append style={nocolor},
+    platzhalter/.append style={nocolor},
+    mathe/.append style={nocolor},
+    funk/.append style={nocolor},
+    motor/.append style={nocolor},
+    zeichenkette/.append style={nocolor},
+    spiel/.append style={nocolor},
+    bild/.append style={nocolor},
+    pins/.append style={nocolor},
+    konsole/.append style={nocolor},
+    steuerung/.append style={nocolor},
+    bluetooth/.append style={nocolor},
+  %
+  % openroberta 
+  %
+    start/.append style={nocolor},
+    aktion/.append style={nocolor},
+    sensor/.append style={nocolor},
+    kontrolle/.append style={nocolor},
+    logik/.append style={nocolor},
+    mathe/.append style={nocolor},
+    zeichenkette/.append style={nocolor},
+    liste/.append style={nocolor},
+    farbe/.append style={nocolor},
+    bild/.append style={nocolor},
+    variablen/.append style={nocolor},
+    funktion/.append style={nocolor},
+    nachricht/.append style={nocolor},
+  %
+  % Fallback styles / Für PXT Kommandos
+    schleife/.append style={nocolor},
+    pins/.append style={nocolor},
+    grundlage/.append style={nocolor},
+    eingabe/.append style={nocolor},
+    konsole/.append style={nocolor},
+    platzhalte/.append style={nocolor},
+    bluetooth/.append style={nocolor},
+    steuerung/.append style={nocolor},
+  %
+  % etc.
+    dropdown/.append style={fill=white, draw=black!60, opacity=1},
+    ledOn/.append style={nocolor},
+    ledOff/.append style={nocolor},
+    intbox/.append style={nocolor},
+    stringbox/.append style={nocolor},
+    boolbox/.append style={nocolor},
+    %TODO: Farben bei Openroberta LEDS entfernen
+  }
 }{}
 
+% (local) Style print
 \tikzset{
 		print/.style={
 		%
@@ -810,15 +830,15 @@
 		dropdown/.append style={fill=white, draw=black!60, opacity=1},
 		ledOn/.append style={nocolor},
 		intbox/.append style={nocolor},
-		stringbox/.append style={text-color=black, nocolor,}, % quotationmarks are still white...
+		stringbox/.append style={text-color=black, nocolor,}, % TODO: quotationmarks are still white...
 		boolbox/.append style={nocolor},
+		%TODO: Farben bei Openroberta LEDS entfernen
 	}
 }% print
 
 
-% % Redefine Commands for international usage % %
+% % Redefine Commands for international usage ínto english language
 % 
-% 
 
 % Controlstructures
 \newcommand{\ifthenblocks}{\wenndann}
@@ -834,4 +854,4 @@
  square/.style={eckig},
  nopins/.style={keinezacken},
  puzzlepiece/.style={puzzleteil},
-}
\ No newline at end of file
+}



More information about the tex-live-commits mailing list