Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get diagram quite right #51

Closed
g0chan opened this issue Mar 31, 2018 · 2 comments
Closed

Can't get diagram quite right #51

g0chan opened this issue Mar 31, 2018 · 2 comments
Labels

Comments

@g0chan
Copy link

g0chan commented Mar 31, 2018

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
Copy link
Owner

JP-Ellis commented Apr 1, 2018

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

@JP-Ellis JP-Ellis closed this as completed Apr 1, 2018
@g0chan
Copy link
Author

g0chan commented Apr 1, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants