# D slash in latex

1. Dec 29, 2008

### the1ceman

does anyone knw the code for how to produce the d slash notation in the integration measure for momentum space? Where (d slash)^n X=(d^n)X/((2pi)^n).
Basically all i want to do is replace the h:
$$\hslash$$
with a d.

2. Dec 29, 2008

### tiny-tim

not!

Hi the1ceman!
hmm … interesting

i did a google search, and found this …
He did it by typing \displaystyle{\not} …

but you can also do it with just {\not} …

(presumably because LaTeX regards a letter with a slash through it as "not" that letter )

$${\not} \partial = \gamma_i \partial^i$$
$${\not} p = \gamma_i p^i$$
$${\not}A = \gamma _i A^i$$

3. Dec 29, 2008

### the1ceman

thanks for the reply tim but im not after the feynman slash notation! Basically in the latex command \hslash i just want to replace the 'h' by a 'd', so that the top end of the 'd' has a diagonal line through it, not the whole letter (as in the feynman slash notation).
Im almost there, basically i have to create a macro, but i need to find the code for the 'slash' in \hslash.

4. Dec 29, 2008

### robphy

Try this
$$\newcommand{\dslash}{d \hspace{-0.8ex}\rule[1.2ex]{0.8ex}{.1ex}} \dslash \hbar$$
(using a horizontal bar).

5. Dec 30, 2008

### tiny-tim

negative space!

oh, robphy, that's great! :tongue2: …

you've invented negative space!

you've inserted a negative space "after" the d (using \hspace{-0.8ex}), and put a horizontal bar in it.

(btw, you can leave out "\newcommand" at the start, and "\dslash " at the end: $${d \hspace{-0.8ex}\rule[1.2ex]{0.8ex}{.1ex}}$$ )