The following code,

% lualatex


\feynmandiagram [inline=(b), horizontal=a to b, layered layout] {
    a -- [blue, gluon] b [dot] 
    -- [blue, gluon, loop, min distance=1cm] b -- [blue, gluon] c};   

is producing the following Feynman diagram:

enter image description here

I find this loop a bit ugly and I believe that there is a way to make it look better. Can anyone give me improvement suggestions to make it more elegant and appealing?

  • 2
    You will have a lot more success getting an answer, if you post separate questions for the separate problems. Edit your code to be compilable and contain only one diagram and ask about that one diagram. Jan 6, 2023 at 2:58
  • You are right. I am starting from the most problematic one, the tadpole. Thanks!
    – Tr909T
    Jan 6, 2023 at 17:20

2 Answers 2


The TikZ coil will never be beautiful with tight bends. I see no other way than to plot the coil. Here I have made a somewhat involved style. It would also a possibility to simply draw it afterwards.

\documentclass[tikz, border=1cm]{standalone}
append after command={
\draw[shift=(\tikzlastnode), #1] plot[domain=-90:270, samples=200, smooth, variable=\a] ({0.3*cos(\a)+0.06*cos(15*\a)},{0.3*sin(\a)+0.3+0.06*sin(15*\a)});
\pgfsetlayers{background, main}
\diagram[inline=(b), horizontal=a to b, layered layout]{
a --[blue, gluon] b[gluontad=blue, dot] --[blue, gluon] c

Linear and circular coils


You'll have more fine control over the shape and type of the coil if you draw the loop manually (see the TikZ documentation for all ways in which you can change the coil):

% !TeX TS-program = lualatex



\diagram [inline=(b), horizontal=a to b, layered layout] {
    a -- [blue, gluon] b [dot] b -- [blue, gluon] c};   
    segment length=2.5pt,
    post length=1mm,
    pre length=1mm
] (b) arc [start angle=-90, end angle=270, radius=0.3cm];


enter image description here

You must log in to answer this question.

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