My use case is drawing a ticked box in line with normal text like this: "Hello ☒ World." (unicode example, your mileage may vary). One solution I managed to come up with is the following rather verbose expression.
Hello \tikz{
\node[draw,rectangle,minimum size=1.5ex] {};
\node[draw,cross out,minimum size=1.5ex] {};
} World.
Is there a more elegant way to describe this picture, for example by having the two shapes superimposed on one node?
Alternatively, is there any cross out
path operation akin to rectangle
, allowing something like the following?
\tikz \draw rectangle (1.5ex,1.5ex) cross out (0,0);
(N.B. This issue is mostly of aesthetic and academic nature, since the first example does indeed work as expected.)
Clarification: This is single-use so creating a new command is not what I'm after (thanks Peter).