I needed a character that looks like a d with a bar through it, so I found this snippet of code.

\newcommand{\dbar}{{\mathchar'26\mkern-12mu d}}

This creates the right character, but it doesn't have normal spacing for a math symbol, so I end up with something like the picture below, where I've included a regular $\hat{d}$ for comparison to what it should look like. Any advice on how to fix this?



Browse other questions tagged or ask your own question.