# Subfigure and subtable side-by-side?

TeX - LaTeX Asked by Mas A on July 28, 2020

I have to do something like above.I saw similar questions, but I didn’t find anything about what I need to do exactly.

Here an example of what i did (it doesn’t work as i want):

begin{figure*}[!h]
centering
begin{subfigure}[t]{0.48textwidth}
includegraphics[width=1.0linewidth]{figure.png}
caption{Caption 1}
label{fig:fig1}
end{subfigure}

begin{subtable}[t]{}
scalebox{0.5}{
begin{tabular}{|c|c|}
1 & 2\ hline
11 & 22\ hline
end{tabular}
}
caption{Caption 2}
label{table:table}
end{subtable}
caption{Caption 3}
label{fig:mainfigure}
end{figure*}


documentclass[twocolumn]{article}
usepackage[demo]{graphicx} % do not use demo option in actual document.
usepackage{subcaption}

begin{document}

begin{figure*}[!h]
centering
begin{subfigure}[b]{0.48textwidth}
includegraphics[width=1.0linewidth]{figure.png}
caption{Caption 1}
label{fig:fig1}
end{subfigure}
%
begin{subtable}[b]{0.48textwidth}
centering
begin{tabular}{|c|c|}
1 & 2\ hline
11 & 22\ hline
end{tabular}
caption{Caption 2}
label{table:table}
end{subtable}
caption{Caption 3}
label{fig:mainfigure}
end{figure*}

end{document}


Correct answer by leandriis on July 28, 2020

## Related Questions

### Probably misdiagnosed “Command textiota unavailable in encoding T1” error

1  Asked on July 22, 2021 by user40960

### Change citations to [author, year] with apa-good

0  Asked on July 22, 2021

### underbrace in the ket symbol makes it be enlarged in a bad way

1  Asked on July 22, 2021 by irreversible

### Latex listofsymbols newsym with Theta error

2  Asked on July 22, 2021 by klausderriese

### Figure caption not centered, but only for this figure

1  Asked on July 22, 2021 by lars-nielsen

### Using $1over2$ instead of $frac{1}{2}$ under amsmath

3  Asked on July 22, 2021 by msc

### Logos and text at the top with a border around on each page of article

1  Asked on July 22, 2021 by gaurang

### How can label nodes be conditionally inserted into TikZ paths?

2  Asked on July 22, 2021

### Table left, image right in enumerate

3  Asked on July 22, 2021 by amzon-ex

### New keyboard shortcut in TeXStudio

1  Asked on July 22, 2021 by vbp

### latex/listings extend/add to a literate rule

1  Asked on July 22, 2021

### Citation with bib latex

0  Asked on July 22, 2021 by paper123

### References to begin and end of beamer allowframebreaks range

0  Asked on July 22, 2021

### How can I highlight elements in a matrix?

3  Asked on July 22, 2021 by bungbu

### l3draw diagram interpretation

0  Asked on July 22, 2021

### My Author Page goes to the second slide of my Beamer presentation

0  Asked on July 22, 2021

### LyX: Missing menu entry for export to docx

1  Asked on July 21, 2021 by kale-kundert

### How to add indentation

6  Asked on July 21, 2021

### How to do links on formula,using tagpdf features?

0  Asked on July 21, 2021

### Problem placing numbers after Vedic accents in Tamil

1  Asked on July 21, 2021

### Ask a Question

Get help from others!