在表格内插入多个带标签的图形?

在表格内插入多个带标签的图形?

我一直在努力重写微软 Word表格由4张图(图2 - 5)组成乳胶环境(由于引用,我需要标记所有 4 个图形) - 文档的最后一部分我无法“解决”。

有可能做这样的事吗

在此处输入图片描述

我至今还没成功过。

或者最好制作 4 张单独的图片并将它们放入表格中(同时删除图形标签并将它们全部标记在乳胶表格呢?

谢谢!

答案1

以下内容或许可以帮助你入门:

在此处输入图片描述

\documentclass{article}
\usepackage{geometry}
\usepackage{booktabs}
\usepackage{amsmath}
\usepackage{mathtools}
\usepackage{graphicx}
\usepackage{array}
\usepackage{caption}
\usepackage[export]{adjustbox}
\usepackage{makecell}
\renewcommand{\theadfont}{\normalsize\bfseries}
\newlength{\imagewidth}
\setlength{\imagewidth}{5cm}
\newlength{\equationwidth}
\setlength{\equationwidth}{\textwidth-\imagewidth-4\tabcolsep}
\begin{document}

\begin{table}
\centering
\abovedisplayskip=0pt
\belowdisplayskip=0pt
\caption{summary of...}\label{table}
\begin{tabular}{ >{\centering\arraybackslash}p{\imagewidth} p{\equationwidth}}
\toprule
\thead{text here} & \begin{tabular}{@{}p{0.9\equationwidth}r@{}} \thead{text} &\thead{eq.}\end{tabular}\\
\midrule
  \includegraphics[width=\imagewidth,valign=t]{example-image}%
  \captionof{figure}{some image caption}%
  \label{image} &
  \begin{tabular}[t]{@{}p{\equationwidth}@{}}%
      {\begin{flalign} 
        E' = ...&& \label{continuity_1}
      \end{flalign}}
      \\ \midrule
      {\begin{flalign} 
        E = ...&& \label{continuity_2}
      \end{flalign}} 
      \\ \midrule
      {\begin{flalign} 
        H = ...&& \label{continuity_3}
      \end{flalign}} 
  \end{tabular}\\
\midrule
\end{tabular}
\end{table}

See table \ref{table} See figure \ref{image}
\end{document}

以下是带有旋转文本的更新版本:

在此处输入图片描述

\documentclass{article}
\usepackage{geometry}
\usepackage{booktabs}
\usepackage{amsmath}
\usepackage{mathtools}
\usepackage{graphicx}
\usepackage{array}
\usepackage{caption}
\usepackage[export]{adjustbox}
\usepackage{makecell}
\renewcommand{\theadfont}{\normalsize\bfseries}
\newlength{\imagewidth}
\setlength{\imagewidth}{5cm}
\newlength{\equationwidth}
\setlength{\equationwidth}{\textwidth-\imagewidth-6\tabcolsep-2ex}
\usepackage{rotating}
\usepackage{multirow}
\begin{document}

\begin{table}
\centering
\abovedisplayskip=0pt
\belowdisplayskip=0pt
\caption{summary of...}\label{table}
\begin{tabular}{p{2ex} >{\centering\arraybackslash}p{\imagewidth} p{\equationwidth}}
\toprule
&\thead{text here} & \begin{tabular}{@{}p{0.9\equationwidth}r@{}} \thead{text} &\thead{eq.}\end{tabular}\\
\midrule
\parbox[t]{2mm}{\multirow{10}{*}{\rotatebox[origin=c]{90}{some rotated text}}}
&  \includegraphics[width=\imagewidth,valign=t]{example-image}%
  \captionof{figure}{some image caption}%
  \label{image} &
  \begin{tabular}[t]{@{}p{\equationwidth}@{}}%
      {\begin{flalign} 
        E' = ...&& \label{continuity_1}
      \end{flalign}}
      \\ \midrule
      {\begin{flalign} 
        E = ...&& \label{continuity_2}
      \end{flalign}} 
      \\ \midrule
      {\begin{flalign} 
        H = ...&& \label{continuity_3}
      \end{flalign}} 
  \end{tabular}\\
\midrule
\end{tabular}
\end{table}

See table \ref{table} See figure \ref{image}
\end{document}

相关内容