
我在用IEEE TVCG LaTeX 模板並想使用以下程式碼插入多個彼此相鄰的圖像:
\begin{figure}[h]
\centering
\begin{minipage}{0.45\textwidth}
\centering
\includegraphics[width=0.9\textwidth]{universe} % first figure itself
\caption{Universe}
\end{minipage}\hfill
\begin{minipage}{0.45\textwidth}
\centering
\includegraphics[width=0.9\textwidth]{figure} % second figure itself
\caption{Bar Plot}
\end{minipage}
\end{figure}
然而,由於模板的原因,頁面被分為兩部分,因此圖像沒有以水平方式彼此相鄰對齊。如何使用以下程式碼將程式碼彼此對齊?
謝謝!
嘗試過“figure*”環境:
\begin{figure*}[h]
\centering
\begin{minipage}{0.45\textwidth}
\centering
\includegraphics[width=0.9\textwidth]{LeNet_300_Accuracy} % first figure itself
\caption{LeNet 300-100-10 Training \& Testing Accuracy}
\end{minipage}\hfill
\begin{minipage}{0.45\textwidth}
\centering
\includegraphics[width=0.9\textwidth]{LeNet_300_Loss} % second figure itself
\caption{LeNet 300-100-10 Training \& Testing Loss}
\end{minipage}
\end{figure*}
但這也沒有幫助。
答案1
您可以使用figure*
環境來將圖形跨越兩列。