关于其中所使用的宏包在此不作介绍,想要了解的可以去找找相关资料!针对自己在使用LATEX排版论文过程中所遇到的问题,进行整理,不喜勿喷!
所使用的图片:1.eps(因为.eps有时候直接用PDFLATEX会出错,需要先用LATEX再点Dvi2PDF),其中参数的设定根据自己情况进行调整.
导言区:
\documentclass{article}
\usepackage{graphicx}
\usepackage{CJK} %%中文宏包
\usepackage{subfigure}
\usepackage{float}
\usepackage{caption}
%%%%如有需要可使用\captionsetup[figure]{labelsep=quad}\captionsetup[table]{labelsep=quad} %去掉系统默认图标题后面冒号
\begin{CJK}{GBK}{song}
\renewcommand\figurename{图} %重定义图标题名,如这里的{图}
\renewcommand{\thesubfigure}{\roman{subfigure}} \makeatletter \renewcommand{\@thesubfigure}{(\thesubfigure)\space} \makeatother
1.单个插图:
- %%%%居中命令center/centering/centerlin的区别可参考相关资料
- \begin{center}
- \centerline
- {\includegraphics[width=3in,height=3in]{1.eps}} %要插入的图文件及对图大小尺寸进行设置(width/height等)
- \centering{\small 图1 \ \ 曲线}
- \end{center}
效果:
2.并排插图(独立)
- %%%%%%%%%%%%%%%%%使用小页命令
- \begin{figure}[!htbp]
- \centering
- \begin{minipage}[t]{0.3\textwidth}
- \centerline{
- \includegraphics[scale=0.3]{1.eps}}
- \centering{\small fig.1\ \ curve}
- \end{minipage}
- \ \ \ \ \ \ \ \ \ \ \ \ \ \ %%%输出空格,调整图的间距,办法有点笨,呵呵
- \begin{minipage}[t]{0.3\textwidth}
- \centerline{
- \includegraphics[scale=0.3]{1.eps}}
- \centering{\small fig.2\ \ curve}
- \end{minipage}
- \end{figure}
3.并排插图(含子图)
- %%%%%%使用subfigure
- \setcounter{subfigure}{0} %%%比如当(i),(ii)....时,系统是自动往下加的,所以如果要重新开始计数,开始之前需要清零
- \begin{figure}[!htbp]
- \centering
- \subfigure[曲线1]{ %%%%%%%%如果不需要命名子图,则删除[曲线1]里面的曲线1,但要保留[ ]
- \label{Fig.sub.1}
- \includegraphics[width=0.3\textwidth]{1.eps}}
- \subfigure[曲线2]{
- \label{Fig.sub.2}
- \includegraphics[width=0.3\textwidth]{1.eps}}
- \subfigure[曲线3]{
- \label{Fig.sub.3}
- \includegraphics[width=0.3\textwidth]{1.eps}}
- \centering{\small 图4\ \ 曲线合体}
- \label{Fig.lable}
- \end{figure}