-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathtwo-point-no-cutoff.typ
212 lines (184 loc) · 5.18 KB
/
two-point-no-cutoff.typ
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
#import "@preview/cetz:0.3.3": canvas, draw
#import "@preview/modpattern:0.1.0": modpattern
#import draw: line, content, circle, mark
#set page(width: auto, height: auto, margin: 8pt)
// Define styles and constants
#let radius = 1.25
#let med-rad = 0.175 * radius
#let small-rad = 0.15 * radius
// Create hatched pattern for vertices
#let hatched = modpattern(
(.1cm, .1cm),
std.line(start: (0%, 100%), end: (100%, 0%), stroke: 0.5pt),
background: white,
)
// Helper function for dressed vertices
#let dressed-vertex(pos, label: none, rel-label: (0, 0), name: none, radius: small-rad, ..rest) = {
circle(pos, radius: radius, fill: hatched, name: name, stroke: 0.5pt)
if label != none {
let label-pos = if rel-label != none { (rel: rel-label, to: pos) } else { pos }
content(label-pos, $#label$, ..rest)
}
}
#canvas({
// First diagram
// Main loop
circle((0, 0), radius: radius, stroke: 1pt, name: "loop")
// Add momentum arrows and labels around loop
for (ii, pos) in ((1, "0.125"), (2, "0.375"), (3, "0.625"), (4, "0.875")) {
let angle = float(pos) * 360
let label-angle = (angle - 3) * 1deg
// Add momentum labels
let rel-pos = (0.75 * radius * calc.cos(label-angle), 0.75 * radius * calc.sin(label-angle))
content(
(rel: rel-pos, to: "loop"),
$p_#ii$,
size: 8pt,
)
// Add arrow marks
mark(
symbol: "stealth",
(name: "loop", anchor: angle * 1deg),
(name: "loop", anchor: (angle + 1) * 1deg),
..(width: .25, length: .15, stroke: .7pt, angle: 60deg, scale: .7, fill: black),
)
}
// Add dressed vertices with propagators
dressed-vertex(
(0, radius),
label: $G_(k,i j)(p_1,p_2)$,
rel-label: (0, 0.2),
name: "vertex-top",
anchor: "south",
)
dressed-vertex(
(0, -radius),
label: $G_(k,k l)(p_3,p_4)$,
rel-label: (0, -0.3),
name: "vertex-bottom",
anchor: "north",
)
// External lines
line((-2 * radius, 0), (-radius, 0), stroke: 1pt, name: "left-external")
line((radius, 0), (2 * radius, 0), stroke: 1pt, name: "right-external")
// External line labels
content("left-external.start", $phi_a$, anchor: "east", padding: 0.1)
content("right-external.end", $phi_b$, anchor: "west", padding: 0.1)
// External momentum arrows
let arrow-style = (
mark: (end: "stealth", fill: black, scale: .5),
stroke: (thickness: 0.75pt),
)
line(
(-1.9 * radius, 0.15),
(-1.3 * radius, 0.15),
..arrow-style,
name: "q1-arrow",
)
content((rel: (0, 0.3), to: "q1-arrow.mid"), $q_1$)
line(
(1.3 * radius, 0.15),
(1.9 * radius, 0.15),
..arrow-style,
name: "q2-arrow",
)
content((rel: (0, 0.3), to: "q2-arrow.mid"), $q_2$)
// Vertex labels with connecting lines
let label-style = (stroke: gray + 0.3pt)
content(
(-2.1 * radius, radius),
$Gamma_(k,a j k)^((3))(q_1,p_2,-p_3)$,
name: "left-gamma",
)
line(
"left-gamma",
(-radius, 0),
..label-style,
)
content(
(2.1 * radius, radius),
$Gamma_(k,b l i)^((3))(-q_2,-p_1,p_4)$,
name: "right-gamma",
)
line(
"right-gamma",
(radius, 0),
..label-style,
)
// External vertices
dressed-vertex(
(-radius, 0),
radius: med-rad,
name: "vertex-left-external",
)
dressed-vertex(
(radius, 0),
radius: med-rad,
name: "vertex-right-external",
)
})
#pagebreak()
#canvas({
// Second diagram
// Main loop
circle((0, 0), radius: radius, stroke: 1pt, name: "loop")
// Add momentum arrows and labels around loop
for (ii, pos) in ((1, "0"), (2, "0.5")) {
let angle = float(pos) * 360
let label-angle = (angle - 3) * 1deg
// Add momentum labels
let rel-pos = (0.75 * radius * calc.cos(label-angle), 0.75 * radius * calc.sin(label-angle))
content(
(rel: rel-pos, to: "loop"),
$p_#ii$,
size: 8pt,
)
// Add arrow marks
mark(
symbol: "stealth",
(name: "loop", anchor: angle * 1deg),
(name: "loop", anchor: (angle + 1) * 1deg),
..(width: .25, length: .15, stroke: .7pt, angle: 60deg, scale: .7, fill: black),
)
}
// Add dressed vertex with propagator
dressed-vertex(
(0, radius),
label: $G_(k,i j)(p_1,p_2)$,
rel-label: (0, 0.2),
name: "vertex-top",
anchor: "south",
)
// External line
line((-2 * radius, -radius), (2 * radius, -radius), stroke: 1pt, name: "external")
// External line labels
content((rel: (-0.1, 0), to: "external.start"), $phi_a$, anchor: "east")
content((rel: (0.1, 0), to: "external.end"), $phi_b$, anchor: "west")
// External momentum arrows
let arrow-style = (
mark: (end: "stealth", fill: black, scale: .5),
stroke: (thickness: 0.75pt),
)
line(
(-1.9 * radius, -radius + 0.15),
(-1.3 * radius, -radius + 0.15),
..arrow-style,
name: "q1-arrow",
)
content((rel: (0, 0.3), to: "q1-arrow.mid"), $q_1$)
line(
(1.3 * radius, -radius + 0.15),
(1.9 * radius, -radius + 0.15),
..arrow-style,
name: "q2-arrow",
)
content((rel: (0, 0.3), to: "q2-arrow.mid"), $q_2$)
// Four-vertex with label
dressed-vertex(
(0, -radius),
label: $Gamma_(k,a b j i)^((4))(q_1,-q_2,-p_1,p_2)$,
rel-label: (0, -0.3),
radius: med-rad,
anchor: "north",
)
})