我正在撰写我的论文,可悲的是我有一个17列表(写在下面)。我已经尝试了表格*,tabularx,我还没有在整个页面中使用它。
\begin{sidewaystable}[htp]
\begin{tabular}{l@{\hspace{4pt}}*{17}{c}}
\multicolumn{17}{ c }{Title}\\
\hline
\hline
Organism Family & UniProt (Main) & Interactor & Domains & PDB (Main) & PDB (Interactor) & Complex & IntType & SpeMain & TaxIDMain & BioRoleMain & NamInt & PUBMED (URL)\\
\hline
\multirow{2}{*}{3l6p}& 2.40.10.120 & 1\\
& 2.40.10.10 & 1\\ \hline
1l9k & 3.40.50.150 & 1\\ \hline
\multirow{4}{*}{1oanA/B}& 2.60.98.10 & 3\\
& 3.30.387.10 & 1\\
& 3.30.67.10 & 1\\
& 2.60.40.350 & 1\\ \hline
\multirow{4}{*}{1uzgA/B}& 2.60.98.10 & 3\\
& 3.30.387.10 & 1\\
& 3.30.67.10 & 1\\
& 2.60.40.350 & 1\\ \hline
3we1B & 2.60.40.350 & 2 \\ \hline
\multirow{4}{*}{4cbfA/B}& 2.60.98.10 & 4\\
& 3.30.387.10 & 1\\
& 3.30.67.10 & 1\\
& 2.60.40.350 & 1\\ \hline
4al8L/H & 2.60.40.10 & 2\\
4al8C & 2.60.40.350 & 1\\ \hline
\multirow{2}{*}{2bhrA/B} & 3.40.50.300 & 2\\
& 3.40.50.300 & 2\\ \hline
\multirow{2}{*}{2fomB} & 2.40.10.120 & 1\\
& 2.40.10.10 & 1 \\ \hline
\end{tabular}
\caption{Dengue Domains Modelled}{TThis Table shows the domains modelled for each of the selected Dengue proteins. It also includes the number of domain repetitions in each protein structure.}
\label{Sample Data}
\end{sidewaystable}
最终结果如下图所示。
可以请某人告诉我如何强制表格在页面内吗?
此外,"标题"没有出现在桌子的中心。
答案 0 :(得分:1)
我已设法通过使用以下修改来控制17列之一的长度。
\begin{sidewaystable}[htp]
\begin{tabularx}{\textwidth}{l@{\hspace{4pt}}*{17}{c}}\\
\multicolumn{17}{>{\centering\setlength\hsize{1\hsize} }X}{Title}\\
\hline
\hline
\multicolumn{1}{>{\centering\setlength\hsize{0.07\hsize} }X|}{Organism Family} & \multicolumn{1}{>{\centering\setlength\hsize{0.02\hsize} }X|}{UniProtM} & \multicolumn{1}{>{\centering\setlength\hsize{0.07\hsize} }X|}{UniProtI} & \multicolumn{1}{>{\centering\setlength\hsize{0.06\hsize} }X|}{Domains}
& \multicolumn{1}{>{\centering\setlength\hsize{0.04\hsize} }X|}{pdbM}
& \multicolumn{1}{>{\centering\setlength\hsize{0.04\hsize} }X|}{PDBI}
& \multicolumn{1}{>{\centering\setlength\hsize{0.06\hsize} }X|}{Complex}
& \multicolumn{1}{>{\centering\setlength\hsize{0.06\hsize} }X|}{IntType}
& SpeM & TaxIDM & BioRoleM & NamI & PUBMED\\
\hline
\multirow{2}{*}{3l6p}& 2.40.10.120 & 1\\
& 2.40.10.10 & 1\\ \hline
1l9k & 3.40.50.150 & 1\\ \hline
\multirow{4}{*}{1oanA/B}& 2.60.98.10 & 3\\
& 3.30.387.10 & 1\\
& 3.30.67.10 & 1\\
& 2.60.40.350 & 1\\ \hline
\multirow{4}{*}{1uzgA/B}& 2.60.98.10 & 3\\
& 3.30.387.10 & 1\\
& 3.30.67.10 & 1\\
& 2.60.40.350 & 1\\ \hline
3we1B & 2.60.40.350 & 2 \\ \hline
\multirow{4}{*}{4cbfA/B}& 2.60.98.10 & 4\\
& 3.30.387.10 & 1\\
& 3.30.67.10 & 1\\
& 2.60.40.350 & 1\\ \hline
4al8L/H & 2.60.40.10 & 2\\
4al8C & 2.60.40.350 & 1\\ \hline
\multirow{2}{*}{2bhrA/B} & 3.40.50.300 & 2\\
& 3.40.50.300 & 2\\ \hline
\multirow{2}{*}{2fomB} & 2.40.10.120 & 1\\
& 2.40.10.10 & 1 \\ \hline
\end{tabularx}
\caption{Dengue Domains Modelled}{TThis Table shows the domains modelled for each of the selected Dengue proteins. It also includes the number of domain repetitions in each protein structure.}
\label{Sample Data}
\end{sidewaystable}
我使用\multicolumn{1}{>{\centering\setlength\hsize{0.07\hsize} }X|}{Column Name}
这允许我控制其每个部分的具体大小。
我将继续研究如何控制表格中的每一个输入。
答案 1 :(得分:0)
我现在无法测试它,但我相信把你的桌子放到minpage
环境会有帮助。