\documentclass{article}
\usepackage[table]{drawmgr}
\usepackage{tabular2}
\usepackage{lipsum}

\begin{document}

\tableofcontents
\listoffigures
\listoftables


\ExplSyntaxOn
\newdraw{sampleA}
  {
    \draw_begin:
    \color_select:n { green!30!black } 
    \draw_path_rectangle:nn { 0cm, 0cm } { 4cm, 3cm }
    \draw_path_circle:nn { 1cm, 1.1cm } { 0.8cm }
    \draw_path_circle:nn { 2.5cm, 1.5cm } { 1.2cm }
    \draw_path_use_clear:n { stroke }
    \hbox_set:Nn \l_tmpa_box { $PicA$ }
    \draw_box_use:Nn \l_tmpa_box { 0.5cm, 2.5cm }
    \draw_end:
  }
\newdraw{sampleB}
  {
    \draw_begin:
    \color_select:n { red!30!black } 
    \draw_path_rectangle:nn { 0cm, 0cm } { 4cm, 3cm }
    \draw_path_circle:nn { 1cm, 1.1cm } { 0.8cm }
    \draw_path_circle:nn { 2.5cm, 1.5cm } { 1.2cm }
    \draw_path_use_clear:n { stroke }
    \hbox_set:Nn \l_tmpa_box { $PicB$ }
    \draw_box_use:Nn \l_tmpa_box { 0.5cm, 2.5cm }
    \draw_end:
  }
\ExplSyntaxOff

\begin{xtable}
    \begin{data}
        Sample, Desc\\
        A,      Green 30\%\\
        B,      Red 30\%\\
        %C,		Undefine\\
    \end{data}
\end{xtable}

\lipsum[1]        % 第1段
\addfiguredbl{sampleA}{green sample}{sampleB}{red sample}
\lipsum[3]      % 第1–3段
\addfiguretable{sampleA}{green sample}{ \rendertable [booktabs] }{table desc}
\lipsum[2][1-5]   % 第2段的前5句
\addtablefigure
  { 
    \begin{tabular}{|c|c|}
      \hline
      Sample& Desc\\
      \hline
      A&      Green 30\%\\
      \hline
      B&      Red 30\%\\
      \hline
      C&	   Undefine\\
      \hline
    \end{tabular}
  }
  {table desc}{sampleB}{red sample}

\end{document}
