作者sppmg (sppmg)
看板LaTeX
标题Re: [问题] 图片的排列
时间Mon Dec 19 01:39:36 2016
我想到的是用 minipage (之前看过有人说复杂点的排列一律用 minipage [B):
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\begin{figure}[ht]
\centering
\begin{minipage}{0.65\linewidth}
\includegraphics[width=\linewidth]{example-image-a}
\caption{\label{fig:fig1}}
\end{minipage}
\begin{minipage}{0.28\linewidth}
\includegraphics[width=\linewidth]{example-image-b}
\caption{\label{fig:fig2}}
\includegraphics[width=\linewidth]{example-image-c}
\caption{\label{fig:fig3}}
\end{minipage}
\end{figure}
\end{document}
-------------------------------------
另一个可能的办法是用表格做。不过刚刚测试,\caption 在 tabular 环境好像有点问题
,没深入探究。而且表格的垂直对齐搞不定,图一那位置总是跑到下面,应该是因为它把
图片定位点设在图的上方,所以定位点垂直置中後图就在下面了。
如果你今天要的是品字形
--------------
| |
| |
| 1 |
| |
| |
--------------
------ ------
| | | |
| 2 | | 3 |
------ ------
可以简单的用 \subcaptionbox 做 (subcaption套件)
※ 引述《noonee (我和烤肉间只差一撮孜然)》之铭言:
: google了一下没找到我想问的问题 所以想来问问各位
: 我想把图片照下面这样排列
: ------------------ --------
: | | | 图二 |
: | | | |
: | 图一 | --------
: | | --------
: | | | 图三 |
: | | | |
: ------------------ --------
: 但是直接排列
: \end{document}
: \begin{figure}[htbp]
: \includegraphics[width=0.49\textwidth]{fig1.eps}
: \includegraphics[width=0.24\textwidth]{fig2.eps}
: \includegraphics[width=0.24\textwidth]{fig3.eps} \\
: \end{figure}
: \clearpage
: 会变成
: ------------------
: | |
: | |
: | 图一 |
: | | -------- --------
: | | | 图二 | | 图三 |
: | | | | | |
: ------------------ -------- --------
: 有google到两个图如何上下排
: 但是没查到如何三个图如最上面那样并排
: 所以想请问各位有没有意见?
: 谢谢
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 114.32.188.151
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/LaTeX/M.1482082780.A.A49.html
1F:→ noonee: 感谢 我试试! 12/19 01:46
附注一下,由於我自己的样板使用到 floatrow 套件,它可以重设 caption 位置。
但使用多个 cpation 於一个浮动环境 (figure) 时会出错(本例 ):
! Package floatrow Error: Caption(s) lost.
此时可以简单的用 \RawCaption{}将原有的 \caption 包起来解决问题。
\RawCaption{\caption{123}\labal{123}}
※ 编辑: sppmg (114.32.188.151), 01/06/2017 22:49:09
2F:→ noonee: 感谢 之前我试过可以成功排版 01/07 04:51