Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

What's the best way to achieve the Dirac slash notation for Dirac operators (contraction with Gamma matrices)? I would have thought the AMSmath packages would have this built in somewhere.

(The cancel package springs to mind, but surely there is an easier method?)

share|improve this question
    
Good question! And one I've struggled with over many years. I'm currently using the slashed package as mas suggests. –  Loop Space Aug 25 '11 at 16:56
add comment

2 Answers 2

up vote 17 down vote accepted

Does

\documentclass[12pt]{article}
\usepackage{amsmath}
\usepackage{slashed}
\begin{document}
$\slashed{p}$
\end{document}

give what you want?

enter image description here

share|improve this answer
    
Yes, it does - thanks. I was wondering if I had overlooked a built-in way of doing it, in AMSmath or otherwise, without the need for an additional package. –  Dan Aug 25 '11 at 16:10
    
@Dan -- thanks for the comment. Welcome to TeX.SX: hope you'll enjoy coming here! –  mas Aug 25 '11 at 17:15
add comment

In addition to mas's answer, you could define your own using an overlap (in mathmode) of the \not operator:

\documentclass[12pt]{article}
\usepackage{mathtools}% http://ctan.org/pkg/mathtools
\newcommand{\fsl}[1]{\ensuremath{\mathrlap{\!\not{\phantom{#1}}}#1}}% \fsl{<symbol>}
\begin{document}
\noindent $\not{a}\not{b}=4(a\cdot b)$

\noindent $\fsl{a}\fsl{b}=4(a\cdot b)$
\end{document}

​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​Slash operator

Of course this works best for single-symbol/letter slashing. I think this is more commonly referred to as Feynman slash notation.

share|improve this answer
    
I never knew it was down to Feynman - thanks! –  Dan Aug 25 '11 at 16:08
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.