The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [tikz-feynman]

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

Filter by
Sorted by
Tagged with
11
votes
1answer
5k 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
434 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
332 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
350 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
565 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
912 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
1k 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
610 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
1k 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
970 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
966 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
511 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 ...
4
votes
1answer
80 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
454 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
250 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
0answers
65 views

Egg-shaped Feynman diagram

I was trying to answer tikz-feynman: edge labels when I encountered an odd problem: Why is the first diagram slightly egg shaped? Without the lines left and right it is round. Please don't tell me ...
3
votes
1answer
313 views

tikz-feynman: edge labels

I would like to understand how can I label edges of diagrams as at this picture: I assume that it possible to label vertices and than move each label, but I do not know how. Can anyone gives some ...
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
38 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-...
3
votes
1answer
299 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
1answer
2k 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
47 views

Error using TikzFeynman, fermion loop never close

This is my first time writing here (and also I'm not native speaker) so please be indulgent. I'm new to LateX so if you could also keep your answer as simple as possible, it would be very nice. So ...
3
votes
1answer
515 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
1k 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
774 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
398 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
760 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
94 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
1answer
717 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 ...
3
votes
0answers
337 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
152 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
770 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
2answers
102 views

Packages for drawing diagrams of Feynman: advantages and disadvantages

My question simply derives from this question: Bremsstrahlung process in \feynmandiagram environment I have seen into the site TeX.SE. there are many question on the packages to draw a Feymann ...
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
900 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
671 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
118 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
707 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
2answers
763 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{ ...
2
votes
1answer
181 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
71 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
58 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
110 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
87 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
82 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
275 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
499 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
51 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
1k 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 [...