diff options
author | Karl Berry <karl@freefriends.org> | 2018-08-23 23:12:12 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-08-23 23:12:12 +0000 |
commit | 3562d0088e82c4d4c9086f03b6d0284a9af2f8f9 (patch) | |
tree | e1677d059d3bbb81d949159a778776709743a716 /Master/texmf-dist/tex/latex/schule/schule.fach.Informatik.code.tex | |
parent | aca434905fcf7943059a6c07ec141bf7de7e7ac4 (diff) |
schule (23aug18)
git-svn-id: svn://tug.org/texlive/trunk@48471 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/schule/schule.fach.Informatik.code.tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/schule/schule.fach.Informatik.code.tex | 167 |
1 files changed, 167 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/schule/schule.fach.Informatik.code.tex b/Master/texmf-dist/tex/latex/schule/schule.fach.Informatik.code.tex new file mode 100644 index 00000000000..9c2bebe5585 --- /dev/null +++ b/Master/texmf-dist/tex/latex/schule/schule.fach.Informatik.code.tex @@ -0,0 +1,167 @@ +% ******************************************************************** +% Informatik * +% ******************************************************************** + +% Quelltexte +% ******************************************************************** +\lstset{literate=% + {Ö}{{\"O}}1 + {Ä}{{\"A}}1 + {Ü}{{\"U}}1 + {ß}{\ss}2 + {ü}{{\"u}}1 + {ä}{{\"a}}1 + {ö}{{\"o}}1 + {»}{{\frqq}}4 + {«}{{\flqq}}4 +} + +% Quelltextstile +\lstdefinestyle{Basis}{ + showspaces=false, + showstringspaces=false, + showtabs=false, + tabsize=3, + extendedchars=true, + basicstyle=\ttfamily\small, keywordstyle={\color{blue}\underbar}, + identifierstyle=, + commentstyle=\color{gray}, + backgroundcolor=\color{white}, + numbers=left, + numberstyle=\sffamily\tiny\color{gray}, + stepnumber=1, + numbersep=5pt, + captionpos=b, + breaklines=true +} + +\lstdefinestyle{Python}{ + language={Python}, + showspaces=false, + showstringspaces=false, + showtabs=false, + tabsize=3, + extendedchars=true, + basicstyle=\ttfamily\small, keywordstyle={\color{blue}\underbar}, + identifierstyle=, + commentstyle=\color{gray}, + backgroundcolor=\color{white}, + numbers=left, + numberstyle=\sffamily\tiny\color{gray}, + stepnumber=1, + numbersep=5pt, + captionpos=b, + breaklines=true +} + + +\lstdefinestyle{Java}{ + language={Java}, + showspaces=false, + showstringspaces=false, + showtabs=false, + tabsize=3, + extendedchars=true, + basicstyle=\ttfamily\small, keywordstyle={\color{blue}\underbar}, + identifierstyle=, + commentstyle=\color{gray}, + backgroundcolor=\color{white}, + numbers=left, + numberstyle=\sffamily\tiny\color{gray}, + stepnumber=1, + numbersep=5pt, + captionpos=b, + breaklines=true +} + +% Klassendokumentation +% ******************************************************************** +\newenvironment{klassenDokumentation}{% + \tabularx{\textwidth}{lX}}{\endtabularx} + +% Methodendokumentation +% ******************************************************************** +\newcommand{\methodenDokumentation}[3]{% + {\color{gray}#1} & \textbf{#2} \\ + & #3 \\ +} + +% Sequenzdiagramme +% ******************************************************************** + +% Skalierung von Sequenzdiagrammen +\newcommand{\skaliereSequenzdiagramm}[1]{% + \ClassWarning{schule}{Besser: scalebox oder resizebox anstatt skaliereSequenzdiagramm}% + \skaliereTikZ{#1}% +} + +% Kommando zum Festlegen von Abständen von Threads im Sequenzdiagramm +\newcommand{\newthreadtwo}[4][gray!30]{% + \newinst[#4]{#2}{#3} + \stepcounter{threadnum} + \node[below of=inst\theinstnum,node distance=0.8cm]% + (thread\thethreadnum) {}; + \tikzstyle{threadcolor\thethreadnum}=[fill=#1] + \tikzstyle{instcolor#2}=[fill=#1] +} + +% Zur nächsten Ebene im Sequenzdiagramm +\newcommand{\nextlevel}{\addtocounter{seqlevel}{1}} + +% Objektdiagramme +% ******************************************************************** +% Objektattribute +\ProvideDocumentCommand{\anchormark}{O{0.15 cm} m O{0.05}}{ + \tikz[overlay,remember picture,baseline=-1ex,xshift=#1] + \node[draw,fill=black,circle,scale=#3] (#2) {}; +} + +% Tikz +% ******************************************************************** +% Block Styles für Flussdiagramme +% +% Color nach Schöningh? + +\usetikzlibrary{shapes} +\usetikzlibrary{shadows.blur} +\tikzset{ + pap/.style={ + % + baustein/.style={}, + % + startstop/.style = { + rounded rectangle, draw, text centered, minimum width = 6em, + inner sep = 5pt, + top color=green!65!white, bottom color=green!25!white, baustein, + }, + % + verzweigung/.style = { + diamond, draw, text width=5.5em, text badly centered, + inner sep=0pt, + top color=orange!75!white, bottom color=orange!45!white,baustein, + }, + % + aktion/.style = {rectangle, draw, text width=5em, text centered, + top color=blue!40!white, bottom color=blue!25!white, baustein,}, + % + einausgabe/.style = {draw,trapezium,trapezium left angle=70, + top color=red!40!white, bottom color=red!25!white,%fill=white, + trapezium right angle=-70,text width=5em, text centered,baustein, + }, + % + unterprogramm/.style = {draw,rectangle split,%fill=white, + top color=magenta!35!white, bottom color=magenta!15!white,baustein, + rectangle split horizontal,rectangle split parts=3,minimum height= 2em, + every two node part/.style = {text width=5.5em, text centered,},%Hauptteil + }, + % + linie/.style = {draw, -triangle 60,ultra thick}, + % + nichts/.style = {draw}, + }, +} +% Option:Farbig prüfen? +\ifthenelse{\boolean{schule@farbig}} +{\tikzset{pap/.append style= {baustein/.style={blur shadow={shadow blur steps=5}}}}} +{\tikzset{pap/.append style= {baustein/.style={top color =white, bottom color=white}}}} +% % % % % % % % % % % TikZ Ende
\ No newline at end of file |