Milo hat geschrieben:Ist hoffe ich habe diesesmal ein funktionierendes "Minimalbeispiel" geliefert.
Nein, leider ganz und gar nicht. Das hättest du aber ganz einfach überprüfen können, wenn du den Code ordentlich als Code eingepflegt (auch ein Merkmal eines
Minimalbeispiels) und anschließend im Online-Editor überprüft hättest. Die Umgebung dokument gibt es nicht. Außerdem fehlen Pakete.
Milo hat geschrieben:Danach sind die einzelnen Zellenbeschriftungen aus der Mitte.
\centering bringt da irgend wie nichts.
Das kommt darauf an, wo und wie man es unterbringt. Im folgenden Code sind die Zellen zentriert.
\documentclass{standalone}
\usepackage[utf8]{inputenc}
\usepackage{booktabs}
\usepackage{diagbox}
\usepackage{xcolor}
\begin{document}
%\begin {center}
\begin{tabular}{>{\centering\arraybackslash}p{3cm}*{11}{>{\centering\arraybackslash}m{1cm}}}
\toprule
\diagbox{\textbf{Zähler}}{\textbf{Nenner}} & $ \textbf{1} $ & $ \textbf{\color{red}{-1}} $ & $\textbf{2} $ & $ \textbf{\color{red}{-2}} $ & $ \textbf{3} $ & $ \textbf{\color{red}{-3}} $ & $ \textbf{4} $ & $ \textbf{\color{red}{-4}} $ & $ \textbf{5} $ & $ \textbf{n-1} $ & $ \textbf{n+1} $ \\
\midrule
$\textbf{0} $ & $ a_{11} $ & \color{red} $ a_{12} $ & $ a_{13} $ & \color{red} $ a_{14} $ & $ a_{15} $ & \color{red} $ a_{16} $ & $ a_{17} $ & \color{red} $ a_{18} $ & $ a_{19} $ & \dots & \dots \\
\midrule
$\textbf{1} $ & $ a_{21} $ \par $\bullet$ & \color{red} $ a_{22} $ & $ a_{23} $ \par $\bullet$ & \color{red} $ a_{24} $ & $ a_{25} $ \par $\bullet$ & \color{red} $ a_{26} $ & $ a_{27} $ \par $ \bullet $ & \color{red} $ a_{28} $ & $ a_{29} $ \par $\bullet $ & \dots & \dots \\
\midrule
$ \textbf{\color{red}{-1}} $ & \color{red} $ a_{31} $ & \color{green} $ a_{32} $ & \color{red} $ a_{33} $ & \color{green} $ a_{34} $ & \color{red} $ a_{35} $ & \color{green} $ a_{36} $ & \color{red} $ a_{37} $ & \color{green} $ a_{38} $ & \dots & \dots & \dots \\
\midrule
$ \textbf{2} $ & $ a_{41} $ \par $\bullet$ & \color{red} $ a_{42} $ & \color{green} $ a_{43} $ \par \color{black} $ \bullet $ &\color{red} $ a_{44} $ & $ a_{45} $ \par $\bullet $ & \color{red} $ a_{46} $ &\color{green} $ a_{47} $ \color{black} \par $ \bullet $ & \dots & \dots & \dots & \dots \\
\midrule
$ \textbf{\color{red}{-2}} $ & \color{red} $ a_{51} $ & \color{green} $a_{52} $ & \color{red} $ a_{53} $ & \color{green} $ a_{54} $ & \color{red} $ a_{55} $ & \color{green} $ a_{56} $ & \dots & \dots & \dots & \dots & \dots \\
\midrule
$ \textbf{3} $ & $a_{61} $ \par $ \bullet $ &\color{red} $ a_{62} $ & $ a_{63} $ \par $ \bullet $ & \color{red} $ a_{64} $ & \color{green} $ a_{65} $ \color{black} \par $ \bullet $ & \dots & \dots & \dots & \dots & \dots & \dots \\
\midrule
$ \textbf{\color{red}{-3}} $ & \color{red} $ a_{71} $ & \color{green} $ a_{72} $ & \color{red} $ a_{73} $ & \color{green} $ a_{74} $ & \dots & \dots & \dots & \dots & \dots & \dots & \dots \\
\midrule
$ \textbf{4} $ & $ a_{81} $ \par $ \bullet $ & \color{red} $ a_{82} $ & \color{green} $ a_{83} $ \par \color{black} $ \bullet $ & \dots & \dots & \dots & \dots & \dots & \dots & \dots & \dots \\
\midrule
$ \textbf{\color{red}{-4}} $ & \color{red} $ a_{91} $ \par \color{black} $ \bullet $ &\color{green} $a_{92} $ & \dots & \dots & \dots & \dots & \dots & \dots & \dots & \dots & \dots \\
\midrule
$ \textbf{5} $ & $ a_{01} $ & \dots & \dots & \dots & \dots & \dots & \dots & \dots & \dots & \dots & \dots \\ \midrule
$ \textbf{n-1} $ & \dots & \dots & \dots & \dots & \dots & \dots & \dots & \dots & \dots & \dots & \dots \\
%\midrule
\bottomrule
\end{tabular}
%\end{center}
\end{document}
Milo hat geschrieben:mit dem \par code sind nun plötzlich alle Angaben horizontal wie vertikal aus der Mitte der jeweiligen Zelle.
Ich habe die Spaltendefinition zu m geändert, um die vertikale Ausrichtung zu erreichen.
Milo hat geschrieben:Wenn ich den code sehe wird mir ganz anders wenn ich daran denke, dass da noch eine Pfeilführung durch die Tabelle muss.
Gibt es da keine Möglichkeit eine der a_00 zahlen als Startkoordinate und eine ander als Zielkoordinate festzulegen?
Neben der Umsetzung mit tikZ kenne ich keine weitere Möglichkeit. Die matrix- und Tabellenstruktur sind nicht so verschieden. Das gegebene Beispiel zeigt, dass es sich lohnen kann.
[quote="Milo"]Ist hoffe ich habe diesesmal ein funktionierendes "Minimalbeispiel" geliefert.[/quote] Nein, leider ganz und gar nicht. Das hättest du aber ganz einfach überprüfen können, wenn du den Code ordentlich als Code eingepflegt (auch ein Merkmal eines [m][/m]s) und anschließend im Online-Editor überprüft hättest. Die Umgebung [tt]dokument[/tt] gibt es nicht. Außerdem fehlen Pakete.
[quote="Milo"]Danach sind die einzelnen Zellenbeschriftungen aus der Mitte.
\centering bringt da irgend wie nichts.[/quote] Das kommt darauf an, wo und wie man es unterbringt. Im folgenden Code sind die Zellen zentriert.
[code]\documentclass{standalone}
\usepackage[utf8]{inputenc}
\usepackage{booktabs}
\usepackage{diagbox}
\usepackage{xcolor}
\begin{document}
%\begin {center}
\begin{tabular}{>{\centering\arraybackslash}p{3cm}*{11}{>{\centering\arraybackslash}m{1cm}}}
\toprule
\diagbox{\textbf{Zähler}}{\textbf{Nenner}} & $ \textbf{1} $ & $ \textbf{\color{red}{-1}} $ & $\textbf{2} $ & $ \textbf{\color{red}{-2}} $ & $ \textbf{3} $ & $ \textbf{\color{red}{-3}} $ & $ \textbf{4} $ & $ \textbf{\color{red}{-4}} $ & $ \textbf{5} $ & $ \textbf{n-1} $ & $ \textbf{n+1} $ \\
\midrule
$\textbf{0} $ & $ a_{11} $ & \color{red} $ a_{12} $ & $ a_{13} $ & \color{red} $ a_{14} $ & $ a_{15} $ & \color{red} $ a_{16} $ & $ a_{17} $ & \color{red} $ a_{18} $ & $ a_{19} $ & \dots & \dots \\
\midrule
$\textbf{1} $ & $ a_{21} $ \par $\bullet$ & \color{red} $ a_{22} $ & $ a_{23} $ \par $\bullet$ & \color{red} $ a_{24} $ & $ a_{25} $ \par $\bullet$ & \color{red} $ a_{26} $ & $ a_{27} $ \par $ \bullet $ & \color{red} $ a_{28} $ & $ a_{29} $ \par $\bullet $ & \dots & \dots \\
\midrule
$ \textbf{\color{red}{-1}} $ & \color{red} $ a_{31} $ & \color{green} $ a_{32} $ & \color{red} $ a_{33} $ & \color{green} $ a_{34} $ & \color{red} $ a_{35} $ & \color{green} $ a_{36} $ & \color{red} $ a_{37} $ & \color{green} $ a_{38} $ & \dots & \dots & \dots \\
\midrule
$ \textbf{2} $ & $ a_{41} $ \par $\bullet$ & \color{red} $ a_{42} $ & \color{green} $ a_{43} $ \par \color{black} $ \bullet $ &\color{red} $ a_{44} $ & $ a_{45} $ \par $\bullet $ & \color{red} $ a_{46} $ &\color{green} $ a_{47} $ \color{black} \par $ \bullet $ & \dots & \dots & \dots & \dots \\
\midrule
$ \textbf{\color{red}{-2}} $ & \color{red} $ a_{51} $ & \color{green} $a_{52} $ & \color{red} $ a_{53} $ & \color{green} $ a_{54} $ & \color{red} $ a_{55} $ & \color{green} $ a_{56} $ & \dots & \dots & \dots & \dots & \dots \\
\midrule
$ \textbf{3} $ & $a_{61} $ \par $ \bullet $ &\color{red} $ a_{62} $ & $ a_{63} $ \par $ \bullet $ & \color{red} $ a_{64} $ & \color{green} $ a_{65} $ \color{black} \par $ \bullet $ & \dots & \dots & \dots & \dots & \dots & \dots \\
\midrule
$ \textbf{\color{red}{-3}} $ & \color{red} $ a_{71} $ & \color{green} $ a_{72} $ & \color{red} $ a_{73} $ & \color{green} $ a_{74} $ & \dots & \dots & \dots & \dots & \dots & \dots & \dots \\
\midrule
$ \textbf{4} $ & $ a_{81} $ \par $ \bullet $ & \color{red} $ a_{82} $ & \color{green} $ a_{83} $ \par \color{black} $ \bullet $ & \dots & \dots & \dots & \dots & \dots & \dots & \dots & \dots \\
\midrule
$ \textbf{\color{red}{-4}} $ & \color{red} $ a_{91} $ \par \color{black} $ \bullet $ &\color{green} $a_{92} $ & \dots & \dots & \dots & \dots & \dots & \dots & \dots & \dots & \dots \\
\midrule
$ \textbf{5} $ & $ a_{01} $ & \dots & \dots & \dots & \dots & \dots & \dots & \dots & \dots & \dots & \dots \\ \midrule
$ \textbf{n-1} $ & \dots & \dots & \dots & \dots & \dots & \dots & \dots & \dots & \dots & \dots & \dots \\
%\midrule
\bottomrule
\end{tabular}
%\end{center}
\end{document}[/code]
[quote="Milo"]mit dem \par code sind nun plötzlich alle Angaben horizontal wie vertikal aus der Mitte der jeweiligen Zelle.[/quote] Ich habe die Spaltendefinition zu [tt]m[/tt] geändert, um die vertikale Ausrichtung zu erreichen.
[quote="Milo"]Wenn ich den code sehe wird mir ganz anders wenn ich daran denke, dass da noch eine Pfeilführung durch die Tabelle muss.
Gibt es da keine Möglichkeit eine der a_00 zahlen als Startkoordinate und eine ander als Zielkoordinate festzulegen? [/quote] Neben der Umsetzung mit tikZ kenne ich keine weitere Möglichkeit. Die [tt]matrix[/tt]- und Tabellenstruktur sind nicht so verschieden. Das gegebene Beispiel zeigt, dass es sich lohnen kann.