texlive[44841] Master/texmf-dist: tikzcodeblocks (18jul17)

commits+karl at tug.org commits+karl at tug.org
Tue Jul 18 23:37:01 CEST 2017


Revision: 44841
          http://tug.org/svn/texlive?view=revision&revision=44841
Author:   karl
Date:     2017-07-18 23:37:01 +0200 (Tue, 18 Jul 2017)
Log Message:
-----------
tikzcodeblocks (18jul17)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/README.md
    trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/bsp-einruecken.tikz
    trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/bsp-start-roberta.tikz
    trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/smarthome.tikz
    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/bsp-english.tikz

Modified: trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/README.md	2017-07-18 21:30:24 UTC (rev 44840)
+++ trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/README.md	2017-07-18 21:37:01 UTC (rev 44841)
@@ -5,7 +5,7 @@
 |------------|------------------------------------------------------------|
 |author:     |Adrian Salamon                                              |
 |email:      |adriansalamon at gmail.com                                     |
-|date:       |2017-07-06                                                  |
+|date:       |2017-07-18                                                  |
 |institute:  |Didaktik der Informatik – Bergische Universität Wuppertal   |
 |licence:    |LaTeX Project Public License 1.3c                           |
 
@@ -16,17 +16,17 @@
 Just load the package via  `\usepackage{tikzcodeblocks}` and use `\begin{tikzpicture}[codeblocks]` in the document. For details have a look in the documentation.
 
 
-
 ### 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
-- ... and more
+- ... 
 
 
 ### Planed features
 
-- easier custom block/color management
 - multi-language / english support

Modified: trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/bsp-einruecken.tikz
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/bsp-einruecken.tikz	2017-07-18 21:30:24 UTC (rev 44840)
+++ trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/bsp-einruecken.tikz	2017-07-18 21:37:01 UTC (rev 44841)
@@ -1,6 +1,6 @@
 \begin{tikzpicture}[codeblocks]
 \einruecken{
-	\node[grundlage](grund){dauerhaft};
+	\node[grundlage,pinlow](grund){dauerhaft};
 }
 \node[logik,unter={grund}{1}{0}](wenn1){wenn \tikz\node[platzhalter,boden,keinezacken]{\dropdown{modus}}; \dropdown{=} \intbox{1} };
 

Added: trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/bsp-english.tikz
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/bsp-english.tikz	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/bsp-english.tikz	2017-07-18 21:37:01 UTC (rev 44841)
@@ -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

Modified: trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/bsp-start-roberta.tikz
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/bsp-start-roberta.tikz	2017-07-18 21:30:24 UTC (rev 44840)
+++ trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/bsp-start-roberta.tikz	2017-07-18 21:37:01 UTC (rev 44841)
@@ -1,6 +1,6 @@
-\begin{tikzpicture}[codeblocks,scale=.90,eckig]
+\begin{tikzpicture}[codeblocks,,openroberta,scale=.90]
 
-\node[start](start){start};
+\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}};};
@@ -18,7 +18,7 @@
 {\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,unter={akt1}{0}{0}](akt2){spiele Note \dropdown{D} 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}

Modified: trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/smarthome.tikz
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/smarthome.tikz	2017-07-18 21:30:24 UTC (rev 44840)
+++ trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/smarthome.tikz	2017-07-18 21:37:01 UTC (rev 44841)
@@ -1,5 +1,5 @@
 \begin{tikzpicture}[codeblocks]
-\einruecken{\node[grundlage] (start){beim Start};}
+\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}
@@ -28,7 +28,7 @@
 	}{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={pin1}{0}{0}] (pin2) {ändere \dropdown{solar} auf \intbox{1}};	
+		\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}};	
@@ -40,7 +40,7 @@
 
 \begin{tikzpicture}[codeblocks,scale=0.5]
 \schleife[grundlage,keinezacken]{dauerhaft}{}{
-	\wenndannsonst[robertashape]{wenn \tikz\node[platzhalter,boden,keinezacken,puzzleteil]{\dropdown{modus}}; \dropdown{=} \intbox{1}} %wenn außen
+	\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}};

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	2017-07-18 21:30:24 UTC (rev 44840)
+++ trunk/Master/texmf-dist/doc/latex/tikzcodeblocks/tikzcodeblocks-documentation.tex	2017-07-18 21:37:01 UTC (rev 44841)
@@ -2,9 +2,10 @@
 
 \usepackage[T1]{fontenc}
 \usepackage[utf8]{inputenc}
-\usepackage[ngerman]{babel}
+\usepackage[english,ngerman]{babel}
 
-\usepackage[pxt]{tikzcodeblocks}
+\usepackage[%print
+]{tikzcodeblocks}
 \usepackage{todonotes}
 \usepackage{listings}
 \usepackage{lmodern} % für textbf in texttt
@@ -19,7 +20,7 @@
 	breaklines=true,
 	%literate={ä}{{\"a}}1 {ü}{{\"u}}1 {ö}{{\"o}}1 {ß}{{\ss}}1 {Ä}{{\"A}}1 {Ü}{{\"Ü}}1 {Ö}{{\"O}}1,
 	tabsize=2,
-	language=[LaTeX]{TeX},	
+	language=[LaTeX]{TeX},
 	 numbers=left, numberstyle=\tiny,%, stepnumber=5, numbersep=5pt,
 	keywordstyle=\color{red},       % keyword style
 	morekeywords={\node,\tikz},
@@ -46,13 +47,22 @@
 \usepackage{enumitem}
 \usepackage{hyperref}
 
-
-\title{TikZ Codeblocks v.0.1}
-\author{Adrian Salamon}
-\date{2017-07-06}
 \usepackage{comment}
 \usepackage{booktabs}
+\usepackage[nochapter]{vhistory}
 
+\usepackage{array}
+\usepackage{subcaption}
+\usepackage{tocloft}
+
+\newcommand{\listExample}{Liste der Beispiele}
+
+
+\title{TikZ Codeblocks v.\vhCurrentVersion}
+\author{Adrian Salamon}
+\date{\vhCurrentDate}
+
+
 \setlength{\parindent}{0em}
 
 
@@ -61,24 +71,62 @@
 \let\PrintMacroName\PrintDescribeMacro
 \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}
+}
+
+
 \begin{document}
 
-
 \maketitle
 
 \tableofcontents
 
-\section{Präambel}
 
+\section*{Versionshistorie}
 
+\begin{versionhistory}
+  \vhEntry{0.1}{2017-07-06}{AS}{published}
+  \vhEntry{0.11}{2017-07-18}{AS}{update}
+\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
+  \end{itemize}
+  \item new Shapes
+	  \begin{itemize}[noitemsep]
+	  \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 Open-Roberta colors are now more accurate and usable next to the standard colors. (see \ref{sec:robertacolors}.)
+  \end{itemize}
 
+%\begin{versionhistory}
+% \vhEntry{0.13}{2017-07-23}{AS}{published}
+%\end{versionhistory}
+
+\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.
 
 Dies ist eine Entwicklerversion. Bezeichner und Paketname können in späteren Versionen noch variieren.
 
-Bei Fragen weden Sie sich bitte an: \href{mailto:salamon at uni-wuppertal.de}{salamon at uni-wuppertal.de} bzw. \href{adriansalamon at gmail.com}{adriansalamon at gmail.com}.
+Bei Fragen weden Sie sich bitte an \href{mailto:adriansalamon at gmail.com}{adriansalamon at gmail.com}.
 
 
 \subsection{Alternativpakete}
@@ -89,13 +137,13 @@
 
 \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 vom PXT Editor von Calliope inspiriert. Es lässt sich jedoch auch Code anderer Editoren setzen.
+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.
 
 \begin{table}[hbt!]\centering
 \begin{tabular}{ll}
 	\toprule
 	Editor & URL \\ \midrule
-	
+
 	PXT - Calliope 	& 	\url{http://pxt.calliope.cc/} 				\\
 	Open Roberta 		& 	\url{https://lab.open-roberta.org/} 	\\
 	Scratch 				& 	\url{https://scratch.mit.edu/projects/editor} 			\\
@@ -104,7 +152,9 @@
 \caption{Tabelle von Editoren mit graphischen Codeblöcken.}
 \end{table}
 
-\clearpage
+
+
+
 \section{Beispielcode}
 
 %\begin{samepage}
@@ -122,6 +172,11 @@
 \end{center}
 \lstinputlisting[basicstyle=\footnotesize \ttfamily]{bsp-start-roberta.tikz}
 
+\subsection{English Codeexample}
+\begin{center}
+	\input{bsp-english.tikz}
+\end{center}
+\lstinputlisting[basicstyle=\footnotesize \ttfamily, language={},morekeywords={square,moveindent,under,ifthenelsecode,loopcode,puzzlepiece,otherlanuage}]{bsp-english.tikz}
 
 \clearpage
 \section{Bausteine und Befehle}
@@ -129,123 +184,140 @@
 %\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 Bildes ist mit \lstinline|\begin{tikzpicture}[codeblocks,scale=0.7]| möglich.
+Die Skalierung des gesamten Bildes ist mit \lstinline|\begin{tikzpicture}[codeblocks,scale=0.7]| möglich.
 
 
 \subsection{Bausteinklassen nach PXT-Calliope Editor}
 
-\newcommand{\trynode}[1]{\makebox[3cm][l]{\lstinline|#1|:} \tikz\node[#1,codeblocks]{#1};}
-\newcommand{\trynodeOpenRoberta}[1]{\makebox[3cm][l]{\lstinline|#1|:} \tikz\node[#1,codeblocks,eckig]{#1};}
+\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. Der Standard orientiert sich an den Farben und Formen des Calliope-PXT-Editors:
+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.
 
 \lstinline|\node[STYLE] {Inhalt};|
 
-	\begin{itemize}[noitemsep]
-		\item \trynode{grundlage}
-		\item \trynode{eingabe}
-		\item \trynode{schleife}
-		\item \trynode{logik}
-		\item \trynode{musik}
-		\item \trynode{led}
-		\item \trynode{platzhalter}
-		\item \trynode{mathe}
-		\item \trynode{funk}
-		\item \trynode{motor}
-		\item \trynode{zeichenkette} \footnote{Im Calliopeeditor heißt der entsprechende Eintrag \enquote{Texte}. Der Style \enquote{Text} ist von TikZ jedoch bereits intern belegt.}
-		\item \trynode{spiel}
-		\item \trynode{bild}
-		\item \trynode{pins}
-		\item \trynode{konsole}
-		\item \trynode{steuerung}
-		\item \trynode{bluetooth}
-	\end{itemize}
+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.
 
-\sloppy
-Standardmäßig wird das Paket mit der Option \lstinline|\usepackage[pxt]{tikzcodeblocks}| geladen, um die Farben des PTX-Editors für Calliope zu verwenden.
+\label{sec:robertacolors}
+\renewcommand{\arraystretch}{0.6}
+	\begin{longtable}{lll}
+		\toprule
+\sffamily	Stilname & \sffamily pxt (Standard) & \sffamily openroberta\\\endhead \midrule
+		\trynode{grundlage}
+		\trynode{eingabe}
+		\trynode{schleife}
+		\trynode{logik}
+		\trynode{musik}
+		\trynode{led}
+		\trynode{platzhalter}
+		\trynode{mathe}
+		\trynode{funk}
+		\trynode{motor}
+		\trynode{zeichenkette} 
+		\trynode{spiel}
+		\trynode{bild}
+		\trynode{pins}
+		\trynode{konsole}
+		\trynode{steuerung}
+		\trynode{bluetooth}
+		% OopenRoberta
+		\trynode{start}
+		\trynode{aktion}
+		\trynode{sensor}
+		\trynode{kontrolle}
+		\trynode{liste}
+		\trynode{farbe}
+		\trynode{bild}
+		\trynode{variablen}
+		\trynode{funktion}
+		\trynode{nachricht}
+		\bottomrule
+		
+	\end{longtable}
 
-Die Stile unterscheiden sich nur durch ihre Farben.
+\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.}
 
 
+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.}
 
+Die Stile unterscheiden sich voneinander nur durch ihre Farben. \lstinline|openroberta| läd standardmäßig noch den Stil \lstinline|eckig|.
+ 
 
-\subsection{Open-Roberta Stil}
- Mithilfe der Option \lstinline|\usepackage[openroberta]{tikzcodeblocks}| können Farb- und Stildefinitionen geladen werden, die sich an der NEPO-Umgebung von Open-Roberta orientieren.% Für eckige Elemente muss noch der Stil \lstinline|openroberta| für die Nodes, oder die umklammernde TikZ-Umgebung angegeben werden.
-
-	\begin{itemize}[noitemsep]
-		\item \trynodeOpenRoberta{start}
-		\item \trynodeOpenRoberta{aktion}
-		\item \trynodeOpenRoberta{sensor}
-		\item \trynodeOpenRoberta{kontrolle}
-		\item \trynodeOpenRoberta{logik}
-		\item \trynodeOpenRoberta{mathe}
-		\item \trynodeOpenRoberta{zeichenkette} \footnote{Im Open-Roberta-Editor heißt der entsprechende Eintrag \enquote{Texte}. Der Style \enquote{Text} ist von TikZ jedoch bereits intern belegt.}
-		\item \trynodeOpenRoberta{liste}
-  	\item \trynodeOpenRoberta{farbe}
-		\item \trynodeOpenRoberta{bild}
-		\item \trynodeOpenRoberta{variablen}
-		\item \trynodeOpenRoberta{funktion}
-		\item \trynodeOpenRoberta{nachricht}
-	\end{itemize}
-
-\wichtig{Aktuell ist es nicht möglich innerhalb eines Dokumentes beide Farbschemata zu verwenden. Daher sind die hier dargestellten Farben des Open-Roberta-Stils inkorrekt.}
-
-
-%\begin{tikzpicture}[codeblocks,umgebung]
-%\einruecken{
-%	\node[logik] (log1){PXT Farben, obwohl obenroberta (logik)};
-%	}
-%\node[mathe, unter={log1}{1}{0}]{\intbox{1}+\intbox{4} (mathe)};
-%\end{tikzpicture}
-
 \subsection{Farben}
 
 \subsubsection{Lokale Farbänderung}
-Lokale Überschreibungen sind wie üblich durch Angabe einer Farbe bei den entsprechenden Node-Attributen möglich.
+Lokale Überschreibungen sind -- wie üblich -- durch Angabe einer Farbe bei den entsprechenden Node-Attributen möglich.
 
-Bsp:  \tikz\node[codeblocks,fill=black,draw=red]{schwarzer Hintergrund - roter Rahmen};\\
+\ex{Bsp. Lokale Farbänderung}
+{\tikz\node[codeblocks,fill=black,draw=red]{schwarzer Hintergrund - roter Rahmen};\\
 \lstinline|\node[fill=black,draw=red]{schwarzer Hintergrund - roter Rahmen}|
+}
 
+
+
 \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}
 \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}
 
+
+
+\subsubsection{Keine Farben (print)}
+
+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}
+\begin{tikzpicture}[codeblocks,print]
+\einruecken{
+	\node[aktion](one){\stringbox{myText}};
+}
+\node[musik,under={one}{1}{0}](two){\intbox{11}\dropdown{=}\boolbox{wahr}};
+\end{tikzpicture}
+
 \subsection{Boxen}
 Boxen werden innerhalb von Codeblöcken verwendet, um bestimmte Platzhalter und Datentypen zu kennzeichnen. Die Farben werden dabei teilweise in Abhängigkeit zum Parent (durch Durchsichtigkeit) gesetzt.
 
-	
-\DescribeMacro{\dropdown{}} 
-\DescribeMacro{\intbox{}} 	 
+\DescribeMacro{\dropdown{}}
+\DescribeMacro{\intbox{}}
 \DescribeMacro{\stringbox{}}
-\DescribeMacro{\boolbox{}} 
+\DescribeMacro{\boolbox{}}
 
-\begin{tabular}{cl}
- \dropdown{Dropdown} & \lstinline|\dropdown{Dropdown}| \\
- \intbox{5} 					& \lstinline|\intbox{5}|          \\
- \stringbox{Text} 		& \lstinline|\stringbox{Text}|    \\
-\boolbox{wahr} 				& \lstinline|\boolbox{wahr}|
+\begin{center}
+\begin{tabular}{m{0.32\linewidth}m{0.22\linewidth}m{0.22\linewidth}}
+	\toprule
+	\sffamily Code														& \sffamily PXT                                         	& \sffamily Open Roberta   \\\midrule
+	\lstinline|\dropdown{Dropdown}| & \tikz\node[codeblocks]{\dropdown{Dropdown}}; 	& \tikz\node[codeblocks,openroberta]{\dropdown{Dropdown}};\\
+	\lstinline|\intbox{5}| 					& \tikz\node[codeblocks]{\intbox{5}}; 					& \tikz\node[codeblocks,openroberta]{\intbox{5}}; 				\\
+	\lstinline|\stringbox{Text}|	  & \tikz\node[codeblocks]{\stringbox{Text}}; 		& \tikz\node[codeblocks,openroberta]{\stringbox{Text}}; 	\\
+	\lstinline|\boolbox{wahr}|	 		& \tikz\node[codeblocks]{\boolbox{wahr}}; 			& \tikz\node[codeblocks,openroberta]{\boolbox{wahr}};			\\
+	\bottomrule
 \end{tabular}
+\end{center}
 
-
 \lstinline|\intbox|,
 \lstinline|\stringbox|,
 \lstinline|\boolbox| haben alle als optionales Argument die Möglichkeit Stile hinzuzufügen.
 
-\paragraph{Beispiel opt. Argument:}\intbox[puzzleteil]{42} \lstinline|\intbox[puzzleteil]{42}|
 
-\paragraph{Beispiel mit Kapselung:}
+\ex{Bsp. optionales Argument bei Boxen}
+\intbox[puzzleteil]{42}\\
+\lstinline|\intbox[puzzleteil]{42}|
+
+\ex{Bsp. 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 der Option \texttt{openroberta} ändern sich auch entsprechend die Farben der int-, string- und boolboxen.
 
+\wichtig{} 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{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:
 		\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}
@@ -252,30 +324,33 @@
 	\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:
-	
+
 \begin{minipage}[l]{0.6\textwidth}
 		\hspace*{-2cm}
-\begin{lstlisting}  
+\begin{lstlisting}
 	\bild{
+		\X \X \X \0 \0 \\
 		\X \0 \X \0 \0 \\
-		\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 \0 \X \0 \0 \\
 	}
 	\end{minipage}
 
 \item  \DescribeMacro{\bild} Mit dem optionalen Argument kann ein Skalierungsfaktor angegeben werden.
 
-\paragraph{Bsp.: Bildskalierung} \lstinline|\bild[0.4]{\emptyled} \bild[2]{\emptyled}|
+\ex{Bsp. Bildskalierung}
 
-\bild[0.4]{\emptyled} \bild[2]{\emptyled}
+\begin{tabular}{cc}
+	\bild[0.4]{\emptyled} &  \bild[1.5]{\emptyled}\\
+	{\lstinline|\bild[0.4]{\emptyled}|} &  {\lstinline|\bild[1.5]{\emptyled}|}\\
+\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.
 
 
@@ -282,27 +357,32 @@
 
 \subsection{Strukturen} \label{sec:strukturen}
 
-Strukturen helfen, die Positionierung von Nodes zu vereinfachen. Dafür können Verzweigungen und Schleifen verwendet werden. Damit muss nur noch in seltenen Fällen eine manuelle Positionierung von Nodes vorgenommen werden. Intern werden Tabellen verwendet
+Strukturen helfen, die Positionierung von Nodes zu vereinfachen. Dafür können Verzweigungen und Schleifen verwendet werden. Damit muss nur noch in seltenen Fällen eine manuelle Positionierung von Nodes vorgenommen werden. Intern werden Tabellen verwendet.
 
 \subsubsection{Verzweigungen}
 
-\DescribeMacro{\wenndann} Über den Befehl \cmd\wenndann\oarg{TikZ-Stil}\marg{TEXT: Bedingung}\marg{NODE: Anweisung}\marg{TEXT: Nodename} wird die Kontrollstruktur Verzweigung abgebildet. Der \lstinline|logik|-/bzw. \lstinline|kontrolle|-Stil wird automatisch gesetzt. Das letzte Argument ist die Bezeichnung des eigenen Nodenamen, damit nachfolgende Codeblöcke dies bei ihrerer Positionierung referenzieren können.
+\DescribeMacro{\wenndann} Über den Befehl \sloppy \cmd\wenndann\oarg{TikZ-Stil}\marg{TEXT: Bedingung}\marg{NODE: Anweisung}\marg{TEXT: Nodename} wird die Kontrollstruktur Verzweigung abgebildet. Der \lstinline|logik|-/bzw. \lstinline|kontrolle|-Stil wird automatisch gesetzt. Das letzte Argument ist die Bezeichnung des eigenen Nodenamen, damit nachfolgende Codeblöcke dies bei ihrerer Positionierung referenzieren können. 
 
-\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.
+\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}.}
-\paragraph{Muster: Verzweigungen}
 
-\begin{tikzpicture}[codeblocks]
+\ex{Muster: Verzweigungen}
+
+\begin{tabular}{lll}
+&\begin{tikzpicture}[codeblocks]
 \wenndann{TEXT: Bedingung}{\node[aktion]{NODE: Anweisung};}{name}
-\end{tikzpicture} 
+\end{tikzpicture} &
 
 \begin{tikzpicture}[codeblocks]
 \wenndannsonst{TEXT: Bedingung}{\node[aktion]{NODE: Anweisung};}{\node[aktion]{NODE: Anweisung};}{name}
-\end{tikzpicture}
+\end{tikzpicture}\\
+Deutsch: &\lstinline|\wenndann| & \lstinline|\wenndannsonst|\\
+English: & \lstinline|\ifthenblocks| & \lstinline|\ifthenelseblocks| \\
+\end{tabular}
 
 
-\paragraph{Beispiel: Verzweigungen}
+\ex{Bsp. Verzweigungen}
 \input{bsp-verzweigung.tikz}
 \lstinputlisting[language={},morekeywords={wenndannsonst}]{bsp-verzweigung.tikz}
 
@@ -314,14 +394,19 @@
 \DescribeMacro{\schleife} Die Schleife nach dem Muster
 \cmd\schleife\oarg{TikZ-Stil}\marg{TEXT: Für/solange/etc.}\marg{TEXT: Bedingung}\marg{NODE: Anweisung}\marg{TEXT: Nodename} ist eine weitere vordefinierte Struktur. Automatisch ergänzt wird der Begriff \enquote{mache}.
 
-\paragraph{Muster: Schleifen}
-\begin{tikzpicture}[codeblocks]
+\ex{Muster: Schleifen}
+\begin{tabular}{ll}
+& \begin{tikzpicture}[codeblocks]
 \schleife{TEXT: Für/solange/etc}{TEXT:Bedingung}{\node[logik]{NODE: Anweisung};}{name}
-\end{tikzpicture}
+\end{tikzpicture}\\
+deutsch & \cmd\schleife\oarg{STIL}\marg{PRE}\marg{BED}\marg{ANW}\marg{NAME}\\
+english & \cmd\loopblocks\oarg{STYLE}\marg{PRE}\marg{COND}\marg{INST}\marg{NAME}\\\\
+\end{tabular}
 
 
-\paragraph{Beispiel: Schleifen}
-\begin{tikzpicture}[codeblocks,]
+
+\ex{Bsp. Schleifen}
+\begin{tikzpicture}[codeblocks]
 \schleife[draw]{Solange}{\tikz\node[logik,keinezacken]{\dropdown{A}~\dropdown{=}~\dropdown{B}};}{
 	\node[aktion]{A=B+B};}{schl1}
 
@@ -336,120 +421,57 @@
 	\node[aktion]{A=B+B};}{schl2}
 \end{lstlisting}
 
-\section{Positioneriung der Nodes}
 
-\begin{comment}
-\section{Klammerstellungen der Blöcke darstellen}
+\subsubsection{Branches, loops and the english language}
+\begin{otherlanguage}{english}
+	If you want to use this package in an english document just load \lstinline|\usepackage[english]{babel}| in the preamble. It will automatically set the outer words for branches and loops in english.
+\end{otherlanguage}
 
-\DescribeMacro{umgebung} Für das Setzen einer optischen Klammerstellung der Blöcke müssen zusätzliche Nodes definiert werden. Diese müssen den Stil des jeweiligen Elementtyps haben und um den Stil \lstinline|umgebung| erweitert werden.
+\ex{English example}
+\begin{otherlanguage}{english}
+	\lstinline|\usepackage[english]{babel}|\\
+	\begin{tikzpicture}[codeblocks]
+	\wenndannsonst{A = B}{\node[aktion]{A++};}{\node[aktion]{B-{}-};}{name}
+	\end{tikzpicture}
+\end{otherlanguage}
 
-\DescribeMacro{fit} Über das TikZ-Attribut \lstinline|fit=Liste der Nodenamen in runden Klammern| wird ein neuer Node als Rahmen erstellt. Alle Nodes, die der Rahmen umfassen soll, müssen hier als Parameter angegeben werden. Die Definition des Node mit dem fit-Attribut muss innerhalb der Umgebung\DescribeMacro{pgfonlayer} \lstinline|\begin{pgfonlayer}{background}| stehen, damit bestehende Nodes nicht überzeichnet werden.
-
-Beispiel:
-\begin{lstlisting}[language={},morekeywords={fit, pgfonlayer,log,motorlogik1,logsonst,musiklogik2},]
+\begin{lstlisting}[]
+\begin{otherlanguage}{english}
 \begin{tikzpicture}[codeblocks]
-\node[logik](log) {Wenn \dropdown{5} \dropdown{<} \intbox{5} dann mache};
-\node[motor, unter={log}{1}{1}]		(motorlogik1)		{setzte \intbox{5}V an Ausgang \stringbox{powerOut}};
-\node[logik, unter={motorlogik1}{-1}{0}]	(logsonst)			{ansonsten mache};
-\node[musik, unter={logsonst}{1}{1}]		(musiklogik2)		{spiele Note \dropdown{C} für \dropdown{1/4} Takt};
-
-% Umgebungen setzen mit fit
-\begin{pgfonlayer}{background}
-	\node[umgebung, logik, fit=(log) (motorlogik1) (musiklogik2)] (logsonst){};
-\end{pgfonlayer}	
+\wenndannsonst{A = B}{\node[aktion]{A++};}{\node[aktion]{B-{}-};}{name}
 \end{tikzpicture}
+\end{otherlanguage}
 \end{lstlisting}
 
-\begin{tikzpicture}[codeblocks]
+\section{Positioneriung der Nodes}
 
-\node[logik](log) {Wenn \dropdown{5} \dropdown{<} \intbox{5} dann mache};
-\node[motor, unter={log}{1}{1}]		(motorlogik1)		{setzte \intbox{5}V an Ausgang \stringbox{powerOut}};
-\node[logik, unter={motorlogik1}{-1}{0}]	(logsonst)			{ansonsten mache};
-\node[musik, unter={logsonst}{1}{1}]		(musiklogik3)		{spiele Note \dropdown{C} für \dropdown{1/4} Takt};
+\subsection{Manuelles Positionieren}\label{sec:unter}
 
-\begin{scope}[yshift=-6cm]
-\node[logik](log) {Wenn \dropdown{5} \dropdown{<} \intbox{5} dann mache};
-\node[motor, unter={log}{1}{1}]		(motorlogik1)		{setzte \intbox{5}V an Ausgang \stringbox{powerOut}};
-\node[logik, unter={motorlogik1}{-1}{0}]	(logsonst)			{ansonsten mache};
-\node[musik, unter={logsonst}{1}{1}]		(musiklogik2)		{spiele Note \dropdown{C} für \dropdown{1/4} Takt};
+Mit konsequenter Verwendung der Strukturen ist manuelles Einrücken selten notwendig. Jedoch ist das Aneinanderketten der Nodes unabdinglich. Hierfür wird der Stil
+\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.
 
-% Umgebungen setzen 		
-\begin{pgfonlayer}{background}
-\node[umgebung, logik, fit=(log) (motorlogik1) (musiklogik2)] (logsonst){};
-\end{pgfonlayer}	
-\end{scope}
-
-
-\draw[-Latex, ultra thick, dashed] ($(musiklogik3.south east) +(1.5,0)$) -| ($(musiklogik3.south east) +(1.5,-2.5)$) node[ right,black, near end,] {+ neuer Node mit \textbf{fit}\\und \textbf{umgebung}};
-\end{tikzpicture}
-\end{comment}
-
-
-
-
-\begin{comment}
-\DescribeMacro{\setzenippel} \lstinline|\setzenippel{#1}| benötigt als Parameter eine Liste der Nodenamen, mit Komma getrennt. Hier ist keine Klammerung der Namen notwendig. Der Befehl muss innerhalb des \lstinline|codeblocks|-Stils stehen.
-
-Beispiel:
-
-\begin{lstlisting}[keywords={},language={},morekeywords={\setzenippel, platz, steuerung}]
-\begin{tikzpicture}[codeblocks]
-	\node[platzhalter](platz){Setzte \dropdown{myString} auf \stringbox{Hallo Welt}};
-	\node[steuerung,unter={platz}{0}{1}] (steuerung){Sende \dropdown{myString}};
-	\setzenippel{platz,steuerung};
-\end{tikzpicture}
-\end{lstlisting}
-
-\begin{tikzpicture}[codeblocks]
-\node[platzhalter](platz){Setzte \dropdown{myString} auf \stringbox{Hallo Welt}};
-\node[steuerung,unter={platz}{0}{1}] (steuerung){Sende \dropdown{myString}};
-\setzenippel{platz,steuerung};
-\end{tikzpicture}
-
-
-\DescribeMacro{\setzepuzzle} \lstinline|\setzepuzzle{#1}| benötigt als Parameter eine Liste der Nodenamen, mit Komma getrennt. Hier ist keine Klammerung der Namen notwendig. Der Befehl muss innerhalb des \lstinline|codeblocks|-Stils stehen.
-
-
-\begin{tikzpicture}[codeblocks]
-\node[logik] (log1) {Wenn \tikz\node[mathe](math1){\dropdown{A}+\dropdown{B}};
-	 \dropdown{<} \intbox{123}};
- 
-\setzepuzzle{log1%,math1
-};
-\end{tikzpicture}
-
-\noindent \wichtig{} Sowohl \lstinline|\setzenippel| als auch \lstinline|\setzepuzzle| haben Positionierungsprobleme in verschaltenten Nodes. D.\,h., dass man Nodes innerhalb von Nodes nicht damit dekorieren kann.
-\end{comment}
-
-
-
-\subsection{Manuelles Einrücken}\label{sec:unter}
-
-Mit konsequenter Verwendung der Strukturen ist manuelles Einrücken selten notwendig. Hierfür wird dann der Stil
-\DescribeMacro{unter} \texttt{unter=}\marg{NODE}\marg{X-Einzug-Faktor}\marg{Y-Einzug-Faktor} verwendet. Hierbei ist der Einzug jeweils als Ankerpunkt relativ zum Vorgänger gesetzt.
-	
 	\vspace{1em}
 	\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};
-	
-	\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 4 (\#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)};
-	
+
 	\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};
 	\end{lstlisting}
-	
 
-	
 
+
+
 \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}
@@ -486,6 +508,7 @@
 }
 \end{lstlisting}
 
+\ex{Bsp. einruecken}
 \input{bsp-einruecken.tikz}
 \lstinputlisting[keywords={},language={},morekeywords={einruecken},firstline={2},lastline={5}]{bsp-einruecken.tikz}
 
@@ -499,30 +522,14 @@
 
 \subsection{Puzzleoptik}
 \newcommand{\mydeco}[1]{
-	\tikz\node[codeblocks,mathe,#1](one){A+B};&\texttt{#1}\\
+	\tikz\node[codeblocks,mathe,#1](one){A+B};&#1
 }
 
-\begin{wraptable}{r}{0.4\textwidth}
-%\begin{table}[htb!]
-	\begin{center}\vspace*{-2.3em}
-		\begin{tabular}{rl}
-			\toprule
-			\textsf{Form} 		& \textsf{verwendete Stile} \\\midrule
-			\mydeco{}
-			\mydeco{keinezacken} 
-			\mydeco{eckig}
-			\mydeco{eckig, keinezacken}
-			\mydeco{puzzleteil}
-			\mydeco{puzzleteil, eckig}
-			\bottomrule
-		\end{tabular}
-		\caption{Übersicht über Blockformen}
-	\end{center}
-%\end{table}
-\end{wraptable}
 
-Um die Verzahnung der einzelnen Elemente darzustellen, wird standardmäßig eine Puzzleoptik verwendet, welche die \textit{vertikale} Beziehung der Bausteine zueinander verdeutlicht. Sie ist über die Form \DescribeMacro{robertashape} \lstinline|robertashape| definiert.  
 
+
+Um die Verzahnung der einzelnen Elemente darzustellen, wird standardmäßig eine Puzzleoptik verwendet, welche die \textit{vertikale} Beziehung der Bausteine zueinander verdeutlicht. Sie ist über die Form \DescribeMacro{robertashape} \lstinline|robertashape| definiert.
+
 Soll die \textit{horizontale} Beziehung von Bausteinen betont werden, so kann die Form \DescribeMacro{puzzleteil} \lstinline|puzzleteil| verwendet werden.
 
 \DescribeMacro{keinezacken} Mit dem Stil \lstinline|keinezacken| lassen sich alle vordefinierten Zacken entfernen. Dies ist v.\,A. bei verschachtelten Nodes notwendig. \lstinline|keinezacken| ist ein Alias für \lstinline|rectangle|.
@@ -529,15 +536,40 @@
 
 \DescribeMacro{eckig} Der Stil \lstinline|eckig| entfernt alle runde Ecken und orientiert sich damit stärker an dem Erscheinungsbild von Open Roberta.
 
+Für Start- und Endbausteine sind die Formen \DescribeMacro{pinlow}\lstinline|pinlow| und \DescribeMacro{pinhigh}\lstinline|pinhigh| definiert.
 
-\paragraph{Beispiel: keinezacken}
+%\begin{wraptable}{r}{0.6\textwidth}
+\begin{table}[htb!]
+	\begin{center}%\vspace*{-2.3em}
+		\begin{tabular}{rll}
+			\toprule
+			\textsf{Shape} 		& \textsf{deutsch} 	& \textsf{english}\\\midrule
+			\mydeco{} & \\
+			\mydeco{pinlow} & pinlow \\
+			\mydeco{pinhigh} & pinhigh\\
+			\mydeco{keinezacken} & nopins\\
+			\mydeco{eckig} & square\\
+			\mydeco{eckig, keinezacken} & square, nopins\\
+			\mydeco{puzzleteil} & puzzlepiece \\
+			\mydeco{puzzleteil, eckig} & puzzlepiece, square\\
+			\bottomrule
+		\end{tabular}
+		\caption{Übersicht über Blockformen}
+	\end{center}
+\end{table}
+%\end{wraptable}
+
+
+\ex{Bsp. 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};};
-	
+
 \draw[->,very thick, dashed,black] (A)--(B);
 \end{tikzpicture}
-
+%
 \begin{lstlisting}[keywords={},morekeywords={keinezacken}]
 	\node[logik]{wenn \tikz\node[mathe,keinezacken]{A=B};};
 \end{lstlisting}
@@ -551,7 +583,7 @@
 
 
 \clearpage
-\section{Q\&A}
+\section{FAQ}
 \subsection{Wie kann ich für ein komplettes Dokument eine Farbe umdefinieren?}
 
 \tikz\node[codeblocks,logik,]{Alte Farbe};
@@ -580,7 +612,7 @@
 \begin{tikzpicture}[codeblocks]
 	\node[musik,draw] (bad)	{schlecht};
 	\node[musik,draw, rounded corners =0pt, right= 1.9em of bad] (good)	{besser};
-	
+
 	\draw[->,very thick,dashed, black] (bad)--(good);
 \end{tikzpicture}
 
@@ -610,15 +642,32 @@
 \end{lstlisting}
 
 
-Keine Zacken aber Puzzleteil?
-falsch: puzzleteil ->keinezacken
-richtig: keinezacken,puzzleteil,
+%\todo{Keine Zacken aber Puzzleteil?
+%falsch: puzzleteil ->keinezacken
+%richtig: keinezacken,puzzleteil,}
 
+
+\subsection{Mein Block ist sehr klein und deswegen verformt}
+
+\tikz\node[codeblocks,logik](one){1};
+
+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}
+
+
 \section{Mehr Beispielcode}
 
 \subsection{Bsp: Calliope Smart Home}
 	\input{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	2017-07-18 21:30:24 UTC (rev 44840)
+++ trunk/Master/texmf-dist/tex/latex/tikzcodeblocks/tikzcodeblocks.sty	2017-07-18 21:37:01 UTC (rev 44841)
@@ -1,11 +1,12 @@
 % -*- coding: utf-8; -*-
 
-% CC-BY Adrian Salamon
+% Adrian Salamon
 % Bergische Universitaet Wuppertal
-% 2017-07-06
+% 2017-07-18
+% LaTeX project public license, version 1.3c
 
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{tikzcodeblocks}[2016/07/04 TikZ Styles und Makros zum Setzen von graphischen Programmcodes, wie beim Calliopeeditor, NEPO oder Scratch]
+\ProvidesPackage{tikzcodeblocks}[2016/07/18 v.0.11 - TikZ Styles and macros for typesetting blockwise graphic programming languages like scratch, nepo or pxt]
 
 \RequirePackage{adjustbox}
 \RequirePackage{xcolor}
@@ -16,79 +17,64 @@
 \usetikzlibrary{matrix, positioning, fit,calc,shapes,backgrounds,math,trees,decorations.markings,shapes,arrows.meta,arrows}
 \usetikzlibrary{decorations,decorations.pathmorphing}
 
+\RequirePackage{translations}
+
 \RequirePackage{xspace}
-
 \RequirePackage{ifthen}
 
-\newboolean{pxt-colors}
-\setboolean{pxt-colors}{true}
-\newboolean{nepo-colors}
-\setboolean{nepo-colors}{false}
 
+\newboolean{no-colors}
+\setboolean{no-colors}{false}
 
-\DeclareOption{pxt}{
-	\setboolean{pxt-colors}{true}
+\DeclareOption{print}{
+	\setboolean{no-colors}{true}
 }
-\DeclareOption{openroberta}{
-	\setboolean{nepo-colors}{true}
-}
 
-
-\ExecuteOptions{pxt} %calliope colors are standard
 \ProcessOptions\relax
 
+% % %
+% Translations
+% % %
 
+\DeclareTranslationFallback {if}{if}
+\DeclareTranslation{English}{if}{if}
+\DeclareTranslation{German} {if}{wenn}
 
+\DeclareTranslationFallback {then}{then}
+\DeclareTranslation{English}{then}{then}
+\DeclareTranslation{German} {then}{dann}
 
-% % %
-% Variablen für Einzüge und Positonierungen
-% % %
+\DeclareTranslationFallback {else}{else}
+\DeclareTranslation{English}{else}{else}
+\DeclareTranslation{German} {else}{sonst}
 
-% xshift=  \einzug
-% xshift= -\einzug
-\newlength{\einzug}
-\setlength{\einzug}{1em}
-\newlength{\abstand}
-\setlength{\abstand}{2pt}
+\DeclareTranslationFallback {do}{do}
+\DeclareTranslation{English}{do}{do}
+\DeclareTranslation{German} {do}{mache}
 
 
-\newboolean{keineinzug}
-\setboolean{keineinzug}{true}
-\newcommand{\einruecken}[1]{\setboolean{keineinzug}{false}#1\setboolean{keineinzug}{true}}
 
 
-\ifthenelse{\boolean{nepo-colors}}{
 % % %
-% Colordefinitions like lab.open-roberta.org
+% Variablen für Einzüge und Positonierungen
 % % %
-%
-\definecolor{start-color}{HTML}{E2001A}
-\definecolor{aktion-color}{HTML}{F29400}
-\definecolor{sensoren-color}{HTML}{8FA402}
-\definecolor{kontrolle-color}{HTML}{EB6A0A}
-\definecolor{logik-color}{HTML}{33B8CA}
-\definecolor{mathematik-color}{HTML}{005A94}
-\definecolor{text-color}{HTML}{BACC1E}
-\definecolor{listen-color}{HTML}{39378B}
-\definecolor{farben-color}{HTML}{EBC300}
-\definecolor{bilder-color}{HTML}{DF01D7}
-\definecolor{variablen-color}{HTML}{9085BA}
-\definecolor{funktionen-color}{HTML}{179C7D}
-\definecolor{nachrichten-color}{HTML}{FF69B4}
-%
-\definecolor{int-color}{HTML}{005A94}
-\definecolor{string-color}{HTML}{BACC1E}
-\definecolor{boolean-color}{HTML}{33B8CA}
-\definecolor{color-color}{HTML}{EBC300}
-}{}
 
+% xshift=  \blockhspace
+% xshift= -\blockhspace
+\newlength{\blockhspace}
+\setlength{\blockhspace}{1em}
+\newlength{\blockvspace}
+\setlength{\blockvspace}{2pt}
 
 
-\ifthenelse{\boolean{pxt-colors}}{
+\newboolean{noIndentForPin}
+\setboolean{noIndentForPin}{true}
+\newcommand{\einruecken}[1]{\setboolean{noIndentForPin}{false}#1\setboolean{noIndentForPin}{true}}
+
 	% % %
 	% Colordefinitions like  pxt.calliope.cc
 	% % %
-	%	
+	%
 	\definecolor{grundlagen-color}{HTML}{54C9C9}
 	\definecolor{eingaben-color}{HTML}{C90072}
 	\definecolor{musik-color}{HTML}{DF4600}
@@ -106,17 +92,13 @@
 	\definecolor{konsole-color}{HTML}{002050}
 	\definecolor{steuerung-color}{HTML}{42495F}
 	\definecolor{bluetooth-color}{HTML}{0082FB}
-	%	
+	%
 	\definecolor{int-color}{HTML}{C6A8C7}
 	\definecolor{string-color}{HTML}{D6C299}
 	\definecolor{boolean-color}{HTML}{99C3C6}
 	\definecolor{color-color}{HTML}{BBE9E9}
-}{}
-%
 
 
-
-
 \pgfdeclarelayer{background}
 \pgfsetlayers{background,main}
 
@@ -126,6 +108,7 @@
 % Code-Block Objects
 % % %
 
+% global styles
 \tikzset{
 	codeblocks/.style = {
 		font =  \ttfamily,rounded corners=2pt, rectangle,thick,
@@ -135,17 +118,18 @@
 		anchor=base, baseline,
 		robertashape,
 	},
-	eckig/.style ={rounded corners = 0pt, }
+	eckig/.style ={rounded corners = 0pt},
+	nocolor/.style={fill=white, text = black, draw = black!60},
 }
 
-
+% % PXT-Nodes % %
+% 
 %
-% Calliope-Nodes
+% Colordefinitions like lab.open-roberta.org
 %
-\ifthenelse{\boolean{pxt-colors}}{
-	\tikzset{
+\tikzset{
 %
-	grundlage/.style 		= {fill=grundlagen-color,   text = white, draw = grundlagen-color!60!black,	},
+	grundlage/.style 		= {fill=grundlagen-color,   text = white, draw = grundlagen-color!60!black,},
 	eingabe/.style 			= {fill=eingaben-color,  		text = white, draw = eingaben-color!60!black,	},
 	schleife/.style 		= {fill=schleifen-color, 		text = white, draw = schleifen-color!60!black,	},
 	logik/.style 				= {fill=logik-color, 				text = white, draw = logik-color!60!black,	},
@@ -162,71 +146,95 @@
 	konsole/.style			= {fill=konsole-color,  		text = white, draw = konsole-color!60!black,	},
 	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
-		aktion/.style = {grundlage},
-		farbe/.style={grundlage},
+	aktion/.style = {grundlage},
+	farbe/.style={grundlage},
 	%
-		kontrolle/.style = {schleife}, 
-		sensor/.style={pins},
-		start/.style={grundlage},
-		sensor/.style={eingabe},
-		liste/.style={konsole},
-		variablen/.style={platzhalter},
-		nachricht/.style={bluetooth},
-		funktion/.style={steuerung},
+	kontrolle/.style = {schleife},
+	sensor/.style={pins},
+	start/.style={grundlage},
+	sensor/.style={eingabe},
+	liste/.style={konsole},
+	variablen/.style={platzhalter},
+	nachricht/.style={bluetooth},
+	funktion/.style={steuerung},
 }
-}{}
+%
+% % % PXT % %
 
-
+% % OpenRoberta-Nodes %
 %
-% OpenRoberta-Nodes
+% OpenRoberta Farben als Option setzbar:
 %
+\tikzset{
+ define color/.code 2 args={
+	\definecolor{#1}{HTML}{#2}
+},
+openroberta/.style={
+	square,	%keine Rundungen
+	define color={start-color}{E2001A},
+	define color={aktion-color}{F29400},
+	define color={sensoren-color}{8FA402},
+	define color={kontrolle-color}{EB6A0A},
+	define color={logik-color}{33B8CA},
+	define color={mathematik-color}{005A94},
+	define color={text-color}{BACC1E},
+	define color={listen-color}{39378B},
+	define color={farben-color}{EBC300},
+	define color={bilder-color}{DF01D7},
+	define color={variablen-color}{9085BA},
+	define color={funktionen-color}{179C7D},
+	define color={nachrichten-color}{FF69B4},
+	%
+	define color={int-color}{005A94},
+	define color={string-color}{BACC1E},
+	define color={boolean-color}{33B8CA},
+	define color={color-color}{EBC300},
+	%
+	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,},
+	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,},
+	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,},
+	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,},
+	%
+	% 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},
+	}%robertafarben
+}%tikzset
+
 %
-\ifthenelse{\boolean{nepo-colors}}{
+% 
+% % % Open Roberta % % % % %
+
+
+
+% % Allgemeine Styles
 %
-	\tikzset{
-		%
-		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,},
-		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,},
-		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,},
-		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,},
-		%
-		%openroberta/.style  = {rounded corners=0cm, },
-		% 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},
-%	}
-}
-}{}
-
-  
-% Allgemeine Styles  
 \tikzset{
 	umgebung/.style = {draw,line width=2pt,transform shape=false}, % yshift ausgleich für die einzelnen elemente
 % Bilder/Pictures/LED-Matrix
-	punktvoll/.style = {node distance = 1mm, circle,radius=2mm,fill=red,									draw=black,opacity=1,draw},
-  punktleer/.style = {node distance = 1mm, circle,radius=2mm,fill=white,opacity=0.7,draw=black,draw},  
+	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},
 %
+% 
+% Boxes and smaller elements
 %
-% % %
-% Boxes and smaller elements 
-% % %
-%
 	dropdown/.style = {
 		fill=white,
 		draw=none,
@@ -260,16 +268,6 @@
 		anchor=west,
 	},
 	boolbox/.style = {
-		fill=boolean-color,boden
-		draw=none,
-		opacity=0.7, 	% Leider auch Schriftsichtbarkeit
-		rectangle,
-		rounded corners=2pt,
-		inner sep=3pt,
-		text = black,
-		anchor=west,
-	},
-	boolbox/.style = {
 		fill=color-color,
 		draw=none,
 		opacity=0.7, 	% Leider auch Schriftsichtbarkeit
@@ -280,7 +278,7 @@
 		anchor=west,
 	},
 % Empty LEDs Help
-	ledanzeige/.style ={matrix of nodes, nodes = {punktleer},row sep=4pt,column sep=4pt,ampersand replacement=\&, anchor=base},
+	ledanzeige/.style ={matrix of nodes, nodes = {ledOff},row sep=4pt,column sep=4pt,ampersand replacement=\&, anchor=base},
 %
 	boden/.style = {% Für Baseline anordnung der Dropdown
 		baseline,anchor=base, text height=1.7ex,text depth=0.3ex, minimum width=1em
@@ -293,7 +291,7 @@
 },
 %
 % unter={NODENAME}{X--ABSTAND}{Y-ABSTAND}
- 	unter/.style n args={3}{below right = #3\abstand and #2\einzug of #1.south west},
+ 	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
@@ -338,13 +336,19 @@
 		;};\xspace
 }
 
-\newcommand{\setupquotes}{\normalfont \bfseries \color{white} } % vielleicht \huge ?
+\ifthenelse{\boolean{no-colors}}
+{
+	\newcommand{\setupquotes}{\normalfont \bfseries \huge \vspace*{1em}\color{black}}
+}
+{
+	\newcommand{\setupquotes}{\normalfont \bfseries \huge \vspace*{1em}\color{white}}
+}
 
 \newcommand{\stringbox}[2][]{
 	\begin{tikzpicture}[anchor=center,baseline=-4.0pt,]
 	\strut\node[stringbox,#1](string1){
-		{\setupquotes ``}\,\tikz[boden]\strut\node[fill=white,rounded corners=2pt,opacity=1,keinezacken]{#2}
-		;\setupquotes\,''};
+		{\setupquotes ``}\,\tikz[boden]\strut\node[yshift=0.5em,fill=white,rounded corners=2pt,opacity=1,keinezacken]{#2}
+		;\setupquotes\,''\vspace*{-0.9em}};
 	\end{tikzpicture}
 
 }
@@ -366,8 +370,8 @@
 	}
 }
 
-\newcommand{\0}{|[punktleer]|\&}
-\newcommand{\X}{|[punktvoll]|\&}
+\newcommand{\0}{|[ledOff]|\&}
+\newcommand{\X}{|[ledOn]|\&}
 
 \newcommand{\emptyled}
 {
@@ -388,19 +392,21 @@
 }
 
 
+% Structures: Branches and Loops
+% Strukturen: Wenn-Dann/ Wenn-Dann-Sonst / Schleife
 %
-% Strukturen: Wenn-Dann/ Wenn-Dann-Sonst
-%
+
 \def\myspace{\vspace{5pt}}
+\def\myshift{0.95em}
 
 \newcommand{\wenndann}[4][]{
 	\node[logik,#1](#4){%
 		%
 		\renewcommand{\arraystretch}{1}
-		\hspace*{-1em}\setboolean{keineinzug}{true}
+		\hspace*{-1em}\setboolean{noIndentForPin}{true}
 		\begin{tabular}{@{}ll}
-			Wenn &#2\myspace\\%\hline
-			dann &\begin{tikzpicture}[anchor=north,yshift=0.95em ]#3\end{tikzpicture}\myspace\\[0.5em] 
+			\GetTranslation{if} 	&#2\myspace\\%\hline
+			\GetTranslation{then} &\begin{tikzpicture}[anchor=north,yshift=\myshift ]#3\end{tikzpicture}\myspace\\[0.5em]
 	\end{tabular}};
 }
 
@@ -409,11 +415,11 @@
 	\node[logik,#1](#5){%
 		%
 		\renewcommand{\arraystretch}{1}
-		\hspace*{-1em}\setboolean{keineinzug}{true}
+		\hspace*{-1em}\setboolean{noIndentForPin}{true}
 		\begin{tabular}{@{}ll}
-			Wenn &#2\myspace\\ %\hline
-			dann &\begin{tikzpicture}[anchor=north, yshift=0.95em ]#3\end{tikzpicture}\myspace\\
-			sonst&\begin{tikzpicture}[anchor=north, yshift=0.95em ]#4\end{tikzpicture}\myspace\\
+			\GetTranslation{if} &#2\myspace\\ %\hline
+			\GetTranslation{then} &\begin{tikzpicture}[anchor=north, yshift=\myshift ]#3\end{tikzpicture}\myspace\\
+			\GetTranslation{else}&\begin{tikzpicture}[anchor=north, yshift=\myshift ]#4\end{tikzpicture}\myspace\\
 	\end{tabular}};
 }
 
@@ -420,48 +426,151 @@
 \newcommand{\schleife}[5][]{
 	\node[kontrolle,#1](#5){\\
 		\renewcommand{\arraystretch}{1}
-		\hspace*{-1em}\setboolean{keineinzug}{true}
+		\hspace*{-1em}\setboolean{noIndentForPin}{true}
 		\begin{tabular}{@{}ll}
 			#2 & #3\\[0,5em]
-			mache & \begin{tikzpicture}[anchor=north, yshift=0.95em]#4\end{tikzpicture}\\
+			\GetTranslation{do} & \begin{tikzpicture}[anchor=north, yshift=\myshift]#4\end{tikzpicture}\\
 		\end{tabular}
 	};
 }
 
 
+% Lokale Farbdefinitonen erlauben
+\newcommand{\setcolor}[2]{\definecolor{#1}{HTML}{#2}}
 
 
-\newcommand{\setzenippel}[1]{\foreach \i in {#1}
-	{ 
-		\begin{scope}
-			\draw[draw=none,rounded corners,fill=\i.fill]%!80!white,draw=none] 
-			($(\i.south west) + (1,0.4\einzug)$) --	($(\i.south west) + (0.8,-0.4\einzug)$) -- ($(\i.south west) + (1.2,-0.4\einzug)$)--cycle;
-		\end{scope}
-}}
+% % Open Roberta Shapes mit Zacken oben und unten % %
+%
+%
+\makeatletter
+\pgfdeclareshape{robertashape}
+{
+	% This bit from \pgflibarayshapes.code.tex
+	\inheritsavedanchors[from=rectangle]
+	\inheritanchorborder[from=rectangle]
+	\inheritanchor[from=rectangle]{north}
+	\inheritanchor[from=rectangle]{north west}
+	\inheritanchor[from=rectangle]{north east}
+	\inheritanchor[from=rectangle]{center}
+	\inheritanchor[from=rectangle]{west}
+	\inheritanchor[from=rectangle]{east}
+	\inheritanchor[from=rectangle]{mid}
+	\inheritanchor[from=rectangle]{mid west}
+	\inheritanchor[from=rectangle]{mid east}
+	\inheritanchor[from=rectangle]{base}
+	\inheritanchor[from=rectangle]{base west}
+	\inheritanchor[from=rectangle]{base east}
+	\inheritanchor[from=rectangle]{south}
+	\inheritanchor[from=rectangle]{south west}
+	\inheritanchor[from=rectangle]{south east}
 
-\newcommand{\setzepuzzle}[1]{\foreach \i in {#1}
-	{
-		\begin{scope}
-			\node[, fill=\i.fill%!60!white
-			,rounded corners=2.5mm,circle,
-			]
-			at ($(\i.west)+ (-0.05,0)$){};
+	\inheritbackgroundpath[from=rectangle]
+	\inheritbeforebackgroundpath[from=rectangle]
+	\inheritbehindforegroundpath[from=rectangle]
+	\inheritforegroundpath[from=rectangle]
+	\inheritbeforeforegroundpath[from=rectangle]
 
-		\end{scope}
-}}
+	\backgroundpath{
+		%
+		\southwest \pgf at xa=\pgf at x \pgf at ya=\pgf at y
+		\northeast \pgf at xb=\pgf at x \pgf at yb=\pgf at y
 
+		\xdef\blockhspaceoben{1\blockhspace}
 
-% Lokale Farbdefinitonen erlauben
-\newcommand{\setcolor}[2]{\definecolor{#1}{HTML}{#2}}
+		\ifthenelse{\boolean{noIndentForPin}}{				% TODO Bedingungen verschönern? Aktuell globales boolean
+			\xdef\blockhspaceunten{\blockhspaceoben}}{
+			\xdef\blockhspaceunten{2*\blockhspaceoben}}
 
-% % 
+		\def\dreieckseite{4}
+
+		\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
+		%
+		\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 unten % %
+%
 % 
-% Open Roberta Shapes mit Zacken oben und unten
+\makeatletter
+\pgfdeclareshape{pinlow}
+{
+	% This bit from \pgflibarayshapes.code.tex
+	\inheritsavedanchors[from=rectangle]
+	\inheritanchorborder[from=rectangle]
+	\inheritanchor[from=rectangle]{north}
+	\inheritanchor[from=rectangle]{north west}
+	\inheritanchor[from=rectangle]{north east}
+	\inheritanchor[from=rectangle]{center}
+	\inheritanchor[from=rectangle]{west}
+	\inheritanchor[from=rectangle]{east}
+	\inheritanchor[from=rectangle]{mid}
+	\inheritanchor[from=rectangle]{mid west}
+	\inheritanchor[from=rectangle]{mid east}
+	\inheritanchor[from=rectangle]{base}
+	\inheritanchor[from=rectangle]{base west}
+	\inheritanchor[from=rectangle]{base east}
+	\inheritanchor[from=rectangle]{south}
+	\inheritanchor[from=rectangle]{south west}
+	\inheritanchor[from=rectangle]{south east}
+
+	\inheritbackgroundpath[from=rectangle]
+	\inheritbeforebackgroundpath[from=rectangle]
+	\inheritbehindforegroundpath[from=rectangle]
+	\inheritforegroundpath[from=rectangle]
+	\inheritbeforeforegroundpath[from=rectangle]
+
+	\backgroundpath{
+		%
+		\southwest \pgf at xa=\pgf at x \pgf at ya=\pgf at y
+		\northeast \pgf at xb=\pgf at x \pgf at yb=\pgf at y
+
+		\xdef\blockhspaceoben{1\blockhspace}
+
+		\ifthenelse{\boolean{noIndentForPin}}{				% TODO Bedingungen verschönern? Aktuell globales boolean
+			\xdef\blockhspaceunten{\blockhspaceoben}}{
+			\xdef\blockhspaceunten{2*\blockhspaceoben}}
+
+		\def\dreieckseite{4}
+
+		\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
+		%
+		%\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 % %
 %
-% %
-
+%
 \makeatletter
-\pgfdeclareshape{robertashape}
+\pgfdeclareshape{pinhigh}
 {
 	% This bit from \pgflibarayshapes.code.tex
 	\inheritsavedanchors[from=rectangle]
@@ -481,53 +590,50 @@
 	\inheritanchor[from=rectangle]{south}
 	\inheritanchor[from=rectangle]{south west}
 	\inheritanchor[from=rectangle]{south east}
-	
+
 	\inheritbackgroundpath[from=rectangle]
 	\inheritbeforebackgroundpath[from=rectangle]
 	\inheritbehindforegroundpath[from=rectangle]
 	\inheritforegroundpath[from=rectangle]
 	\inheritbeforeforegroundpath[from=rectangle]
-	
+
 	\backgroundpath{
-		%  	
+		%
 		\southwest \pgf at xa=\pgf at x \pgf at ya=\pgf at y
 		\northeast \pgf at xb=\pgf at x \pgf at yb=\pgf at y
-		
-		\xdef\einzugoben{1\einzug}
-		
-		\ifthenelse{\boolean{keineinzug}}{				% TODO Bedingungen verschönern? Aktuell globales boolean 
-			\xdef\einzugunten{\einzugoben}}{
-			\xdef\einzugunten{2*\einzugoben}}
-		
+
+		\xdef\blockhspaceoben{1\blockhspace}
+
+		\ifthenelse{\boolean{noIndentForPin}}{				% TODO Bedingungen verschönern? Aktuell globales boolean
+			\xdef\blockhspaceunten{\blockhspaceoben}}{
+			\xdef\blockhspaceunten{2*\blockhspaceoben}}
+
 		\def\dreieckseite{4}
-		
+
 		\pgfpathmoveto{\pgfpoint{\pgf at xa}{\pgf at ya}} %<-- south west
 		%
-		\pgfpathlineto{\pgfpoint{\pgf at xa+\einzugunten}{\pgf at ya}}
-		\pgfpathlineto{\pgfpoint{\pgf at xa+\einzugunten+\dreieckseite}{\pgf at ya-\dreieckseite}}	%Spitze unten
-		\pgfpathlineto{\pgfpoint{\pgf at xa+\einzugunten+2*\dreieckseite}{\pgf at ya}}
+		%\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
 		%
-		\pgfpathlineto{\pgfpoint{\pgf at xa+\einzugoben+2*\dreieckseite}{\pgf at yb}} 
-		\pgfpathlineto{\pgfpoint{\pgf at xa+\einzugoben+\dreieckseite}{\pgf at yb-\dreieckseite}} 	%Spitze oben
-		\pgfpathlineto{\pgfpoint{\pgf at xa+\einzugoben}{\pgf at yb}}
+		\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
 
 
-% % 
+
+% % puzzleteil Shapes mit Ausbuchtung links %
+%
 % 
-% puzzleteil Shapes mit Ausbuchtung links
-%
-% %
-
 \makeatletter
 \pgfdeclareshape{puzzleteil}
 {
@@ -549,30 +655,30 @@
 	\inheritanchor[from=rectangle]{south}
 	\inheritanchor[from=rectangle]{south west}
 	\inheritanchor[from=rectangle]{south east}
-	
+
 	\inheritbackgroundpath[from=rectangle]
 	\inheritbeforebackgroundpath[from=rectangle]
 	\inheritbehindforegroundpath[from=rectangle]
 	\inheritforegroundpath[from=rectangle]
 	\inheritbeforeforegroundpath[from=rectangle]
-	
+
 	\backgroundpath{
-		%  	
+		%
 		\southwest \pgf at xa=\pgf at x \pgf at ya=\pgf at y
 		\northeast \pgf at xb=\pgf at x \pgf at yb=\pgf at y
-		
-		
+
+
 		\pgfpathmoveto{\pgfpoint{\pgf at xa}{\pgf at ya}} %<-- south west
 		\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}{\pgf at yb}} %<-- north west
 		% Anpassung
-		\pgfpathlineto{\pgfpoint{\pgf at xa}{\pgf at yb-4pt}} 
+		\pgfpathlineto{\pgfpoint{\pgf at xa}{\pgf at yb-4pt}}
 		%
 		\pgfpathlineto{\pgfpoint{\pgf at xa-5pt}{\pgf at yb-2pt}}
-		\pgfpathlineto{\pgfpoint{\pgf at xa-5pt}{\pgf at yb-5pt}} 
-		\pgfpathlineto{\pgfpoint{\pgf at xa-5pt}{\pgf at yb-13pt}} 
-		\pgfpathlineto{\pgfpoint{\pgf at xa}{\pgf at yb-11pt}} 
+		\pgfpathlineto{\pgfpoint{\pgf at xa-5pt}{\pgf at yb-5pt}}
+		\pgfpathlineto{\pgfpoint{\pgf at xa-5pt}{\pgf at yb-13pt}}
+		\pgfpathlineto{\pgfpoint{\pgf at xa}{\pgf at yb-11pt}}
 		\pgfpathclose
 	}
 }
@@ -579,13 +685,153 @@
 \makeatother
 
 
+% % colors
+% 
+\newcommand{\farbe}[1]{\tikz\node[rectangle,minimum width=1em,minimum height = 1em,fill=#1]{};}
+
+
+% % symbols
+%  
+\newcommand{\usb}{\faUsb}
+
+
+
+% % Option: print (no-colors) % %
+% 
+% TODO: Geht das mir einer Schleife?
+\ifthenelse{\boolean{no-colors}}{
+\tikzset{
 %
-% Farben
+% pxt
 %
-\newcommand{\farbe}[1]{\tikz\node[rectangle,minimum width=1em,minimum height = 1em,fill=#1]{};}
+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{
+		print/.style={
+		%
+		% 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={text-color=black, nocolor,}, % quotationmarks are still white...
+		boolbox/.append style={nocolor},
+	}
+}% print
 
+
+% % Redefine Commands for international usage % %
 % 
-% Symbole
-%
-\newcommand{\usb}{\faUsb}
+% 
+
+% Controlstructures
+\newcommand{\ifthenblocks}{\wenndann}
+\newcommand{\ifthenelseblocks}{\wenndannsonst}
+\newcommand{\loopblocks}{\schleife}
+
+\newcommand{\moveindent}{\einruecken}
+
+%styles:
+\tikzset{
+ floor/.style={boden},
+ under/.style n args={3}{below right = #3\blockvspace and #2\blockhspace of #1.south west},
+ square/.style={eckig},
+ nopins/.style={keinezacken},
+ puzzlepiece/.style={puzzleteil},
+}
\ No newline at end of file



More information about the tex-live-commits mailing list