Can we reproduce this image in LaTeX
? I have some idea using
\usepackage{tikz}
\usetikzlibrary{positioning,fit,shapes.geometric,backgrounds,matrix,calc,shapes}
but so far I can't achieve this, as I am new to LaTeX
.
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{matrix,calc,decorations.pathreplacing,shapes.misc}
\tikzset{
module/.style={draw, rectangle, fill=white, minimum size=1em,outer sep=0,inner sep=0},
mycross/.style={path picture={
\draw[#1] (path picture bounding box.south west) rectangle (path picture bounding box.north east);
\draw[#1] (path picture bounding box.south west) -- (path picture bounding box.north east);
\draw[#1] (path picture bounding box.south east) -- (path picture bounding box.north west);
}}
}
\begin{document}
\begin{tikzpicture}
\tikzset{column align/.style 2 args={column #1/.append style={nodes={execute at begin
node={\setbox\matrixcellbox=\hbox\bgroup},
execute at end
node={\egroup\eqmakebox[\tikzmatrixname\the\pgfmatrixcurrentcolumn][#2]{\copy\matrixcellbox}}}}}}
\matrix[fill=black!20, matrix of nodes, nodes={module,anchor=center},
row sep=-\pgflinewidth,column sep=-\pgflinewidth
]
{
Y & Y & Y \\
Y & Y & |[mycross]| \\
Y & Y & Y \\
};
\end{tikzpicture}
\end{document}
Current result: