kryptoprojekt/spioncamp/transposition-skytale-mat0.tex

214 lines
5.2 KiB
TeX

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\pagestyle{empty}
\usepackage{pgfmath}
\topmargin 70pt
\setlength{\oddsidemargin}{-63pt}
\begin{document}
\def\mdicke{4}
\begin{picture}(10,550)
\begin{tikzpicture}
\foreach \x/\ch/\y in {
0/H/,
1/A/,
2/L/,
3/L/,
4/O/,
5/~/,
6/G/ ,
7/E/,
8/H/ ,
9/E/ ,
10/I/,
11/M/,
12/N/,
13/I/,
14/S/}
{
\pgfmathtruncatemacro\y{\x/\mdicke} %\y = Rundenzahl
\pgfmathtruncatemacro\z{mod(\x,\mdicke)} %Position in Runde
\pgfmathtruncatemacro\w{(\z*\mdicke)+\y} %Rundennummer + Stelle in Runde = \w
\draw (-12, -\w*1.78) node{\begin{Huge} \ch \end{Huge}};%passt groß
\draw (-11, -\w*1.12) node{\begin{Huge} \ch \end{Huge}};%passt mittel
\draw (-10, -\w*.85) node{\begin{Huge} \ch \end{Huge}}; %passt klein
}
\foreach \x/\ch/\y in {
0/W/,
1/E/,
2/R/,
3/~/,
4/K/,
5/E/,
6/N/ ,
7/N/,
8/T/ ,
9/~/ ,
10/M/,
11/I/,
12/C/,
13/H/,
14/?/}
{
\pgfmathtruncatemacro\y{\x/\mdicke} %\y = Rundenzahl
\pgfmathtruncatemacro\z{mod(\x,\mdicke)} %Position in Runde
\pgfmathtruncatemacro\w{(\z*\mdicke)+\y} %Rundennummer + Stelle in Runde = \w
\draw (-9, -\w*1.78) node{\begin{Huge} \ch \end{Huge}};%passt groß
\draw (-8, -\w*1.12) node{\begin{Huge} \ch \end{Huge}};%passt mittel
\draw (-7, -\w*.85) node{\begin{Huge} \ch \end{Huge}}; %passt klein
}
\foreach \x/\ch/\y in {
0/F/,
1/U/,
2/S/,
3/C/,
4/H/,
5/Z/,
6/E/ ,
7/T/,
8/T/ ,
9/E/ ,
10/L/,
11/C/,
12/H/,
13/E/,
14/N/}
{
\pgfmathtruncatemacro\y{\x/\mdicke} %\y = Rundenzahl
\pgfmathtruncatemacro\z{mod(\x,\mdicke)} %Position in Runde
\pgfmathtruncatemacro\w{(\z*\mdicke)+\y} %Rundennummer + Stelle in Runde = \w
\draw (-6, -\w*1.78) node{\begin{Huge} \ch \end{Huge}};%passt groß 1.78= 2pi* r /4 incl. Papierdicke
\draw (-5, -\w*1.12) node{\begin{Huge} \ch \end{Huge}};%passt mittel
\draw (-4, -\w*.85) node{\begin{Huge} \ch \end{Huge}}; %passt klein
}
\foreach \x/\ch/\y in {
0/S/,
1/O/,
2/~/,
3/I/,
4/S/,
5/T/,
6/S/ ,
7/~/,
8/R/ ,
9/I/ ,
10/C/,
11/H/,
12/T/,
13/I/,
14/G/}
{
\pgfmathtruncatemacro\y{\x/\mdicke} %\y = Rundenzahl
\pgfmathtruncatemacro\z{mod(\x,\mdicke)} %Position in Runde
\pgfmathtruncatemacro\w{(\z*\mdicke)+\y} %Rundennummer + Stelle in Runde = \w
\draw (-3, -\w*1.78) node{\begin{Huge} \ch \end{Huge}};%passt groß
\draw (-2, -\w*1.12) node{\begin{Huge} \ch \end{Huge}};%passt mittel
\draw (-1, -\w*.85) node{\begin{Huge} \ch \end{Huge}}; %passt klein
}
\foreach \x/\ch/\y in {
0/H/,
1/E/,
2/R/,
3/R/,
4/~/,
5/D/,
6/E/ ,
7/R/,
8/~/ ,
9/R/ ,
10/I/,
11/N/,
12/G/,
13/E/,
14/~/}
{
\pgfmathtruncatemacro\y{\x/\mdicke} %\y = Rundenzahl
\pgfmathtruncatemacro\z{mod(\x,\mdicke)} %Position in Runde
\pgfmathtruncatemacro\w{(\z*\mdicke)+\y} %Rundennummer + Stelle in Runde = \w
\draw (0, -\w*1.78) node{\begin{Huge} \ch \end{Huge}};%passt groß
\draw (1, -\w*1.12) node{\begin{Huge} \ch \end{Huge}};%passt mittel
\draw (2, -\w*.85) node{\begin{Huge} \ch \end{Huge}}; %passt klein
}
\foreach \x/\ch/\y in {
0/I/,
1/N/,
2/D/,
3/I/,
4/A/,
5/N/,
6/E/ ,
7/R/,
8/~/ ,
9/J/ ,
10/O/,
11/N/,
12/E/,
13/S/,
14/~/}
{
\pgfmathtruncatemacro\y{\x/\mdicke} %\y = Rundenzahl
\pgfmathtruncatemacro\z{mod(\x,\mdicke)} %Position in Runde
\pgfmathtruncatemacro\w{(\z*\mdicke)+\y} %Rundennummer + Stelle in Runde = \w
\draw (3, -\w*1.78) node{\begin{Huge} \ch \end{Huge}};%passt groß
\draw (4, -\w*1.12) node{\begin{Huge} \ch \end{Huge}};%passt mittel
\draw (5, -\w*.85) node{\begin{Huge} \ch \end{Huge}}; %passt klein
}
\end{tikzpicture}
\end{picture}
\end{document}