This question already has an answer here:
In my current project, I'm using the boxed versions of certain operations. The
amsmath package provides convenient
\boxplus operators for this, which are the same size as
However, I haven't been able to find a box with a slash (i.e. set-minus symbol). Is there a straightforward way I could make one, e.g. by somehow removing one of the lines from
\boxtimes, or overlaying
\square with an equally-sized slash symbol? The straightforward
\not\square looks rather dreadful: .
\cancel\square looks somewhat better, but the line still extends beyond the edges of the square: .