在表格的多行中插入图像作为背景

在表格的多行中插入图像作为背景

我想插入一张图片作为multirow表格的背景。如果能有类似这样的内容就太好了

\documentclass[a4paper,twoside]{report}
\usepackage{tabularx}  
\usepackage{array,colortbl,multirow,multicol,booktabs,ctable} 
\usepackage[english]{babel}
\usepackage{graphicx}

\begin{document}

\begin{tabularx}{\textwidth}{p{1cm} X p{70pt}
\multirow{2}{*}{\includegraphics[some options]{image}}&stuff&\\
&&stuff
\end{tabularx}

\end{document}

答案1

这就是想要的吗?

\documentclass[a4paper,twoside]{report}
\usepackage{tabularx}  
\usepackage{array,colortbl,multirow,multicol,booktabs,ctable} 
\usepackage[english]{babel}
\usepackage{graphicx}
\usepackage{mwe} % for dummy picture

\newcommand{\mystrut}{\rule{0pt}{3.5cm}} % the height may be adjusted 

\begin{document}

\begin{tabularx}{\textwidth}{c m{5cm} X p{70pt}}
1&\multirow{2}{=}{\includegraphics[width=5cm]{example-image-a}}&stuff&\\
2&&stuff\\
3\mystrut&stuff&stuff % the third line height is set = 3.5cm
\end{tabularx}

\end{document}

在此处输入图片描述

相关内容