I would like to have a broken line under the first row of my table. Like this:

I hope you can help me.

Greetings & many thanks in advance!

\cmidrule
command. It can shorten a line but also putting lines just along a single column, as you seem to want.Code: Select all
\begin{table}
\caption{Overview}
\par\bigskip
\label{overview}
\rotatebox{90}{%
\centering
\begin{tabular}{p{4cm}p{4.5cm}p{4cm}p{4.2cm}p{1.8cm}lllll}
\firsthline
Name A & Name A & Name A & Name A & Name A \\
\cmidrule{1-5}
A & B & C & D & E \\
A & B & C & D & E \\
\lasthline
\end{tabular}
}
\end{table}
booktabs
.\cmidrule
into one for each column and trim them separately, if I understood you correctly.
Code: Select all
\documentclass[a4paper]{article}
\usepackage{booktabs}
\usepackage{rotating}
\begin{document}
\begin{table}
\caption{Overview}
% \par\bigskip
\label{overview}
\rotatebox{90}{%
\centering
\begin{tabular}{@{}p{4cm}p{4.5cm}p{4cm}p{4.2cm}p{1.8cm}@{}}
% \firsthline<-- what's that?
\toprule
Name A & Name A & Name A & Name A & Name A \\
\cmidrule(r){1-1}
\cmidrule(lr{3.4cm}){2-2}
\cmidrule(lr){3-3}
\cmidrule(lr){4-4}
\cmidrule(l){5-5}
A & B & C & D & E \\
A & B & C & D & E \\
% \lasthline<-- what's that?
\bottomrule
\end{tabular}%
}
\end{table}
\end{document}
Code: Select all
\begin{table}[]
\centering
\caption{My caption}
\label{my-label}
\begin{tabular}{lllllllllll}
\hline
& & \multicolumn{9}{l}{} \\ \hline
& & \multicolumn{3}{l}{} & \multicolumn{3}{l}{} & \multicolumn{3}{l}{} \\
& & & & & & & & & & \\
& & & & & & & & & & \\ \hline
\end{tabular}
\end{table}
\cmidrule
.