关于LATEX插入图的处理,仅供参考

关于其中所使用的宏包在此不作介绍,想要了解的可以去找找相关资料!针对自己在使用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}
效果:



评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值