Graphics, Figures & Tablesthreeparttable | Resizing Tables

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
moerae
Posts: 2
Joined: Sun Mar 11, 2012 1:51 am

threeparttable | Resizing Tables

Post by moerae »

Hi,

I'm new to the community and I was wondering if anyone can help me with this. I'm using \scalebox, which works perfectly fine with normal tables, but I need to also use threeparttable environment and I can seem to get the two work together on the one table. If anyone can give me a hand that would be great.

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10350
Joined: Mon Mar 10, 2008 9:44 pm

threeparttable | Resizing Tables

Post by Stefan Kottwitz »

Hi,

welcome to the board!

It would be good if you would post your code which shows the problem. The best would be if you would hack down a copy of your document to get a compilable Infominimal working example. This way we could test it and possibly fix the problem.

Otherwise it's a quite theoretical question and just the information, that it doesn't seem to work, might be not enough yet for a reader to write a helpful answer.

Stefan
LaTeX.org admin
moerae
Posts: 2
Joined: Sun Mar 11, 2012 1:51 am

threeparttable | Resizing Tables

Post by moerae »

Here it is....

Code: Select all

\documentclass[12pt,a4paper]{book}
\usepackage{graphicx}
\usepackage{multirow}
\usepackage{pdflscape}
\usepackage{booktabs}
\usepackage[para]{threeparttable}

\begin{landscape}
\begin{table}[H]
\begin{threeparttable}[b]
	\centering
	\caption{\textbf{A list of the genes implicated in LQT syndrome including the accession number (NCBI), chromosomal location of the gene, the protein that is expressed, protein function, incidence of mutations \citep{Ackerman2005,Vohra2007} and the types of mutations found in patients \citep{Napolitano2010}.}}
	\label{tab:list-of-genes}
	\scalebox{0.65}{
		\begin{tabular}{p{1.5cm} p{3.5cm} p{2.8cm} p{3.5cm} p{3.5cm} p{5cm} p{1.5cm} p{2cm} p{3.5cm} p{3cm}}
  	\toprule 
  	LQT type & Gene name & Chromosome & Protein \& accession number & Protein function & Expression & AP phase & Incidence &  Type of mutations and effects & Phenotypes\\
        \midrule
	LQT~1 	 & \textit{KCNQ1} (NM\_000218)	 & 11p15.5 					& KvLQT1/Kv7.1 (NP\_000209) 					 & I\textsubscript{Ks} $\alpha$-subunit & Heart, pancreas, kidney, lung, inner ear, placenta, intestine, liver, skin & 2 and 3  & 30 –- 35\%  	&  Haploinsufficiency, dominant negative 							 				 & RWS (Het)\\
	  LQT~2 	 & \textit{KCNH2} (NM\_000238) 	 & 7q35 –- q36  		& HERG/Kv11.1 (NP\_000229) 						 & I\textsubscript{Kr} $\alpha$-subunit & Heart, brain, adrenal gland, thymus, lunch, muscle, intestine, liver 			 & 3				& 30 –- 35\%  	& Haploinsufficiency, dominant negative, abnormal trafficking & RWS (Het), SIDS, SQT\\
		LQT~3 	 & \textit{SCN5A} (NM\_198056) 	 & 3p21 –- p24 			& Nav1.5 (NP\_932173) 								 & I\textsubscript{Na} $\alpha$-subunit & Heart, brain, eye, blood, ovary																						 & 0				& 5 –- 10\%   	& Gain of function																						 & RWS (Het) Brugada, SIDS, IVF, AV block (hom), SCD, SSS\\
		LQT~4 	 & \textit{ANK2} (NM\_020977)  	 & 4q25 –- q27 			& Ankyrin-B (NP\_066187) 							 & Anchor protein 											& Ubiquitous																												         & 					& \textless1\% 	& Substution mutation																				 	 & TdP, IVF, SCD\\
		LQT~5 	 & \textit{KCNE1} (NM\_000219) 	 & 21q22.1 –- q22.2 & MinK (NP\_000210) 								 	 & I\textsubscript{Ks} $\beta$-subunit  & Heart, brain, spleen, kidney, lunch, intestine, eye							 					 & 2 and 3	& \textless1\% 	& Substitution, insertion and deletion mutations						& RWS (Het), JLNS (Hom), AV block\\
		LQT~6 	 & \textit{KCNE2} (NM\_172201)   & 21q22.1 					& MiRP1 (NP\_751951) 									 & I\textsubscript{Kr} $\beta$-subunit  & Heart, stomach, brain																						 					 & 3				& \textless1\% 	& Substitution, insertion and deletion mutations						& RWS (Het), SIDS, AF\\
		LQT~7 	 & \textit{KCNJ2} (NM\_000891)   & 17q23.1 –- q24.2 & Kir2.1 (NP\_000882) 				 				 & I\textsubscript{K1} 								  & Heart, kidney, brain, eye, intestine, lung																 & 3 and 4 	& Rare 					& Haploinsufficiency, dominant negative, gain of function 		& AF, ATS, SQT~3\\
		LQT~8 	 & \textit{CACNAlc} (NM\_000719) & 12p13.3 					& Cav1.2 (NP\_000710) 								 & I\textsubscript{Ca} 								  & Heart, brain, muscle, intestine, gonads, skin, stomach, lung							 & 					& Rare 					&  Haploinsufficiency, dominant negative, abnormal trafficking & Timothy syndrome, BS~3\\
		LQT~9 	 & \textit{Cav3} (NM\_033337) 	 & 3p25 						& Caveolin-3 (NP\_203123) 						 & Scaffolding protein 								  & Muscle, placenta, connective tissue, prostate															 & 					& Rare 					& Substitution mutation																				 &\\
		LQT~10 	 & \textit{SCN4B} (NM\_174934) 	 & 11q23 						& NaV$\beta$4 (NP\_777594) 						 & I\textsubscript{Na} 								  & Heart, brain, intestine, muscle, placenta, pancreas, eye, gonads					 &					& Rare 					& Substitution mutation																				 &\\
		LQT~11 	 & \textit{AKAP9} (NM\_005751)	 & 7q21 -- q22			& A-kinase anchor protein (NP\_005742) & Anchor protein												& Muscle, pancreas, heart, placenta, brain																	 &					& Rare					& Substitution mutation																				 &\\
		LQT~12	 & \textit{SNTA1} (NM\_003098)	 & 20q11.2					& Syntrophin (NP\_003089)							 & Peripheral membrane protein					& Brain																																			 &					& Rare 					& Substitution mutation																				 &\\
		\bottomrule			
		\end{tabular}}
		\begin{tablenotes}[normal,flushleft]
		RWS, Romano-Ward syndrome; JLNS, Jervell-Lange Neilson syndrome; het, heterozygote; hom, homozygote; SIDS, sudden infant death syndrome; SQT, short QT syndrome; IVF, idiopathic ventricular fibrillation; SCD, sudden cardiac death; SSS, sick sinus syndrome; TdP, Torsade de Pointes; AF, atrial fibrillation; ATS, Anderson-Tawil syndrome.
		\end{tablenotes}
		%\end{threeparttable}
\end{table}
\end{landscape}

\end{document}
Think I've got it hacked down enough. Okay, copy and paste killed the spacing of the stuff but it's all there.
Post Reply