Tag Info

Hot answers tagged

4

If I understood your question correctly, for the horizontal alignment you can use a tabular with two c columns; the vertical alignment comes from \subcaptionbox: \documentclass[a4paper, 12pt]{report} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage{subcaption} \usepackage{subfig} \usepackage{floatrow} ...


3

Don't use subfigure, that has been obsolete for 15 years or so. With subfig and its \subfloat command that substitute the obsolete package, the label should go in the optional argument (the one for the subcaption). \documentclass[11pt,twocolumn]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} % ensure your document is UTF-8 ...


2

The class acmsmall is defining a command \subcaption which results in the captions shown in Karl's answer. If you are not strictly bound to that template and want to use normal labelling as from the package subcaption, you will have to undefine that very command. The reason for doing so could be that you would like to reference to some subfigure ...


2

See, if this is what you like to obtain: I guess that you have problem with definition of image width. I replace \includegraphics[width=0.84\linewidth]{Graph2} with \includegraphics[width=0.84\hsize]{example-image} and for images select test images which provide graphics package. I didn't give any attention to their height. The complete code is: ...


2

the subfigure width argument needs curly braces ie \begin{subfigure}{3.0\textwidth} however i think that seeing as you have only one image the subfigure environment is somewhat redundant. You can just as easily control position, size, caption numbering etc. using just figure and \includegraphics. (the above solution uses subcaption package)


2

Here is subcaption solution, which has to been used in its own box or environment (that's a little bit tedious) Otherwise, everything works like normal. The optional argument to \subcaption , i.e. the one enclosed with [...] will appear in the List of Figures (Lof). If no such option is given, then the value of the mandatory argument {...} will go to the ...


2

The caption package provides the \ContinuedFloat macro for figures that are split over multiple floats. Combined with the subfigure environment, as in Matt's answer, to get the subfigure-numbering. \documentclass{report} \usepackage{subcaption} \DeclareCaptionSubType*[Alph]{figure} \captionsetup[subfigure]{labelformat=simple} ...


1

You can use the subcaption package to get subfigure labeling. Normally you would just include multiple subfigures within a single \begin{figure} ... \end{figure} environment, but if you want it to break across pages you can't do that. In order to get the numbering to work out, I reset the subfigure counter every time I start a new figure. ...


1

Regarding OP additional question in comment I wrote separate answer. There are more possibilities how to vertical centering your sub images. First, which come to my mind is to use tabular environment with column type m{<width>}, which is defined in package array: Code: \documentclass{article} \usepackage{graphicx} \usepackage{subcaption} ...


1

You are introducing some spurious white spaces by calling the subfigure environment on and on again. This environment is not meant to be called after an \includegraphics and therefore does not handle the white space introduced by the new line. You have to end that line with a %. I redefined your \phantomsubfigure in order to prevent you from this error for ...


1

The comments have described how to do this with \captionof, here is a different approach with \phantomsubcaption from the subcaption package. \phantomsubcaption is useful for example if you have generated a figure with sub-figure labels included in the graphic, but it can also be used in this case. \documentclass{article} \usepackage{pgfplots,subcaption} ...



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