2

This question already has an answer here:

So, there's this picture lagrangian

Floating around on the internet for the standard model of physics in a relatively short form. I want to typeset this in LaTeX in order to print it. However, I can't find a way to typeset the crossed out D in the second line.

So far, I have this

    \documentclass[a4paper,10pt]{scrartcl} 

    \usepackage{amsmath,amssymb}

    \begin{document}
    What part of

    \begin{align*}
    \mathcal{L} &= - \frac{1}{4} F_{\mu \nu} F^{\mu \nu} \\
        &+ i \bar{\psi} D \psi + h.c. \\
        &+ \bar{\psi}_i y_{ij} \psi_j \phi + h.c. \\
        &+ |D_\mu \phi|^2 - V(\phi)
    \end{align*}

    didn't you understand?

    \end{document}

marked as duplicate by Werner, Gonzalo Medina, henrique, user13907, Jesse Aug 19 '15 at 1:58

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

4

You can use cancel package.

\documentclass[a4paper,10pt]{scrartcl}

\usepackage{amsmath,amssymb,cancel}

\begin{document}
What part of

\begin{align*}
\mathcal{L} &= - \frac{1}{4} F_{\mu \nu} F^{\mu \nu} \\
    &\phantom{{}=}+ i \bar{\psi} \cancel{D} \psi + h.c. \\
    &\phantom{{}=}+ \bar{\psi}_i y_{ij} \psi_j \phi + h.c. \\
    &\phantom{{}=}+ |D_\mu \phi|^2 - V(\phi)
\end{align*}

didn't you understand?

\end{document}

enter image description here

  • seems like the easiest way to do this. thanks a lot! – John W. Aug 18 '15 at 23:08
  • To obtain more even row spacing, one might use \tfrac instead of \frac in the first row. – Mico Aug 19 '15 at 0:19
  • Just a remark, D should not be in italics. – user74200 Jun 11 '17 at 12:44

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