Place images as one row on latex
来源:互联网 发布:windows xp 怎么升级 编辑:程序博客网 时间:2024/06/15 06:57
In this blog, I will introduce four approaches for placing images as one row in latex.
First, use the minipage order, the code is as follows:
\begin{figure*}[!htb]
\begin{minipage}{a\linewidth}
\includegraphics[width=4.0cm]{1color.png}
\end{minipage}\hfill
\begin{minipage}{b\linewidth}
\includegraphics[width=4.0cm]{1depth.png}
\end{minipage}\hfill
\begin{minipage}{c\linewidth}
\includegraphics[width=4.0cm]{1mask.png}
\end{minipage}\hfill
\begin{minipage}{d\linewidth}
\includegraphics[width=4.0cm]{1result.png}
\end{minipage}
\begin{figure*}
notes that a + b + c + d <= 1, and you should use the[!htb] to ignore the beautiful default design.
if you want to place image as m*n form, the above method is also capable of doing such issue.
Second, use the array operator.
\begin{figure*}
\begin{center}
$
\begin{array}{cc}
\includegraphics[width=1.15in]{1color.png}
\includegraphics[width=1.15in]{1color.png} \includegraphics[width=1.15in]{1color.png}
\includegraphics[width=1.15in]{1color.png} \includegraphics[width=1.15in]{1color.png}
\includegraphics[width=1.15in]{1color.png}
\end{array}
$
\end{center}
\caption{my caption}
\end{figure*}
if you want to place image as m*n form, you can utilize the & and \\ operator.Third, use the subfigure operator. Notes you should add the package.
\usepackage{subfigure}
\begin{figure*}[!htb]
\subfigure[text]{
\includegraphics[width=.24\textwidth]{1color.png}
}\hfill
\subfigure[text]{
\includegraphics[width=.24\textwidth]{1color.png}
}\hfill
\subfigure[text]{
\includegraphics[width=.24\textwidth]{1color.png}
}\hfill
\subfigure[text]{
\includegraphics[width=.24\textwidth]{1color.png}
}\hfill
\caption{blablabla}
\label{fig:whatever}
\end{figure*}
Four, use the subfloat operator. Notes you should add the package.
Summary: if you want to place all images as one row, you'd better use the !htb.\usepackage{subfig}
\begin{figure*}[!htb]
\begin{center}
\subfloat{\includegraphics[width=4cm]{1color.png}}
\subfloat{\includegraphics[width=4cm]{1color.png}}
\subfloat{\includegraphics[width=4cm]{1color.png}}
\subfloat{\includegraphics[width=4cm]{1color.png}}
\end{center}
\end{figure*}
Author: sgliu 11/22/2012 at Beijing
- Place images as one row on latex
- Using Images as Buttons on Windows Phone 7
- How to capture video frames from the camera as images using AV Foundation on iOS
- <#list list as row>
- One on One Talk
- Add One Row to Tree
- In Android how to display one view as overlay on top of another view?
- 1953429 - SAP HANA and SAP NetWeaver AS ABAP on one Server
- Naming Images on iOS platforms
- edge detection on digital images
- OpenCV save RGB images as bmp
- Expert One-on-One Oracle
- Documents on LaTeX.
- Using LaTeX on Windows
- LaTex on Ubuntu
- Notes on LATEX
- Notes on Latex lshort
- ORA-01427:single-row subquery returns more than one row
- JAVA_IO2
- TLD(Tracking-Learning-Detection)学习与源码理解之(五)
- 非替换元素和替换元素
- Android布局属性详解
- php导出导入excel乱码 及列数的计算
- Place images as one row on latex
- 网页制作html的基本解释与操作(二)
- 关于Element与Document的getElementsByTagName方法
- java代码优化简介
- asp.net利用Jmail发送邮件和接收全部代码
- RCP 首选项笔记
- libmysqlclient.so.18错误
- 不能在析构函数里面抛出异常
- Java中正则表达式使用方法详解