2

I am trying to draw a disconnected diagram which consists of two propagators, however one of the propagators has a cactus loop. I have this code so far

\begin{center}
\feynmandiagram [horizontal = a to b] {
    a -- b [dot]
    -- [out = 135, in = 45, loop, min distance = 2cm] b -- c,
    d -- e,
    {[edges={draw=none}]
        a -- d, c -- e,
    },          
};
\end{center}

However the output is very strange and looks like this

enter image description here

My question is, how do I make this diagram pretty where all the lines are horizontal? Also, How do I make the cactus loop line on top?

0

1 Answer 1

2

Something like this is it your drawing using tikz-feynman? I have added a MWE that works with LuaLaTeX.

\documentclass[12pt]{article}
\usepackage[compat=1.1.0]{tikz-feynman}

\begin{document}
\begin{center}
\feynmandiagram [horizontal=a to b, layered layout] {
  a -- b [dot] -- [out =135, in=45, loop, min distance=2cm] b -- c,
};
\end{center}
\end{document}

enter image description here

Follow-up: You can use the node of TikZ package to put "an horizontal line propagator on top with a loop, and then another horizontal line propagator with no loop below". With the coordinates (0, 0.5) and (0, -0.5) you can increase the distance between the loop and the horizontal line that I have set with medium. Peraphs there are many improvements or hacks or tricks to get your request.

\documentclass[12pt]{article}
\usepackage[compat=1.1.0]{tikz-feynman}
\usepackage{tikz}
\begin{document}
\begin{center}
\begin{tikzpicture}
\node at (0, 0.5) {\feynmandiagram [horizontal=a to b, layered layout] {
  a -- b [dot] -- [out =135, in=45, loop, min distance=2cm] b -- c,
};};
\node at (0, -0.5) {\feynmandiagram [medium, horizontal=d to e, layered layout] {d -- [plain] e}; };
\end{tikzpicture}
\end{center}
\end{document}

enter image description here

4
  • Thanks for the reply! But I was trying to make this diagram with another disconnected line with no loop below it, hence my two lines in the OP. Do you know how to do this? Commented Jul 7, 2021 at 3:45
  • To be more clear it has a horizontal line propagator on top with a loop, and then another horizontal line propagator with no loop below. Commented Jul 7, 2021 at 3:46
  • @ClassicStyle Hi, please can you see my edit? Thank you very much.
    – Sebastiano
    Commented Jul 7, 2021 at 12:25
  • 1
    Thanks this is what I was looking for! Commented Jul 7, 2021 at 19:21

You must log in to answer this question.

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