[Tex/LaTex] Creating a custom math symbol from scratch

symbols

I want to use a special symbol from the Com­pre­hen­sive LaTeX Sym­bol List called \diamondtimes. Unfortunately, when I include the MnSymbol package that provides this symbol, it also affects how other things look like. Since I need only this single symbol, is there any way to design it from scratch so that I don't have to include any extra packages?

Maybe it can be build by adding something on top of the standard \diamond symbol? In fact, I want the diamond produced by \diamondtimes to be the same size as \diamond, since I plan to use both.

Update: Since it has such a simple shape, I would prefer to make it from scratch (or put something on top of \diamond). Here is the original code from Sym-Geometric.mf:

beginoperator(med_op_size#, 1); "medium diamond times";
  pickup rule_pen;
  r := w/2 - side_bearing;
  draw square(centre, r / sqrt(2), 45);
  draw (centre + sqrt .5 * r * dir  45) -- (centre + sqrt .5 * r * dir 225);
  draw (centre + sqrt .5 * r * dir 135) -- (centre + sqrt .5 * r * dir 315);
endchar;

What language is this in and can I just reuse this somehow?

Best Answer

Rotate \boxplus by 45 degrees:

\documentclass{article}
\usepackage{graphicx,amsmath,amssymb}
\DeclareRobustCommand{\diamondtimes}{%
  \mathbin{\text{\rotatebox[origin=c]{45}{$\boxplus$}}}%
}

\begin{document}
$a\diamondtimes b$

$a\times b$
\end{document}

enter image description here

For a smaller version and an empty diamond (note that \diamond already exists, but gives a much smaller symbol):

\documentclass{article}
\usepackage{graphicx,amsmath,amssymb}
\DeclareRobustCommand{\diamondtimes}{%
  \mathbin{\text{\scalebox{.75}{\rotatebox[origin=c]{45}{$\boxplus$}}}}%
}
\DeclareRobustCommand{\bdiamond}{%
  \mathbin{\text{\scalebox{.75}{\rotatebox[origin=c]{45}{$\Box$}}}}%
}
\begin{document}
$a\diamondtimes b$

$a\bdiamond b$
\end{document}

enter image description here