1

I want to draw a feynman diagram for the quark Dyson-Schwinger equation using the Tikz-Feynman package. I have the problem that I can't draw a fermion line that is straight even after a vertex. I have tried the code

\documentclass{article}
\usepackage{tikz-feynman}
\begin{document}
\feynmandiagram[horizontal=b to c] {
   b -- [fermion] c [dot] -- [fermion] d,
   b -- [gluon, half left, edge label=\(q\)] c;
};
\end{document}

which produces the output

enter image description here

What I want is that after the vertex with the dot the fermion line still is angled horizontally. If I try to align the points b and d horizontally, the output is still wrong:

enter image description here

Is there a way to automatically fix this or do I have to set the angle manually. If yes, how do I do so?

Edit: I am using the LuaLatex compiler.

2

Thanks for your MWE. Add tree layout.

\documentclass{article}
\usepackage{tikz-feynman}
\begin{document}
\feynmandiagram[horizontal=b to c,tree layout] {
   b -- [fermion] c [dot,midway] -- [fermion] d,
   b -- [gluon, half left, edge label=\(q\)] c;
};
\end{document}

enter image description here

  • Sorry, i forgot to add that I am using lualatex. Using pdflatex I got some major issues with the feynman diagrams too, see tex.stackexchange.com/questions/412260/… – CrustyPeanut Feb 19 '18 at 14:11
  • @CrustyPeanut Could you please provide a complete MWE? – marmot Feb 19 '18 at 14:17
  • I changed the code in my original question to be a MWE. Still the same problem. – CrustyPeanut Feb 19 '18 at 14:25
  • 1
    @CrustyPeanut Did you see my update? – marmot Feb 19 '18 at 16:35
  • Yes I did, but only now am I able to respond. Thanks a lot, this works just fine! – CrustyPeanut Feb 27 '18 at 8:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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