테이블에 맞는 페이지를 만드는 방법

테이블에 맞는 페이지를 만드는 방법

내 테이블이 내 페이지에서 훨씬 벗어났습니다. 어떻게 하면 한 페이지에 모두 표시할 수 있나요? 여기에 이미지 설명을 입력하세요

라텍스 코드 좀 봐주세요

\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}

답변1

테이블에 9개의 열이 있고 이 열 중 5개에서만 자동 줄 바꿈이 가능하다는 점을 감안할 때 제가 제안하는 주요 제안은 (a) 테이블을 가로 모드로 렌더링하고 (b) 환경 tabularx대신 tabular줄 바꿈 을 사용하는 환경을 사용하는 것입니다. 9개 열 중 5개 열에 사용되었습니다. (아래 표시된 코드에서합집합이 열의 상대 열 너비 중 5는 해당 열과 같습니다.숫자, 5. 또한쓸 수 있는2열의 너비는 8열과 9열의 너비의 두 배입니다.)

여기에 이미지 설명을 입력하세요

\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}

관련 정보