TikZ-feynman: Changing the angle at a vertex

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

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

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

관련 정보