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.

1 Answer 1

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

5
  • 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/… Feb 19, 2018 at 14:11
  • @CrustyPeanut Could you please provide a complete MWE?
    – user121799
    Feb 19, 2018 at 14:17
  • I changed the code in my original question to be a MWE. Still the same problem. Feb 19, 2018 at 14:25
  • 1
    @CrustyPeanut Did you see my update?
    – user121799
    Feb 19, 2018 at 16:35
  • Yes I did, but only now am I able to respond. Thanks a lot, this works just fine! Feb 27, 2018 at 8:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .