b*******t 发帖数: 33714 | 1 \usepackage[caption=false]{subfig}
\usepackage[footnotesize]{caption}
\begin{figure}[htbp]\centering
\subfloat[]{\label{aa}\includegraphics{a.jpg}}
\subfloat[]{\label{bb}\includegraphics{b.jpg}}\\
\subfloat[]{\label{cc}\includegraphics{c.jpg}}
\subfloat[]{\label{dd}\includegraphics{d.jpg}}\\
\caption{Subfloat test: \subref{aa} subplot a \subref{bb} subplot b \subref{
cc} subplot c \subref{dd} subplot d.}
\label{fig:test}
\end{figure} |
|
a******s 发帖数: 232 | 2 Thanks for your answer. subfloat solved my problem. I have one more quesion
concerning the latex package. It seems there are tons of latex packages
available online,like subfloat,subfig etc. How do I know which package is
the one I need? Most of time, it's very hard to get the exact package I
need. Do you know subfloat before you answered my question? or you've have
experience with subfloat? Thanks again for the answer. :) |
|
w**********i 发帖数: 24 | 3 \begin{figure}
\centering
\subfloat[][]{}
\qquad
\subfloat[][]{}
\caption
\label
\end{figure}
\begin{figure}
\ContinuedFloat
\centering
\subfloat[][]{}
\qquad
\subfloat[][]{}
\caption
\label
\end{figure} |
|
i***g 发帖数: 551 | 4 用subfig这个package,大概是这个样子的:
\begin{figure}
\subfloat[][]{
\label{fig:xxx:a}
\begin{minipage}[b]{0.45\linewidth}
\centering \includegraphics[width=\linewidth]{img/xxx}
\end{minipage}}
\hfill
%
\subfloat[][]{
\label{fig:xxx:b}
\begin{minipage}[b]{0.45\linewidth}
\centering \includegraphics[width=\linewidth]{img/xxx}
\end{minipage}}\\
%
\subfloat[][]{
\label{fig:xxx:c}
\begin{minipage}[b]{0.45\linewidth}
\centering \includegraphics[width=\linewidth]{img/xxx}
\end{minipage}}
\hfill
%
\subfloat[][]{
\ |
|
h******s 发帖数: 176 | 5 your code can be simplified and there is no need for minipage
\begin{figure}[htbp]
\centering
\subfloat[][]{\label{fig1a}%
\includegraphics[height=x.yin]{fig1a}}%
\subfloat[][]{\label{fig1b}%
\includegraphics[height=x.yin]{fig1b}}%
\\
\subfloat[][]{\label{fig1c}%
\includegraphics[height=x.yin]{fig1c}}%
\subfloat[][]{\label{fig1d}%
\includegraphics[height=x.yin]{fig1d}}%
\caption{your caption.}\label{fig1}%
\end{figure} |
|
T*******n 发帖数: 493 | 6 You are including a figure of width \textwidth inside a
minipage of width 0.5\textwidth!
Try something simpler:
\documentclass{article}
\usepackage{subfig}
\begin{document}
\begin{figure}
\centering
\subfloat[]{\includegraphics[width=\textwidth]{fig1.eps}}\par
\subfloat[]{\includegraphics[width=\textwidth]{fig2.eps}}\par
\subfloat[]{\includegraphics[width=\textwidth]{fig3.eps}}
\caption{Caption}
\end{figure}
\begin{figure}
\centering
\includegraphics[width=\textwidth]{fig1.eps} \\ (a)\par\bigski |
|
g*********r 发帖数: 124 | 7 \begin{figure}[!htb]
\centering
\begin{minipage}[c]{0.5\textwidth}
\subfloat[\footnotesize]{\label{fig:1a}
\includegraphics[width=1.0\textwidth]{1a.eps}}% 左边大图
\end{minipage}\hfill
\begin{minipage}[c]{0.5\textwidth}
\subfloat[\footnotesize]{\label{fig:1b}\includegraphics[width=1.0\textwidth]
{1b.eps}}\ % 右上小图
\subfloat[\footnotesize]{\label{fig:1c}\includegraphics[width=1.0\textwidth]
{1c.eps}} % 右下小图
\end{minipage}
\caption{...}
\label{fig:1}
\end{figure}
如果想达到两边图形高度相等的效果,两个小页的宽度需要作适当调整。
c) |
|
S**I 发帖数: 15689 | 8 \usepackage{subfig}
\begin{figure}
\subfloat{\includegraphics{fig1}}
~~\subfloat{\includegraphics{fig2}}
\subfloat{\includegraphics{fig3}}
\end{figure} |
|
T*******n 发帖数: 493 | 9 Try the subfloat package, LaTeX Companion 2nd ed. pp. 321-322 or
http://www.ctan.org/tex-archive/macros/latex/contrib/subfloat/
By the way, the subfigure package is replaced by the subfig package,
so those who want to generate subfigures should try to use subfig
instead of subfigure. They are by the same author. The subfig
package also works well with the caption package (subfigured worked
with caption2). |
|
T*******n 发帖数: 493 | 10 No I didn't know about subfloat until I answered your question earlier.
I found out about subfloat in "The LaTeX Companion", 2nd edition
(Addison-Wesley 2004, ISBN 0-201-36299-6) by looking up
"sub-figures" in the index and quickly scanning half a dozen pages.
I strongly recommend this book to every serious user of LaTeX.
Some people think that the price (US$59.99) is to expensive, but this
book does answer almost questions that are asked here and in other
LaTeX fora. And even if you don't have |
|
y*****o 发帖数: 101 | 11 COOL! it works! Thank you so much!
我的图片本身已经有了(a) (b) (c)的标签,要去掉subfig (或者subfloat)加的a, b,
c的caption应该怎么做?
Thank again! |
|
G****A 发帖数: 4160 | 12 不知道怎么搞得,页面左边的margin总是明显小于右边。我把握用的package列出来,
请高手帮忙看看,多谢!
********************************************
\documentclass[conference]{IEEEtran}
\usepackage[]{algorithm2e}
\usepackage{latexsym,psfig,url}
\usepackage{amssymb}
\usepackage{multirow}
\usepackage{subfigmat}
\usepackage{pifont,comment}
\usepackage{cite,balance}
\pagestyle{plain}
\usepackage{float}
\usepackage{subfloat}
\newcommand{\excluded}[1]{}
\newtheorem{definition}{Definition}
\newtheorem{proposition}{Proposition}
\newtheorem{theorem}{ |
|
m**a 发帖数: 53 | 13 这是个好问题。相关的包以及相互兼容性最近一两年好像老是变,我去年投文章用的是
subfig包,用法如下:
begin{figure}
subfloat[FOOBAR'S SUBCAPTION]{includegraphics{FOOBAR}}
%...
end{figure}
具体google之。 |
|