I want to create a table like the following one.
But the second column of third row is overflowing the next one. How can I fix it? Here is the code.
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tabularx}
\usepackage{array}
\usepackage{multirow}
\title{Table}
\date{June 2018}
\begin{document}
\maketitle
\begin{table}[h]
\small
\begin{tabularx}{\linewidth}{|X|p{5cm}|X|}
\hline
One-step DA Approaches & Brief Description & Categories \\
\hline
\multirow{5}{\linewidth}{Discrepancy based} & \multirow{5}{\linewidth}{ Fine tunes the deep network with labeled or unlabeled target data to reduce domain shift} & class criterion \cite{zhang2015deep} \\ \cline{3-3}
& & Statistic criterion \cite{sun2016deep} \\ \cline{3-3}
& & architecture criterion \cite{rebuffi2017learning} \\ \cline{3-3}
& & Geometric criterion \cite{chopra2013dlid} \\
\hline
\multirow{5}{\linewidth}{Discrepancy based} & \multirow{5}{\linewidth}{ F or unlabeled target data target data target data target data target data to reduce domain shift \newline \newline \hfill} & class criterion \cite{zhang2015deep} \\ \cline{3-3}
& & Statistic criterion \cite{sun2016deep} \\
\hline
\multirow{5}{\linewidth}{Discrepancy based} & \multirow{5}{\linewidth}{ F or unlabeled target data target data target data target data target data to reduce domain shift \newline \newline \hfill} & class criterion \cite{zhang2015deep} \\ \cline{3-3}
& & Statistic criterion \cite{sun2016deep} \\
\hline
\end{tabularx}
\end{table}
\end{document}
Best Answer
The number of rows in horizontal multi-row cells should be equal. So, you need to look at the number of rows in the tallest cell and adjust all adjacent cells accordingly.