# Tag Info

## Hot answers tagged subfloats

6

Yes. you can do this on two ways: use \tikzset (not tikzstyle, it is deprecated) and put them after \begin{tikzpicture}, for example \begin{tikzpicture} \tikzset{ every node/.style = {draw, align= center, ...}, arrow/.style = {thick,-{Latext[]} } ... } \node (first) {...}; ... \end{tikzpicture} include styles as tikzpicture ...

6

When using subcaption with memoir there is no need to say \newsubfloat{figure}. Remove that line and it's seems to be fine. \documentclass[a4paper, 10pt, openany]{memoir} \usepackage[demo]{graphicx} \usepackage{caption} \usepackage{subcaption} % Enable subfigures %\newsubfloat{figure} %commented % Section numbering depth \maxtocdepth{subsection} ...

4

I would avoid using caption with memoir as it provides its own mechanism for setting sub-floats: \documentclass{memoir} \usepackage{graphicx} % Enable subfigures \newsubfloat{figure} \begin{document} \begin{figure} \hfill \subbottom[First subcaption]{% \includegraphics[width=3cm]{example-image-a}} \hfill \subbottom[Second subcaption]{% ...

4

You almost do ... Unfortunately, I haven't so nice figures to include them in MWE below: \documentclass{article} \usepackage{graphicx} \usepackage{caption,subcaption} \begin{document} \begin{figure}[ht] \centering \begin{subfigure}[b]{0.5\linewidth} \centering \includegraphics[width=0.95\textwidth]{example-image-a} \caption{}\label{fig:fig1} ...

3

If your aim is to equalize the spaces, then \null\hfill is not the right way. Note that \null does not start horizontal mode (that is, a paragraph), so all it does is to create some vertical space. Note also that subfigure has been obsolete and deprecated for 15 years. \documentclass[10pt]{article} \usepackage{showframe} % just for the example ...

3

The subcaption package interprets spaces between subfigure environments within the figure to be new rows. Removing the space between these environments (and the unnecessary \quad and bigskip) yields the desired 2x2 \documentclass{article} \usepackage{tikz} \usepackage{subcaption} \begin{document} \begin{figure} \centering ...

1

Just make two rows, one for images, one for captions \begin{figure}[htbp] \centering \begin{minipage}{0.6\textwidth} \includegraphics[width=\textwidth]{figures/fig1.jpg} \end{minipage}%%% \hfill \begin{minipage}{0.35\textwidth} \includegraphics[width=\textwidth]{figures/fig2.png} \end{minipage} ...

1

You could define a \centerbox command which you wrap around all the images you want to include. Technically, it's not the label "(a)" which is off, but the images only get placed with zero offset. That's what you can change with a \raisebox. \documentclass{article} \usepackage{graphicx} \usepackage{subfigure} ...

1

Some manual work, but this seems to be what you're looking for. Note that subfigure has been obsolete for several years and subfig is much better, if not subcaption that, however, has quite a different syntax. \documentclass{article} \usepackage{graphicx} \usepackage{subfig} \begin{document} \begin{figure}[htp] \centering ...

1

The reason for the legend being offset like this is because the [b] option to the subfigure environment tells it to align the contents at the bottom; hence why the bottom of the legend is sitting at the same level as the bottom of the (c). If you want to align to each subfigures centres, use [c] and if you want to top of each subfigure to line up, use ...

1

With use of \sbox{...} you can measures the size of left images and then accommodate your image with legend to its height: \documentclass{article} \usepackage{subcaption} \usepackage{graphicx} \begin{document} \begin{figure} \begin{subfigure}[b]{0.5\textwidth} \centering \includegraphics[width=0.9\textwidth,trim=3mm 4mm 50mm 2mm, ...

1

Ultimately, there's a minimum width of the trees that arises from the text inside the leaf (end) nodes. For both trees, you can see that placing all the x_n <- 1 end to end results already takes over half the text width. If you want to force those trees to be side-by-side, you'll either have overlapping trees (as you currently do), or overlapping nodes. ...

1


1

If your document looks like \documentclass{article} \begin{document} \usepackage{subfigure} \end{document} then you get the error ! LaTeX Error: Can be used only in preamble. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ... l.5 \usepackage ...

1

I suppose you want something like this: \documentclass[10pt]{article} \usepackage{subfigure} \begin{document} \begin{figure}[htbp] \centering \subfigure[Lego Mindstorms Color Sensor 1]{\rule{4cm}{4cm}} \hspace{2em} \subfigure[Lego Mindstorms Color Sensor 2]{\rule{4cm}{4cm}} \rule{35em}{0.5pt} \caption{Color / RGB Sensors} \label{img:colorSensor} ...

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