4

I want to have a multirow in front of a table, but always get horizontal lines over all columns.

MWE:

\documentclass{scrartcl}
\usepackage{longtable}
\usepackage{multirow}

\begin{document}
    \begin{longtable}{ | p{5cm} | p{5cm} | p{5cm} | }
        \hline
        \multirow{3}{*}{Multirow} & singlerow-1 & singelow-2\\
        \hline
        & singlerow-1 & singelow-2 \\
        \hline
        & singlerow-1 & singelow-2 \\
        \hline
    \end{longtable}
\end{document}

Outcome:

outcome

How can the lines in the first coloumn be removed?

1 Answer 1

7

You can do this by

\documentclass{scrartcl}
\usepackage{longtable}
\usepackage{multirow}

\begin{document}
    \begin{longtable}{| p{5cm} | p{5cm} | p{5cm} | }
        \hline
        \multirow{3}{*}{Multi row} & Single row-1 & Single row-2 \\ \cline{2-3} 
        & Single row-1 & Single row-2 \\ \cline{2-3} 
        & Single row-1 & Single row-2 \\ \hline
    \end{longtable}
\end{document}

To get: enter image description here

1

You must log in to answer this question.

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