如何安装桌子?不要切割桌子

如何安装桌子?不要切割桌子

在此处输入图片描述

\documentclass{article}
\usepackage[utf8]{inputenc}

\begin{document}

\maketitle

\section{Introduction}
% latex table generated in R 4.2.1 by xtable 1.8-4 package
% Tue Sep 13 11:07:50 2022
\begin{table}[ht]
\centering
\begin{tabular}{rllllllllll}
  \hline
 & Host\_species & Body site & Sex & Time\_point & The\_lowest\_temperature & The\_highest\_temperature & Coast & Sample\_site & Sales\_area & water\_temperature Feb/May \\ 
  \hline
1 & Batillus\_cornutus & gut & female(25) & May(34) & 13(5) & 24(5) & the\_South\_Sea(41) & Geomundo\_Island(29) & Gangneung(17) & 12.5/20.4 \\ 
  2 &  &  & male(39) &  & 16(5) & 22(5) &  &  & Yeosu(12) & 12.5/20.4 \\ 
  3 &  &  &  &  & 18(12) & 28(6), 33(6) &  & Tongyeong\_coast(12) & Tongyeong(12) & 10/17.9 \\ 
  4 &  &  &  &  & 22(6) & 31(6) &  &  &  &  \\ 
  5 &  &  &  &  & 26(6) & 26(6) &  &  &  &  \\ 
  6 &  &  &  & Feb.(30) & -7(18) & 3(11), 5(7) & the\_East\_Sea(23) & Guryongpo(13) & Pohang(13) & 11.3/15 \\ 
  7 &  &  &  &  & -6(6) & 4(12) &  & Ulleungdo\_Island(5) & Ulleungdo\_Island(5) & ./15 \\ 
  8 &  &  &  &  & -5(6) &  &  & Dokdo(5) & Dokdo(5) & ./15 \\ 
   \hline
\end{tabular}
\end{table}

\end{document}

我试过了,但是,我可能会出错。我也喜欢改变宽度

答案1

适合表格的多种方法但所有这些都无法修复表格的糟糕设计。

人们可以对设计提出一些建议,但这是非常主观的问题,如果不知道工作和您的阅读内容,我们的意见基本上是无用的,因此表格设计是您的工作,而且只是您的工作。

尽管如此,这里有一种方法可以适应该表格,而无需改变太多的内容和设计:

姆韦

\documentclass{article}
\usepackage{tabulary,booktabs}
\usepackage{geometry}
\usepackage{textcomp}
\usepackage{wasysym}
\usepackage{multirow}

\begin{document}
\footnotesize
\begin{tabulary}{\linewidth}{@{}rLLCLcCLLLL@{}}
 \toprule
 
 & \multirow{2}{=}{Host species}
 & \multirow{2}{=}{Body site}
 &  Sex
 & \multirow{2}{=}{Time point}  
 & \multicolumn{2}{c}{Temperature (\textcelsius{})} 
 & Coast
 & \multirow{2}{=}{Sample\par site} 
 & \multirow{2}{=}{Sales\par area} 
 & \multirow{2}{=}{Water  \textcelsius{} Feb/May} \\\cmidrule{6-7} 
 &  &  &   &  & Lowest  & \mbox{Highest}  &  &  &  &  \\ 

\midrule
1 & {\em Batillus cornutus} & gut & \female\par (25) & May (34) & 13 (5) & 24 (5) & South Sea (41) & Geomundo Island (29) & Gangneung (17) & 12.5/20.4 \\ 
  2 &  &  & \male\par (39) &  & 16 (5) & 22 (5) &  &  & Yeosu (12) & 12.5/20.4 \\ 
  3 &  &  &  &  & 18 (12) & 28 (6), \par 33 (6) &  & Tongyeong coast (12) & Tongyeong (12) & 10/17.9 \\ 
  4 &  &  &  &  & 22 (6) & 31 (6) &  &  &  &  \\ 
  5 &  &  &  &  & 26 (6) & 26 (6) &  &  &  &  \\ 
  6 &  &  &  & Feb. (30) & -7 (18) & 3 (11),  \par 5 (7) & East Sea (23) & Guryongpo (13) & Pohang (13) & 11.3/15 \\ 
  7 &  &  &  &  & -6 (6) & 4 (12) &  & Ulleungdo Island (5) & Ulleungdo Island (5) & ./15 \\ 
  8 &  &  &  &  & -5 (6) &  &  & Dokdo (5) & Dokdo (5) & ./15 \\ 
\bottomrule
\end{tabulary}


\end{document}

相关内容