-1

enter image description here

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

i tried but, I coul'd the error.. also l like chage width

dexteritas
  • 9,161
cj456
  • 1

1 Answers1

4

There are many methods to fit a table but all together are unable to fix a very bad design of the table.

People can suggest something about the design, but this is very subjective issue, and without know the work and your read lines our opinions are mainly useless, so the table design is your work and only your work.

Nonetheless, here an approach to fit that table without changing too much content and design:

mwe

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

Fran
  • 80,769
  • Not \em, but \itshape – egreg Sep 14 '22 at 08:01
  • @egreg Zoological species names are conventionally written in italics although this is not mandatory. What is really mandatory is a different font (Appendix B6 of ICZN). In short, emphasize, but not necessarily italicize. As you perfectly know, if the text is already in italics for forme reason (text quote, caption, etc.), {\itshape Bacillus} or \textit{Bacillus} will not produce any emphasis (wrong) whereas {\em Bacillus} or \emph{Bacillus} still produce the right result (upright text in this case). Therefore, safer (and shorter). :-) – Fran Sep 14 '22 at 11:50
  • thank you , thank you – cj456 Oct 05 '22 at 07:16