Take the 2-minute tour ×  In math mode, I'm trying to make a
square with a diamond in it. My failed attempt has been to put
the following in the preamble:   However, the diamond symbol is
not scaled properly relative to the square. I'd like the corners
of the diamond to touch the midpoints of the sides of the
square, and I can't figure out how to "scale" the diamond
appropriately. Is there another way to do this?  share|improve
this question Related question: Overlay symbol with another – 
Martin Scharrer Apr 1 '11 at 20:46 add comment  3 Answers  up
vote 7 down vote accepted  It is quit difficult to get the two
symbols scaled and align correctly in all four math modes.
Better draw it using TikZ. One difficulty is to properly scale
the size and line width. This can be best done using amsmath
\text macro. I made two versions which are slightly different.
\newcommand{\sqdiamond}{\mathbin{\text{\tikz [x=1ex,y=1ex,line
width=.1ex,line join=round] \draw (0,0) rectangle (1,1) (0,.5)
-- (.5,1) -- (1,.5) -- (.5,0)