Q:

\hslash with other letter

I would like to know how to make a character like \hslash, but with a 'd' instead of an 'h'.
I know that \hbar is defined using \mathchar'26, might there be a similar character for the slash in \hslash?

A:

The \hslash symbol is a unique glyph. Here's an emulation of it obtained by scaling, rotating and raising a minus sign:
\documentclass{article}
\usepackage{amssymb,graphicx}
\newcommand{\hslashslash}{%
  \raisebox{.9ex}{%
    \scalebox{.7}{%
      \rotatebox[origin=c]{18}{$-$}%
    }%
  }%
}
\newcommand{\dslash}{%
  {%
   \vphantom{d}%
   \ooalign{\kern.05em\smash{\hslashslash}\hidewidth\cr$d$\cr}%
   \kern.05em
  }%
}
\begin{document}
$\hslash\ne\dslash^2$
\end{document}

