## 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: 3854
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: 3854
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.

1. \documentclass[a4paper]{article}
2. \usepackage{booktabs}
3. \usepackage{rotating}
4. \begin{document}
5. \begin{table}
6. \caption{Overview}
7. % \par\bigskip
8. \label{overview}
9. \rotatebox{90}{%
10. \centering
11. \begin{tabular}{@{}p{4cm}p{4.5cm}p{4cm}p{4.2cm}p{1.8cm}@{}}
12. % \firsthline<-- what's that?
13. \toprule
14. Name A & Name A & Name A & Name A & Name A \\
15. \cmidrule(r){1-1}
16. \cmidrule(lr{3.4cm}){2-2}
17. \cmidrule(lr){3-3}
18. \cmidrule(lr){4-4}
19. \cmidrule(l){5-5}
20. A & B & C & D & E \\
21. A & B & C & D & E \\
22. % \lasthline<-- what's that?
23. \bottomrule
24. \end{tabular}%
25. }
26. \end{table}
27. \begin{table}
28. \centering
29. \caption{My caption}
30. \label{my-label}
31. \begin{tabular}{lllllllllll}
32. \toprule
33. & & \multicolumn{9}{l}{Model Animal} \\
34. \cmidrule{3-11}
35. & & \multicolumn{3}{l}{Duck} & \multicolumn{3}{l}{Wombat} & \multicolumn{3}{l}{Capybara} \\
36. \cmidrule(lr){3-5}\cmidrule(lr){6-8}\cmidrule(lr){9-11}
37. text & text & text & text & text & text & text & text & text & text & text \\
38. text & text & text & text & text & text & text & text & text & text & text \\ \bottomrule
39. \end{tabular}
40. \end{table}
41. \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: 9103
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