1
插入图片
EthanDeng edited this page 2019-02-05 11:50:05 +08:00
This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

插图的命令和以前一样,也是使用 figure 环境。你可以把你的图放到当前工作目录的如下子目录下 ( ./image/ , ./img/ , ./figure/ , ./fig/ )。

% 如果要使抄录环境显示中文,必须用 XeLaTeX而不能用 PDFLaTeX
% 这是由于 lstlisting 和 ctex 的问题
\begin{figure}[htbp]
    \centering
    \includegraphics[width=0.6\textwidth]{scatter.pdf}
    \caption{散点图示例\label{fig:scatter}}
\end{figure}