如何删除段落后的空格?

如何删除段落后的空格?

我想删除此段落后的空格,如下图所示:

在此处输入图片描述

我尝试过但没有成功:

\usepackage{float}
\FloatBarrier

代码部分:

 ------   paragraph1 --------
    
    \FloatBarrier
    
        \begin{table}
            \centering
            \begin{tabular}
                \hline
                --- some data table 1 ---                             
                \hline
            \end{tabular}
        \end{table}
         
        
            
        
        
        \FloatBarrier
        
   ------- secondly , we conclude that ...paragraph2-------
        
        \FloatBarrier
        \begin{table}
            
            \centering
            \begin{tabular}
                \hline
                ----some data table 2-------
                \hline
            \end{tabular}
        
        \end{table}
        
        
        \FloatBarrier
        
   ------ paragraph3-------

事实上,我想要一种简单的方法来强制将表格放置在所需段落之后。

非常感谢您的帮助!

答案1

 ------   paragraph1 --------
    
    \FloatBarrier
    
        \begin{table}
            \centering
            \begin{tabular}
                \hline
                --- some data table 1 ---                             
                \hline
            \end{tabular}
        \end{table}
         
        
            
        
        
        \FloatBarrier
        
  %% ------- secondly , we conclude that ...paragraph2// here you should add  [hbt!] option after \begin{table} -------%%
        
        \FloatBarrier
        \begin{table} [hbt!]
            
            \centering
            \begin{tabular}
                \hline
                ----some data table 2-------
                \hline
            \end{tabular}
        
        \end{table}
        
        
        \FloatBarrier
        
   ------ paragraph3-------

相关内容