# Tag Info

## Hot answers tagged subfloats

6

Since you're looking to make the two graphs larger, you could (a) increase the widths of the two subfigure environments to, say, 0.75\textwidth and (b) set the widths of the graphs to 1\linewidth, i.e., to the full width of the enclosing subfigure environments. LaTeX will automatically insert a line break between the two subfigures. ...

4

subfigure package is obsolete. Use subfig package instead. I prefer using subcaption package which provides subfigure environment. \documentclass[12pt,demo]{elsarticle} %%%\usepackage{subfig} do not use load this package \usepackage{subcaption} %%% \begin{document} \begin{figure} \centering \begin{subfigure}{.4\textwidth} ...

3

You need to put your addition to the subfigure counter inside the first subfigure: \documentclass[]{article} \usepackage{subcaption} \begin{document} \begin{figure}[h] \caption{new} \end{figure} \begin{figure}[ht] \begin{subfigure}[t]{.45\linewidth} \caption{subfigure A} \end{subfigure} ...

2

Your usage of subfigure is missing the width. Use \begin{subfigure}{0.5\textwidth} Second mandatory argument is the width of the sub figure. Your code with this correction is \documentclass[fleqn,11pt,a4paper,demo]{article} %% remove demo \usepackage{geometry,array,graphicx,float,caption} \usepackage{subcaption} \begin{document} \begin{figure}[H] ...

2

You should not put [H] after \begin{subfigure}{\textwidth}[H] Further, these points may be noted: Don't put a blank line in between the subfigures. The sum of widths of two subfigure should not exceed \textwidth Put a % after the first subfigure if you specify a width of 0.5\textwidth for both subfigures. If the sum is less than \textwidth, you may put a ...

2

The causes of the incorrect number in the cross-reference to the figure as a whole are (i) the incorrect use of {...} to encase the material after \begin{figure} and (ii) the fact that the \label{fig:revol} statement does not occur immediately after the corresponding \caption statement (viz., \caption{Validation of Revolving by Categories}). Instead, the ...

2

Two ways: 1) Launch MiKTeX Package Manager from the Start menu, select the package you want to install and right-click on it to ask installation: 2) Launch MiKTeX Options and in the General tab, select Askme first or Yes for Install packages on the fly. Thus when a package is not installed, compilation will be interrupted to propose you to install the ...

1

Code \documentclass[a4paper]{article} \usepackage{amsmath} \usepackage[numbers,square]{natbib} %The following is uesd to make the caption colored \usepackage{xcolor} \definecolor{ocre}{RGB}{1,160,233} \usepackage{caption} \usepackage[font={small,color=ocre}]{caption} \usepackage{graphicx,subfigure} \usepackage[hidelinks]{hyperref} % hyperlinks ...

1

Try to add all tree arguments of \subfloat[][]{} command: \documentclass{scrbook} \usepackage[demo]{graphicx} \DeclareGraphicsExtensions{.pdf} \usepackage{subfig} \begin{document} \begin{figure} \subfloat[][{\includegraphics{tinyimage}}]{\includegraphics{bigimage}} \end{figure} \end{document} Note that the second optional argument is ...

1

Try this, which uses a figure to let things float and within uses two minipages to house the subfigures: \documentclass{article} \usepackage{graphicx} \usepackage{subcaption} \begin{document} \begin{figure} \begin{minipage}{0.45\textwidth} \centering \begin{subfigure}{\textwidth} \includegraphics[width=\textwidth]{Example-Image} ...

1

The following should achieve your goal I think: \documentclass{book} \usepackage{graphicx} \usepackage{subcaption} \begin{document} \begin{figure}[H] \centering \begin{subfigure}{0.45\linewidth} \centering \includegraphics[width=\linewidth]{Example-Image} \caption{} \label{fig:dragratio} \end{subfigure} \hfill ...

1

Another solution could be based on subcaption package and its subfigure environments. Each subfigure environment can contain a \caption and \label statement and can thus be cross-referenced using the \ref mechanism. \documentclass{article} \usepackage[demo]{graphicx} % remove "demo" option in your real document \usepackage{subcaption} % provides ...

1

Package subfigure has been superseded by package subfig a long time ago because of some messy stuff (as you have seen). An alternative to subfig is package subcaption by the author of caption. That means a maximum of compatibility. Here is your example changed to use the subfigure environment, which is basically a minipage. You can use the autoref ...

1

subfig provides \ContinuedFloat command to be used like this: \documentclass{article} \usepackage[demo]{graphicx} \usepackage{rotating} \usepackage{subfig} \begin{document} \begin{sidewaysfigure} \centering \subfloat[First figure]{\includegraphics[width=0.28\textheight]{figures/a.png}\label{fig:a}} \quad \subfloat[Second ...

Only top voted, non community-wiki answers of a minimum length are eligible