Table Layout – Positioning Two Tables Below Each Other with Image on Side

graphicslayoutpositioningtables

I am trying to create an image and 2 tables one below the other next to it using the below code with floatrow package

\begin{figure}
\begin{floatrow}
\ffigbox{%
  \rule{3cm}{3cm}%
}{%
  \caption{A figure}%
}
\capbtabbox{%
  \begin{tabular}{cc} \hline
  Author & Title \\ \hline
  Knuth & The \TeX book \\
  Lamport & \LaTeX \\ \hline
  \end{tabular}
  \begin{tabular}{cc} \hline
  Author & Title \\ \hline
  Knuth & The \TeX book \\
  Lamport & \LaTeX \\ \hline
  \end{tabular}
}{}
\end{floatrow}
\end{figure}

but I could only get this layout

enter image description here

Could you please let me know if there is an easy fix to place the tables one below the other instead of side by side. Thanks.

Best Answer

The better I can do: enter image description here

with this (no professional)code:

\documentclass[10pt,a4paper]{book}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx,lipsum}
\usepackage{caption}[2007/04/11]

\begin{document}
    \lipsum[1]\\
    
    \begin{figure}[h!]
    %   \vspace{1cm}
    \rule{3cm}{4cm}%
    \end{figure}
    \vspace{-5.3cm} % <<<< TRIALS AND ERRORS
\qquad \qquad
    \begin{table}[htp]
        \centering
        \caption{First table}
        \begin{tabular}{lll}
            \hline
            1 & 2 & $\sin x$\\
            3 & 4 & $\cos x$\\
            5 & 6 & $\tan x$\\
            \hline
        \end{tabular}
        \caption{First table}
        
        \begin{tabular}{lll}
            \hline
            1 & 2 & $\sin x$\\
            3 & 4 & $\cos x$\\
            5 & 6 & $\tan x$\\
            \hline
        \end{tabular}
    \end{table}\\
    \noindent\lipsum[1-2]
\end{document}