在单元格左上角插入图片 A,然后在单元格中心插入图片 B(或将其从中心移动 5pt),我不擅长使用 tikz,请举例说明为什么使用特定代码以便理解
\documentclass[20pt,twoside]{report}
\usepackage{graphicx}
\usepackage{tikz}
\usepackage{tabularx}
\begin{document}
\begin{minipage}[t]{0.4\linewidth}
Hello
\end{minipage}
\hfill
\begin{minipage}[t]{0.55\linewidth}
\begin{tabularx}{0.9\linewidth}{|X|X|X|}
\hline
\includegraphics[width=.2\textwidth]{example-image-a}
\includegraphics[width=.2\textwidth]{example-image-b}
& item 13 & item 21 \\
\hline
\end{tabularx}
\end{minipage}
\end{document}
答案1
\documentclass[twoside]{report}
\usepackage{graphicx}
\usepackage{tikz}
\usetikzlibrary{matrix}
\usepackage{tabularx}
\begin{document}
\begin{minipage}[t]{0.4\linewidth}
Hello
\end{minipage}
\hfill
\begin{minipage}[t]{0.55\linewidth}
\begin{tabularx}{0.9\linewidth}{|l|X|X|}
\hline%
\tikz[baseline=(Cats-1-1.base)]{
\matrix[matrix of nodes, nodes={inner sep=0pt},ampersand replacement=\&] (Cats){
\includegraphics[width=.15\textwidth]{example-image-a} \& \\
\& \includegraphics[width=.07\textwidth]{example-image-b} \\};}
& item 13 & item 21 \\
\hline
\end{tabularx}
\end{minipage}
\end{document}