I am trying to create a custom vertex in a TikZ-Feynman diagram that is a rectangle with a cross (Γ) inside it. The goal is to use this for visualizing operator counterterms. I want the rectangle to have a border and to display the cross inside it, without the cross overwriting or obscuring the rectangle.
I know tikz-feynman does not define such a vertex, but I was wondering if there was some way to do it.
I have tried the following code:
\documentclass{article}
\usepackage{tikz}
\usepackage[compat=1.1.0]{tikz-feynman}
\usetikzlibrary{shapes}
\begin{document}
\begin{tikzpicture}
\begin{feynman}
% Custom vertex
\vertex [draw, shape=rectangle, cross out] (v0) at (0, 0) {};
% Other vertices
\vertex (a) at (-2,1);
\vertex (b) at (-2,-1);
\vertex (c) at (2,0);
\diagram* {
(a) -- [fermion] (v0) -- [fermion] (b),
(v0) -- [photon] (c),
};
\end{feynman}
\end{tikzpicture}
\end{document}
However, this results in the cross overwriting the rectangle, and the cross does not appear correctly inside the shape. I am expecting the cross to be inside the rectangle without obscuring the border.
Can someone please help me achieve this?