Graphics, Figures & TablesBroken Line in Table

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

Broken Line in Table

Post by Wooldridge1 »

Yes, in fact, rais! :)

I fail at combinding multicolumn and cmidrule.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: Broken Line in Table

Post by Johannes_B »

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

Broken Line in Table

Post by Wooldridge1 »

Hey,

thank your for your reply. :-)
It should look llike this Table.

Image

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


Best & many thanks in advance
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Broken Line in Table

Post by Johannes_B »

I don't have the slightest clue why it is so hard for you to properly present a problem.

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}
\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.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Broken Line in Table

Post by Stefan Kottwitz »

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
LaTeX.org admin
Post Reply