① Latex中IEEEtran是一面左右兩個版面,但我想插入表格和圖片占整個版面,要怎麼辦
望採納,O(∩_∩)O謝謝,不懂得地方可以再問,一起討論討論
在latex中,對於雙欄格式的排版,插入一欄圖片時,使用的是\begin{figure}……\end{figure} ,插入雙欄圖片時需在figure的上標中加入符號「*」,如\begin{figure*}……\end{figure*}。
1.在latex插入一張圖片(佔一欄)比較簡單,插入一張圖片的代碼如下:
\begin{figure}{h}
\centering %使插入的圖片居中顯示
\includegraphics[height=5cm ,width=8cm,angle=0,scale=]{fig.eps}
\caption{Example twig query and documents } %插入圖片的標題,一般放在圖片的下方,放在表格的上方
\end{figure}
關鍵性的語句是:\includegraphics[選項]{圖片.eps}
選項:height %指定圖片的高度
width %指定圖片的寬度
angle %指定圖片旋轉的角度
還有一個指標叫scale,之縮放圖形。
2.在latex插入多張圖片(占雙欄)就不是那麼簡單了,筆者知道有兩種方法:
法一:使用\begin{minipage}[pos]{width} text \end{minipage}
\begin{figure*}
\centering
\begin{minipage}[!htbp]{0.3\linewidth}
\includegraphics[width=1.5in,angle=-90]{52.eps}
%\caption{fig1}
\label{fig:side:a}
\end{minipage}%
\begin{minipage}[!htbp]{0.3\linewidth}
\includegraphics[width=1.5in,angle=-90]{51.eps}
%\caption{fig2}
\label{fig:side:b}
\end{minipage}
\begin{minipage}[!htbp]{0.3\linewidth}
\includegraphics[width=1.5in,angle=-90]{53.eps}
%\caption{fig3}
\label{fig:side:c}
\end{minipage}
\caption{3 figure}
\end{figure*}
註:筆者不太喜歡這種方法,原因是這種插入方式如果在每個圖中使用\caption{fig3
name}給圖片做注釋的時候不是把三個圖片當做一個figure,而是每個圖片即每個minipage各使用一個fig標記,三個mingpage相當
於三個圖片了,當然也可以不單獨對每個圖片寫個\caption,而是在\caption{3
figure}中對每個figure進行解釋說明,所以筆者推崇第二種方法。當然,筆者也許不知道如何設置,有望業內人士指教。
法二:使用subfigure命令,但必須在導演區加入\usepackage{subfigure},否則無法編譯過去。
\begin{figure*}[!t]
\centering
\subfigure[Number of elements read] {\includegraphics[height=2in,width=2in,angle=-90]{52.eps}}
\subfigure[Size of disk files scanned] {\includegraphics[height=2in,width=2in,angle=-90]{51.eps}}
\subfigure[Execution time] {\includegraphics[height=2in,width=2in,angle=-90]{53.eps}}
\caption{ PathStack versus TJFast using XMark data }
\label{fig5}
\end{figure*}
這種方法很好,即插入三個子圖,可以將三個圖片合成一個大圖,而且每個圖片還可以添加caption,即於subfigure[*]中*內進行解釋說明。