Integrating Momentum Space: Replacing hslash with d

Click For Summary
SUMMARY

This discussion focuses on creating a custom LaTeX command to produce a 'd' with a diagonal slash for use in momentum space integration measures. The user seeks to replace the standard Planck constant notation (\hslash) with a 'd' that has a diagonal line through it. A suggested solution includes the command \newcommand{\dslash}{d \hspace{-0.8ex}\rule[1.2ex]{0.8ex}{.1ex}}, which effectively creates the desired notation by utilizing negative space and a horizontal bar.

PREREQUISITES
  • Familiarity with LaTeX typesetting
  • Understanding of mathematical notation in physics
  • Basic knowledge of macros in LaTeX
  • Concept of negative space in typesetting
NEXT STEPS
  • Research advanced LaTeX macro creation techniques
  • Explore the use of negative space in LaTeX for custom symbols
  • Learn about integrating custom commands in LaTeX documents
  • Investigate other mathematical notations and their LaTeX representations
USEFUL FOR

Physicists, mathematicians, and LaTeX users looking to customize notation for scientific documents, particularly in the context of momentum space integration.

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

  • · Replies 2 ·
Replies
2
Views
7K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 17 ·
Replies
17
Views
2K
  • · Replies 9 ·
Replies
9
Views
6K
  • · Replies 38 ·
2
Replies
38
Views
1K
  • · Replies 2 ·
Replies
2
Views
6K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K