未完(更新中)
图片:
不要依懒于特定的位置,图片可能会自动调整位置以使得整个版面整齐。因此在使用中不要使用如“ 这幅图...” 或“ 下面的图形...” 等短语要求所指的图形需在固定位置。而尽量使用图形的编号,如“ 图5...”。
基本的使用格式:
在包含宏包处添加: /usepackage{graphicx}
\begin{figure}[htbp]
\centering
\includegraphics[height=6cm,width=6.5cm]{graph.eps}
\caption{This is an inserted EPS graphic} \label{fig:graph}
\end{figure}
其中[htbp]就是浮动格式
“h 当前位置。将图形放置在正文文本中给出该图形环境的地方。如果本页所剩的页面不够,这一参数将不起作用。
t 顶部。将图形放置在页面的顶部。
b 底部。将图形放置在页面的底部。
p 浮动页。将图形放置在一只允许有浮动对象的页面上。”
扩展使用:
使用边框:
\usepackage{float} \floatstyle{boxed} \restylefloat{figure}控制文字环绕位置:
文字右侧:\usepackage{sidecap}
\begin{SCfigure}
文字环绕:
\usepackage{wrapfig}
\begin{wrapfigure}[lineheight]{alignment}{width}
包含子图(并列显示):
\usepackage{subcaption} \begin{figure} \centering \begin{subfigure}[b]{0.3\textwidth} \end{subfigure}% ~ %add desired spacing between images, e. g. ~, \quad, \qquad etc. %(or a blank line to force the subfigure onto a new line) \begin{subfigure}[b]{0.3\textwidth} \end{subfigure} ~ %add desired spacing between images, e. g. ~, \quad, \qquad etc. %(or a blank line to force the subfigure onto a new line) \caption{Pictures of animals}\label{fig:animals} \end{figure}
Reference:
http://blog.renren.com/share/230039275/6286294913
http://en.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_Captions