0

I have been following this answer, which includes a loop diagram, to incorporate momentum arrows in a Tikz Feynman diagram. I would like to know if it is possible to add a arrow indicating vector sign, e.g. {\huge$\vec{p}_1$}, instead of just displaying $p_1$.

PoreyS
  • 276
  • 2
  • 10
  • The linked answer uses feynmp-auto, i.e. Metapost, to render the diagram but your question is tagged and mentions TikZ/tikz-feynman. Do you want to use TikZ or Metapost? What happens when you replace $p_1$with \huge$\vec{p}_1$? – Qrrbrbirlbel Jun 18 '23 at 14:11

1 Answers1

1

You can use any text for the momentum in tikz-feynman.

Code

% !TeX TS-program = lualatex
\documentclass[tikz]{standalone}
\usepackage{tikz-feynman}
\usetikzlibrary{quotes}
\tikzfeynmanset{momentum/arrow shorten=.3}
\begin{document}
\feynmandiagram[
  vertical'=b to d,
  node distance=3cm,
]{
  a [particle=$\mu^-$]
    --[fermion, momentum=$p_2$]
  b[dot]
    --[fermion, momentum=$p_4$]
  c[particle=$\mu^-$],
  d[dot]
    --[boson, "$\gamma$"', momentum=$q$]
  b,
  e [particle=$e^-$]
    --[fermion, momentum=$\vec p_1$]
  d
    --[fermion, momentum=$p_3$]
  f [particle=$e^-$]
};
\end{document}

Output

enter image description here

Qrrbrbirlbel
  • 119,821
  • Thank you for your response. I would also like to inquire if it is possible to include a vector sign for the marrow and Marrow commands used in the code. For example - \Marrow{e}{left}{lft}{$\vec{q}-\vec{k}$}{v2,v3}{26} and \marrow{f}{left}{lft}{$\vec{q}$}{v3,v4}. – PoreyS Jun 20 '23 at 02:05