最近论文用到这个效果, 先实现下, 嘿嘿。
\documentclass{article}
\usepackage{tikz,lscape,amsmath}
\usepackage[margin=1cm]{geometry}
\usetikzlibrary{matrix}
\begin{document}
\def\arraystretch{0.5}
\tikzset{
table/.style={
matrix of nodes,
row sep=-\pgflinewidth, % <-- This adjusts the row separation
column sep=\pgflinewidth,% <-- This adjusts the column separation
nodes={rectangle,draw=none, text width=2cm, align=center,inner sep=2pt,outer sep=0pt},
% nodes in empty cells
}
}
\begin{tikzpicture}
\matrix (mat) [table]
{
\includegraphics[width=2cm]{example-image-A} & \includegraphics[width=2cm]{example-image-A} & \includegraphics[width=2cm]{example-image-A} & \includegraphics[width=2cm]{example-image-A} & \includegraphics[width=2cm]{example-image-B}
& \includegraphics[width=2cm]{example-image-B} & \includegraphics[width=2cm]{example-image