本系列文章由 @YhL_Leo 出品,转载请注明出处。

文章链接: http://blog.csdn.net/yhl_leo/article/details/50240371


这里列出3种LaTeX中插图的方法:

一般要包含的宏包:

\usepackage{epsfig}
\usepackage{graphicx}
\usepackage{subfigure}
  • 方法一:
\begin{figure}
\begin{center}
\includegraphics[width=0.32\linewidth]{lena.eps}
\caption{An image of Lena.}
\label{Fig:1}
\end{center}
\vspace{-0.5em}
\end{figure}


  • 方法二(多张图,使用tabular):
\begin{figure}
\centering
\begin{tabular}{ccc}
\includegraphics[width=0.32\linewidth]{lena.eps} &
\includegraphics[width=0.32\linewidth]{lena.eps} &
\includegraphics[width=0.32\linewidth]{lena.eps} \\
(a) & (b) & (c)\\
\end{tabular}
\caption{Three images of Lena. }
\label{Fig:4}
\vspace{-0.5em}
\end{figure}

关于表格的使用,想了解更多请阅读博客LaTeX 表格


  • 方法三(多张图,使用minipage):
\begin{figure}
\centering
\begin{minipage}[b]{0.32\linewidth}
\centering
\centerline{
\includegraphics[width = \linewidth]{lena.eps}}
\centerline{(a)}
\medskip
\end{minipage}
\begin{minipage}[b]{0.32\linewidth}
\centering
\centerline{
\includegraphics[width =\linewidth]{lena.eps}}
\centerline{(b)}
\medskip
\end{minipage}
\caption{Two images of Lena.}
\label{Fig:2}
\vspace{-0.5em}
\end{figure}

\begin{figure}
\centering
\begin{minipage}[b]{0.5\linewidth}
\centering
\centerline{
\includegraphics[width = \linewidth]{lena.eps}}
\centerline{(a)}
\medskip
\end{minipage}
\begin{minipage}[b]{0.5\linewidth}
\centering
\centerline{
\includegraphics[width =\linewidth]{lena.eps}}
\centerline{(b)}
\medskip
\end{minipage}
\caption{Two images of Lena.}
\label{Fig:3}
\vspace{-0.5em}
\end{figure}

可以看出,minipage是采用行方向累加制的自动排版方法,也就是当子图的width累计大于等于\linewidth时,后续的图片自动拍到下一行~

LaTeX 插图片的更多相关文章

  1. LaTeX的图片插入及排版

    LaTeX中一般只直接支持插入eps(Encapsulated PostScript)格式的图形文件, 因此在图片插入latex文档之前应先设法得到图片的eps格式的文件. UNIX下的各种应用软件都 ...

  2. LaTeX的图片插入及排版[转]

    LaTeX中一般只直接支持插入eps(Encapsulated PostScript)格式的图形文件, 因此在图片插入latex文档之前应先设法得到图片的eps格式的文件. UNIX下的各种应用软件都 ...

  3. 中文latex去掉图片描述

    中文latex去掉图片描述,或者自定义: \usepackage{caption} \caption*{the title of figure}就可以自己定义了.

  4. LaTeX 控制图片的位置

    加感叹号来忽略“美学”标准. \begin{figure}[!htb] \usepackage{float}\begin{figure}[H]插到你代码相应的位置. 1,插入并列的子图 \usepac ...

  5. Latex插入图片 分类: LaTex 2014-11-18 20:07 261人阅读 评论(0) 收藏

    在Latex中插入图片的方式很多,我这里只介绍自己常用的一种方式,欢迎大家指导. 我习惯于使用graphicx宏包来插入图片,有时候会配合上subfigure宏包来同时插入多幅图片组合. 首先,需要在 ...

  6. latex 固定图片位置

    1,插入并列的子图 \usepackage{subfigure} \begin{figure}[H] \centering \subfigure[SubfigureCaption]{ \label{F ...

  7. LaTeX 中图片格式错误情况

    Unknown graphics extension: .eps 利用宏包usepackage {graphicx} 是图片和pdflatex一起用时的错误.注:{不是所有的时候,有时候也能通过} 两 ...

  8. Latex(表格|图片(一丢丢))

    目录 普通的例子 Notation 例子 p{width} 列分割符 @{} \multicolumn supertabular | longtabular 浮动体 table 浮动体 图片 \use ...

  9. 12LaTeX学习系列之---LaTex的图片插入

    目录 目录 前言 (一)插图的基本语法 (二)插入的基本设置 1.说明: 2.源代码: 3.输出效果 (三)查看文档 目录 本系列是有关LaTeX的学习系列,共计19篇,本章节是第12篇. 前一篇:1 ...

随机推荐

  1. linux网络监控脚本

    http://www.51testing.com/html/92/77492-828434.html

  2. System v shm的key

    shmget函数用于创建或打开一个共享内存区对象,shmget成功调用会返回一个共享内存区的标识符,供其它的共享内存区操作函数使用. key:用于创建共享内存区的键值,这个在前面其他System IP ...

  3. 使用UE4公布安卓平台游戏

    使用了几天的UE4 ,总算是将游戏在安卓平台执行起来了.当中遇到非常多问题,而且终于依旧有一些问题没能解决. 整体感觉是UE4这款引擎眼下还不够成熟.问题较多. 没有unity使用起来方便. 可是既然 ...

  4. Linux 技巧:让进程在后台可靠执行的几种方法

    我们常常会碰到这种问题.用 telnet/ssh 登录了远程的 Linux server,执行了一些耗时较长的任务, 结果却因为网络的不稳定导致任务中途失败.怎样让命令提交后不受本地关闭终端窗体/网络 ...

  5. C语言--指针(一)

    watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvenVveW91MTMxNA==/font/5a6L5L2T/fontsize/400/fill/I0JBQk ...

  6. 使用Service Bus Topic 实现简单的聊天室

    创建Service Bus能够參照: https://azure.microsoft.com/en-gb/documentation/articles/service-bus-dotnet-how-t ...

  7. poj - 1159 - Palindrome(滚动数组dp)

    题意:一个长为N的字符串( 3 <= N <= 5000).问最少插入多少个字符使其变成回文串. 题目链接:http://poj.org/problem?id=1159 -->> ...

  8. UVA 1541 - To Bet or Not To Bet 记忆化DP概率

    Alexander Charles McMillan loves to gamble, and during his last trip to the casino he ran across a n ...

  9. 在单机上安装多个oracle实例

    1   在 hp unix上安装 oracle 10g ,这个不解释,直接安装好. 创建组oinstall,dba,用户oracle  [root@node1 ~]# groupadd oinstal ...

  10. 检测Nginx访问成功(状态码200)的IP及次数

    cat  access.log |awk '{print $1,$9}'|grep '200'|sort | uniq -c|awk '{print $2" "$1}'