subfigure side by side latex. TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. subfigure side by side latex

 
 TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systemssubfigure side by side latex  Please see my post on that topic

I am using the subcaption package and my code is as follows. Embed. You are using to much width for subfigure package. If you're a student, researcher, or writer who needs to add images and figures to your LaTeX document, this tutorial is for you. I would appreciate some solution that would allow me to put 6 images in the same figure in a two column document, each one with a capture bellow it. Now I want to put several images side by side in just one of the columns, and I would like an illustrating text under each image which starts wi. LaTeX has macros that contain the width of the text block though (see Difference between extwidth, linewidth and. Kola B. 2. – Jason Whyte Jul 1, 2014 at 5:24 How do I customize my caption that follows this article's setting of the captions on page 26. This allows me to have individual captions for each subfloat and hence, each sub-figure. e. 1 extwidth to fill (as your subfigures add up to . Try if the following MWE gives, what you like to obtain: \documentclass{article} %\usepackage[catalan. I am using the following code to put my two figures side by side with different captions, \begin {figure*} [t!] \centering \begin {subfigure} [b] {0. usepackage {caption} usepackage {subcaption} egin {figure} egin {subfigure} [b] {0. 3] {graphicA2} caption {captionA} end {subfigure}. 2in] {a} \caption {Lorem ipsum} \end {subfigure}% ~ \begin {subfigure} [b] {0. But if you want to place both figures over both columns, you have to use a figure* environment. 3 times the normal text width (which is the value of extwidth). 1 Answer. There are other packages such as subfigure and subfig, however, these are no longer considered standard. Already looked for solutions on the internet. The empty line between the two subfigure environments created a paragraph between them. I would like to position three figures side-by-side in a two-column document. jpg) ! [] (tests/lalune. add the graphics. log that there are compatibility issues between the package and the class. Those 12 pictures (fig*) must be stored in the figures/. Sign. I like to prepare a figure with an overall caption consisting of 4 subfigures arranged in a 2 X 2 grid and I like to have each subfigure having its own caption. The following is my attempt to do that, but still doesn't work. – John Kormylo. A blank line separates the rows. 45 extwidth} centering includegraphics[width= extwidth]{. 3 times the normal text width (which is the value of extwidth). I need all figures to be in line and all captions to be aligned left and right. LaTeX is an editing tool that takes care of the format so you only have to worry about the contents of your document; nevertheless, better control of floating elements is sometimes. In general \textwidth is the total width of the text area, so you shouldn't specify figure widths in twocolumn layout in terms of this width (only for figure* environments). So you need just one figure environment for both objects. I have a wide figure which consists of 8 subfigures. 4. memoir | Figure and Text Side by Side. 4paperwidth]{1. No extra package is required for minipage; it is a standard environment. For example, if you have four figures and you want to put them in 2x2 style, put ewline after two subfigures which will be placed in the first rwo. Mar 11, 2022 at 10:55. You are prepending the figure counter to subfigures, but place captions for subfigures before the caption for the figure, so the figure counter has not yet stepped and the wrong number is picked. Each one has a number of subcaption s and its own caption. I've tried changing the maximum number of figures in the . I am trying to import two pdf_tex files into my thesis which I will like to either place side by side or scale. 2 Answers. Subfigures + 1 Subfigure side by side [duplicate] Ask Question Asked 4 years, 3 months ago. Approach 1: The first thing you can do is to use the figures, subfigure package. 31 extwidth. log that there are compatibility issues between the package and the class. jpg} \caption {This is a wide figure that spans both columns. (example below picture). Hi I have two Figures that I want to put side by side, each figure has 3 subfigures. 3. A negative hskip in between reduces the space. Thank you!! unrelated but use h_{\mathrm{max}} (never use math italic for multi-letter words) also would be better to use \end{subfigure}\hfill\begin{subfigure} rather than \end{subfigure} ~ \begin{subfigure} currently you have . I also added p to your optional argument as not having it makes it more likely the float will go to the end of the document. e. 45linewidth, (i. 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. e. By the way you should use aggedright, not flushleft. Here is the code of my graphs made using TikZ: egin{document} scalebox{0. . Alternatively, using the chngcntr package:. To center them insert a hspace equal to half of the remaining space ( 0. But still it does not work rightly. 3. a graph and its legend) using the IEEE article format and I cannot remove the subcaption. md. This works for your example. 5 extwidth to 0. 8}{egin{tikzpicture}In that case I'd try with two adjacent minipages. LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. The reason this works is because the text width within the subfigure is the width we specified in the egin{subfigure} command, i. jpg) This will give you two side-by-side images. Yes, correct. I have 2 figure side by side in LaTeX using the recommended package subcaption. These Figures are independent enough from each other that I do want a different Fig. Join Latex Mega Course: video is part of my Latex Course. In this case the second subfigure is moved to the next line. 5\textwidth} \centering \includegraphics [width=3cm] {Vlieger} \caption {Vlieger} \label {fig1:} \includegraphics [width=3cm] {Pijl} \caption {Pijl} \label {fig2:} \end {minipage} See full list on latex-tutorial. In LyX, I am placing 2 figures side-by-side by placing 2 subfloats inside a single float. In the code I had to add height=8cm in order to not exceed the page dimensions. 1. This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center. One figure is taller (longer) than the other. Insert→Formatting→Horizontal Space→Horizontal Fill or Ctrl- -> right-click on space -> select "Horizontal Fill" (to insert a stretchable horizontal space)However, you did set the subfig tag, and this makes me think that there's an issue with the package that should be loaded to create subfigures. I have a 2x2 array of subfigures and the ideal size I'd like them at is a bit wider than the textwidth. Fill the tabs with subfigures. I have already tried adding different spacing between. } and change the format of the numbering to your liking. However, you did set the subfig tag, and this makes me think that there's an issue with the package that should be loaded to create subfigures. I am using LaTeX to write a report and I'm going crazy to get a result like. The reason this works is because the text width within the subfigure is the width we specified in the \begin{subfigure} command, i. , the maximum available amount. The below code can place three figures side by side, but the third one on the right hand side becomes 1c (instead of 2). These images or tables are not subpart of a whole image or table, i. 0. Instead of doing this for every figure, you could define it once in the preamble: makeatletter @addtoreset {subfigure} {figure} makeatother. Then your method doesn't work. , to the full width of the enclosing subfigure environments. The solution here is really simple: You need to be in vertical mode for vspace to have any effect. Within a figure environment you can start a tabular environment to have more control over the distribution of space. Since your figures shall be side by side, they are not expected to float independently. . from your question, subfigure width roughly equals half of extwidth and image width equals half of subfigure width. The output of my code is as follows: my code is: documentclass [12pt,reqno] {report} usepackage {caption} usepackage {subcaption} usepackage [rightcaption] {sidecap} usepackage {graphicx} egin. I am trying to put two figures side-by-side in beamer environment. To display image or table side by side. 1. I want to create 10 subgraphs side by side in latex overleaf. . A subfigure is an environment that is used within a figure environment. numbering for them instead of three subfigures next to each other (i. 23. 680. I have written the following code, but not getting it correctly. Edit: Using extwidth make width of your images almost equal to width of column. ]} egin{figure}[ht!] egin{center} % subfigure{% label{fig:first} includegraphics[width=0. Next we give the subfigure a separate caption and label. e. In this example, we use the subcaption package to create two simple subfigures side by side. I'm trying to do exactly what's explained here: Figure with two side-by-side subfigures that is wider than textwidth. Wherever you want that numbering system for subfigures within a figure that lacks a caption, use, at the beginning of the figure environment in question, the ocaption command defined in my code below. Reduce the widths of the subfigure environments from 0. TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Otherwise bottom placement would be much better. % arara: pdflatex documentclass [prodmode,acmtecs] {acmsmall. 4. The fig-pos option provides a placement specifier for the figure environment. 4a, whereas the second line will only produce the sub-index, e. What I understand you want is something like this: which can be obtained with following code: documentclass {IEEEtran} usepackage {lipsum} usepackage {graphicx}. Need pairs of side-by-side subfigures with ONE caption each. . egin{figure} egin{minipage}[t]{0. When writing a thesis you may want to include some slightly more complicated figures with multiple images. % Subfigures in Beamer documentclass{beamer} % Theme choice usetheme{AnnArbor} % Required package. In simple terms, minipage environment will create a box in which you can place different types of elements like text, figures, tables, etc. I have used the pgffor (or tikz) package, a pair of cycles (inner and outer) and several conditions to polish the result. There are horizontal white spaces between subfigures (in each line). 4 in this case. Improve this question. If you want the figure to only span one column in a twocolumn document, use columnwidth (see egreg's answer here for the reason why) instead. So great you already switched to subcaption. 9 “I want my sub-floats to be ordered by column rather than by row, how do I do that. 5linewidth} centeringincludegraphics[width=. – David Carlisle. Solution 1. subfigure[hlist entryi][hsubcaptioni]{hfigurei}Subfigure is a package for Latex that provides support for sub-figures and tables by simplifying the positioning, captioning and layout of such objects within a single figure / table environment. From the LaTeX FAQ: Insert→Float→Figure. We also reset the justification to centering for [subfigures], as they. How do I align them side by side and scale them so that both of them together occupy the whole horizontal space in a beamer presentation? egin{frame} frametitle{Inconsistency} . 4. I want to put them side by side so that they have the same height and that they overall take, say, 90% of the line width. I am fairly inexperienced in Overleaf and I want to place two figures side by side, I tried the subcaption package. documentclass[10pt]{article} usepackage[usenames]{color} %used for font color usepackage{amssymb} %maths usepackage. TeX sees each of the subfigure environments (which are actually just fancy minipages) as a box, the same it sees the box of the character z, for example, but bigger. . The subfigure package is the way to go if both are subfigure from one figure, i. Next we give the subfigure a separate caption and label. Your figures might have asymmetrical margins, we would need to see the actual pngs to diagnose this. The captions of the two figures are not aligned and are numbered ina wrong way. To get them centred inside the bigger subfigure, you need to repeat centering inside the subfigure. 16 extwidth (available width) and width (actual width) for each image, you can tweak it to taste. Go for the lowest common denominator, that is still visually visible on a A4 page, say 6cm. Spacing can be changed as needed. Also, do make sure that the widths of the tabular environments don't exceed the widths allocated to the subtable environments that enclose them. What I have done so far: The first part i. 2. 6. templates for journals from Springer and IOP, IEEETran and ACM SIG). It only takes a minute to sign up. Ive tried many things, read many things. I tried to search on the internet but I had no luck. I know two options to easily create a pleasant layout. If you want to use subfig because you want them to have separate captions, then that is simple as well. 48 extwidth) to the subfigures; obviously, unequal sizes are also possible. To place all four subfigure environments in one row (and each occupy the same width), you must set their widths to something less than 0. I saw this solution for a single figure (Custom margin settings for figure in LaTeX) but am not sure how to adapt it for subfigures. TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Subfigures side by side with captions using minipage instead of subfigures. Share Improve this answer The following code is used for 3, it requires the subcaption package. end{subfigure} egin{subfigure}{0. Example 2: Multiple. Here is the output:The first message says that you should not use caption (loaded by subcaption) in the llncs class. I can give you a very simple answer which can be found anywhere. Notes:You could put both images into one wrapfig. So I'll add empty subcaptions for getting just the letters. In the example below, I use 0. \documentclass {article} \usepackage {graphicx} \usepackage {siunitx} \usepackage {hyperref} \usepackage {xcolor} \usepackage {subfig} \begin {document} \begin. Sep 10, 2014 at 4:05. I managed to do that with subfigures in a figure, separated by quad. But as you can see the figures are number individually. This works fine if your end goal is LaTeX export. I need to reduce the area taken by my figures to accommodate to the page limit. I want two images side by side and I'm currently using the following code: egin{figure}[!h] centering egin{subfigure}[t]{. The figures are center aligned (especially if the figures have a white background, the center alignment looks the best in my opinion); but. 48 extwidth. Here's a possible solution using the subfigure environment from the subcaption package: documentclass{article} usepackage[demo]{graphicx} usepackage{caption. In the example below, I've given equal sizes (of 0. Empty line in code -> paragraph break. 5. Chaos ensues. The figure environment has a global \centering, which avoids the filling in the last line (it's the same as for normal paragraphs, otherwise, where the last line is filled). You could use the subfigure package: \begin {figure} \hfill \subfigure [Title A] {\includegraphics [width=5cm] {img1}} \hfill \subfigure [Title B] {\includegraphics [width=5cm] {img2}} \hfill \caption {Title for both} \end {figure} Or try this use the subfig package with \usepackage {subfig}: Subfigures side by side with captions. with subcaptions (a), (b), (c) align to the top left of the subfigures and caption on the right of the figure. " Sciposter redefines the figure environment, caption and subfigure. Share. Share. To refer to the subfigure in the text as "1. I want to place two figures side by side in my document. md. 5 extwidth} aggedleft` for all the subfigures that will show up in the right column. I put pictures side-by-side, so they're small, but by adjusting 0. egin {figure} [] subfigure { includegraphics [width=0. As you can see in this topic on the forum the subfigure package is obsolete, and should therefore be avoided. This is what usually works for me but also depends on the content of images. Though each has its own way of usage. But using only subfig the image index can't be put inside the figure. Try with includegraphics [width= extwidth] {. You force the two images to be in separate lines by leaving an empty line between the two pictures. In the first example I removed the first caption and combined it with the second one, removing also the empty line in between. Hot Network Questions. documentclass {article} usepackage {graphicx} usepackage {subcaption}% or ewcounter {subfigure} [figure] usepackage {duckuments}% just for fun usepackage {array. e. Content of both columns is vertically centered aligned by adding the option [c] to columns environment. Don't use the caption package (or subcaption) with revtex4-1. ) Please also replace usepackage[latin1]{inputenc} with usepackage[utf8]{inputenc} and. That would be because it is aligning the whole subfigure, including the caption. So. tex document but it didn't helped. If you're a student, researcher, or writer who needs to add images and figures to your LaTeX document, this tutorial is for you. I am trying to place the captions on the right side of each subfigures in Beamer. LaTeX Text Formatting Graphics, Figures & Tables Math & Science Fonts & Character Sets Page Layout Document Classes General; LaTeX's Friends BibTeX, biblatex and biber MakeIndex, Nomenclature, Glossaries and Acronyms Conversion Tools Viewers for PDF, PS, and DVI XeTeX Others; LaTeX Distributions Decision Guidance MiKTeX. 3 The subfigure package The subfigure package is the oldest of a series of packages implementing commands for placing gures and tables side-by-side. How to horizontally place figures in Latex. We can then end the subfigure and add the next two in. Each subfigure can be given its own caption. 0. Each section of code typically looks like this: egin {subfigure} [h] {5cm} includegraphics [scale=0. 3 extwidth or 0. I added the length figwidth which allows you to change the width of the figures and see how they fit on the page. subfigure g in the preamble of your document. A negative \hskip in between reduces the space. The second solution shows a possible way with. for real numbers usepackage {graphicx} % if you want to include jpeg or pdf. In addition, I'd like the figures to be centered vertically. I was trying to put each Figure environment inside a minipage, but it doesn't work. Already I did that, but the problem is that the last two subgraphs (9 and 10) is out of the page size because the single page can't fit all the subgraphs. 4 extwidth (with default margins); your images in fact are wider that the space reserved for them and the. \caption {a). What's seen below is a single . Jun 26, 2015 at 22:35. 25\textwidth. This is from CTAN. 4 extwidth in this case). 4 X 2 = 0. Next, if your objective is to have four separate "subfigures" within an overall figure environment, you should load the subcaption package and replace all 8 instances of {minipage} with {subfigure}. . How do I put images side by side in LaTeX? “how to set two images side by side in latex” Code AnswerThe vertical alignment you want is tricky because TeX doesn't see things as you see them. The figure environment has a global centering, which avoids the filling in the last line (it's the same as for normal paragraphs, otherwise, where the last line is filled). Another reason might be to save space, wherever a smaller size of an image is sufficient. – leandriis. 8\textwidth] {out. : bla bla" captions. Looking at yours, I would probably choose top alignment because the annotations are there and somehow eyes focus more the. 3 extwidth as the width for the subfigures, use hspace {fill} (or hfill) the spacing directive between the subfigures, to obtain the maximum possible separation (of 0. (Update from @Werner: a few more symbols to control horizontal space explained here . Sorted by: 7. , the maximum available amount. 1. Letting captionbox to elax makes caption work with aastex (so it's a requirement). As you can see from comparison of above code with yours, I replace extwidth in with linewidth, which consider width of columns. } instead. 30]{before. Shifting from [tbp] to [b] aligns the subfigures entirely at their bottoms, including aligning the captions at the bottom. The package wrapfig provides a useful feature, text can be floated around the images. Should you need to change the figure sizes, please change the multiplier with extwidth (0. See section 6 of the subcaption manual for more details. then you can use the environment \subfigure that takes one parameter, the width of the figure. edit: a 1x2 example of the way I'm building my subfiguresThe trick is to use the subfigure package. (But you could do so by using other packages like the floatrow package [8]. You have a break (empty line and whitespace) in between the minipage environments. 1 Answer. So in short: Even when I use the following code to show 1 figure with the width of almost the whole page, it shows the figure small and in the left column of my document. \documentclass {article} \usepackage {graphicx} \usepackage {caption} \usepackage {subcaption} \usepackage {multirow. And an example with subfig is explained in it. subfigure Within a figureor tableenvironment, you can use the following commands to subtable create a subfigure or subtable “box” with an optional subcaption underneath. egin{figure} centering egin{subfigure}[b]{0. You're asking for both your subfigures to be at the bottom. are changing. You should prefer width for scale. In this attempt, I intend to place a common subcaption on the left two subfigures instead of their individual subcaptions -- as illustrated below. Subfigure with caption on the side. Need pairs of side-by-side subfigures with ONE caption each. 1\textwidth to fill (as your subfigures add up to . Hi I have two Figures that I want to put side by side, each figure has 3 subfigures. 1. Use the sidecap package. What I understand you want is something like this: which can be obtained with following code: documentclass {IEEEtran} usepackage {lipsum} usepackage {graphicx}. As to the description, add centering before your description. 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. To put two figures side by side, you can use the minipage environment. Therefore there are in total four figures. Side-by-side figures with caption, specify height but use whole textwidth. Viewed 61 times1. 9linewidth} includegraphics [width=linewidth] {figures2/ROI1spec. I have following code: begin{figure}[H] \\centering. Subfigure and subtable side-by-side? I have to do something like above. The prettyref package is then used to customise the cross-referencing to either of the three "subfigures". Fixed length: Use a fixed hspace {<len>} between the subfigures, together with centering to centre and separate the subfigures by a fixed distance <len> ( 1em in my example). The following example sets up the subfigures so that they occupy the full width of the textblock. Postby pemfir » Thu Aug 23, 2012 10:05 pm. You want them in the same line, so in the same paragraph, and since you have used . In this attempt, I intend to place a common subcaption on the left two subfigures instead of their individual subcaptions -- as illustrated below. I want to make all those figures to have the same width and height, Here is what I have tried till now. not all 4:3 format or so). 1 subfloat [ list entry ] [ sub-caption ] { body } We need the figure (or table) floating environment as a container for the actual subfigure/subtables. Side-by-side minipage figures captions too close together. e end{subfigure}%). However I want only the 3 images on the right side to be subfigures (2a, 2b, 3c), But the big red image on the left should be numbered as Figure 1. unrelated but use h_{mathrm{max}} (never use math italic for multi-letter words) also would be better to use end{subfigure}hfillegin{subfigure} rather than end{subfigure} ~ egin{subfigure} currently you have . How can I insert two pictures in side by side format for the IEEE access format paper? I tried the following code by the pictures are two far away from each other. I would like them to have labels a) and b). 4. We can use hfill to separate the figures by the available horizontal space. The subfig Package. The prototype assumed that the leftmost figure is a square 2/3 the. 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. 0. 1 Answer. I am using the command egin{subfigure}. Explored the subfigure and minipage solution, and the 2nd seems the the way to go (fn1). Do you mean something like this? In order to have figure A and B on the same line there must be no blank lines between the subfigure environments. What I want is What I do is: egin{figure}[H] makebox[paperwidth] { egin{subfigure} includegraphics[width=0. png ” with a width equals to 80% of the column text width. It only takes a minute to sign up. The horizontal line below the figure is drawn purely to illustrate. I'm not sure what you need subfloats for, as you don't use subcaptions. . May 27, 2016 at 10:51. The layout I want is the following. But didn't work properly and issues with alignments. Modified 4 years, 3 months ago. It only takes a minute to sign up. BTW, if you do not intend to add subcaptions to your plots, the subfigure environment is useless, and you can just put your (properly scaled) tikzpictures side by side separated by an \hfill. do) that associates "left" to "1", "centre" to "2", and "right" to "3". I want to put them side by side so that they have the same height and that they overall take, say, 90% of the line width. 0. The reason this works is because the text width within the subfigure is the width we specified in the egin{subfigure} command, i. This could b. So, applying the code the output should look like this-Add multiple subfigures in multiple rows. Insert→Formatting→Horizontal Space→Horizontal Fill or Ctrl- -> right-click on space -> select "Horizontal Fill" (to insert a stretchable horizontal space) The two figures are connected side by side, and there are two sets. no notations as a) b) c) for. \usepackage {caption} \usepackage {subcaption} \begin {figure} \begin {subfigure} [b] {0. By the way, subfigure has been replaced several years ago by subfig, which can be used with llncs. The subfigure package provides functionality to arrange figures and tables next to each other, within the usual figure-floating-environment. 3 Answers. You could use the subfigure package: egin {figure} hfill subfigure [Title A] {includegraphics [width=5cm] {img1}} hfill subfigure [Title B]. egin {figure}% centering subfigure [Sample1] {% label {fig:first}% includegraphics [height=2in]. Putting two figures side by side. You also can use \columnwidth in defining minipages' widths. 3 Answers. Side-by-side images in LaTeX. – Jason Whyte Jul 1, 2014 at 5:24I'm trying to create a multiple panel figure and I want the figures to by side by side (thre are 3 so I want two of them to be side by side and the other one below the first one). And I'm not tempted by multicon. The subfigure package is obsolete and shouldn't be used any longer! documentclass {article} usepackage {graphicx} usepackage {svg} usepackage {subfig} egin {document} egin {figure}% centering. {0. For the single-column case do: egin {figure} [b!] captionsetup [subfigure] {labelformat=empty} centering. If you want to keep the empty line in order ton increase readability of the code, comment out the empty line as I did in my answer. There are a few symbols to add space between subfigures: ~, quad, qquad, hfill. A question that I haven't seen directly asked or answered on the stack exchange is, how do I put two figures side-by-side in LaTex so that. 4linewidth]{latex. subfigure Within a figureor tableenvironment, you can use the following commands to subtable create a subfigure or subtable “box” with an optional subcaption underneath. When in 2-column mode (using either wocolumn or the multicols environment (package multicol)), use egin {figure*} and egin {table*} to create figures and tables that span the entire width of the page. Please see my post on that topic. If you just want three images side by side they can be positioned just as you would position three letters or boxes, no need for minipage wrappers etc. a) and b) and should be labeled as such. You also can use columnwidth in defining minipages' widths. Next we give the subfigure a separate caption and label. Stack Exchange network consists of 183 Q&A communities. I have tried the following: \usepackage {floatrow} \begin {figure} [!h] \begin {floatrow} \ffigbox {\includegraphics [scale = 0. I tried to insert side by side figures making a minipage instead of subfigures. I enclose an example and a preview of pages. Forcing subfigures to have same height and take overall X% of linewidth in LaTeX (3 answers) Closed 4 years ago . I've created a figure containing some subfigures, and now I want to set their captions on the top (only in this individual figure) and remove the letter numbering, like (a) and (b). subfloat take an optional argument in a square bracket [], which is used to define caption for this specific subfigure. The \vspace {0pt} adds a zero-height line at the top, so that's where the reference point will be. The goal is to have 2 tables side by side with subcaption (a) and (b). 1 and fig. But I would like to know how to give an space between then, since they are too close each other.