I'm trying to a make a table with figures in it. But, the figures won't fit in the cells (see example at the end). I'm also trying to make the text in the cells next to the pictures come in the middle of the rows. And of course I'm trying to have all the table lines be visible (see right side of the table).
Is it easier to not use the multicol
package if I want caption and label for my table? Sense, then I can include it in a table environment and use the \twoclolumn
command instead.
This is how I have done it so far:
\documentclass[9pt]{extarticle}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{adjustbox}
\usepackage[section]{placeins}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm, a4paper]{geometry}
\usepackage{fancyhdr}
\usepackage[font=small, labelfont=bf, singlelinecheck=false, justification=raggedright, skip=0pt]{caption}
\usepackage{multirow}
\usepackage{multicol}
\usepackage{wrapfig}
\usepackage[colorlinks = true, linkcolor = blue, citecolor = red]{hyperref}
\usepackage{lastpage}
\usepackage[superscript]{cite}
\pagestyle{fancy}
\begin{document}
\begin{multicols}{2}
\begin{tabular*}{\2\columnwidth}{c|c|c|c|c|}
\cline{2-5}
& \multicolumn{4}{|c|}{Daughter} \\
\cline{2-5}
& \multicolumn{2}{|c|}{$re=0$} & \multicolumn{2}{c|}{$re=0.875$} \\ \hline
\multicolumn{1}{|l|}{$k_{3}=0$}
& \includegraphics[height=2cm]{daughterC1,0.jpg} & $ \frac{Number of division}{3 time points} $
& \includegraphics[height=2cm]{daughterC2,0.jpg} & $ \frac{Number of division}{3 time points} $ \\ \hline
\multicolumn{1}{|l|}{$k_{3}=1.6$} & \includegraphics[height=2cm]{daughterC1,6.jpg} & $ \frac{Number of division}{3 time points} $
& \includegraphics[height=2cm]{daughterC2,16.jpg} & $ \frac{Number of division}{3 time points} $ \\ \hline
\multicolumn{1}{|l|}{$k_{3}=2.5$} & \includegraphics[height=2cm]{daughterC1,25.jpg} & $ \frac{Number of division}{3 time points} $
& \includegraphics[height=2cm]{daughterC2,25.jpg} & $ \frac{Number of division}{3 time points} $ \\ \hline
\end{tabular*}
\end{multicols}
\end{document}
And this is how it looks: