表がページからはみ出しています。すべてを 1 ページに表示させるにはどうしたらよいでしょうか。
ラテックスコードを参照してください
\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 の幅の 2 倍です。
\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}