# TikZ-feynman: Changing the angle at a vertex

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

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:

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.

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}


• 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? – user121799 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
• @CrustyPeanut Did you see my update? – user121799 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