4 Tabellen in ein 2x2-Raster einfügen

4 Tabellen in ein 2x2-Raster einfügen

Ich habe unten 4 Tabellen:

\documentclass[11pt]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[table]{xcolor}
\begin{document}

 \begin{tabular}{||c c c||} 
 \hline
 Points & X(m) & t(s)\\ [0.5ex] 
 \hline\hline
 0 & 0 & 0\\ 
 \hline
 1 & 2 & 1.48 \\
 \hline
 2 & 4 & 2.76 \\
 \hline
 3 & 6 & 4.02 \\
 \hline
 4 & 8 & 5.22 \\ 
 \hline 
 5 & 10 & 6.43 \\
 \hline
 6 & 12 & 7.76 \\ 
 [1ex] 
 \hline
 \end{tabular}

 \begin{tabular}{||c c c||} 
 \hline
 Points & X(m) & t(s)\\ [0.5ex] 
 \hline\hline
 0 & 12 & 0\\  
 \hline
 1 & 10 & 1.53 \\
 \hline
 2 & 8 & 2.94\\
 \hline
 3 & 6 & 4.53 \\
 \hline
 4 & 4 & 5.96 \\ 
 \hline 
 5 & 2 & 7.36 \\
 \hline
 6 & 0 & 8.83 \\ 
 [1ex] 
 \hline
 \end{tabular}

 \begin{tabular}{||c c c||} 
 \hline
 Points & X(m) & t(s)\\ [0.5ex] 
 \hline\hline
 0 & 0 & 0\\ 
 \hline
 1 & 2 & 1.48 \\
 \hline
 2 & 4 & 2.76 \\
 \hline
 3 & 6 & 4.02 \\
 \hline
 4 & 8 & 5.22 \\ 
 \hline 
 5 & 10 & 6.43 \\
 \hline
 6 & 12 & 7.76 \\ 
 [1ex] 
 \hline
 \end{tabular}

 \begin{tabular}{||c c c||} 
 \hline
 Points & X(m) & t(s)\\ [0.5ex] 
 \hline\hline
 0 & 12 & 0\\ 
 \hline
 1 & 10 & 1.80 \\
 \hline
 2 & 8 & 3.46 \\
 \hline
 3 & 6 & 4.94 \\
 \hline
 4 & 4 & 6.49 \\ 
 \hline 
 5 & 2 & 8.20 \\
 \hline
 6 & 0 & 9.85 \\ 
 [1ex] 
 \hline
 \end{tabular}
\end{document}

Ich möchte die vier Tabellen in einem 2x2-Raster anordnen, da die Tabellen derzeit zu viel Platz einnehmen. Wie kann ich das erreichen?

Antwort1

Leere Zeilen zwischen Ihren Tabellen beginnen jede Tabelle in einer neuen Zeile. Löschen Sie sie zwischen den ersten beiden und den letzten beiden Tabellen. Zum Beispiel wie folgt:

\documentclass[11pt]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[table]{xcolor}

\begin{document}
\begin{center}
 \begin{tabular}{||c c c||}
 \hline
 Points & X(m) & t(s)\\ [0.5ex]
 \hline\hline
 0 & 0 & 0\\
 \hline
 1 & 2 & 1.48 \\
 \hline
 2 & 4 & 2.76 \\
 \hline
 3 & 6 & 4.02 \\
 \hline
 4 & 8 & 5.22 \\
 \hline
 5 & 10 & 6.43 \\
 \hline
 6 & 12 & 7.76 \\
 [1ex]
 \hline
 \end{tabular}
\hfil   %<---
 \begin{tabular}{||c c c||}
 \hline
 Points & X(m) & t(s)\\ [0.5ex]
 \hline\hline
 0 & 12 & 0\\
 \hline
 1 & 10 & 1.53 \\
 \hline
 2 & 8 & 2.94\\
 \hline
 3 & 6 & 4.53 \\
 \hline
 4 & 4 & 5.96 \\
 \hline
 5 & 2 & 7.36 \\
 \hline
 6 & 0 & 8.83 \\
 [1ex]
 \hline
 \end{tabular}

\medskip
 \begin{tabular}{||c c c||}
 \hline
 Points & X(m) & t(s)\\ [0.5ex]
 \hline\hline
 0 & 0 & 0\\
 \hline
 1 & 2 & 1.48 \\
 \hline
 2 & 4 & 2.76 \\
 \hline
 3 & 6 & 4.02 \\
 \hline
 4 & 8 & 5.22 \\
 \hline
 5 & 10 & 6.43 \\
 \hline
 6 & 12 & 7.76 \\
 [1ex]
 \hline
 \end{tabular}
\hfil   %<---
 \begin{tabular}{||c c c||}
 \hline
 Points & X(m) & t(s)\\ [0.5ex]
 \hline\hline
 0 & 12 & 0\\
 \hline
 1 & 10 & 1.80 \\
 \hline
 2 & 8 & 3.46 \\
 \hline
 3 & 6 & 4.94 \\
 \hline
 4 & 4 & 6.49 \\
 \hline
 5 & 2 & 8.20 \\
 \hline
 6 & 0 & 9.85 \\
 [1ex]
 \hline
 \end{tabular}
\end{center}
\end{document}

Bildbeschreibung hier eingeben

verwandte Informationen