I am struggling with a table in LaTeX, where I want to draw lines inside the table environment. My goal is something like this where lines connect values from the first to values from the second column:
I will probably have to use TikZ but I couldn't find anything similar. Best I could find actually is in this one without any progress. Is it even possible to do something like that?
Update: MWE
\documentclass[10pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{threeparttable}
\usepackage{multirow}
\begin{document}
\begin{table}
\begin{threeparttable}
\begin{tabular}{ccccc}
2018 & \multirow{2}{}1 & 5 & 10 & 15 \
2019 & \multirow{2}{}2 & 6 & 11 & 16 \
2020 & \multirow{2}{}3 & 7 & 12 & 17 \
2021 & \multirow{2}{}4 & 8 & 13 & 18 \
2022 & & 9 & 14 & 19 \
\end{tabular}
\end{threeparttable}
\end{table}
\end{document}
Thanks



tikzmark. Please post your table into a complete MWE and we''l help you out. – SebGlav Dec 25 '22 at 23:35