0

I am trying to create a table as below in latex:

enter image description here

EDIT: This table is made on MS word.

I have tried the following

\documentclass{article}
\usepackage{multirow}

\begin{document}

\begin{tabular}{|c|c|c|}
\hline
\multirow{2}{*}{Some text A} & \multirow{2}{*}{Some text B} & Some text C\\
\cline{3-3}
 & & Some text D\\
\hline
\end{tabular}

\end{document}

But finding it difficult to modify it as per my requirement.

2
  • Are you trying to reproduce the image? That's not clear to me.
    – Bernard
    Aug 8, 2022 at 19:40
  • Yes, I want to reproduce the image in Latex
    – Ranji Raj
    Aug 8, 2022 at 19:42

1 Answer 1

2

Here is a way to go:

    \documentclass{article}
    \usepackage{multirow}

    \begin{document}

    {\sffamily
    \begin{tabular}{|l|l|l|}
    \hline
    Corpus & Dataset & Accuracy \\
    \hline
    English & & \\ \cline{2-3}
     \multirow{4}{*}{}& & \\ \cline{2-3}
     & & \\ \cline{2-3}
     & & \\ \cline{2-3}
     & & \\
    \hline
    Japanese & & \\ \cline{2-3}
     \multirow{4}{*}{} & & \\ \cline{2-3}
     & & \\ \cline{2-3}
     & & \\ \cline{2-3}
     & & \\
    \hline
    \end{tabular}

    \end{document} 

enter image description here

2
  • 2
    I think there is not even the need for \multirow since the cells are emtpy anyways. Aug 8, 2022 at 20:07
  • 1
    @JasperHabicht: It's not needed if the cells are really empty, I agree with you, but I'm not sure they will remain empty in the real situation.
    – Bernard
    Aug 8, 2022 at 20:11

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .