zoukankan      html  css  js  c++  java
  • LaTeX 插图片


    本系列文章由 @YhL_Leo 出品,转载请注明出处。
    文章链接: http://blog.csdn.net/yhl_leo/article/details/50240371


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

    一般要包含的宏包:

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


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

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


    • 方法三(多张图,使用minipage):
    egin{figure}
    	centering
    	egin{minipage}[b]{0.32linewidth}
    		centering
    		centerline{
    			includegraphics[width = linewidth]{lena.eps}}
    		centerline{(a)}
    		medskip	
    	end{minipage}
    	egin{minipage}[b]{0.32linewidth}
    		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}

    egin{figure}
    	centering
    	egin{minipage}[b]{0.5linewidth}
    		centering
    		centerline{
    			includegraphics[width = linewidth]{lena.eps}}
    			centerline{(a)}
    			medskip	
    	end{minipage}
    	egin{minipage}[b]{0.5linewidth}
    		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时,后续的图片自动拍到下一行~

  • 相关阅读:
    Can't remove netstandard folder from output path (.net standard)
    website项目的reference问题
    The type exists in both DLLs
    git常用配置
    Map dependencies with code maps
    How to check HTML version of any website
    Bootstrap UI 编辑器
    网上职位要求对照
    Use of implicitly declared global variable
    ResolveUrl in external JavaScript file in asp.net project
  • 原文地址:https://www.cnblogs.com/hehehaha/p/6332206.html
Copyright © 2011-2022 走看看