部分末尾表格下方的文本垂直填充

部分末尾表格下方的文本垂直填充

嗨,我不确定如何为这个问题创建一个描述性标题。这有点奇怪。当我在某个部分的末尾附近有一个表格,并且文本在它的上方和下方时,文本将移动到页面底部以填满整个页面,然后下一个部分才会在下一页开始。我附上了一些屏幕截图来说明我的意思以及一个代码示例。理想情况下,我希望文本像往常一样直接位于表格下方,下一个部分从下一页开始,即,只是不想要“垂直填充”。谢谢,如果有什么不清楚的地方,请见谅

在此处输入图片描述

代码:

\documentclass[12pt,twoside]{report}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{array}
\newcolumntype{M}[1]{>{\centering\arraybackslash}m{#1\textwidth}}
\usepackage[english]{babel}
\usepackage{blindtext}
\begin{document}

    \section{test}
    \blindtext[3]

    \subsection{more test}
    \blindtext[1]

    \begingroup

    \renewcommand{\arraystretch}{1.5}
    \begin{table}[t]
        \setlength\tabcolsep{0pt}
        \caption[test caption]{This is a test of the caption} 
        \label{tab-review}
        \footnotesize
        \centering
        \begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}%
                M{0.2}M{0.09}M{0.08}M{0.15}M{0.13}M{0.14}M{0.085}}
            %
            \hline
            Reference                & Pub Year & \# Cases & Method             & Median Follow-up (months) & Good/Excellent coss & IBTR    \\ \hline
            Name1 [41]               & 2009     & 20       & test method        & 1 2                       & 82\%                & 0.00\%  \\
            Name1 [41]               & 2010     & 20       & test method        & 1 2                     & 89\%                & 1.10\%  \\
            Name1 [41]               & 2011     & 100      & test method        & 1 2                       & 82\%                & 1.00\%  \\
            Name1 [41]               & 2012     & 20       & test method         & 1 2                     & 97\%                & 3.00\%  \\
            Name1 [41]               & 2013     & 20       & test method        & 1  2                      & 75\%                & 0.00\%  \\
            Name1 [41]               & 2013     & 20       & test method        & 53.1                      & 88\%                & 0.70\%  \\
            Name1 [41]               & 2013     & 20       & test method         & 18.9                      & 95\%                & 0.00\%  \\
            Name1 [41]               & 2014     & 30       & test method        & 60                        & 73\%                & 3.00\%  \\
            Name1 [41]               & 2014     & 98       & longer test method & 82.5                      & 62\%                & 11.00\% \\
            Name1 [41]               & 2014     & 98       & test method        & 82.5                      & 94\%                & 4.00\%  \\
            Name1 [41]               & 2015     & 260      & test method         & 60                        & 100\%               & 1.40\%  \\
            Name1 [41]               & 2015     & 569      & test method        & 36                        & 71\%                & NS      \\
            Name1 [41]               & 2016     & 141      & test method        & 60                        & 95\%                & 0.70\%  \\
            Name1 [41]               & 2016     & 52       & test method       & 96                        & 64\%                & 7.70\%  \\
            Name1 [41]               & 2017     & 669      & test method         & 72.2                      & NS                  & 0.50\%  \\ \hline
        \end{tabular*}
    \end{table}
    \endgroup
\blindtext[1]
\section{test}
\subsection{more test}
\blindtext[4]

\begingroup

\renewcommand{\arraystretch}{1.5}
\begin{table}[t]
    \setlength\tabcolsep{0pt}
    \caption[test caption]{This is a test of the caption} 
    \label{tab-review}
    \footnotesize
    \centering
    \begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}%
            M{0.2}M{0.09}M{0.08}M{0.15}M{0.13}M{0.14}M{0.085}}
        %
        \hline
        Reference                & Pub Year & \# Cases & Method             & Median Follow-up (months) & Good/Excellent coss & IBTR    \\ \hline
        Name1 [41]               & 2009     & 20       & test method        & 1 2                       & 82\%                & 0.00\%  \\
        Name1 [41]               & 2010     & 20       & test method        & 1 2                     & 89\%                & 1.10\%  \\
        Name1 [41]               & 2011     & 100      & test method        & 1 2                       & 82\%                & 1.00\%  \\
        Name1 [41]               & 2012     & 20       & test method         & 1 2                     & 97\%                & 3.00\%  \\
        Name1 [41]               & 2013     & 20       & test method        & 1  2                      & 75\%                & 0.00\%  \\
        Name1 [41]               & 2013     & 20       & test method        & 53.1                      & 88\%                & 0.70\%  \\
        Name1 [41]               & 2013     & 20       & test method         & 18.9                      & 95\%                & 0.00\%  \\
        Name1 [41]               & 2014     & 30       & test method        & 60                        & 73\%                & 3.00\%  \\
        Name1 [41]               & 2014     & 98       & longer test method & 82.5                      & 62\%                & 11.00\% \\
        Name1 [41]               & 2014     & 98       & test method        & 82.5                      & 94\%                & 4.00\%  \\
        Name1 [41]               & 2015     & 260      & test method         & 60                        & 100\%               & 1.40\%  \\
        Name1 [41]               & 2015     & 569      & test method        & 36                        & 71\%                & NS      \\
        Name1 [41]               & 2016     & 141      & test method        & 60                        & 95\%                & 0.70\%  \\
        Name1 [41]               & 2016     & 52       & test method       & 96                        & 64\%                & 7.70\%  \\
        Name1 [41]               & 2017     & 669      & test method         & 72.2                      & NS                  & 0.50\%  \\ \hline
    \end{tabular*}
\end{table}
\endgroup
\blindtext[1]
\end{document}

答案1

只需添加\raggedbottom到您的序言中,然后 LaTeX 就不必用文本填满整个页面,并且可以在页面底部留下一些空间......

梅威瑟:

\documentclass[12pt,twoside]{report}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{array}
\newcolumntype{M}[1]{>{\centering\arraybackslash}m{#1\textwidth}}
\usepackage[english]{babel}
\usepackage{blindtext}

\raggedbottom % <=======================================================


\begin{document}

    \section{test}
    \blindtext[3]

    \subsection{more test}
    \blindtext[1]

    \begingroup

    \renewcommand{\arraystretch}{1.5}
    \begin{table}[t]
        \setlength\tabcolsep{0pt}
        \caption[test caption]{This is a test of the caption} 
        \label{tab-review}
        \footnotesize
        \centering
        \begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}%
                M{0.2}M{0.09}M{0.08}M{0.15}M{0.13}M{0.14}M{0.085}}
            %
            \hline
            Reference                & Pub Year & \# Cases & Method             & Median Follow-up (months) & Good/Excellent coss & IBTR    \\ \hline
            Name1 [41]               & 2009     & 20       & test method        & 1 2                       & 82\%                & 0.00\%  \\
            Name1 [41]               & 2010     & 20       & test method        & 1 2                     & 89\%                & 1.10\%  \\
            Name1 [41]               & 2011     & 100      & test method        & 1 2                       & 82\%                & 1.00\%  \\
            Name1 [41]               & 2012     & 20       & test method         & 1 2                     & 97\%                & 3.00\%  \\
            Name1 [41]               & 2013     & 20       & test method        & 1  2                      & 75\%                & 0.00\%  \\
            Name1 [41]               & 2013     & 20       & test method        & 53.1                      & 88\%                & 0.70\%  \\
            Name1 [41]               & 2013     & 20       & test method         & 18.9                      & 95\%                & 0.00\%  \\
            Name1 [41]               & 2014     & 30       & test method        & 60                        & 73\%                & 3.00\%  \\
            Name1 [41]               & 2014     & 98       & longer test method & 82.5                      & 62\%                & 11.00\% \\
            Name1 [41]               & 2014     & 98       & test method        & 82.5                      & 94\%                & 4.00\%  \\
            Name1 [41]               & 2015     & 260      & test method         & 60                        & 100\%               & 1.40\%  \\
            Name1 [41]               & 2015     & 569      & test method        & 36                        & 71\%                & NS      \\
            Name1 [41]               & 2016     & 141      & test method        & 60                        & 95\%                & 0.70\%  \\
            Name1 [41]               & 2016     & 52       & test method       & 96                        & 64\%                & 7.70\%  \\
            Name1 [41]               & 2017     & 669      & test method         & 72.2                      & NS                  & 0.50\%  \\ \hline
        \end{tabular*}
    \end{table}
    \endgroup
\blindtext[1]
\section{test}
\subsection{more test}
\blindtext[4]

\begingroup

\renewcommand{\arraystretch}{1.5}
\begin{table}[t]
    \setlength\tabcolsep{0pt}
    \caption[test caption]{This is a test of the caption} 
    \label{tab-review}
    \footnotesize
    \centering
    \begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}%
            M{0.2}M{0.09}M{0.08}M{0.15}M{0.13}M{0.14}M{0.085}}
        %
        \hline
        Reference                & Pub Year & \# Cases & Method             & Median Follow-up (months) & Good/Excellent coss & IBTR    \\ \hline
        Name1 [41]               & 2009     & 20       & test method        & 1 2                       & 82\%                & 0.00\%  \\
        Name1 [41]               & 2010     & 20       & test method        & 1 2                     & 89\%                & 1.10\%  \\
        Name1 [41]               & 2011     & 100      & test method        & 1 2                       & 82\%                & 1.00\%  \\
        Name1 [41]               & 2012     & 20       & test method         & 1 2                     & 97\%                & 3.00\%  \\
        Name1 [41]               & 2013     & 20       & test method        & 1  2                      & 75\%                & 0.00\%  \\
        Name1 [41]               & 2013     & 20       & test method        & 53.1                      & 88\%                & 0.70\%  \\
        Name1 [41]               & 2013     & 20       & test method         & 18.9                      & 95\%                & 0.00\%  \\
        Name1 [41]               & 2014     & 30       & test method        & 60                        & 73\%                & 3.00\%  \\
        Name1 [41]               & 2014     & 98       & longer test method & 82.5                      & 62\%                & 11.00\% \\
        Name1 [41]               & 2014     & 98       & test method        & 82.5                      & 94\%                & 4.00\%  \\
        Name1 [41]               & 2015     & 260      & test method         & 60                        & 100\%               & 1.40\%  \\
        Name1 [41]               & 2015     & 569      & test method        & 36                        & 71\%                & NS      \\
        Name1 [41]               & 2016     & 141      & test method        & 60                        & 95\%                & 0.70\%  \\
        Name1 [41]               & 2016     & 52       & test method       & 96                        & 64\%                & 7.70\%  \\
        Name1 [41]               & 2017     & 669      & test method         & 72.2                      & NS                  & 0.50\%  \\ \hline
    \end{tabular*}
\end{table}
\endgroup
\blindtext[1]
\end{document}

结果:

在此处输入图片描述

第二张表:

第二页

相关内容