LaTeX 文字环绕表格
两个步骤:加入头文件,使用具体格式
1. LaTeX 文字环绕Table
加入头文件
\usepackage{floatrow} \floatsetup[table]{capposition=top} \newfloatcommand{capbtabbox}{table}[][\FBwidth] \usepackage{wrapfig}

正文使用,注意\begin上面一定要是空白,\end后面一定紧跟文字, {0.22\textwidth}控制表格与段落的距离
%前面一定要留空行
\begin{wraptable}{r}{0.22\textwidth} \centering \begin{tabular}{l c c c c} 表格内容 \end{tabular} \end{wraptable}
% 后面紧跟文字
2. 例子
\begin{wraptable}{r}{0.22\textwidth}
\centering
\tiny
\renewcommand{\arraystretch}{1}
\renewcommand{\tabcolsep}{0.2pt}
\setlength{\abovecaptionskip}{-0.2cm} \setlength{\belowcaptionskip}{-0.2cm}
\caption{\scriptsize Effect of different frequency separation operators (FSO).}
\label{table-operators}
\vspace{-0.2cm}
\begin{tabular}{l c c c c}
\Xhline{1pt}
{FSO}
& ${Q_{MI} \uparrow}$
& ${Q_G} \uparrow$
& ${Q_Y} \uparrow$
& ${Q_{CB}} \uparrow$
\\ \Xhline{1pt}
{Gradient} & 1.0755 & 0.6924 & 0.9650 & 0.7775\\
{DWT} & 1.2906 & 0.7320 & 0.9597 & 0.8008 \\
{Median} & 1.0954 & 0.7318 & 0.9694 & 0.8097 \\
{FFT (Our)} & \textbf{1.3078} & \textbf{0.7502} & \textbf{0.9730} & \textbf{0.8291} \\
\Xhline{1pt}
\vspace{-6mm}
\end{tabular}
\end{wraptable}
%下面紧跟正文

3. 结语
努力去爱周围的每一个人,付出,不一定有收获,但是不付出就一定没有收获! 给街头卖艺的人零钱,不和深夜还在摆摊的小贩讨价还价。愿我的博客对你有所帮助(*^▽^*)(*^▽^*)!
如果客官喜欢小生的园子,记得关注小生哟,小生会持续更新(#^.^#)(#^.^#)。
但行好事 莫问前程

浙公网安备 33010602011771号