Ich muss für meine Hausübung eine Tabelle in Latex erstellen. Ich hab schon recherchiert nur komm ich nicht ganz dahinter wie ich die am besten mache.
Ich hoffe ihr könnt mir weiterhelfen.
Genau so soll die Tabelle ausschauen:
mfg

\begin{table}[!htb]
\centering
\begin{tabular}{|c|c|c|c|}
\hline
%\multicolumn{2}{|c|}{Erste Tabelle} \\[0.5ex]
%\hline
3 Li & 4 Be & \ldots & \ldots\\
\hline
\end{tabular}
\caption{Periodensystem}
\label{tab::periodensystem}
\end{table}
\documentclass{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{tabularx}
\begin{document}
\begin{tabular}{|c|c|c|c|}
\cline{1-1}\cline{4-4}
\begin{tabular}{lr}
1&H\\
\multicolumn{2}{c}{Wasserstoff}
\end{tabular}&\multicolumn{2}{c|}{}&
\begin{tabular}{lr}
2&He\\
\multicolumn{2}{c}{Helium}
\end{tabular}\\
\hline
\begin{tabular}{lr}
3&Li\\
\multicolumn{2}{c}{Lithium}
\end{tabular}&
\begin{tabular}{lr}
4&Be\\
\multicolumn{2}{c}{Beryllium}
\end{tabular}&
\begin{tabular}{c}
\ldots\\
\ldots
\end{tabular}&\ldots\\
\hline
\vdots & \ldots & \ldots & \vdots \\
\hline
\end{tabular}
\end{document}\documentclass{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{array}
\usepackage{tabularx}
\usepackage{multirow}
\begin{document}
\begin{tabular}{|lr|lr|c|lr|}
\cline{1-2}\cline{6-7}
1&H&\multicolumn{3}{c|}{}&2&He\\
\multicolumn{2}{|c|}{Wasserstoff}&\multicolumn{3}{c|}{}&\multicolumn{2}{c|}{Helium}\\
\hline
3&Li&4&Be&\ldots&\multicolumn{2}{c|}{\multirow{2}{*}{\ldots}}\\
\multicolumn{2}{|c|}{Lithium}&\multicolumn{2}{c|}{Beryllium}&\ldots&\multicolumn{2}{c|}{}\\
\hline
\multicolumn{2}{|c|}{\vdots}&\multicolumn{2}{c|}{\ldots}&\ldots&\multicolumn{2}{c|}{\vdots}\\
\hline
\end{tabular}
\end{document}
\documentclass{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{array}
\usepackage{tabularx}
\usepackage{multirow}
\begin{document}
\begin{tabular}{|lr|lr|c|lr|}
\cline{1-2}\cline{6-7}
1&H&\multicolumn{3}{c|}{}&2&He\\
\multicolumn{2}{|c|}{Wasserstoff}&\multicolumn{3}{c|}{}&\multicolumn{2}{c|}{Helium}\\
\hline
3&Li&4&Be&\ldots&\multicolumn{2}{c|}{\multirow{2}{*}{$\cdots$}}\\
\multicolumn{2}{|c|}{Lithium}&\multicolumn{2}{c|}{Beryllium}&$\cdots$&\multicolumn{2}{c|}{}\\
\hline
\multicolumn{2}{|c|}{\vdots}&\multicolumn{2}{c|}{$\cdots$}&$\cdots$&\multicolumn{2}{c|}{\vdots}\\
\hline
\end{tabular}
\end{document}