2

Why when I using using multirow and multicolumn, my horizontal line does not appear? This is my MWE:

\documentclass[parskip]{scrartcl}
\usepackage[margin=15mm]{geometry}

\usepackage{multirow}
\begin{document}
\begin{table}
\begin{tabular}{c|c|c|c|c|c|c}
\multirow{2}{*}{Iterasi} & \multicolumn{3}{c}{ Ketinggian rata-rata (\%)}& \multicolumn{3}{c}{Luas Sebaran (\%)} \\ 
\cline{2-6}
\end{tabular}
\caption{Test}
\label{tabel  stiffness}
\end{table}
\end{document}
1

When using \multicolumn you cannot stop a \cline at a column that is 'inside' of the \multicolumn, so changing \cline{2-6} to be \cline{2-7} in your code works.

Also, if you want to use \multirow, you actually need to include another row, otherwise you won't get "Iterasi" to be in two rows.

\documentclass[parskip]{scrartcl}
\usepackage[margin=15mm]{geometry}

\usepackage{multirow}
\begin{document}
\begin{table}
\begin{tabular}{c|c|c|c|c|c|c}
\multirow{2}{*}{Iterasi} & \multicolumn{3}{c}{Ketinggian rata-rata (\%)}& \multicolumn{3}{c}{Luas Sebaran (\%)} \\ \cline{2-7}
\\
\end{tabular}
\caption{Test}
\label{tabel  stiffness}
\end{table}
\end{document}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.