首页 > 技术文章 > latex添加eps文档

rong86 2017-03-01 16:12 原文

latex添加图像时,要将.eps文档放在当前文件夹中,然后使用:

% For one-column wide figures use
\begin{figure}
\begin{center}
% Use the relevant command to insert your figure file.
% For example, with the graphicx package use
\includegraphics[width=0.4\textwidth]{figure2.eps}
% figure caption is below the figure
\caption{Please write your figure caption here}
\label{fig:1} % Give a unique label
\end{center}
\end{figure}
%
% For two-column wide figures use
\begin{figure*}
% Use the relevant command to insert your figure file.
% For example, with the graphicx package use
\includegraphics[width=0.75\textwidth]{example.eps}
% figure caption is below the figure
\caption{Please write your figure caption here}
\label{fig:2} % Give a unique label
\end{figure*}
%

左对齐 \begin{flushleft}...\end{flushleft}
居中 \begin{center}...\end{center}
右对齐 \begin{flushright}...\end{flushright}

 

推荐阅读