Latex 图片排版

  • 转载:https://www.jianshu.com/p/d9df490e48b8
  • 并排插入多张图片

  • usepackage{graphicx}
    usepackage{subfigure} %需要使用的宏包
    
    egin{figure}
    centering
    subfigure
    [Jackson Yee] %子图片标题
    {includegraphics[width=3.5cm]{Jackson.JPG}} %[图片大小]{图片路径}
    subfigure[Jackson Yee]{includegraphics[width=3.5cm]{Jackson.JPG}}
    subfigure[Jackson Yee]{includegraphics[width=3.5cm]{Jackson.JPG}}
    caption{Jackson Yee} %图片标题
    label{fig:1}  %图片交叉引用时的标签
    end{figure}
  • 多排插入多张图片

  • usepackage{graphicx}
    usepackage{subfigure} %需要使用的宏包
    
    egin{figure}
    centering
    subfigure[Jackson Yee]{includegraphics[width=3.5cm]{Jackson.JPG}} 
    subfigure[Jackson Yee]{includegraphics[width=3.5cm]{Jackson.JPG}}
    \ %换行
    centering
    subfigure[Jackson Yee]{includegraphics[width=3.5cm]{Jackson.JPG}}
    subfigure[Jackson Yee]{includegraphics[width=3.5cm]{Jackson.JPG}}
    caption{Jackson Yee} %图片标题
    end{figure}

  • 垂直(竖向)插入多张图片

  • usepackage{graphicx}
    usepackage{subfigure} %需要使用的宏包
    
    egin{figure}
    centering
    subfigure[Jackson Yee]{
        egin{minipage}[b]{0.23linewidth} %0.23为minipage的宽度,可以调节子图间的距离
        includegraphics[width=4cm]{Jackson.JPG}vspace{1pt} %图片的宽度、路径和垂直间距
        includegraphics[width=4cm]{Jackson.JPG}vspace{1pt}
        %vspace要紧跟在对应的includegraphics,不然得不到想要的结果
        end{minipage}
    }
    quad %退一格
    qquad %退两格,调节子图间的距离
    subfigure[Jackson Yee]{
        egin{minipage}[b]{0.23linewidth}
        includegraphics[width=4cm]{Jackson.JPG}vspace{1pt} 
        includegraphics[width=4cm]{Jackson.JPG}vspace{1pt}
        end{minipage}
    }
    caption{Jackson Yee}
    end{figure}

  • 并排(橫向)插入多张图片且有两张以上图像共用同一个子标题

  • usepackage{graphicx}
    usepackage{subfigure} %需要使用的宏包
    
    egin{figure}
    centering
    subfigure[Jackson Yee]{
        egin{minipage}[t]{0.3	extwidth}
        includegraphics[width=3cm]{Jackson.JPG}
        end{minipage}
        egin{minipage}[t]{0.3	extwidth}
        includegraphics[width=3cm]{Jackson.JPG}
        end{minipage}
    }
    subfigure[Jackson Yee]{includegraphics[width=4cm]{Jackson.JPG}}
    caption{Jackson Yee}
    end{figure}

  • 图片重叠插入

  • usepackage{graphicx}
    usepackage{overpic} %需要使用的宏包
    
    egin{figure}
    centering
    egin{overpic}
    [width=5cm] {Jackson.JPG} % 大图片的宽度和路径
    put(-0.5,0) %小图片相对于大图片的放置位置
    {includegraphics[scale=0.1]{logo.JPG}} %大图片的缩放尺寸和路径
    end{overpic}
    caption{Jackson Yee}
    end{figure}

  • 居中位置插图
  • usepackage{graphicx} %需要使用的宏包
    
    egin{figure}label{Fig1}%标签
    centering
    includegraphics[width=6cm]{Fig1.JPG} %[图片大小]{图片路径}
    caption{image captions} %图片标题
    
    end{figure}
原文地址:https://www.cnblogs.com/franksimon/p/14500374.html