Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [tikz-feynman]

{tikz-feynman} is for questions relating to the TikZ-Feynman package.

11
votes
1answer
4k views

Error when using TikZ-Feynman package

Today I downloaded and installed the new TikZ-Feynman package to draw Feynman diagrams. I included the packages \usepackage{tikz} \usepackage{tikz-feynman} \tikzfeynmanset{compat=1.0.0} \...
5
votes
1answer
388 views

An equivalent to \fmffreeze in TikZ-Feynman?

I am attempting to draw the following diagram using TikZ-Feynman (CTAN) But I am having difficulty keeping the fermion legs straight after attaching the photons. Using feynmp there is a workaround ...
5
votes
1answer
307 views

Nesting tikz nodes

I want to put a tikz graph (a Feynman diagram using tikz-feynman) inside other tikz nodes, but it doesn't seem to work. A MWE is below. It has to be compiled with lualatex as I'm using graphs. \...
5
votes
1answer
190 views

Hartree diagram with tikz-feynman (just a circle as propagator)

I would like to draw the Hartree diagram like that: (actually only the right hand side, but that doesn't matter) My attempts end up like this: \documentclass[tikz]{standalone} \usepackage[compat=1....
5
votes
1answer
486 views

Feynman diagrams with TikZ-Feynman: too big gap between particle label and external line

When I increase the size of my diagram with "scale" the gap between the particle label and the external line increases too. \documentclass[12pt]{book} \usepackage{luatex85} \def\pgfsysdriver{pgfsys-...
4
votes
1answer
2k views

vertex style in tikz-feynman

I'm getting used to the very nice TikZ-Feynman package! I'm trying to figure out how to add styles to a vertex, when using manual placement. For example I'd like the "blob" in the following to ...
4
votes
1answer
27 views

Feynman diagram: sides switched

In my t-channel Feynman diagram (with tikz-Feynman), the lower two particles of the t-channel are switched. It appears that for s-channel, the right hand side particles are switched too. Code for t-...
4
votes
1answer
713 views

tikz-feynman; size of lines and alignment of text

Consider the following piece of code \begin{equation*} \feynmandiagram [medium, vertical=e to f] { a -- [photon] b [particle={\(\nu\)}] -- [fermion, edge label=\(k_{2}\)] c [particle={\(\...
4
votes
1answer
885 views

Feynman diagrams in tikz-feynman: labelling of an edge

I am using the tikz-feynman package to draw feynman diagrams. Consider the following diagram which I drew using the following piece of code: \begin{center} \begin{tikzpicture} \begin{...
4
votes
1answer
527 views

TikZ-Feynman: layers and alignment

I'm trying to draw a gg->ttZ Feynman diagram using the TikZ-Fenyman package, and so far here's what I have: \documentclass[12pt]{article} \usepackage{tikz} \usepackage[compat=1.1.0]{tikz-feynman} \...
4
votes
1answer
846 views

Feynman Diagrams: Ugly u-channel

I am drawing a Feynman diagram using TikZ-Feynman as follows: \documentclass[border=1ex, tikz]{standalone} \usepackage[compat=1.1.0]{tikz-feynman} \begin{document} \begin{tikzpicture} \begin{...
4
votes
1answer
829 views

Arrows in Feynman diagram

I made Feynman diagram this diagram \documentclass[10pt,a4paper]{article} \usepackage{pgfplots,wrapfig} \usepackage{tikZ-feynman,contour} \usepackage{amsmath} \begin{document} \begin{wrapfigure}[14]...
4
votes
1answer
810 views

Tikz-Feynman: Multiple arrows on one fermion line and alignment (0vββ)

I'm trying to align the quark arrows in my 0vββ diagram: So I'd like to have 2 arrows on each of the 4 'unmodified' quark lines: the first arrow should be horizontally aligned with the arrow from the ...
4
votes
1answer
64 views

Vertex styles not being displayed in loop diagram

I have the following source for a tikz-feynman diagram: \documentclass{standalone} \usepackage{tikz} \usepackage[compat=1.1.0]{tikz-feynman} \begin{document} \begin{tikzpicture} \begin{feynman} ...
4
votes
1answer
344 views

Changing font size, style and orientation of momentum labels and/or vertex labels in tikz-feynman

I would like my momenta labels to be smaller and to be placed along the momentum arrows (e.g. $k_1+k_2$). Also, is it possible to make vertex labels bold and larger (z...)? (\mathbf does the job,but I ...
4
votes
1answer
184 views

tikz-feynman: asymmetry between particle and antiparticle lines

The following code: \RequirePackage{luatex85} \documentclass{article} \thispagestyle{empty} \usepackage{tikz} \usepackage[compat=1.1.0]{tikz-feynman} \begin{document} \begin{tikzpicture} \begin{...
4
votes
1answer
360 views

Updated lualatex vs. tikz-feynman

ORIGINAL QUESTION: I have major problems compiling Feynman diagrams produced with the tikz-feynman package with lualatex. To make it less likely that I am just sloppy, I copied the example from this ...
3
votes
2answers
2k views

Loops & insertions in Tikz-Feynman

I'd like to produce these diagrams using Tikz-Feynman. What I have so far is \RequirePackage{luatex85} \documentclass{standalone} \usepackage[compat=1.1.0]{tikz-feynman} \begin{document} $\...
3
votes
1answer
188 views

Two-loop electron self-energy with TikZ-Feynman

I want to draw a simple self-energy two-loop graph such as using TikZ-Feynman. I have a problem with the automatic alignment of the fermion lines. I have tried this: \feynmandiagram[inline=(a), ...
3
votes
2answers
572 views

Change edges' arrow style with tikz-feynman

How can I change the edges' arrow style? For example with a fermion line: \RequirePackage{luatex85} \documentclass[tikz]{standalone} \usepackage{tikz-feynman} \begin{document} \tikzfeynmanset{ ...
3
votes
1answer
390 views

TikZ-Feynman: Orientating diagram horizontally [duplicate]

I want to make a Feynman diagram using the Tikz-Feynman package, that is aligned horizontally. The command I use looks like: \documentclass{book} \usepackage{tikz-feynman} \usepackage{tikz} \...
3
votes
2answers
714 views

feynman diagram with two loops and bigger dots tikz feynman

I am trying to draw Feynman diagrams with two loops. I have managed to draw the following one: \documentclass[DIV=14,headsepline]{scrartcl} \usepackage[T1]{fontenc} \usepackage[utf8]{luainputenc} \...
3
votes
1answer
640 views

Orientation of lines in feynman diagrams using tikz-package

Consider the following piece of code which uses the tikz-feynman package: \feynmandiagram [baseline={(current bounding box.center)},medium, vertical=b to f] { a [nudge=(-30:5mm)] -- [...
3
votes
1answer
350 views

tikz-feynman package - making a diagram symmetrical

I have the following code which draws a Feynman diagram using the tikz-feynman package. \feynmandiagram [baseline={(current bounding box.center)},medium, vertical=b to f] { a [nudge=(-30:5mm)]...
3
votes
1answer
596 views

Figure and subfigure of tikz-feynman is not at appropriate position

I am using tikz-feynman to draw Feynman diagram which align as 2x2 subfigure. However, the position of figure and subfigure compare with caption is very strange as in picture This is part of my code ...
3
votes
1answer
1k views

Too small Feynman diagram with tikz-feynman and size command doesn't work

First, I use \feynmandiagram[horizontal=a to b] and I found that the diagram is too small then I change to \feynmandiagram[large, horizontal=a to b] However, nothing is changed. I also try the ...
3
votes
1answer
79 views

Getting vertex coordinates from \feynmandiagram

It is handy to have the automated vertex placement at \feynmandiagram from the tikz-feynman package. Is it possible to retrieve vertex coordinates from the \feynmandiagram block? In the following ...
3
votes
0answers
75 views

Wrong direction of vertices in tikz-feynman remains under macOS, using PGF 3.1 and luatex 1.07 [duplicate]

This question is originally from the discussion under github issue CTeX-org/forum#4. The similar problems raised by questions Fresh install of TL2018: no tikz graph drawing libraries found, and ...
3
votes
0answers
70 views

Tikz-Feynman: Particles overlap and appear at only one external leg

# I am facing trouble with the tikz-feynman package that I have recently installed. I am currently using LuaTex as the engine in TexLive. Also, I am using a non-English language, so I am using ...
3
votes
0answers
295 views

TikZ-Feynman, Chain of diagrams [closed]

I'm currently using TikZ-Feynman in order to generate Feynman diagrams, which works great so far; however, I'm currently stumped on how to do the following thing: What I need is a sum of diagrams in ...
2
votes
2answers
128 views

how to align these diagrams

i am trying to align the left hand text with right hand diagram.but its not working.if i use \feynmandiagram[baseline] it can be done.but if i manually adjust my diagram it is not working.heres an ...
2
votes
1answer
647 views

Problem installing Tikz Feynman

I have to draw a couple of Feynman diagrams for my paper. I am using Overleaf. After placing \usepackege{tikz-feynman} in the preamble, it sais tikz-Feynman not found. My question is, how can I ...
2
votes
1answer
1k views

Labelling vertices using tikz-feynman package

I would like to change the following code which uses the tikz-feynman package to draw a Feynman diagram: \begin{tikzpicture}[baseline={(current bounding box.center)}] \begin{feynman} \...
2
votes
1answer
706 views

Tikz-Feynman for a 4-point vertex automatic creation

I'd like to create a Feynman diagram for the λφ⁴ theory that is simply the interaction 4-point vertex. For some reason, in TikZ-Feynman it seems to be automatic that the incoming and outgoing lines ...
2
votes
1answer
542 views

Vertical alignment of t-channel diagram with `tikz-feynman`

I want to align to Feynman-graphs drawn with TikZ-Feynman (CTAN) vertically. As I see it, it would be aligned best if I could use the inline option on the label basline of the z. But since it is an ...
2
votes
1answer
73 views

Tikz-Feynman plots messed up in Texstudio

I try to compile the following file - \documentclass[]{article} \usepackage{tikz} \usepackage[compat=1.1.0]{tikz-feynman} \begin{document} \feynmandiagram[inline=(b),vertical=a to b, green!40!black] {...
2
votes
1answer
590 views

How can we cut a loop with Tikz-Feynman?

If we want to apply Cutkosky rule, how can we draw a cutting line like the dashed line in the figure (quickly made with paint)? \documentclass[12pt]{book} \usepackage[utf8]{inputenc} \usepackage[T1]{...
2
votes
1answer
91 views

Rendering problem with TikZ Feynman

I would like to draw feynman diagrams with Tikz Feynman but I have some rendring problem : Here the file with the first exemple of the documentation \documentclass[11pt,french,letterpaper]{article} \...
2
votes
1answer
44 views

Global set insertion style in Tikzfeynman

How to globally set insertion style using tikzfeynmanset? I tried \tikzfeynmanset{ every insertion/.style={ /insertion/style={thick}, }, } but it won't work. MWE: This is what ...
2
votes
1answer
52 views

Defining a macro for feynman diagrams

Consider the following MWE where I define a macro to generate triangle Feynman diagrams with three inputs: \documentclass{article} \usepackage{amsmath,amssymb} \usepackage{physics,tikz-feynman} \...
2
votes
1answer
93 views

Tikz overlay not working as desired in beamer

Consider the following MWE: % !TeX program = lualatex \documentclass{beamer} \usepackage{tikz-feynman} \usetheme{metropolis} \title{A minimal example} \date{\today} ...
2
votes
1answer
62 views

Background colours in tikz picture containing tikz-feynman

I am trying to split the background colour of the Feynamn diagram below into 2 different colours with (for example) red in the top half and green in the bottom half. Note that both horizontal lines ...
2
votes
1answer
72 views

Need help with making a Feyman Diagrams with \feynmandiagram to make triple or more arrows very close to eachother

so I've been trying to make the following feyman diagrams: My code looks like this for the first diagram attempt , so far this is what've got: \begin{figure}[H] \centering \feynmandiagram [...
2
votes
1answer
210 views

TikZ Feynman: Double loop

I need a specific diagram in 't Hooft's double line notation. I already got most of it but one feature is missing. My code for the diagram so far: \documentclass{article} \usepackage{tikz-...
2
votes
1answer
355 views

vertex arithmetic with tikz-feynman

In this MWE (minimal working example) \RequirePackage{luatex85} \documentclass{article} \thispagestyle{empty} \usepackage{tikz} \usepackage[compat=1.1.0]{tikz-feynman} \begin{document} \begin{...
2
votes
1answer
48 views

problem generating Cyrillic text and Feynman diagrams together

I'm working on this file that has English and also passages in Cyrillic. I also have Feynman diagrams that I draw with tikz-feynman. The issue is that if I compile with Latex I will get the text but ...
2
votes
1answer
498 views

Length of external lines in feynman diagrams (TikZ)

I would like to make the following diagram using TikZ (The above diagram was done using feynmf package). So far I have written this: \documentclass[12pt]{article} \usepackage[compat=1.1.0]{tikz-...
2
votes
1answer
944 views

Propagator loop in Feynman diagram using tikz-feynman package

Consider the following code written using the tikz-feynman package: \RequirePackage{luatex85} \documentclass{standalone} \usepackage[compat=1.0.0]{tikz-feynman} \begin{document} \feynmandiagram [...
2
votes
1answer
99 views

change aspect ratio of TikZ-Feynman diagram

I have a tikz-feynman diagram that has a wide aspect ratio, and I'd like to change the aspect ratio to be more square. cascade.txt: \documentclass[tikz]{standalone} \def\axisdefaultwidth{12cm} \def\...
2
votes
1answer
488 views

How to adjust momentum arrows in TikZ-Feynman

I'm trying to create a Feynman-Diagra using the TikZ-Feynman package in Latex. Is there anyway to adjust the position of the momentum arrows in TikZ? Right now the two momentum arrows of the photon ...