I want to define the following commands directly in latex.
-
\cross{a}{b}
which should create a black square, with a grey
cross inside it and the symbols$a$
and$b$
arranged along the
diagonal. Obs: the letters a and b are passed as arguments. I'm only
intersted in the case in which the arguments are single lowercase letters. -
\crossdot{a}{b}
which is similar to\cross{a}{b}
, except that
a grey circle should be added to the middle of the cross.
Both new symbols should be used in the text, and therefore I
would like them to have approximately the size of a capital $G$
.
A little bit larger would be ok. A picture illustrating what I want
is given below.
How do I create commands for such symbols in latex?
Best Answer
Stack and scale.
In this version, the
\fboxsep
inside the\crossbox
has been reduced to grow the size of the inset letters slightly.