I am looking for an easy way to type in the square and the circle shown below:
The circles are meant for operations like +,-,>,< or \neq
or \geq,leq
ect. So the circles should be small
. But the squares should be big, because they are meant for the numbers
.
I hope to have an easy way to implement them, with auto change of size when the font size changes.
I have been looking for packages that have squares and circles, but either the square are too small, or the circles are not big enough. Also I have not found a single package that can have the two shapes.
Thanks,
Chen
Best Answer
...or, for a thinner circle:
FOLLOW UP
The OP asks about making the box "even bigger." Below, I show how to do that both vertically and horizontally. Vertically, I replace the
gX
in the\msquare
definition with\strut
, so that the\Box
is scaled to the same vertical extent as a\strut
. For horizontal expansion, one can use a asymmetric\scalebox
to accomplish that.