alt text

Wie kann ich sowas machen?

Die Tabellen (mit S, M, L) müssen zwingend Node-Inhaltstexte sein.

Ich habe versucht an die Stellen "60" (oben) und "S" (unten) leere, aber benannte Nodes zu setzen, so das ich eine Verbindungslinie zeichnen kann. Innerhalb der Tabelle möchte er aber keine Nodes.

Open in Online-Editor
Code, hier editierbar zum Übersetzen:
\documentclass[a5paper, ]{scrartcl} %landscape
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
\usepackage{microtype}
\usepackage[left=5mm, right=5mm, top=10mm, bottom=10mm]{geometry}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\node(DTab)[align=left]{%
Überschrift DTab: \\
\begin{tabular}{c|c|cp{3cm}}
S & M & L &\\
$\times$ & 60 & 60 & GS \\
\end{tabular}
};%
\node(TTab)[align=left] at (0,-3) {%
Überschrift TTab: \\[1.25ex]
\begin{tabular}{c|c|cp{3cm}}
S & M & L & \\
60 & 120 & 120 & GS \\
\end{tabular}
};
\end{tikzpicture}
\end{document}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

gefragt 26 Dez '16, 00:55

cis's gravatar image

cis
9.5k95460491
Akzeptiert-Rate: 29%

bearbeitet 26 Dez '16, 00:56


Mit remember picture und overlay.

Open in Online-Editor
Code, hier editierbar zum Übersetzen:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usetikzlibrary{calc}
\begin{document}
\begin{tikzpicture}
\node(DTab)[align=left]{%
Überschrift DTab: \\
\begin{tabular}{c|c|cp{3cm}}
S & M & L &\\
$\times$ & \tikz[remember picture]\node[inner sep=0pt] (n-60) {60}; & 60 & GS \\
\end{tabular}
};%
\node(TTab)[align=left] at (0,-3) {%
Überschrift TTab: \\[1.25ex]
\begin{tabular}{c|c|cp{3cm}}
\tikz[remember picture]\node[inner sep=0pt] (n-S) {S}; & M & L & \\
60 & 120 & 120 & GS \\
\end{tabular}
};
\end{tikzpicture}
\begin{tikzpicture}[remember picture,overlay]
\draw[->,shorten >=.1333em, shorten <=.1333em] (n-60) |- ($(n-60)!.5!(n-S)$) -| (n-S);
\end{tikzpicture}
\end{document}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

alt text

Einfacher ist es mit TikZ matrix.

Open in Online-Editor
Code, hier editierbar zum Übersetzen:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usetikzlibrary{backgrounds,calc,matrix}
\begin{document}
\begin{tikzpicture}
\matrix[matrix of nodes,label={above:Überschrift DTab}] (DTab) {
S & M & L & \\
$\times$ & 60 & 60 & GS \\
};
\matrix[matrix of nodes,label={[fill=white]above:Überschrift TTab}] (TTab) at (0,-3) {
S & M & L & \\
60 & 120 & 120 & GS \\
};
\scoped[on background layer]
\draw[->] (DTab-2-2) |- ($(DTab-2-2)!.5!(TTab-1-1)$) -| (TTab-1-1);
\end{tikzpicture}
\end{document}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

alt text

Permanenter link

beantwortet 26 Dez '16, 14:30

Henri's gravatar image

Henri
15.7k133943
Akzeptiert-Rate: 46%

bearbeitet 26 Dez '16, 14:37

Sehr gut.........................

(26 Dez '16, 16:03) cis
Deine Antwort
[Vorschau ausblenden]

Folgen dieser Frage

Per E-Mail:

Wenn sie sich anmelden, kommen Sie für alle Updates hier in Frage

Per RSS:

Antworten

Antworten und Kommentare

Frage-Themen:

×731

gestellte Frage: 26 Dez '16, 00:55

Frage wurde gesehen: 5,460 Mal

zuletzt geändert: 26 Dez '16, 16:03