When using latex, I often encounter a situation where tables or pictures need to be cross-column. In particular, some conference formats are double-column, and the single-column display is not good-looking and particularly ugly. The realization of hurdles is very simple, just add * directly after the figure or the tabel to complete. Of course, sometimes there are situations where the table is too large and cannot fit as a whole. At this time, the table size needs to be changed.
插入图片 普通单栏
\begin{figure}[htbp]
\centering
\includegraphics[scale=0.4]{img1.png}
\caption{xxxxx}
\label{fig1}
\end{figure}
插入图片 跨栏
\begin{figure*}[htbp]
\centering
\includegraphics[scale=0.4]{img1.png}
\caption{xxxxx}
\label{fig1}
\end{figure*}
The same goes for tables:
% 表格单栏
\begin{table}[h!t]
\scriptsize
\centering%\multicolumn{3}{ r}
\caption{ XXXX }
\label{tab4}
\begin{tabular}{c c c c c}\hline
Method& avgF1& AUROC& AUPRC\\ \hline
XXXX& 0.062$\pm$0.001$\bullet$& 0.872$\pm$0.007$\bullet$& 0.546$\pm0$.091$\bullet$\\
\hline
\end{tabular}
\end{table}
% 表格跨栏
\begin{table*}[h!t]
\scriptsize
\centering%\multicolumn{3}{ r}
\caption{ XXXX }
\label{tab4}
\begin{tabular}{c c c c c}\hline
Method& avgF1& AUROC& AUPRC\\ \hline
XXXX& 0.062$\pm$0.001$\bullet$& 0.872$\pm$0.007$\bullet$& 0.546$\pm0$.091$\bullet$\\
\hline
\end{tabular}
\end{table*}
How to resize the table ? Use the \resizebox{} command
As shown in the following table:
% 表格跨栏
\begin{table*}[h!t]
\scriptsize
\centering
\caption{ XXXX }
\label{tab4}
\resizebox{0.7\columnwidth}{!}{ %看这里,调整大小,为原来的0.7
\begin{tabular}{c c c c c}\hline
Method& avgF1& AUROC& AUPRC\\ \hline
XXXX& 0.062$\pm$0.001$\bullet$& 0.872$\pm$0.007$\bullet$& 0.546$\pm0$.091$\bullet$\\
\hline
\end{tabular} } %这里还有一个调整大小的结束括号,即是对表格整体调整大小
\end{table*}