JP-Ellis / tikz-feynman

Feynman Diagrams with TikZ
http://www.jpellis.me/projects/tikz-feynman
Other
146 stars 20 forks source link

Can't get diagram quite right #51

Closed g0chan closed 6 years ago

g0chan commented 6 years ago

Hi JP! I need some help with my code. I'm trying to recreate Fig. 1 from the following paper: https://arxiv.org/pdf/1801.08627.pdf

A past group member made the images without using tikz feynman so I'm trying to recreate them using the package. I have the following:

\begin{tikzpicture}
\begin{feynman}
\vertex (a) {\(p_1\)};
\vertex[below right=of a](a1);
\vertex[below=1in of a1](b1);
\vertex[below left=of b1](b){\(p_2\)};
\vertex[right=1in of a1](c1);
\vertex[above right=of c1](c){\(p_3\)};
\vertex[right=1in of b1](d1);
\vertex[below right=of d1](d){\(p_4\)}; 
\diagram* {
    (a) -- [fermion] (a1) ,
    (b) -- [fermion] (b1),
    (c1) -- [fermion] (c),
    (d1) -- [fermion] (d),
    (a1) -- [fermion, half left] (c1)
    (c1) -- [fermion, half left] (d1)
    (d1) -- [fermion, half left] (b1)
    (b1) -- [fermion, half left] (a1)
};
\end{feynman}
\end{tikzpicture}

But it's not coming out quite right. Any help you can provide would be great. Thank you!

JP-Ellis commented 6 years ago

Hi,

Since you each arc covers a quarter of a full circle, you probably should be using the quarter left style instead of the half left.

\RequirePackage{luatex85}
\documentclass[tikz]{standalone}

\usepackage[version=1.1.0]{tikz-feynman}

\begin{document}
\begin{tikzpicture}
\begin{feynman}
\vertex (a) {\(p_1\)};
\vertex[below right=of a](a1);
\vertex[below=1in of a1](b1);
\vertex[below left=of b1](b){\(p_2\)};
\vertex[right=1in of a1](c1);
\vertex[above right=of c1](c){\(p_3\)};
\vertex[right=1in of b1](d1);
\vertex[below right=of d1](d){\(p_4\)};
\diagram* {
    (a) -- [fermion] (a1) ,
    (b) -- [fermion] (b1),
    (c1) -- [fermion] (c),
    (d1) -- [fermion] (d),
    (a1) -- [fermion, quarter left] (c1)
    (c1) -- [fermion, quarter left] (d1)
    (d1) -- [fermion, quarter left] (b1)
    (b1) -- [fermion, quarter left] (a1)
};
\end{feynman}
\end{tikzpicture}
\end{document}

tf-1

Josh

g0chan commented 6 years ago

Thank you!!

On Sun, Apr 1, 2018 at 1:56 AM, Joshua Ellis notifications@github.com wrote:

Closed #51 https://github.com/JP-Ellis/tikz-feynman/issues/51.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/JP-Ellis/tikz-feynman/issues/51#event-1550995993, or mute the thread https://github.com/notifications/unsubscribe-auth/AbaN2oNyXqP8LImNoXTRKlfvcwUy4MQ4ks5tkGwkgaJpZM4TCmdN .

-- Matthew P. Gochan PhD Student

Department of Physics - Boston College

Higgins 328 140 Commonwealth Avenue

Chestnut Hill, MA 02467My Webpage! https://sites.google.com/site/mattgochan