1. Table并排,节省空间
引入头文件
\usepackage{etoolbox} \patchcmd{\thebibliography}{\section*{\refname}}{}{}{}
文档内部使用
\begin{table}[hp] \centering \begin{floatrow} \capbtabbox{ \begin{tabular}{c c c c c c c} 表格内容 \end{tabular} }{ \caption{标题名称} \label{标签名字} } \capbtabbox{ \begin{tabular}{c c c c c c c} 表格内容 \end{tabular} }{ \caption{标题名称} \label{标签名字} } \end{floatrow} \end{table}
2. 例子
\begin{table}[hp] \centering \tiny \setlength{\abovecaptionskip}{-0.2cm} \setlength{\belowcaptionskip}{-0.2cm} \renewcommand{\arraystretch}{1} \renewcommand{\tabcolsep}{2pt} \begin{floatrow} \capbtabbox{ \vspace{-0.3cm} \begin{tabular}{c c c c c c c} % \hline \Xhline{1pt} $\lambda$ & ${Q_{MI} \uparrow}$ & ${Q_G} \uparrow$ & ${Q_Y} \uparrow$ & ${Q_{CB}} \uparrow$ \\ % \hline \Xhline{1pt} 0.00 & 1.3046 & 0.7472 & \textbf{0.9825} & 0.8251 \\ 0.05 & 1.3051 & 0.7477 & 0.9805 & 0.8263 \\ 0.10 & \textbf{1.3078} & \textbf{0.7502} & 0.9730 & \textbf{0.8291} \\ 0.15 & 1.3049 & 0.7492 & 0.9646 & 0.8108 \\ 0.20 & 1.2877 & 0.7210 & 0.9634 & 0.8087 \\ % \hline \Xhline{1pt} \end{tabular} }{ \caption{\scriptsize The Effectiveness of $\lambda$.} \label{table-loss} } \hspace{-0.6cm} \capbtabbox{ \vspace{-0.3cm} \begin{tabular}{c c c c c c c} % \hline \Xhline{1pt} $\gamma$ & ${Q_{MI} \uparrow}$ & ${Q_G} \uparrow$ & ${Q_Y} \uparrow$ & ${Q_{CB}} \uparrow$ \\ % \hline \Xhline{1pt} % 0.00 & 1.2983 & 0.7442 & 0.9717 & 0.8192 \\ 0.02 & 1.3000 & 0.7471 & 0.9720 & 0.8186 \\ 0.04 & 1.3005 & 0.7493 & 0.9722 & 0.8196 \\ 0.06 & 1.3013 & 0.7500 & 0.9724 & 0.8285 \\ 0.08 & 1.3014 & 0.7473 & 0.9725 & 0.8284 \\ 0.10 & \textbf{1.3078} & \textbf{0.7502} & \textbf{0.9730} & \textbf{0.8291} \\ % \hline \Xhline{1pt} \end{tabular} }{ \caption{\scriptsize Performance at $\gamma<0.1$.} \label{table-gamma} } \end{floatrow} \end{table}
3. 结语
努力去爱周围的每一个人,付出,不一定有收获,但是不付出就一定没有收获! 给街头卖艺的人零钱,不和深夜还在摆摊的小贩讨价还价。愿我的博客对你有所帮助(*^▽^*)(*^▽^*)!
如果客官喜欢小生的园子,记得关注小生哟,小生会持续更新(#^.^#)(#^.^#)。
标签:Latex,begin,表格,uparrow,textbf,tabular,并排,Xhline,1pt From: https://www.cnblogs.com/haifwu/p/17084846.html