Latex
表格插入图片
\begin{table}[pbt] %[pbt]:表格最优位置
\centering % 表格居中
\caption{Three model results diagram.} %表标题
\vspace{0.15cm} % 表格与表标题之间的距离
\label{tab3} % 表标签
\begin{tabular}{|c|c|c|c|}
\hline
\textbf{Model} & \textit{\textbf{KIND}} & \textbf{Global Graph} & \textbf{Partial Graph} \\ \hline
\multirow{2}{*}{\textbf{XGBoost}} & \textit{Bitcoin} & \begin{minipage}[b]{0.3\columnwidth}
\raisebox{-.5\height}{\includegraphics[width=\linewidth]{XGBoost_coin.png}}
\end{minipage} & \begin{minipage}[b]{0.3\columnwidth}
\raisebox{-.5\height}{\includegraphics[width=\linewidth]{XGBoost_coin_part.png}}
\end{minipage} \\ \cline{2-4}
& \textit{Gold} & \begin{minipage}[b]{0.3\columnwidth}
\raisebox{-.5\height}{\includegraphics[width=\linewidth]{XGBoost_gold.png}}
\end{minipage} & \begin{minipage}[b]{0.3\columnwidth}
\raisebox{-.5\height}{\includegraphics[width=\linewidth]{XGBoost_gold_part.png}}
\end{minipage} \\ \hline
\multirow{2}{*}{\textbf{\begin{tabular}[c]{@{}c@{}}Random\\ Forest\end{tabular}}} & \textit{Bitcoin} & \begin{minipage}[b]{0.3\columnwidth}
\raisebox{-.5\height}{\includegraphics[width=\linewidth]{forest_coin.png}}
\end{minipage} & \begin{minipage}[b]{0.3\columnwidth}
\raisebox{-.5\height}{\includegraphics[width=\linewidth]{forest_coin_part.png}}
\end{minipage} \\ \cline{2-4}
& \textit{Gold} & \begin{minipage}[b]{0.3\columnwidth}
\raisebox{-.5\height}{\includegraphics[width=\linewidth]{forest_gold.png}}
\end{minipage} & \begin{minipage}[b]{0.3\columnwidth}
\raisebox{-.5\height}{\includegraphics[width=\linewidth]{forest_gold_part.png}}
\end{minipage} \\ \hline
\multirow{2}{*}{\textbf{LSTM}} & \textit{Bitcoin} & \begin{minipage}[b]{0.3\columnwidth}
\raisebox{-.5\height}{\includegraphics[width=\linewidth]{lstm_coin.png}}
\end{minipage} & \begin{minipage}[b]{0.3\columnwidth}
\raisebox{-.5\height}{\includegraphics[width=\linewidth]{lstm_coin_part.png}}
\end{minipage} \\ \cline{2-4}
& \textit{Gold} & \begin{minipage}[b]{0.3\columnwidth}
\raisebox{-.5\height}{\includegraphics[width=\linewidth]{lstm_gold.png}}
\end{minipage} & \begin{minipage}[b]{0.3\columnwidth}
\raisebox{-.5\height}{\includegraphics[width=\linewidth]{lstm_gold_part.png}}
\end{minipage} \\ \hline
\end{tabular}
\end{table}
表格补充说明
latex – 绘制表格网址
https://www.tablesgenerator.com/
居中问题
- 可以并列表格后点居中
- 上无效的话,在所需居中的文字加“换行(Enter 键)”。
四张图片并列
\begin{figure}[h]
\centering
\subfigure[Gold commission - Number of trades]
{
\begin{minipage}[b]{.46\linewidth}
\centering
\includegraphics[scale=0.5]{g.png}
\end{minipage}
}
\subfigure[Bitcoin Commission - Number of transactions]
{
\begin{minipage}[b]{.46\linewidth}
\centering
\includegraphics[scale=0.5]{b.png}
\end{minipage}
}
\end{figure}
\begin{figure}[h]
\centering
\subfigure[Gold commission - Gold yield]
{
\begin{minipage}[b]{.46\linewidth}
\centering
\includegraphics[scale=0.5]{gg.png}
\end{minipage}
}
\subfigure[Bitcoin Commission - Bitcoin yield]
{
\begin{minipage}[b]{.46\linewidth}
\centering
\includegraphics[scale=0.48]{bb.png}
\end{minipage}
}
\caption{Sensitivity analysis diagram}
\end{figure}