需要帮助缩小横向表格

需要帮助缩小横向表格

距离我上次使用 LaTex 制作文档已经有一段时间了。现在我正在尝试帮助我的妻子制作博士论文。我遇到了一个相当大的表格的问题。我从未使用过旋转表格,发现侧向表格环境对我有用。但内容仍然太大,无法放在页面上,我担心她不允许我将表格拆分到多个页面上。

输出如下:

输出

生成表的代码如下:

    \begin{sidewaystable}

\miniscule

\rowcolors{1}{gray!25}{white}
\begin{tabular} {llllll}



\toprule
\rowcolor{gray!50}

\textbf{Combination sand fly - Leishmania}   & \textbf{Infective dose for sand flies}   &\textbf{Used method}   & \parbox{3.5cm}{ \textbf{Size of total prefeeding load}\\
(promastigotes/midgut)}
   &\textbf{No. Promastigotes transmitted
per fly}
   &\textbf{\% of transmitting flies}   \\
\midrule

\parbox{4cm}{\emph{P. papatasi - L. Major}\\ \textbf{\citep{War86}}} & $2\times10^6$ promastigotes/ml & \parbox{2cm}{{forced feeding by microcapillaries}} & unknown & \parbox{3cm}{range 0--1000 \\ 80\% females 1--100 \\ 20\% females 100--1000 \\ 5\% more than 1000 } &   11.4--35\%\\

\addlinespace


\parbox{4cm}{\emph{L. longipalpis - L. mexicana}\\ \textbf{\citep{Rog04}}} & $2\times10^6$ amastigotes/ml & \parbox{2cm}{{artificial feeding through membrane}} & unknown & \parbox{3cm}{1086* \\ (86-96\%  metacyclic promastigotes) } &   unknown\\

\addlinespace
\parbox{4cm}{\emph{L. longipalpis - L. infantum}\\ \textbf{\citep{Rog10}}} & $2\times10^6$ amastigotes/ml & \parbox{2cm}{{artificial feeding through membrane}} & \parbox{3cm}{$1.06\times10^4 \pm 2.1\times10^4$ \\(35\% metacyclic promastigotes)} & \parbox{3cm}{$457\pm122*$ \\ (95\%  metacyclic promastigotes) } &   unknown\\

\addlinespace
\parbox{4cm}{\emph{P. duboscqi - L. major}\\ \textbf{\citep{Kim08}}} & $4\times10^6$ amastigotes/ml & \parbox{2cm}{{natural feeding on mouse ears}} & $1\times10^4 – 1\times10^5$ & \parbox{3cm}{range 0--100000 \\ 75\% females 600 and less \\ 25\% females more than 1000 } &   19.26\%\\

\addlinespace
\parbox{4cm}{\emph{L. longipalpis - L. infantum chagasi}\\ \textbf{\citep{Sec12}}} & $4\times10^6$ promastigotes/ml & \parbox{2cm}{{natural feeding on mouse ears}} & $1\times10^4$ & \parbox{3cm}{1002 \\ range 10--10000 \\ 75\% less than 300 } &   unknown\\

\addlinespace
\parbox{4cm}{\emph{L. longipalpis - L. infantum dermotropic }\\ \textbf{\citep{Mai11}}} & $1\times10^7$ promastigotes/ml & \parbox{2cm}{{natural feeding on whole mouse}} & $8\times10^4$ & \parbox{3cm}{1127/13** \\ range 10--11100 } &   58\%\\

\addlinespace
\parbox{4cm}{\emph{L. longipalpis - L. infantum viscerotropic }\\ \textbf{\citep{Mai11}}} & $1\times10^7$ promastigotes/ml & \parbox{2cm}{{natural feeding on whole mouse}} & $1.5\times10^5$ & \parbox{3cm}{104*/24**\\ range 0--1250} &   14.5\%\\

\addlinespace
\parbox{4cm}{\emph{L. perniciosus   - L. infantum dermotropic }\\ \textbf{\citep{Mai11}}} & $1\times10^7$ promastigotes/ml & \parbox{2cm}{{natural feeding on whole mouse}} & $5\times10^5$ & \parbox{3cm}{2350*/29**\\ range 0--42000} &   65\%\\

\addlinespace
\parbox{4cm}{\emph{L. perniciosus - L. infantum viscerotropic }\\ \textbf{\citep{Mai11}}} & $1\times10^7$ promastigotes/ml & \parbox{2cm}{{natural feeding on whole mouse}} & $6.6\times10^4$ & \parbox{3cm}{88*/28** \\ range 0--500} &   33\%\\


\bottomrule
\end{tabular}
\medskip
\tiny

  $^*$ an average dose of transmitted parasites per sand fly \\
  $^{**}$ median of transmitted parasites per sand fly


\caption[table caption]{Table description}\label{rotfloat2}




 \end{sidewaystable}

附注:我正在使用memoir类。我在给行着色时也遇到了问题。最明显的是标题包含白色边距。

非常感谢任何有关调整表格的建议或帮助。

答案1

一个简单的解决方案是使用p{1.5cm}而不是l来表示最后一列,并将标题从 改为% of transmitting fliestransmitting flies (%)据我在这里测试,这会使表格足够小,适合一页,并且只会以很小的方式改变表格的外观。

为了去除顶部规则和中间规则的难看的白色空间(底部规则也有,但在白色背景上看不到它),您可以使用specialrule

例如,\toprule变成\specialrule{1pt}{0pt}{0pt}\midrule变成\specialrule{0.5pt}{0pt}{0pt}

请注意,第一个参数指定线条的粗细,第二个和第三个参数指定线条周围没有空格。请注意,这可能会导致单元格中的文本“接触”线条的问题,但您可以通过增加单元格内的空间来消除这种情况。

代码如下:

\begin{sidewaystable}

\miniscule

\rowcolors{1}{gray!25}{white}
\begin{tabular} {lllllp{1.5cm}}
\specialrule{1pt}{0pt}{0pt}
\rowcolor{gray!50}

\textbf{Combination sand fly - Leishmania}   & \textbf{Infective dose for sand flies}   &\textbf{Used method}   & \parbox{3.5cm}{ \textbf{Size of total prefeeding load}\\
(promastigotes/midgut)}
   &\textbf{No. Promastigotes transmitted
per fly}
   &\textbf{transmitting flies (\%)} \\
\specialrule{0.5pt}{0pt}{0pt}

\parbox{4cm}{\emph{P. papatasi - L. Major}\\ \textbf{\citep{War86}}} & $2\times10^6$ promastigotes/ml & \parbox{2cm}{{forced feeding by microcapillaries}} & unknown & \parbox{3cm}{range 0--1000 \\ 80\% females 1--100 \\ 20\% females 100--1000 \\ 5\% more than 1000 } &   11.4--35\%   \addlinespace


\parbox{4cm}{\emph{L. longipalpis - L. mexicana}\\ \textbf{\citep{Rog04}}} & $2\times10^6$ amastigotes/ml & \parbox{2cm}{{artificial feeding through membrane}} & unknown & \parbox{3cm}{1086* \\ (86-96\%  metacyclic promastigotes) } &   unknown \addlinespace
\parbox{4cm}{\emph{L. longipalpis - L. infantum}\\ \textbf{\citep{Rog10}}} & $2\times10^6$ amastigotes/ml & \parbox{2cm}{{artificial feeding through membrane}} & \parbox{3cm}{$1.06\times10^4 \pm 2.1\times10^4$ \\(35\% metacyclic promastigotes)} & \parbox{3cm}{$457\pm122*$ \\ (95\%  metacyclic promastigotes) } &   unknown  \addlinespace
\parbox{4cm}{\emph{P. duboscqi - L. major}\\ \textbf{\citep{Kim08}}} & $4\times10^6$ amastigotes/ml & \parbox{2cm}{{natural feeding on mouse ears}} & $1\times10^4 – 1\times10^5$ & \parbox{3cm}{range 0--100000 \\ 75\% females 600 and less \\ 25\% females more than 1000 } &   19.26\%  \addlinespace
\parbox{4cm}{\emph{L. longipalpis - L. infantum chagasi}\\ \textbf{\citep{Sec12}}} & $4\times10^6$ promastigotes/ml & \parbox{2cm}{{natural feeding on mouse ears}} & $1\times10^4$ & \parbox{3cm}{1002 \\ range 10--10000 \\ 75\% less than 300 } &   unknown  \addlinespace
\parbox{4cm}{\emph{L. longipalpis - L. infantum dermotropic }\\ \textbf{\citep{Mai11}}} & $1\times10^7$ promastigotes/ml & \parbox{2cm}{{natural feeding on whole mouse}} & $8\times10^4$ & \parbox{3cm}{1127/13** \\ range 10--11100 } &   58\%    \addlinespace
\parbox{4cm}{\emph{L. longipalpis - L. infantum viscerotropic }\\ \textbf{\citep{Mai11}}} & $1\times10^7$ promastigotes/ml & \parbox{2cm}{{natural feeding on whole mouse}} & $1.5\times10^5$ & \parbox{3cm}{104*/24**\\ range 0--1250} &   14.5\%  \addlinespace
\parbox{4cm}{\emph{L. perniciosus   - L. infantum dermotropic }\\ \textbf{\citep{Mai11}}} & $1\times10^7$ promastigotes/ml & \parbox{2cm}{{natural feeding on whole mouse}} & $5\times10^5$ & \parbox{3cm}{2350*/29**\\ range 0--42000} &   65\%    \addlinespace
\parbox{4cm}{\emph{L. perniciosus - L. infantum viscerotropic }\\ \textbf{\citep{Mai11}}} & $1\times10^7$ promastigotes/ml & \parbox{2cm}{{natural feeding on whole mouse}} & $6.6\times10^4$ & \parbox{3cm}{88*/28** \\ range 0--500} &   33\%
\specialrule{1pt}{0pt}{0pt}
\end{tabular}
\medskip
\tiny

  $^*$ an average dose of transmitted parasites per sand fly \\
  $^{**}$ median of transmitted parasites per sand fly

\caption[table caption]{Table description}\label{rotfloat2}
 \end{sidewaystable}

答案2

您可以将最后两列的标题分成两行,以节省一些空间,方法是使用

\textbf{\parbox{70pt}{No. Promastigotes \\ transmitted per fly}}

\textbf{\parbox{40pt}{\% of transmitting flies}}

也许您还应该考虑引入一些缩写,尤其是“promastigotes”的“p”和“amastigotes”的“a”,因为这些词有很多例子。

相关内容