Hey,
ich habe folgendes Problem mit meiner Tabelle:
Ich schaffe es nicht die Texte vertikal mittig zu zentrieren, wenn in einer Zelle mehrere Zeilen entstehen, ist in der Zelle nebendran der Text unten. Dadurch steht das = 8mm nicht neben dem kleinen Quadrat, sondern unten und zudem berühren die Kreise die untere Linie.
Das Problem habe ich fast durch \vspace behoben, nur werden da die vertikalen nicht mitverlängert.
Ich habe hier die Tabelle in 2 Beispielen und wär euch wirklich dankbar, wenn ihr mir dabei weiter helfen könntet.
Vielen lieben Dank schonmal
\documentclass[twoside, 12pt, a4paper, openright]{report} \usepackage[utf8]{inputenc} \usepackage[ngerman]{babel} \usepackage[T1]{fontenc} \usepackage{amsmath} \usepackage{color} \usepackage{xcolor} \usepackage{pdfpages} \usepackage{tabularx} \usepackage{multirow} \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{compat=newest} \usetikzlibrary{arrows} \usepackage[hang]{caption} % Beschriftung für Tabelle, Abbildungen usw. \usepackage{float} \usepackage{stfloats} \usepackage{placeins} \usepackage{tabularx} \usepackage{multirow} \begin{document} \begin{table}[!htb] \centering \begin{tabular}[c]{|l|c|c|c|c|} \hline %\rule{0pt}{25pt} \textbf{Text} & \multicolumn{2}{c|}{\textbf{Text}} & \multicolumn{2}{c|}{\textbf{Text}}\\ \hline Text \textbf{(1)} & \begin{tikzpicture}[baseline=0][line width =1 pt] \fill [fill=black,draw=black] (1,1 cm) coordinate (B) --node{} (0,1) coordinate(A) -- node{} (0,0) coordinate(C) -- node{} (1,0) coordinate(D) -- node{} cycle ; \fill [fill=white,draw=black] (.5,.5) circle (.4 cm ) ; \end{tikzpicture} & = 8 mm / 10 mm & \begin{tikzpicture}[baseline=0][line width =1 pt] \fill [fill=black,draw=black] (1,1 cm) coordinate (B) --node{} (0,1) coordinate(A) -- node{} (0,0) coordinate(C) -- node{} (1,0) coordinate(D) -- node{} cycle ; \fill [fill=white,draw=black] (.5,.5) circle (.4 cm ) ; \end{tikzpicture} & = 8 mm / 10 mm \\ \hline Text \textbf{(2)} & \begin{tikzpicture}[baseline=0][line width =1 pt] \fill [fill=white,draw=black] (0,0) circle (.4 cm ) ; \end{tikzpicture} & = 8 mm & \begin{tikzpicture}[baseline=0][line width =1 pt] \fill [fill=white,draw=black] (0,0) circle (.4 cm ) ; \end{tikzpicture} & = 8 mm \\ \hline Text \textbf{(3)} & \begin{tikzpicture}[baseline=0][line width =1 pt] \fill [fill=white,draw=black] (0,0) circle (.3 cm ) ; \end{tikzpicture}
& = 6 mm & \begin{tikzpicture}[baseline=0][line width =1 pt] \fill [fill=white,draw=black] (0,0) circle (.2 cm ) ; \end{tikzpicture}
& = 4 mm \\ \hline Text \textbf{(4,5,6)} & \begin{tikzpicture}[baseline=0][line width =1 pt] \fill [fill=white,draw=black] (0,0) circle (.2 cm ) ; \end{tikzpicture}
& = 4 mm && \\ \hline \end{tabular} \end{table} \FloatBarrier \begin{table}[!htb] \centering \newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}} \newcolumntype{L}[1]{>{\raggedright\arraybackslash}p{#1}} \begin{tabular}{|L{6.5cm}|C{1.75cm}C{1.75cm}|C{1.75cm}C{1.75cm}|} \hline \textbf{Text} & \multicolumn{2}{c|}{\textbf{Text}} & \multicolumn{2}{c|}{\textbf{Text}}\\ \hline Text \textbf{(1)} & \begin{tikzpicture}[baseline=0][line width =1 pt] \fill [fill=black,draw=black] (1,1 cm) coordinate (B) --node{} (0,1) coordinate(A) -- node{} (0,0) coordinate(C) -- node{} (1,0) coordinate(D) -- node{} cycle ; \fill [fill=white,draw=black] (.5,.5) circle (.4 cm ) ; \end{tikzpicture} & = 8 mm / 10 mm & \begin{tikzpicture}[baseline=0][line width =1 pt] \fill [fill=black,draw=black] (1,1 cm) coordinate (B) --node{} (0,1) coordinate(A) -- node{} (0,0) coordinate(C) -- node{} (1,0) coordinate(D) -- node{} cycle ; \fill [fill=white,draw=black] (.5,.5) circle (.4 cm ) ; \end{tikzpicture} & = 8 mm / 10 mm \\ \hline Text \textbf{(2)} & \begin{tikzpicture}[baseline=0][line width =1 pt] \fill [fill=white,draw=black] (0,0) circle (.4 cm ) ; \end{tikzpicture} & = 8 mm & \begin{tikzpicture}[baseline=0][line width =1 pt] \fill [fill=white,draw=black] (0,0) circle (.4 cm ) ; \end{tikzpicture} & = 8 mm \\ \hline Text \textbf{(3)} & \begin{tikzpicture}[baseline=0][line width =1 pt] \fill [fill=white,draw=black] (0,0) circle (.3 cm ) ; \end{tikzpicture}
& = 6 mm & \begin{tikzpicture}[baseline=0][line width =1 pt] \fill [fill=white,draw=black] (0,0) circle (.2 cm ) ; \end{tikzpicture}
& = 4 mm \\ \hline Text \textbf{(4,5,6)} & \begin{tikzpicture}[baseline=0][line width =1 pt] \fill [fill=white,draw=black] (0,0) circle (.2 cm ) ; \end{tikzpicture}
& = 4 mm \vspace{.5cm} && \\ \hline \end{tabular} \end{table} \FloatBarrier \end{document}