LaTeX Integrating Momentum Space: Replacing hslash with d

AI Thread Summary
The discussion centers on how to create a specific notation in LaTeX for a "d slash" symbol used in momentum space integration measures. The user seeks to replace the standard Planck constant symbol (\hslash) with a "d" that has a diagonal line through it, rather than the full Feynman slash notation. Several users contribute by sharing their attempts and solutions, including a macro that uses negative space to achieve the desired effect. One suggested command is \newcommand{\dslash}{d \hspace{-0.8ex}\rule[1.2ex]{0.8ex}{.1ex}}, which effectively creates the "d slash" notation. The discussion also touches on adjusting the angle of the slash for aesthetic purposes, indicating a collaborative effort to refine the notation.
the1ceman
Messages
28
Reaction score
0
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.
 
Physics news on Phys.org
not!

Hi the1ceman! :smile:
the1ceman said:
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.

hmm … interesting :rolleyes:

i did a google search, and found this …
NeutronStar said:
Here's a crude make-shift attempt for whatever it's worth. I just did this by goofing around. :biggrin:

I have no idea how to do it formally, of if there even is a formal way to do it.

\displaystyle{\not} \partial = \gamma_i \partial^i

\displaystyle{\not} p = \gamma_i p^i

\displaystyle{\not}A = \gamma _i A^i

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 :biggrin:)

{\not} \partial = \gamma_i \partial^i
{\not} p = \gamma_i p^i
{\not}A = \gamma _i A^i
 
thanks for the reply tim but I am 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.
 
Try this
<br /> \newcommand{\dslash}{d \hspace{-0.8ex}\rule[1.2ex]{0.8ex}{.1ex}}<br /> \dslash \hbar <br />
(using a horizontal bar).
 
negative space!

robphy said:
Try this
<br /> \newcommand{\dslash}{d \hspace{-0.8ex}\rule[1.2ex]{0.8ex}{.1ex}}<br /> \dslash \hbar <br />
(using a horizontal bar).

oh, robphy, that's great! :-p

you've invented negative space! :biggrin:

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

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

Does CERN know about this? :smile:
 
robphy said:
Try this
<br /> \newcommand{\dslash}{d \hspace{-0.8ex}\rule[1.2ex]{0.8ex}{.1ex}}<br /> \dslash \hbar <br />
(using a horizontal bar).

thanks for the reply, i have actually done this already, but with a different command, is it possible to get the 'slash' slightly horizontal? Sorry for being so pedantic!
 

Similar threads

Back
Top