
Estou tentando remover uma regra da minha tabela multilinha:
\begin{table}[ht]
\centering
\begin{tabular}{@{}cl|cll@{}}
& & \multicolumn{3}{c}{\textsc{Columns}} \\
& & A & B & C \\ \cmidrule(l){3-5}
\multirow{3}{*}{\rotatebox[origin=c]{90}{\textsc{Rows}}}
& 1 & A1 & B1 & C1 \\
& 2 & A2 & B2 & C2 \\
& 3 & A3 & B3 & C3 \\
\end{tabular}
\caption{Caption}
\label{tab:my-table}
\end{table}
A saída é assim:
No entanto, não consigo remover esta pequena linha vertical desnecessária (a linha vertical à esquerda de Colunas e ABC).
Portanto, tento apenas obter uma linha vertical que capture as linhas 1, 2 e 3.
Alguma ideia? obrigado!
Responder1
Assim;
\documentclass{article}
\usepackage{booktabs, multirow}
\usepackage{graphicx}
\begin{document}
\begin{table}[ht]
\centering
\begin{tabular}{ cl|cll}
\multicolumn{2}{c}{} % remove vertical lines in this cell
& \multicolumn{3}{c}{\textsc{Columns}} \\
\multicolumn{2}{c}{} % remove vertical lines in this cell
& A & B & C \\
\cmidrule(l){3-5}
\multirow{3}{*}{\rotatebox[origin=c]{90}{\textsc{Rows}}}
& 1 & A1 & B1 & C1 \\
& 2 & A2 & B2 & C2 \\
& 3 & A3 & B3 & C3 \\
\end{tabular}
\caption{Caption}
\label{tab:my-table}
\end{table}
\end{document}