1

enter image description here

I'm new to Tex. Please help me with the coding to draw these 5 diagrams in LATEX.

closed as too broad by Troy, Phelype Oleinik, Henri Menke, Stefan Pinnow, dexteritas Jun 19 '18 at 7:37

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 2
    Maybe tex.stackexchange.com/questions/86588/… could be a starting point. – user36296 Jun 18 '18 at 19:52
  • 1
    All these diagrams are straightforward, but are you seriously expecting others to punch in the momenta from your hardly readable screenshot? – user121799 Jun 18 '18 at 20:01
  • I can do the momenta part. – Sumit Banik Jun 18 '18 at 20:22
  • Welcome to TeX.SX! Please show us, what you have done so far. – Bobyandbob Jun 19 '18 at 7:16
  • Welcome to TeX.SX! On this site, a question should typically revolve around an abstract issue (e.g. "How do I get a double horizontal line in a table?") rather than a concrete application (e.g. "How do I make this table?"). Questions that look like "Please do this complicated thing for me" tend to get closed because they are either "off topic", "too broad", or "unclear". Please try to make your question clear and simple by giving a minimal working example (MWE): you'll stand a greater chance of getting help. – dexteritas Jun 19 '18 at 7:37
3

I just put random momenta and corrected the directions of some of your arrows.

\documentclass{article}
\usepackage{tikz} 
\usetikzlibrary{positioning}
\usepackage{tikz-feynman} 
\tikzfeynmanset{compat=1.1.0}
\begin{document}
            \begin{tikzpicture}[baseline,font=\Large]
            \begin{feynman}
            \vertex (a1);
            \vertex[right=2cm of a1] (a2);
            \vertex[right=3cm of a2] (a5); 
            \vertex[right=2cm of a5] (a6); 
            \diagram* {
            (a1) -- [scalar,edge label={\(q\)}] (a2) 
                -- [fermion, half left,fermion,edge label={\(\ell\)}] (a5) 
                -- [scalar,edge label={\(q\)}] (a6),
                (a5) -- [fermion, half left,edge label={\(\ell-q\)}] (a2)
            };
            \end{feynman}
            \end{tikzpicture}~~~
            \begin{tikzpicture}[baseline,font=\Large]
            \begin{feynman}
            \vertex (a1);
            \vertex[right=2cm of a1] (a2);
            \vertex[below=4cm of a2] (a4);
            \vertex[below=4cm of a1] (a3);
            \vertex[below right=2cm and 3cm of a2] (a5); 
            \vertex[right=2cm of a5] (a6); 
            \diagram* {
            (a1) -- [scalar,edge label={\(q_1\)}] (a2) 
                -- [fermion,edge label={\(q_1-\ell_1\)}] (a5) 
                -- [scalar,edge label={\(q\)}] (a6),
                (a5) -- [fermion,edge label={\(\ell2-q_2\)}] (a4)
                -- [fermion,edge label={\(\dots\)}] (a2),
                (a3) -- [scalar,edge label'={\(q_2\)}] (a4);
            };
            \end{feynman}
            \end{tikzpicture}

            \begin{tikzpicture}[baseline,font=\Large]
            \begin{feynman}
            \vertex (a1);
            \vertex[right=2cm of a1] (a2);
            \vertex[below=4cm of a2] (a4);
            \vertex[below=2cm of a2] (a7);
            \vertex[below=4cm of a1] (a3);
            \vertex[below right=2cm and 3cm of a2] (a5); 
            \vertex[right=2cm of a5] (a6); 
            \diagram* {
            (a1) -- [scalar,edge label={\(q_1\)}] (a2) 
                -- [fermion,edge label={\(q_1-\ell_1\)}] (a5) 
                -- [scalar,edge label={\(q\)}] (a6),
                (a5) -- [fermion,edge label={\(\ell2-q_2\)}] (a4)
                -- [fermion,edge label={\(\dots\)}] (a7) --
                [fermion,edge label={\(\dots\)}] (a2),
                (a3) -- [scalar,edge label'={\(q_2\)}] (a4),
                (a7) -- [scalar,edge label={\(\dots\)}] (a5);
            };
            \end{feynman}
            \end{tikzpicture}~~
            \begin{tikzpicture}[baseline,font=\Large]
            \begin{feynman}
            \vertex (a1);
            \vertex[right=2cm of a1] (a2);
            \vertex[right=3cm of a2] (a5); 
            \vertex[right=2cm of a5] (a6); 
            \diagram* {
            (a1) -- [scalar,edge label={\(q\)}] (a2) 
                -- [fermion, half left,fermion,edge label={\(\ell_1\)}] (a5) 
                -- [scalar,edge label={\(q\)}] (a6),
                (a5) -- [fermion, half left,edge label={\(\ell_1+\ell_2-q\)}] (a2),
                (a2) --[scalar,edge label={\(\ell_2\)}] (a5)
            };
            \end{feynman}
            \end{tikzpicture}

            \begin{tikzpicture}[baseline,font=\Large]
            \begin{feynman}
            \vertex (a1);
            \vertex[right=2cm of a1] (a2);
            \vertex[below=4cm of a2] (a4);
            \vertex[right=4cm of a2] (a7);
            \vertex[below=4cm of a1] (a3);
            \vertex[below=4cm of a7] (a5); 
            \vertex[right=2cm of a5] (a6); 
            \vertex[right=2cm of a7] (a9); 
            \diagram* {
            (a1) -- [scalar,edge label={\(q_1\)}] (a2) 
                -- [fermion,edge label={\(q_1-\ell_1\)}] (a7) 
                -- [scalar,edge label={\(q\)}] (a9),
                (a7) -- [fermion,edge label={\(\ell2-q_2\)}] (a5)
                -- [fermion,edge label={\(\dots\)}] (a4) --
                [fermion,edge label={\(\dots\)}] (a2),
                (a5) -- [scalar,edge label'={\(q_2\)}] (a6),
                (a3) -- [scalar,edge label={\(\dots\)}] (a4);
            };
            \end{feynman}
            \end{tikzpicture}
\end{document}

enter image description here

Try this:

\documentclass{article}
\usepackage{tikz,lipsum} 
\usetikzlibrary{positioning}
\usepackage{tikz-feynman} 
\tikzfeynmanset{compat=1.1.0}
\begin{document}
\newcommand{\mycm}{0.5cm}
\lipsum[1]
\begin{center}
            \begin{tikzpicture}[baseline,font=\Large]
            \begin{feynman}
            \vertex (a1);
            \vertex[right={2*\mycm} of a1] (a2);
            \vertex[right={3*\mycm} of a2] (a5); 
            \vertex[right={2*\mycm} of a5] (a6); 
            \diagram* {
            (a1) -- [scalar,edge label={\(q\)}] (a2) 
                -- [fermion, half left,fermion,edge label={\(\ell\)}] (a5) 
                -- [scalar,edge label={\(q\)}] (a6),
                (a5) -- [fermion, half left,edge label={\(\ell-q\)}] (a2)
            };
            \end{feynman}
            \end{tikzpicture}
\end{center}
\lipsum[2]
\begin{center}
            \begin{tikzpicture}[baseline,font=\Large]
            \begin{feynman}
            \vertex (a1);
            \vertex[right={2*\mycm} of a1] (a2);
            \vertex[below={4*\mycm} of a2] (a4);
            \vertex[below={4*\mycm} of a1] (a3);
            \vertex[below right={2*\mycm} and {3*\mycm} of a2] (a5); 
            \vertex[right={2*\mycm} of a5] (a6); 
            \diagram* {
            (a1) -- [scalar,edge label={\(q_1\)}] (a2) 
                -- [fermion,edge label={\(q_1-\ell_1\)}] (a5) 
                -- [scalar,edge label={\(q\)}] (a6),
                (a5) -- [fermion,edge label={\(\ell2-q_2\)}] (a4)
                -- [fermion,edge label={\(\dots\)}] (a2),
                (a3) -- [scalar,edge label'={\(q_2\)}] (a4);
            };
            \end{feynman}
            \end{tikzpicture}
\end{center}
\lipsum[3]
\begin{center}
            \begin{tikzpicture}[baseline,font=\Large]
            \begin{feynman}
            \vertex (a1);
            \vertex[right={2*\mycm} of a1] (a2);
            \vertex[below={4*\mycm} of a2] (a4);
            \vertex[below={2*\mycm} of a2] (a7);
            \vertex[below={4*\mycm} of a1] (a3);
            \vertex[below right={2*\mycm} and {3*\mycm} of a2] (a5); 
            \vertex[right={2*\mycm} of a5] (a6); 
            \diagram* {
            (a1) -- [scalar,edge label={\(q_1\)}] (a2) 
                -- [fermion,edge label={\(q_1-\ell_1\)}] (a5) 
                -- [scalar,edge label={\(q\)}] (a6),
                (a5) -- [fermion,edge label={\(\ell2-q_2\)}] (a4)
                -- [fermion,edge label={\(\dots\)}] (a7) --
                [fermion,edge label={\(\dots\)}] (a2),
                (a3) -- [scalar,edge label'={\(q_2\)}] (a4),
                (a7) -- [scalar,edge label={\(\dots\)}] (a5);
            };
            \end{feynman}
            \end{tikzpicture}
\end{center}
\lipsum[4]
\begin{center}
            \begin{tikzpicture}[baseline,font=\Large]
            \begin{feynman}
            \vertex (a1);
            \vertex[right={2*\mycm} of a1] (a2);
            \vertex[right={3*\mycm} of a2] (a5); 
            \vertex[right={2*\mycm} of a5] (a6); 
            \diagram* {
            (a1) -- [scalar,edge label={\(q\)}] (a2) 
                -- [fermion, half left,fermion,edge label={\(\ell_1\)}] (a5) 
                -- [scalar,edge label={\(q\)}] (a6),
                (a5) -- [fermion, half left,edge label={\(\ell_1+\ell_2-q\)}] (a2),
                (a2) --[scalar,edge label={\(\ell_2\)}] (a5)
            };
            \end{feynman}
            \end{tikzpicture}
\end{center}
\lipsum[5]
\begin{center}
            \begin{tikzpicture}[baseline,font=\Large]
            \begin{feynman}
            \vertex (a1);
            \vertex[right={2*\mycm} of a1] (a2);
            \vertex[below={4*\mycm} of a2] (a4);
            \vertex[right={4*\mycm} of a2] (a7);
            \vertex[below={4*\mycm} of a1] (a3);
            \vertex[below={4*\mycm} of a7] (a5); 
            \vertex[right={2*\mycm} of a5] (a6); 
            \vertex[right={2*\mycm} of a7] (a9); 
            \diagram* {
            (a1) -- [scalar,edge label={\(q_1\)}] (a2) 
                -- [fermion,edge label={\(q_1-\ell_1\)}] (a7) 
                -- [scalar,edge label={\(q\)}] (a9),
                (a7) -- [fermion,edge label={\(\ell2-q_2\)}] (a5)
                -- [fermion,edge label={\(\dots\)}] (a4) --
                [fermion,edge label={\(\dots\)}] (a2),
                (a5) -- [scalar,edge label'={\(q_2\)}] (a6),
                (a3) -- [scalar,edge label={\(\dots\)}] (a4);
            };
            \end{feynman}
            \end{tikzpicture}
\end{center}
\end{document}

(I do not recommend it, though.)

  • how to remove the arrows of momenta? i don't need it – Sumit Banik Jun 18 '18 at 21:28
  • Thanks, it makes the momenta little small. Can I enlarge the text? – Sumit Banik Jun 18 '18 at 21:36
  • Thanks Sir. Another question, How can we make a line bold in these diagrams? So that I can differentiate between mass less and massive propagators. – Sumit Banik Jun 18 '18 at 22:08
  • Thanks. When I put the diagram in my document is looks larger than text, so is it possible to make the diagram small as a whole? and also make the diagram in the centre of the page? – Sumit Banik Jun 18 '18 at 22:26
  • I tried using \begin{tikzpicture}[scale=0.2,baseline, font=\Large] but the image had no effect. Moreover \begin{figure}\centering\begin{tikzpicture}... this is making the image at the top centre of the page. I want it at centre but in between paragraphs. – Sumit Banik Jun 18 '18 at 22:51

Not the answer you're looking for? Browse other questions tagged or ask your own question.