Subfloat latex example. \subcaptionsetup[ environment ]{ options } is an alternative syntax to \captionsetup[sub environment ]{ options } . \begin{subfigure}{0. It provides the subfloat command that is used to specify each of the sub-figures as a figure. 1--1. e: \begin{figure} \centering. instead this move second line of caption to \subfloat 's content as title of images as is shown in mwe below: justification=centering]{subfig} \end{tabular} addendum (1): an alternative to above solution is use. You can achieve the alignment of the sub-captions by explicitly setting the alignment for the sub-captions. With the more recent subcaption package and it's provided subfigure this would look Aug 2, 2020 · In the second example, I have slighlty altered the widths of the images and additionally slightly changes the spacing in order to allow for an improved horizonal alignment. Sep 26, 2022 · Using a variety of different examples, we have learned how to solve the Subfloat In Latex. Jun 10, 2017 · The following set of macros sets each subfloat in a zero width box, so adding filling space will do. To include more than one figures inside a figure the subfig package can be used. \centering\addtocounter{figure}{1}% if caption at bottom. 65\textwidth}{%. May 9, 2015 · Hello, I want to create a figure (figure 1) with two subfigures (subfigures 1a and 1b) and to use \vref to make references to the subfigures in my text. I also want to remove these (a) (b) (c) labels so that it's only the caption like the first row of captions in my figure would be 0. This is correct, but because the graphs are very much skewed to the left, one gets the impression that the titles are not properly centered. 12} \begin{document} \begin{figure} \LaTeX\ will place the caption either above or below the floating object depending on where the \verb|\caption{}| is placed in the floating environment. Just pretend the whole \subfigimg object as if it were \includegraphics and do \begin{figure} \centering \subfloat{\subfigimg[width=0. 45\linewidth]{(a)}{example-image-a}}\quad \subfloat{\subfigimg[width=0. To review, open the file in an editor that reveals hidden Unicode characters. The floating environments also support the \verb|\label{*} \ref{*}| commands for automatic labeling and referencing. For \subfloat you need to load subfig. Open an example in Overleaf. \begin{enumerate}[%. \usepackage{graphicx,subfig} \begin{document} \begin{figure}[ht!] \centering. I have this 6x3 subfloats and I want to add vertical titles to each row of them and horizontal titles to each column. 5\textwidth]{Figure1a. My problem is that the figure appears in one column only and the rest of the figure is not displayed as shown in the following figure. And then caption can be given for main figure, where subfigures can be 'sub'-reffered. 5in]{fig1. Separate the figures into batches that fit on one page and in the figure environments after the first put. Jun 20, 2014 · 2. \usepackage{subfig} % Figure with two sub-figures. \usepackage{caption} I want to print subfigures and I used the following code. this particular example would end up with an overfull line, so I left the third subfigure below the other two (just adding a blank line. August 2007 by tom 114 Comments. 2 (c) 0. As I said, the \label is after the \caption: Graph~\ref{fig:1} is the first graph, and~\ref{fig:2} is the second. Nov 21, 2017 · 1. Mar 18, 2024 · LaTeX provides subcaption, subfloat, and minipage packages for creating and managing subfigures. I would like to get help with sub-figure issue that I am facing. Jun 22, 2015 · I have four figures which are placed using subfigure, and need to place two on one frame and two on another. 3. 31\textwidth} \includegraphics[width=\linewidth]{fig_a. Basic positioning. Is there a way to center the titles not to the center of the subfigure but to the left-most part of the graphs? subfloats. 45\textwidth} % The subfigure \label commands are set within each subfloat command, the % \label for the overall figure must come after \caption. . Consider using kantlipsum or lipsum for the text Apr 21, 2015 · May 1, 2015 at 5:53. Edit: Having seen the MWE, the problem is that you've put an empty line between your figures. 5cm 1cm 0cm,width=3. 45\textwidth]{IMAGE NAME} The second parameter is the width of the figure, in the example is 0. Options for table positioning are similar to those available for figures. The example show that items can be referenced as well. Nov 29, 2021 · 2. Declare the float as p , as it surely won't fit a page with text. Jul 9, 2012 at 6:45. Your definition of the SubFloat environment can be improved in a couple of ways. If you want a global modification, and want, say, 10pt (the default is 6), use: \usepackage[skip=10pt]{subcaption} If it is only for subfigure environments: \captionsetup{subfigure]{skip=10pt} It you want to modify only for some subfigures: \begin{subfigure}{0. Here's code that works: \documentclass{article} \usepackage{tikz} \usepackage{subfigure} May 9, 2013 · In the ieeetran how to, they are using caption with their examples; however, latex tells me not to use caption. If you don't, you can safely remove \subfloat along with subfig. 1 The \subfloat Command ): Since line breaking in the LoF (or any "List of" or "Table of" structure) is not wanted and problematic, use something like this: Mar 2, 2019 · Alignment generally involves using baselines, but in this case you need to add a gap between the image and the caption. I use subfloat and don't know how to fit all my figures in 1 page of document. See the reference guide for a list of possible length units. Then you can use height=\imageheight for the second image. 45\textwidth]{IMAGE NAME} \centering. I used the following code: \begin{figure*}[!htbp] \centering \begin Nov 17, 2022 · This version uses \subfloat from the subcaption package. Still it doesn't in my main document. 2 0. Too localized? Oct 3, 2018 · If multiple subfigures do not fit in one line, latex does an auto linebreak. 45\textwidth} \captionsetup{skip=10pt} Feb 25, 2017 · 2. (there's -b and -c for 2 and 3). For example, if you use the following code. \makeatletter. Jan 21, 2024 · As already noted in comments, you have two possibilities how to achieved desired position of sub images: insert \\ after end of subfloat environment, or; inset empty lines between them (as is done in MWE below) 2. Apr 18, 2020 · This is my first time using Latex. Basically, every \hfil in a line expands to the same size. I'm seeing strange behavior when using subfloat. \begin{figure} \subfloat{\parbox{. – John Kormylo. Also I suppose \subfloat is defined by subcaption package. \subsection{Example Table} We learned how to construct a generic table last Just stack the subcaption text under the subfigure. You have to specify the width of each included graphic per subfigure such, that it will sum up to be smaller than the \textwidth parameter, i. So you have also to add something like. The \subfloat macro of subfig provides two different optional arguments: \subfloat[<LoF entry>][<caption entry>]{<stuff>} The above stems from the subfig documentation (p 4, section 2. I am getting these errors (below) for each \subfloat when using this code. \captionsetup[subfigure]{format=hang,justification=raggedright} If you really want the captions all in one line, you would have to change the fontsize. 1. subfigure-example. \textbf{Factor 1: Industrial Solvents}\par\medskip. 3 instead of (a) 0. The subfloat package doesn't define \subfloat (and has never defined it). For those who don't want to use the tabular environment: the macro defined by Werner is compatible with the subfig package. you shouldn't have blank lines in the tikzpicture environments. \usepackage{subfig} Jan 2, 2015 · Below is an example of my code: \begin{document} \begin{fig 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 knowledge, and build their careers. Here is a minimal example (which uses subfloat for numbering): Check out Tables~\ref{tab:first} and~\ref{tab:second}. The \csubfloat macro has the same syntax as \subfloat; beware, though, that images should not fill the whole line. Share Improve this answer Jun 7, 2010 · 5. For example the subfig package allows having the \label in its contents while the subcaption package does not. Jul 23, 2018 · 2. You can move label to inside of caption as: \subfloat[Case II \label{fig_second_case}]{\includegraphics[width=2. how to add a subtitle to my figure which consists of two separate figures? I want the subtitle to be under each of the two figures. \caption{Here are the first 5 figures of a continued figure. The setting \crefrangelabelformat{subfigure}{} is based on my previous answer. \usepackage{graphicx} Jun 9, 2022 · 3. \texttt{subfigure} with \texttt{[t]}op alignment. \hfil and \hfill are typically used to space things (like \subfloats) evenly across the page. Jul 15, 2017 · 4. it is replaced with subfig which define subfloat` environment: \subfloat[]{\includegraphics{<imge file name>}}). 1. \begin{frame} \begin{figure} \centering. Sample output: Removing the \caption{} doesn't show any errors, but obviously shows no cation. Get rid of the empty line before your second picture and it works. It has worked fine in the rest of my thesis, but suddenly there is a problem. ]{}\qquad \subfloat[Second subfloat. Oct 9, 2015 · To control the number of columns, we set the width parameter of the subfigure environment to a fraction of the total text width. Can someone help me? Thank you in advance! \begin{figure} \centering. \begin{figure*}[!t] \centering \subfloat[caption fig1a]{\ Aug 31, 2008 · @ArTourter Yes, might be wrong about that, I don't have a MWE. The ones on the first should be numbered (a) and (b), and the ones on the second should be (c) and (d). pdf}}\hspace{-1cm} \qquad. which is obviously wrong. pdf} It is possible to obtain a sidewaystable look with multiple tables turned sideways without using subfig or even rotating. e. 24\textwidth]{monalisa. It helped, BUT: The numbering of the figures started from 0, i. Oct 22, 2020 · 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'. Basic code. You can change the fontsize of the subcaptions just by changing the \footnotesize to the desired size. I am struggling with reproduction. The paper is IEEE format. subfigures The code. 5in]{Fig1b}} – Mar 9, 2022 · The captions below subfloat figures are not aligned to the corresponding images. Jul 24, 2013 · Here is an example that uses the subcaption package and the threeparttable package for the tablenotes environment (environment not strictly necessary, as you could use simple text with \footnotesize) \begin{subfigure}[b]{0. I'm trying to insert multiple figures under 1 caption. . Aug 1, 2007 · Placing figures/tables side-by-side (\minipage) 1. Clearing this issue and removing more subtle differences would end up in writing more code for offering a compatible \subfloat than it took for the rest of the whole subcaption package. Positioning tables. Is there any solution to that? \\documentclass{article} \\usepackage{graphicx} \\usepackage{lipsum} \\usepackage{subfig 1. I think similar result can be obtained by using subfloat also. \lineskip is added when \baselineskip isn't big enough. Default position of the tabular environment is Dec 11, 2021 · Here is an example of my current document. % Fig 2 Fig 3. This problem really took my time. \renewcommand\thesubfigure{\roman{subfigure}} it would be even better to follow the subcaption package: Aug 24, 2020 · and than for figures over two column use instead figure float figure*, as you use in the your document example. it doesn't print (b), (d) or (f), but still thinks they are there. LaTeX will automatically keep track of the numbering of figures, so you do not need to include this within the caption text. Fig. When I insert the figure's caption at the end of the environment "figure" and write \vref {levelintuition} or \vref {growthintuition} as I do in the example below, I have no problem at all Example of using subfigure package in LaTeX. This is the script used: Just leave an empty line between the two \subfloat lines. Structuring your work nicely is probably the most obvious reason why you want to put two figures/tables side-by-side. {%. A new macro \crefretainprefix is defined, emulating the \crefstripprefix. Dec 7, 2014 · 8. 98\textwidth]{coolcat} \caption{Cool} \label{fig2:coolcat} Dec 12, 2018 · Here is a solution with subcaption. Including images in a report is very common in LaTeX. I am having a problem aligning figures in a subfloat. % \hfil must be used as a separator to get equal spacing. If anyone could please advise how this can Sep 10, 2022 · It causes LaTeX to start new paragraphs. For the actual sub-figure, we want to use all available horizontal space ( \linewidth, which is equal to @bers, I didn't bother with spacing, but it can be done also with use of tabular. \usepackage[caption = false]{subfig} \usepackage{subcaption} \usepackage{graphicx} % subcaption for subfigure environment. Oct 26, 2013 · 10. I have read this might be something to do with Aug 15, 2023 · I want to put 3 subplots in latex using subfloat, I refer to the example and write as follows, the picture can be displayed normally. The subcaption Package. The culprit here is that you can not automaticly define the width of both images to fit the textwidth as good as possible. \addtocounter{figure}{-1} which will decrease the figure counter making it the same as for the previous bunch and then also add. Apr 6, 2014 · In the example below I have a figure with 6 subfigures. example-image-a in place of image1 etc. I use the following header files. 25 the width of the text. I would like to remove the label/numbering from the 2nd, 4th and 6th subfigure, but I would like the remaining labels to read (a), (b) and (c). The caption (a, b, c etc. } \caption{Here are the last 5 figures of a continued figure. The subfloat package is not to be confused with the subfig package which generates sub-figures within one normal figure, and manages their placement; subfloat only Apr 29, 2021 · I would like to refresh this thread: Subfigs of a figure on multiple pages. I have 6 figures that I want to display as 2 by 3 (2 lines, 3 columns). 1 Using the environments. horizontal distance between A and B you can set with \hspace {<length>} or hfil between subfloats, vertical distance between image b and c with `\[<length>] after first row of table. A major benefit of using subcaption is IMHO that I can use both subfigure and subfloat. \begin{tabular}{cccc} \subfloat{\includegraphics[width=. jpg}} Jul 5, 2020 · Hi! I use \ContiendFloat or use this subfloat instead of subfigure because there are two subfigures in one of my figures, and when I add this figure, because of the lack of space at the end of the page(my article has two columns), it automatically move the whole figure to the next page, and I want the first subfigure of this figure stay in the previous page, the rest one in the next page. % Arrange three figures like this: % Fig 1. Here is my code: \documentclass{article} \usepackage{graphicx} \usepackage{subfig} \usepackage{floatrow} \begin{figure}[htb] \subfloat[Caption for sub-figure1]{\includegraphics[clip, trim=0. A negative value will overlay it on the subfigure. – Aug 1, 2011 · 3. \subfloat[XXX1]{\includegraphics[width=0. You may want to add \centering just below \begin{figure}[t] (which should better be \begin{figure}[tp] ). g. Mar 27, 2022 · It may be, that you prefer the following referencin of sub-figures in caption: \caption{caption for subfloat-1 (\subref{subfig1a}) and subflot-2 (\subref{subfig1b}) } ُhank you very much for your detailed answer and sorry about the delay. In the following example, input. so that \ref{label1} will print. Jun 4, 2017 · also correct syntax to use \subfloat in your case is \subfloat[Case II]{\includegraphics[width=2. So if I use subfloat, all my figures are labeled as such (a), (b) and don't have a main label Figure:1. Apr 20, 2015 · 1. 43\textwidth wide, it would be easier to Apr 6, 2013 · 19. So I don't get the captions 'Figure2' and 'Figure3' underneath each figure. \rotatebox{90}{% Rotate table 90 degree CCW. I got some trouble with MikTex . etc). 45\linewidth subfloat – Sub-numbering for figures and tables. \begin{figure} Oct 3, 2020 · I am looking for a way to add a box / frame around two figures and their caption. Here are examples taken from the corresponding manual: Example using the subfig package: \begin{figure}% \centering \subfloat[First. 2. Here, I set the width to 0. Here's a minimal example to show what I did. Use farskip to add some vertical space between the subfigures. \includegraphics[width=0. \documentclass{llncs} \usepackage[caption=false]{subfig} \usepackage{pgfplots} \pgfplotsset{compat=1. 2\textheight,keepaspectratio=true]{graphic. What is Subfloat LaTeX? subfloat – Sub-numbering for figures and tables The subfloat package is not to be confused with the subfig package which generates sub-figures within one normal figure, and manages their placement; subfloat only affects captions and numbering. I wanted to split them between the pages because I don't want to fit them all in one page, therefore I used the commands \subfloat and \ContinuedFloat. This is my code so far: \\begin{figure}[h] \\centering Jul 8, 2012 · Jul 8, 2012 at 17:24. Note that the subfigure package is deprecated and its successor, the subfig package, was last updated in 2005. (Therefore I decided to drop that idea. The \centerhfill macro has an optional argument, default \quad to add a space in the center. LaTeX interprets this as a line break and then breaks the line. There’s also the subfigure package, but it isn’t actively maintained. jpg}\label{fig:f1}} \hfill. It would therefore be nice to solve the issue at hand. 3\textwidth,height=0. Turns out refcheck can also mess with \subref. You can control the position of the subcaption using captionskip. 0 which it shouldn't. I created a grid of 3/2/3 tables. You will also need to compute the difference between the heights of the two images. \renewcommand{\p@subfigure}{\thefigure--} \makeatother. } Since all the examples are 0. An approach without subfloat packages but with enuitem. 1This means that sub-captions are not listed in the List of Figures or Tables by default, but you can enable Nov 13, 2015 · 3. this is my code : \documentclass[journal]{IEEEtran} \usepackage{graphicx} \usepackage{subfloat} \usepackage{subfig} Thanks for the innput folks. \subfloat[]{} is also a convenient macro to make sub-captions; it is defined in subfig. Now, without wanting to break compatibility with loaded packages, I managed to produce a working solution. Jun 18, 2013 · I need to insert 10 figures (in two columns- side by side) in LaTeX that will have one global caption, but also I need to name each figure (1a, 1b, 1c, ect. Jul 28, 2017 · Welcome! Please edit your question to provide a complete example. ) Nov 1, 2018 · 2. In the example above, hyperref works properly. With this changes the result is With this changes the result is Edit (2) For unknown reason cas-dc doesn't produce two columns document without option twocolumn (tested with my local installation of MikTeX and with Overleaf service). \documentclass{article} \usepackage{graphicx,enumitem} ewenvironment{figrow}%. You can make the figure a little wider by using some spaces to its left and right (I removed some spurious blank spaces from your code): \documentclass{article} \usepackage{subfig} \usepackage{graphicx} \begin{document} \begin{figure}[!ht] \centering. I am using subfloat for the sub-figures as it was the simple way to have two figures together under 1 caption. Another reason might be to save space, wherever a smaller size of an image is sufficient. I want to put two subfloat figures under each other but they keep being beside each other. I have used suggestions on this post and I have used subfig docs. you can change numbering of sub figures with. I am trying to make a two column figure of set of subfigures using subfloat. \subfigure[]{\includegraphics[width=0. 8\linewidth]{fig1}} &. If you simply remove the optional argument of the caption in \subfloat command, the corresponding subfigure doesn't have the caption but is considered in the numbering of the captions. In order to get the main label, I would need to use caption. The left edges of image a and c are now aligned, likewise the right edges of image b and c. 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). \begin{subfigures} \label{fig:fig1a2} % \begin{figure}\centering \fbox{fig. Aug 16, 2020 · Here is an attempt using cleveref package. their labels (a) and (b) are offset to the left). Jan 20, 2022 · It seems you have unbalanced braces -- the closing one after each mandatory arg of \subfloat is missing (I didn't test your example, though) – Arash Esbati Jan 20, 2022 at 18:45 Jan 24, 2021 · The titles of the subfigures are centered to the middle of the subfigure. tex This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. If you are really using the subcaption package (and not the subfig one) please use \subcaptionbox instead of \subfloat and put the \label inside the caption text, not inside the sub-figure body. Note that I exported all previous work from LyX, and these are the first new figures and subfigures I am adding ("inserted text" code <> switched so they would show). You can do this with \qquad or any other horizontal spacing command such as \hfil or \hspace{}. – user2574. 3. To add a subfigure, we use the subfigure environment: \begin {subfigure}[position][height]{width} Jul 4, 2017 · Note: for caption formatting is better to load caption package and adequately set up it features as locally manual change for example vertical space between caption and figure. \begin{subfigure}[b]{0. ). You must have the \label command after the \caption, or as a part of it: or. 2 (b) 0. Edit: the following "works for me". many thanks for your help in advance! \caption{XX} \centering. subcaption. Jul 5, 2017 · Here's one option (adding the reference to the caption): \documentclass{article} \usepackage[demo]{graphicx} \usepackage{subfig} \begin{document} \begin{figure Mar 14, 2010 · Two subfigures in a figure in LaTeX. Raw. \centering. Here is a visual: \documentclass{article} \usepackage{graphicx,subcaption} \begin{document} \begin{figure} \centering. It seems that subfloat uses an \hbox instead of a \vbox, so you need a minipage, \parbox, \vbox or tabular to handle more than one line. 2} \caption{This is the second figure}\label{fig:fig2} \end{figure} % \end{subfigures} I want sub-caption to be above the figures and main caption to stay below the figures. \addtocounter{subfigure}{N} where N is the number of subfigs that you have already placed, which will start Feb 29, 2016 · If I have to pictures of different height and the same width, how can I dock them to the top that both pictures are vertically aligned. Does anyone know how to add a frame around two figures and its caption? \begin{figure}[!h] \centering. with the exception that the letters under the figures are uppercase while the letters substituted be \subref{} are lower case. (Maybe that's what the \some is intended to do? Use e. \documentclass{article} \usepackage[caption=false,font=footnotesize,captionskip=-8mm,farskip=5mm]{subfig} % changed <<<<<<<<<<<. How can I change the label from (a) to figure 1 without using caption? Since subfig uses the caption package, you can use \captionsetup[subfloat]{labelformat=empty} A complete example: \documentclass{article} \usepackage[margin=2cm Mar 15, 2012 · Adding the reset counter in every frame can be tedious when you have too many and you must add them at different times. \subfloat[Subgraph]{%. Mar 10, 2019 · 1. Other contents are going between the first and last 5 subfigures. I digged into the graphicx manual and found that code\includegraphic[width=0. Any sub-related macro is only required if you want to make a reference to each individual table. This is used to align the sub-captions vertically. Apr 6, 2019 · 1. Just give \caption{} without any arguments so that it will print only the label ( (a), (b)) not the caption text. \documentclass{article} \usepackage{subfig} \usepackage[pdftex]{graphicx} An example: \subcaptionsetup{font=it} sets the font to “italic” for all sub-captions. Its purpose is different: you can group different captions under the same number with a letter attached, similarly to what the environment subequations (from amsmath) does. The code gives no errors, but images 1 and 2 are not in the centerline of the page (i. How is \some defined? You at least need to end the document and provide sufficient text for wrapping. To get both images to the same height you can store the height of the first image in a dimension \imageheight. Apr 6, 2016 · An example case: \documentclass{article} \usepackage{subfig} \usepackage{graphicx} \begin{document} \begin{figure}[htb] \ 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 knowledge, and build their careers. You can get an empty left-bottom cell by increasing the width of the bottom figure (whilst keeping the image width the same) and using \raggedleft. the subfigure package is obsolete. As you can see \ContinueFloat is hard-wired. All you need to do is use the \caption{ ''text'' } command within the float environment. For example, \centering is equivalent to placing an \hfil a the start and (if needed) end of each line. Its usage is shown below in a simple example: % Package for subfloat. Dec 8, 2023 · Fortunately, this is very simple in LaTeX. (In future, you should ask your questions by providing an full example like this instead of just a fragment. Feb 14, 2023 · Since LaTeX warns about the float being too high by about 6pt, I added some small negative vertical space between rows; in your case you may not need it or need some different length. ) The optional argument for the subfigure environment provides the placement of the sub-caption anchor. tex. 2. png}code would basically create a virtual grid of 3x5 rows & cols in which the images would be placed. 5cm 0. Apr 13, 2017 · The following example sets up the subfigures so that they occupy the full width of the textblock. 1} \caption{This is the first figure}\label{fig:fig1} \end{figure} % \begin{figure}\centering \fbox{fig. \begin {figure} In my thesis I have a lot of figures with a common caption and multiple subfigures (a,b,c. Also even though there are errors when the \caption {} is inserted the figures and caption display correctly. Here is the raw code: I would expect the labels (a), (b) and (c) to be on the centreline of the page. 3\textwidth to produce three columns, leaving 10% for extra spacing between figures. Unfortunately, neither Sep 6, 2017 · centering of subloat caption with ewline for force text break to two lines doesn't work well. ) is shifted to the right which means figure b) is labeled a) and c) appears on page margin where no image is located. This package enables sub-numbering of floats (figures and tables) similar to the subequations-environment of the amsmath package. You need to insert space manually between the two \subfloat commands. Another solution would be to use subfigures. It also assumes that the graphs associated with each subfigure are all equally wide; if that's not the case, simply adjust the widths of the subfigure s appropriately. 32. (change the separator as you wish). The answer that gave Stefan didn't work with me, but I found this solution in another question, so I post it here: what you should add is, instead of figure, framenumber: \makeatletter \@addtoreset{subfigure}{framenumber} \makeatother always in the preamble. At the moment the compiled figure has labels (a), (c) and (e) i. Therefore, I suggest you just use the preferred syntax for the subcaption package: \documentclass[a4paper,twoside,12pt]{memoir} \usepackage{graphicx} \usepackage{float} %\usepackage{subfig} \usepackage{subcaption} Jan 8, 2010 · The issue with the wrong references might have to do with you using \label incorrectly. So they will look like: So they will look like: Apr 4, 2014 · The safest place to use \label with \subfloat is either right after the caption inside the first optional argument (as in my example below) or inside the mandatory argument: \documentclass[journal]{IEEEtran} \usepackage{cite} \usepackage[demo]{graphicx} \usepackage{url} \usepackage{float} \usepackage[caption=false]{subfig} \begin{document} Jan 18, 2022 · 1. 5in]{Fig1b}% \label{fig_second_case}} (see braces on the end and removed image extension). 2\textwidth} \centering. uh zz ax zi ic rc ly ux my ug