I want to draw the diagram with one loop. But my latex code is not working. let me be more specific
\documentclass{beamer}
\usetheme{Warsaw}
\usepackage{mathrsfs}
\usepackage{braket}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{tikz-feynman}
\usepackage[compat=1.1.0]{tikz-feynman}
\usepackage{simpler-wick}
\usepackage{slashed}
\begin{tikzpicture}
\begin{feynman}
\vertex (a){\(1\)};
\vertex[right=2 cm of a ](b){\(2\)};
\vertex[below=2 cm of b] (c){\(B\)};
\vertex[left=2 cm of c](d){\(A\)};
\vertex[above=1cm of d](e);
\diagram*{
(d)--(e)--[out=135,in=225](e)--(a), (c)--(b)
};
\end{feynman}
\end{tikzpicture}
so basically I have points a
and d
vertically connected. And point e
which is the midpoint of line ad
,there I want to draw a left side loop.
but this gives error.
although I get success using this code
\feynmandiagram[inline=(c.base)vertical=a to b, layered layout]{
a[particle=\(A\)]--c [dot] --[out=135, in=225, loop, min distance=2cm]c--b[particle=\(1\)]
};
but I want to draw loops under tikzpicture
environment, feynman
environment.
another thing I tried to run feynhand using the package \usepackage {tikzfeynhand}
. but my compiler (texmaker) say it cannot find the feynhand style. tried to run feynhand in sharelatex. it also say the same.
please help.thanks