Subcaption latex. It only takes a minute to sign up. Subcaption latex

 
 It only takes a minute to sign upSubcaption latex 5 of the subcaption package

@JohnKormylo, I tried to use the 'subcaption' package, but it has conflict with 'subfigure', which I need to define the lines. Using a short template. I therefore suggest you (a) load the subcaption package (which works fine with most document classes, by the way), (b) replace the tabular environments with subfigure environments, and (c) use caption directives inside each subfigure. You do know what's the needed space, namely 0. I am trying to recompile a TeX file on Linux that was fine before on OS X. So I generate the label before efstepcounter then reset @currentlabel after. 4M). I am using the caption and subcaption packages to create subtables and to caption them. Sign up to join this community. The answer provides a code example and a visual explanation of the options for the optional argument of the subfigure environment. For adding a caption to the minipages, I recommend to use the subcaption package. Currently, the only solution that works is to shrink the width of the minipage directly, and insert \hspace between minipages. Provides support for the manipulation and reference of small or ‘sub’ figures and tables within a single figure or table environment. egin {minipage} {linewidth} centering egin {minipage} {0. But I want LaTex to treat each of the two figures as subfigures, so for example, I want to have subcaptions for each figure like 'a) model 1' and 'b) model 2'. but this doesn't seem to change anything about subcaption adjustment. This is why I'm not using the subcaption package for the time being. I currently have a figure that contains two subfigures. (Note that the default value for outer-pos has changed from ‘c’ to either ‘b’ or ‘t’ in version 1. It should no longer be employed. Sorted by: 1. Either use subfig (as here) or subcaption. I have a figure fig. 1. 4. This can be corrected by adding centering after egin {subfigure} [b] {0. I'm using the subcaption package and I would like to change the display in the List of Figures of the subfigures. with subcaptions (a), (b), (c) align to the top left of the subfigures and caption on the right of the figure. 5 of the subcaption package. documentclass{article}% usepackage{graphicx} usepackage{subcaption} usepackage{mwe} %<- For some. Building on @MadyYuvi's comment, I would suggest that you not load the caption package and, instead, issue the directive setlengthFullWidth{ extwidth} before egin{table*}. Change line in caption [IEEE Access journal template] 1. My attempt at a work around is to use the subfigure environment. See how and & are used after end. Update (subcaption) Using \hfill so separate the different subfigures is a better way than the \hspace{0. How to reduce caption font in subcaption for a particular figure. Because if you wish to switch the subfigures, you'd have to change the "hard-coded" image captions as well. subfloat is not a command implemented in the subcaption package, so it won't be recognised by the package. In fact, the package subfig is very old and appears not to have been maintained since 2005 (!). 3. You can change the fontsize of the subcaptions just by changing the \footnotesize to the desired size. 2. Now let’s see how to use the minipage environment in practice. See full list on latex-tutorial. 85pt. You can place this command where you want, i. TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. 1 Answer. tex and adding the package subcaption and captionsetup[sub]{. – samcarter_is_at_topanswers. Feb 21, 2015 at 21:00. } you say "Hey, this isn't a figure but typeset the caption like a figure caption and btw please increase the figure counter". So I generate the label before \refstepcounter then reset \@currentlabel after. +50. usepackage {graphicx} usepackage {subcaption} egin {document} egin {figure} [b] centering egin {subfigure} {. Yes, but not floatrow; caption focuses on the formatting of the captions and not specializes in positioning them; although it gives some possibilities, it's not as flexible as floatrow in this respect. Your code, however, suffers of two problems: You started egin {figure} [h!], but you never closed it by end {figure}. I'd like to add a caption at the bottom of each of the images load_8. The documentation says: The vertical space between the caption and the figure or table contents is controlled by the option skip=amount. The package provides a means of using facilities analogous to those of the caption package, when writing captions for subfigures and the like. However, if the captions span over different numbers of lines this is mixed up again. ~1. To reach the desired font size for the figure environment, just put in the preamble: \usepackage {caption} \usepackage {subcaption} \captionsetup [figure] {font=footnotesize} For the subfigure's caption size to be taken into account, just change the command figure from. 13. 2 tables side by side, with (or without) caption, without new packages: Just imbricate 2 tables! It is perfectly fine to have a table as a "regular" entry of another table. It looks like you're completely mis-using the optional argument of the subfigure environments. . documentclass[14pt,a4paper]{extarticle} %,twoside Usado en latex-ssau-gost-style-master usepackage{mutavel} % Usad. subcaption – Support for sub-captions. 4. For this project, every image we use we will store in the images folder to keep everything tidy. You can use the caption package for this: usepackage [skip=2pt] {caption} % example skip set to 2pt. 1. Improve this answer. Also, do make sure that the widths of the tabular environments don't exceed the widths allocated to the subtable environments that enclose them. All I want is to move the entire subcaption to the position of the red box. /macros/latex/contrib/caption. The reason for this is that I have a complex array of subfigures that I create as a single image file. The line with enewcommand now makes ef work as I want, namely 1 (a), so there is no need to use subref* as in other solutions above. Again, we can give each subtable a label and caption as well as giving the whole table figure a label and caption. TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. xyz. @pluton No; beamer internally deactivates flotation. 4. This environment takes as a mandatory argument the width of the text since TeX needs to know, before breaking text into lines, how wide the lines should be. left aligned) captionsetup [subfigure] {position=top, labelfont=bf,textfont=normalfont,singlelinecheck=off,justification=raggedright} The above will place the caption on top of the figure left aligned. If you read IEEEtran documentation will see that it recommends not using subfigure package but subfig. With this both figures will have the same caption number, however the sub captions numbering is continued from the previous figure: documentclass {article} usepackage {graphicx} usepackage {caption. \subfloat is not a command implemented in the subcaption package, so it won't be recognised by the package. labelformat=simple removes them from the subfigures, so these are now displayed as (a). In the first post we prepared the document for images by loading up the graphicx package and by informing LaTeX where the images are stored using the graphicspath command. It only takes a minute to sign up. Try something like this: \documentclass {article} \usepackage {graphicx} \usepackage {subcaption} \usepackage {mwe} \begin {document} \begin {figure*} \centering \begin. Register as a new user and use Qiita more conveniently. Change this line to. With your packages, I don't really know. Facilities include rotating captions, sideways captions, continued captions (for tables or figures that come in several parts). 0. 1 Answer. ". Latex插入多张图片. e. Below is how to insert two figures. 45 extwidth] at the start of the first subfigure environment. TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Sorted by: 10. % !TeX TS-program = xelatex %documentclass [a4paper,10pt] {article} documentclass [12pt] {article} %A Few Useful Packages usepackage {marvosym} usepackage. Newer one is subfig. 6. To demonstrate this problem I use "RevTeX 4. You can change the fontsize of the subcaptions just by changing the footnotesize to the desired size. You can put a figure inside a minipage if you use the "float" package. edited May 5, 2021 at 7:01. The code is : documentclass{article} usepackage[demo]{graphicx} usepackage{caption} usepackage{subcaption} egin{document} lindtext lindtext lindtext egin{figure}. OK thanks everyone. The very recent version of the subcaption package will even issue an error: ! Package caption Error: The `subcaption' package does not work correctly (caption) in compatibility mode. Taken from the subcaption documentation, section "Referencing sub-figures without sub-captions": If you don’t want to give a sub-figure a caption, because the picture itself already contains the caption, or for some other reason, you can use the command \phantomsubcaption instead of \subcaption , or – when inside a subfigure or subtable. 7. That is fine. . you can change numbering of sub figures with. The subfloat package doesn't define subfloat (and has never defined it). In that case, try subcaption package as mentioned in this answer. It only takes a minute to sign up. TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. 5 of the subcaption package. left aligned) captionsetup [subfigure] {position=top, labelfont=bf,textfont=normalfont,singlelinecheck=off,justification=raggedright} The above will place the caption on top of the figure left aligned. bottom baseline. If each table is going to be exactly the same, you can just use a simple pattern: \hfill table \hfill table \hfill etc. The aisebox for the caption was to automatically produce a gap between rows. The size of the figures can be controlled by the subfigure argument. Here, with subcaption load caption before, but not subfigure or subfig, which do a similar job but are not required if you already use subcaption, as mentioned. If you want to fit all three images in a single line, make them smaller: documentclass [conference] {IEEEtran} IEEEoverridecommandlockouts usepackage {cite} usepackage {amsmath,amssymb,amsfonts} usepackage {algorithmic} usepackage. Here's one option (adding the reference to the caption): documentclass{article} usepackage[demo]{graphicx} usepackage{subfig} egin{document} egin{figure. I use the caption package to change caption style for all floats. I guess that you have two column document and that you like to have sub images in two rows. If you put the label first, there is nothing onto which it might hook. e. [1] LaTeX2e 美文書作成入門 改訂第7版. So instead of using minipage plus subcaption, use subfloat instead. Stack Exchange Network Stack Exchange network consists of 183 Q&A communities including Stack Overflow , the largest, most trusted online community for developers to learn, share their. \begin {figure} [h!] The subfig package does not offer a \subcaption command, and you cannot load both, subfig and subcaption. warning since v1. subfigures: caption for every row and every column. Reading other Stackexchange posts on. Should you need to change the figure sizes, please change the multiplier with extwidth (0. You can efficiently read back useful information. とある学会に提出する論文を書いていた. The only way you can get the correct reference, is if you place content after a caption, as the caption steps the associated counter and sets the correct reference. What I have: What I want:To check the effect of the spaces in Viesturs' MWE, we can first measure the size of extwidth with: textwidth: he extwidth. Sorted by: 1. I am using the caption and subcaption package with floatrow and would like to change how references with ef are formated. 1 Answer. For example: captionsetup {format=plain, font=small, labelfont=bf} will gives format similar to. This is not a criticism of subcaption. 2 Answers. The gap between figure and caption is controlled by the optional argument to \stackunder and is, in this example, set to 5pt (the default is 3pt). The [ht] option tells TeX to try to place the table h ere, but if unable, place it at the t op of a nearby page that follows. It only takes a minute to sign up. As it happens, the optional arguments a, and d are not valid and are thus simply ignored, c (short for "center") is the default and does nothing in the second row, and b (short for "bottom") is interpreted as requiring bottom alignment of the image with respect. Varying the parameters of captionsetup or subcaption [] does make any difference, whatever I tried 0. subfigure counters not resetting. The tables will fit if: the indention at the start of the line is removed with oindent. It only takes a minute to sign up. Refs to subfigures should be 1,,a instead 1a. Remember, if you want to place elements horizontally, you can't add extra empty lines. If you want to use the subcaption package, you can use the either the subtable environment or the subcaptionbox command. strut% } end{figure}. The first argument #1 specifies the position of the caption and label. 1' in place of this command in the pdf. TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. In it you than can set width of figure relative to subfigure width, for example: Also the \centering should be inside of table environment. I guess that you want the caption to be next to. Learn how to typeset sub-captions with the subcaption package, a user interface to the caption package. Removing caption{} or using caption*{}. 空白の扱い [1. If each table is going to be exactly the same, you can just use a simple pattern: hfill table hfill table hfill etc. So for second figure it is used egin {subfigure} [<vertical position>] [<stretch the height>] [position inside] {width} The stretch was chosen manually. Any number of columns is possible, although I would limit it to three. I do not want to use subfigures for a reason, but just use subcaption to imitate subfigures. LaTeXでsubcaptionパッケージを使用したときにcaptionの書式まで変わってしまう、という問題に対する解決策を調べた。 日本語で調べても答えが見つからなかったので、忘れないうちにここにメモしておく。 問題. You're adding unwanted spaces, though (in front of all \hfill commands, to be precise). You can even use the multirow package for even further tweaking and control. From. It only takes a minute to sign up. } add singlelinecheck=false. but it also changes how subcaption appears but not only references to labels of subcaptions. For example, if you. It only takes a minute to sign up. It cannot be placed before. File classicthesis-config. 1. } end{subfigure} hfill egin{subfigure}{0. So if in doubt, or when writing own LATEX commands which should work in every floating environment, using subcaptionblock is the correct choice. Share. You can place this command where you want, i. In the first post we prepared the document for images by loading up the graphicx package and by informing LaTeX where the images are stored using the graphicspath command. 1 Answer. I would really recommend subcaption package because it really offers great customization possibilities as sampled below. I have three models that I test under different parameter configurations. Spacing can be changed as needed. I am using the usepackage{subcaption} library (inspired by this) to create a figure with two images, like so: egin{figure}[H] centering egin{subfigure}{0. If you put that captionsetup command in the. 1 extwidth, 0. I have a figure as follows, and it captions the two figures with (a) and (b) but I would like to have them labelled as Figure 1 and Figure 2. An online LaTeX editor that’s easy to use. – The problem is, that I have a lot of subfloats in my document and the packages subfig and subcaption are incompatible. TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It is convenient to use this package when your subfigures are to be separately captioned, referenced, or are to be included in the List-of-Figures. This. Subfigures in LaTeX are a great way to add multiple images to a document while maintaining proper placement and referencing. documentclass {scrartcl} usepackage {graphicx} usepackage [font=footnotesize,figurewithin=none] {caption} usepackage. See subfig documentation for details about the syntax of subfloat. 4 in this case. Any idea please? – Rebecca. 4. e. documentclass{article} usepackage{graphicx} usepackage{caption}. The file verb+rlc. 4 Sub-Floats. – egreg. 2 Answers. egin {figure} [h!]The subfig package does not offer a subcaption command, and you cannot load both, subfig and subcaption. I have a single figure containing two plots. 45 extwidth} aligns the. It only takes a minute to sign up. the subcaption package automatically loads the caption package. I changed the numbers before columnwidth from 0. Author: Anonymous User 8503 online LaTeX editor with autocompletion, highlighting and 400 math symbols. The original idea was to use subcaption in the first column, but its baseline is at the top making vertical alignment difficult. Sign up to join this community. Personally, I'd recommend sticking with the subcaption package, and using a set up like the following for your MWE. Split your figure into two figures and than to the second one immediately after egin {figure} add command ContinuedFloat. end {table} around your tabular environment and insert a caption or subcaption as in the case with a figure. Basic use. 5 extwidth} means. Package caption Warning: Unsupported document class (or package) detected, (caption) usage of the caption package is not recommended. 48linewidth} centering subcaptionbox. I can set the vertical space between the 2 to something specific (using igskip or vspace), but I would like to put as much space as possible between the 2 instead, so that the first subfigure is at the top of the page, and the second one at the bottom (with the caption for the whole figure. No installation, real-time collaboration, version control, hundreds of LaTeX templates, and more. The reason I don't use subcaption is that, well, this is close to what I was using with older ACM classes, and I've opted for minimum. The answer provides a code example and a visual explanation of the options for the optional argument of the subfigure environment. The very recent version of the subcaption package will even issue an error: ! Package caption Error: The `subcaption' package does not work correctly (caption) in compatibility mode. You can use dark theme. I use egin{subtable}{. ) – John Kormylo. Just use the optional [t] argument from subcaption: documentclass{article} usepackage{graphicx,subcaption} egin{document} egin{figure} %centering -> This. It should have a file template. The default for the standard document classes is skip=10pt, but other document classes may use a different amount. It only takes a minute to sign up. usepackage {subfig} or. the option [ht] should be sufficient. Need help indexing subfigures: reference bugs using `subfigure` and `subcaption` not compatible with specialized document class 1 Side-by-side figures with caption, specify height but use whole. If igskip is too much for your taste, try using medskip. 8 extwidth, respectively. The {figure} environment isn't limited to contain only figures etc. . I've reached the conclusion, looking at what people say about subfigure, subfig, and subcaption, that I should ditch subfigure, load subcaption, RTFM for subcaption and work from there! Thanks for solving the problem I asked about, though! :) –1. (Note that the default value for outer-pos has changed from ‘c’ to either ‘b’ or ‘t’ in version 1. I know how to use wrapfig for a single figure and subcaption and subfigure to get the 3 vertical figures, but I can't seem to put the them together. . TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. I would suggest a work-around, if all else fails, as it is difficult to test this without going through the submission process yourself. If a subcaption argument is given (including the null subcaption ‘[]’) then the sub gure is labeled with a counter formatted by the command ‘\thesubfigure’ which returns, by default, ‘(a)’, ‘(b)’, etc. The subcaption package is the one for. Need help indexing subfigures: reference bugs using `subfigure` and `subcaption` not compatible with specialized document class 1 Side-by-side figures with caption, specify height but use whole textwidth The subcaption package provides \phantomsubcaption for this kind of problem. Sorted by: 64. (But you could do so by using other packages like the floatrow package [8]. usepackage{subcaption} usepackage[labelformat=parens,labelsep=quad,skip=3pt] {caption} usepackage{graphicx} With that, we are now ready to combine several sub-figures to a single figure. Since the legend has no caption, it might look a little offset. 2. You can use it to treat both images as subfigures of the same figure: documentclass {article} usepackage [T1] {fontenc}. subfig - not plotting figures. It only takes a minute to sign up. 45. You can following the same type of precedures discussed in Subcaption vertical alignment and Vertically align different size images in a figure* environment. usepackage[demo]{graphicx} usepackage[hypcap=false]{caption} usepackage[list=true]{subcaption} The list of subfigure does not appear in List of Figure. I have tried formulations of using subcaption inside minipage--subcaption and subcaptionbox. (Note that the default value for outer-pos has changed from ‘c’ to either ‘b’ or ‘t’ in version 1. That way, subfigures can also be cross-referenced individually. It will not place it on the side as. Subfigures When writing a thesis you may want to include some slightly more complicated figures with multiple images. It is pretty much to be expected given that subcaption is more powerful/flexible than subfig. Also, subfigure is obsolete. If I change the definition to enewcommand { hesubfigure} {- [#1]}, cref seems to. Background: With captionsetup {type=figure} you say "Hey, here starts some kind of figure, so increase the figure counter etc. . This works under the assumption that all the images on a line have the same height. The subcaption package typesets the subfigure captions at small, for a ca. You can load subcaption and caption packages and use captionof inside a node like. (The framelines in the following image indicate the. It only takes a minute to sign up. You could (i) use the tabular* instead of the tabular (or tabularx) environment, (ii) set the width of the tabular* to linewidth, and (iii) use the (admittedly complicated-looking) expression @ {extracolsep {fill}} to make LaTeX expand the intercolumn white space so that the contents of the table take up the full. The problem comes from the adjustbox; if you replace it with a minipage surrounded with an fbox, the subcaptions are centered again: documentclass[12pt]{article} usepackage{mathptmx} usepackage{amsmath} usepackage[demo]{graphicx} usepackage[margin=0. In the first post we prepared the document for images by loading up the graphicx package and by informing LaTeX where the images are stored using the \graphicspath command. To align the tops you need to use \raisebox. The better way is to use the aboveskip option for the » subcaption « package. Refs to subfigures should be 1,\,a instead 1a. \documentclass {article} \usepackage {caption,subcaption} \begin {document} \begin {figure} \parbox [b] {. the minipages are resizes to . This is a minimal working example: documentclass [letterpaper, 10 pt, conference,tikz] {memoir} % Comment this line out usepackage {subcaption} %TikZ usepackage {tikz} % Begin document egin. Instead of subfigure environments (in the case that you use recent version of subcaption package) you can use subfloat command, which automatically center image and caption. This optical illusion go away, if the subcaption text has width of subfigure. Any number of columns is possible, although I would limit it to three. Your second block seems to use the default text font, so you simply remove the manual font settings from your first document to get the same font. Regarding this spacing between the object and the caption, there is a problem in the. TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. documentclass{article} usepackage{graphicx. Add a comment. bib} % this is your BibLatex. Skips. Just stack the subcaption text under the subfigure. 2. 3. In case you have problems with other text from your document interfering with the figure, add clearpage before/after it. The first is making the whole subfigure a bit smaller, which will also make the figure a little bit smaller. beamerposter subfigure. Currently, the only solution that works is to shrink the width of the minipage directly, and insert hspace between minipages. The code indeed formats the 4 figures into 2*2 form, but the figures in each row are very small and much space is left in the column. l. documentclass [a4paper, 10pt, openany] {memoir} usepackage [demo] {graphicx} usepackage {caption} usepackage {subcaption} % Enable subfigures % ewsubfloat {figure} %commented % Section. then you only need to load subcaption package as: usepackage [singlelinecheck=false] {subcaption} Share. You could insert the instructions parigskip between the second and third subfigure to create a bit of extra vertical space between the two sets of subfigures. LyX to LaTeX conversion issue with [Figure] and [Subfigure]As we cannot use subcaption, we replaced it by subfloat. CSS vertical align with different image heights. remove vspace {15pt}hspace {0. subcaption's documentation requires more effort to navigate. Facilities include rotating captions, sideways captions, continued captions (for tables or figures that come in several parts). 1 Answer. In this example, I would like to remove the text displayed by the command subcaption {label {left} Left half} (as well as subcaption {label {right} Right half} ). The only way to get around this is to specify the option compatibility=false to the caption package: documentclass {cifa} usepackage {subcaption} captionsetup. I am fairly inexperienced in Overleaf and I want to place two figures side by side, I tried the subcaption package. egin {subfigure} {0. It's commonly as wide and high as an uppercase “M”, since this is usually the widest letter in a font and occupies a square area. – Mico. To test it with your images, put them in the same directory as the . 1 Answer. 4 it does mention the subfloat command. 5 of the subcaption package. Placing 3 figures in Latex in 2 columns. 24 extwidth, and I set the spacing between the subfigures to hspace {fill}, i. For left alignment of the last row just add \hspace{0. However, I dont know where my mistakes are, because the tables wont appear as I. jpg} caption{A a $20 imes 20$ image in original size. As you now know, LaTeX can handle this. Varying the parameters of captionsetup or \subcaption [] does make any difference, whatever I tried 0. If you always use: includegraphics [] {} caption {} label {} the caption to image space is not too big. TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Meta. 5\linewidth, or 1cm. 0. My current code is that: \documentclass[11pt,twocolumn]{article} \usepackage[demo]{graphicx} \usepackage{subcaption} \usepackage{c. It only takes a minute to sign up. I need all figures to be in line and all captions to be aligned left and right. Since you have 4 subfigures, you can easily use up to 0. 4 Answers Sorted by: 4 It is mostly an optical effect. I would therefore suggest you change the allocated widths from 0. documentclass [final] {IEEEtran}% usepackage {subcaption} usepackage {kantlipsum} %<- For dummy text usepackage {mwe} %<- For dummy images % Remove the trailing whitespace from citations usepackage [noadjust] {cite. Remember, if you want to place elements horizontally, you can't add extra empty lines. subfigure {includegraphics {image}} subcaption does not define such a command, but it does define a subfigure environment, used as. Sorted by: 11. These size and style options may be combined in 3456 ways to set the label and text of the subcaption (as long as the selected font combination exists!)Problem with subcaption spacing. all subfloats) or use captionsetup[subfloat]{captionskip=40pt} % You can use any value you like here. \documentclass {article} \usepackage {graphicx} \usepackage {caption} \usepackage {subcaption} \usepackage {multirow. – Johannes_B. The node option text width is needed for captionof` to work inside the node. 9in]{geometry} usepackage{gensymb}. Please note that this minipage is enclosed in a tcolorbox. Multiple figures under a single caption. 2 Answers. egin {figure} centering extbf {Your title}parmedskip includegraphics [scale=0. Please suggest me a way to put subfigures sub-caption which can be placed in the centre. I have created a custom source command which places a second caption under a figure using the caption* command (see Xavi's answer on this post). In addition, however, each subfigure has a caption on its own and the crucial thing with these is that I have to have two lines for each of them generated by a linebreak. Jun 7, 2015 at 20:07. In fact, there is no reason to put the images into subfigures at all (just the captions). This will reduce the skip between the objects (subfigures and caption) by the stated amount. 5\linewidth} {\Large Insert picture. Fill the tabs with subfigures. Using LaTeX all pictures will be indexed automatically and tagged with successive numbers when using the figure environment and the graphicx package. The answer also explains. subfloat [Subcaption one ewline including a linebreak] with. Each subfigure has [c] as position specifier. usepackage {caption} usepackage.