como fazer a tabela caber na página

como fazer a tabela caber na página

minha mesa sai da minha página. como posso fazer com que todos apareçam em uma única página. insira a descrição da imagem aqui

por favor veja o código de látex

\begin{table}[h!]
\begin{center}
\begin{tabular}{|c|c|c|c|c|c|c|c| c|}
\hline
Measure & {NormCnts} & {LFC}  & Up/down Expressed & CPM & TPM & RPKM  & rlog & VST\\ \hline
Scale & [0-$\infty$] & [0-$\infty$]  & [0 or 1] & [0-$\infty$] & [0- $\infty$]  & & [0- $\infty$] & [0- $\infty$] \\ \hline
Type & Discrete & Discrete & Binary  & Continuous  & Continuous & & rlog & VST\\ \hline
Mean & Bimodal (highest peak) & insertValue & insertValue & insertValue & insertValue&insertValue & rlog & VST\\ \hline
Var & Heavy tailed (centered on 2500)  & insertValue & insertValue & insertValue & insertValue& insertValue& rlog & VST\\ \hline
Special & insertValue  & insertValue & insertValue &  insertValue& insertValue& corrected for gene length & Var Stabilizing & Var Stabilizing\\ \hline
\end{tabular}
\end{center}
\caption{Comparison of various transformation techniques of gene expression.}
\label{table:Y_compare}
\end{table}

Responder1

Dado que a tabela possui 9 colunas e que a quebra automática de linha é possível em apenas 5 dessas colunas, minhas principais sugestões são (a) renderizar a tabela no modo paisagem e (b) empregar um tabularxambiente em vez de um tabularambiente, com quebra de linha empregado em 5 das 9 colunas. (No código mostrado abaixo, observe que osomadas larguras relativas das colunas, 5, dessas colunas é igual ao seunúmero, 5. Observe também que outilizávela largura da coluna 2 é o dobro da das colunas 8 e 9.)

insira a descrição da imagem aqui

\documentclass{article} 
\usepackage[english]{babel} 
\usepackage[letterpaper,vmargin=2cm,hmargin=3cm,
            marginparwidth=1.75cm]{geometry}
\usepackage{pdflscape} % for 'landscape' environment
\usepackage{tabularx}  % for 'tabularx' environment and 'X' column type
\newcolumntype{C}[1]{%
  >{\centering\arraybackslash\hsize=#1\hsize}X} % centered version of 'X' col. type
\renewcommand\tabularxcolumn[1]{m{#1}} % center cell contents vertically

\begin{document}
\begin{landscape}

\begin{table}
\setlength\extrarowheight{2pt} % for a less-cramped look
\centering
\begin{tabularx}{0.9\linewidth}{|l|C{1.6}|c|C{0.9}|c|c|C{0.9}|C{0.8}|C{0.8}|}
\hline
Measure & {NormCnts} & {LFC} & Up/down Expressed & CPM & TPM & RPKM & rlog & VST \\ 
\hline
Scale & 0--$\infty$ & 0--$\infty$ & 0 or 1 & 0--$\infty$ & 0--$\infty$ & & 0--$\infty$ & 0--$\infty$ \\ 
\hline
Type & Discrete & Discrete & Binary & Continuous & Continuous & & rlog & VST \\ 
\hline
Mean & Bimodal (highest peak) & insertValue & insertValue & insertValue & insertValue & insertValue & rlog & VST \\ 
\hline
Var & Heavy tailed (centered on 2500) & insertValue & insertValue & insertValue & insertValue & insertValue & rlog & VST \\ 
\hline
Special & insertValue & insertValue & insertValue & insertValue & insertValue & corrected for gene length & Var Stabilizing & Var Stabilizing \\ 
\hline
\end{tabularx}

\caption{Comparison of various transformation techniques of gene expression.}
\label{table:Y_compare}

\end{table}

\end{landscape}
\end{document}

informação relacionada