## LaTeX forum ⇒ Graphics, Figures & Tables ⇒ Broken Line in Table

Information and discussion about graphics, figures & tables in LaTeX documents.
Wooldridge1
Posts: 20
Joined: Wed Oct 19, 2016 9:21 am

### Re: Broken Line in Table

Yes, in fact, rais!

I fail at combinding multicolumn and cmidrule.

Tags:

Johannes_B
Site Moderator
Posts: 3803
Joined: Thu Nov 01, 2012 4:08 pm
Without any dummy content, nobody will be able to help properly. I, for example, don't even understand what you are trying to achieve.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Wooldridge1
Posts: 20
Joined: Wed Oct 19, 2016 9:21 am
Hey,

It should look llike this Table.

Moreover, I want to rotate the table 90 degress and I would like to use footnotes within the table.

Best & many thanks in advance

Johannes_B
Site Moderator
Posts: 3803
Joined: Thu Nov 01, 2012 4:08 pm
I don't have the slightest clue why it is so hard for you to properly present a problem.

\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}\begin{table}	\centering	\caption{My caption}	\label{my-label}	\begin{tabular}{lllllllllll}		\toprule		&  & \multicolumn{9}{l}{Model Animal}                                               \\ 		\cmidrule{3-11}		&  & \multicolumn{3}{l}{Duck} & \multicolumn{3}{l}{Wombat} & \multicolumn{3}{l}{Capybara} \\		\cmidrule(lr){3-5}\cmidrule(lr){6-8}\cmidrule(lr){9-11}	text & text & text & text & text & text & text & text & text & text & text      \\	text & text & text & text & text & text & text & text & text & text & text      \\ \bottomrule	\end{tabular}\end{table}\end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Stefan Kottwitz
Posts: 8979
Joined: Mon Mar 10, 2008 9:44 pm
Wooldridge1, in General:

• Post text, not only screenshots - shall we type all text on our computer? Nobody can copy and paste text from a screenshot image. Though screenshots are good for quick understanding.
• Post code that you already have as a start. Your own table as example. So we don't have to type all code.

You would have got a solution days ago already. I have time to fix and to improve something, but not to start with zero.

Next time maybe?

Stefan