创建一个图形,并将子图形与表格放在同一页上

创建一个图形,并将子图形与表格放在同一页上

我有一个带有多个子图的图形和一个相关表,我希望它们直接出现在它们下方。

我一直在尝试使用以下代码这个问题但它不适用于带有子图的图形,而且我到目前为止还无法找到解决方案。

关于如何做到这一点有什么想法吗?

(尝试)

\documentclass{文章}
\usepackage[demo]{graphicx}
\usepackage[labelformat=simple]{subcaption}
\renewcommand\thesubfigure{(\alph{子图})}
\renewcommand\thesubtable{(\alph{subtable})}

\begin{document} \begin{minipage}{\linewidth} \begin{figure} %\centering \begin{subfigure}[b]{0.49\textwidth} \includegraphics[scale=0.17]{LwT2_3d_statespace1.png} %\label{LwT1AssPhase} \end{subfigure} \begin{subfigure}[b]{0.49\textwidth} \includegraphics[scale=0.17]{LwT2_3d_statespace2.png} %\label{LwT1DissPhase} \end{subfigure} \begin{subfigure}[b]{0.5\textwidth} \includegraphics[scale=0.17]{LwT2_3d_statespace3.png} %\label{LwT1AssPhase} \end{subfigure} \begin{subfigure}[b]{0.49\textwidth} \includegraphics[scale=0.17]{LwT2_3d_statespace4.png} %\label{LwT1DissPhase} \end{subfigure} \caption[Visualisations of a solution trajectory for the Langmuir two concentration model in the association phase]{Visualisations of a solution trajectory for the Langmuir two concentration model in the association phase (cyan) alongside nullcline-planes $x_1$ in blue, $x_2$ in red, $C$ in green} \label{LwT2PhasePort} \end{figure} \begin{table} \centering \footnotesize \setlength{\extrarowheight}{1.5pt} \begin{tabular} { | c | c | c | c | c | c |c |c |c | } \hline Parameter &$k_{a1}$ & $k_{a2}$ & $k_{d1}$& $k_{d2}$& $R$ & $C_T$ & $k_m$ & $h$ \\%\hline &M$^{-1}$s$^{-1}$ &M$^{-1}$s$^{-1}$&s$^{-1}$ &s$^{-1}$ & pg nm$^{-2}$ & nM & pgnm$^{-2}$ M$^{-1}$s$^{-1}$ &pgnm$^{-2}$ M$^{-1}$ \\\hline%\hline Value &6E-4 &5E-4 &7E-3 &1E-2 & 500 & 100 & 10$^{-4}$ & 10$^{-6}$ \\\hline \end{tabular} \caption{Values taken by parameters in Fig. \ref{LwT2PhasePort} and \ref{LwT2dPhasePort}}%add key \label{tab:LwTsols} \end{table} \end{minipage} \end{document}

``

答案1

比例因子引起了奇怪的问题,因此用宽度规范代替。注意:出于演示目的,我使用了两种不同的方法来定位“子图”。

我做了一些极端的尝试,试图让表格适合页面。我对默认的脚注标记(小页面)不满意,但现在太累了,不知道如何更改它们。

\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage[labelformat=simple]{subcaption}
\renewcommand\thesubfigure{(\alph{subfigure})}
\renewcommand\thesubtable{(\alph{subtable})}
\usepackage{array}% for \extrasrrowheight
\usepackage{siunitx}

\begin{document}

\noindent\begin{minipage}{\textwidth}
        \centering
        \begin{minipage}[b]{0.45\textwidth}
            \includegraphics[width=\textwidth]{LwT2_3d_statespace1.png}
            \captionof{subfigure}{}
            \label{LwT1AssPhase}
        \end{minipage}\hfil
        \begin{minipage}[b]{0.45\textwidth}
            \includegraphics[width=\textwidth]{LwT2_3d_statespace2.png}
            \captionof{subfigure}{}
            \label{LwT1DissPhase}
        \end{minipage}

        \begin{minipage}[b]{0.45\textwidth}
            \includegraphics[width=\textwidth]{LwT2_3d_statespace3.png}
            \captionof{subfigure}{}
            \label{LwT1AssPhase}
        \end{minipage}\hfill
        \begin{minipage}[b]{0.45\textwidth}
            \includegraphics[width=\textwidth]{LwT2_3d_statespace4.png}
            \captionof{subfigure}{}
            \label{LwT1DissPhase}
        \end{minipage}

        \captionof{figure}[Visualisations of a solution trajectory for the Langmuir two concentration model in the association phase]%
          {Visualisations of a solution trajectory for the Langmuir two concentration model in the association phase (cyan) alongside nullcline-planes $x_1$ in blue, $x_2$ in red, $C$ in green}
    \label{LwT2PhasePort}

    \vspace{\floatsep}% standard interfloat separation
    \captionof{table}{Values taken by parameters in Fig. \ref{LwT2PhasePort} and  \ref{LwT2dPhasePort}}%add key
    \label{tab:LwTsols}
    \small
    \sisetup{exponent-product = \cdot}
\setlength{\extrarowheight}{1.5pt}
    \begin{tabular}{|c|c|c|c|c|c|c|c|c|}% 9*{c|}
    \hline
    Parameter  &$k_{a1}$ & $k_{a2}$ & $k_{d1}$ & $k_{d2}$ & $R$ & $C_T$ & $k_m$ & $h$ \\%\hline
       & \si{M^{-1} s^{-1}} & \si{M^{-1}s^{-1}} & \si{s^{-1}} & \si{s^{-1}} & \footnote{\si{pg nm^{-2}}} & nM
           & \footnote{\si{pgnm^{-2}M^{-1}s^{-1}}}
           & \footnote{\si{pgnm^{-2}M^{-1}}} \\
    \hline%\hline
    Value & \num{6E-4} & \num{5E-4} & \num{7E-3} & \num{1E-2} & 500 & 100 & \num{E-4} & \num{E-6}  \\
    \hline
    \end{tabular}
\end{minipage}

\end{document}

演示

相关内容