| 1 |
|
| 2 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 3 |
% |
| 4 |
% TikZ-FeynHand, Version 1.1.0 of 2019/08/19 |
| 5 |
% Feynhand Diagrams with TikZ (LaTex manual version) |
| 6 |
% Copyright (C) 2019 Max Dohse |
| 7 |
% Copyright (C) 2016 Joshua Ellis |
| 8 |
% |
| 9 |
% |
| 10 |
% This LaTeX file and the whole package are free: |
| 11 |
% you can redistribute it and/or modify it under the |
| 12 |
% terms of the GNU General Public License as published by the Free Software Foundation, |
| 13 |
% either version 3 of the License, or (at your option) any later version. |
| 14 |
% |
| 15 |
% This file is a modification of the file tikzfeynman.keys.code.tex |
| 16 |
% of the package tikz-feynman (version 1.1.0 of 2016/02/05) |
| 17 |
% which is available online at https://ctan.org/pkg/tikz-feynman |
| 18 |
% for a list of changes, see the file CHANGES.TXT |
| 19 |
% |
| 20 |
% available at https://ctan.org/pkg/tikz-feynhand |
| 21 |
% The Current Maintainer of this work is Max Dohse. |
| 22 |
% |
| 23 |
% This program is distributed in the hope that it will be useful, but WITHOUT |
| 24 |
% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
| 25 |
% FOR A PARTICULAR PURPOSE. |
| 26 |
% |
| 27 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 28 |
% |
| 29 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 30 |
%% Lengths |
| 31 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 32 |
|
| 33 |
\newlength{\feynhanddotsize} |
| 34 |
\setlength{\feynhanddotsize}{1.5mm} |
| 35 |
|
| 36 |
\newlength{\feynhandblobsize} |
| 37 |
\setlength{\feynhandblobsize}{7.5mm} |
| 38 |
|
| 39 |
\newlength{\feynhandlinesize} |
| 40 |
\setlength{\feynhandlinesize}{0.5pt} |
| 41 |
|
| 42 |
\newlength{\feynhandarrowsize} |
| 43 |
\setlength{\feynhandarrowsize}{6pt} |
| 44 |
|
| 45 |
\newlength{\feynhandtopsep} |
| 46 |
\setlength{\feynhandtopsep}{18\feynhandlinesize} |
| 47 |
|
| 48 |
%% Colors |
| 49 |
\newcommand{\feynhandtopsepcolor}{white} |
| 50 |
|
| 51 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 52 |
%% Shapes |
| 53 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 54 |
|
| 55 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 56 |
%% Crossed Circle |
| 57 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 58 |
\pgfdeclareshape{crossed circle} |
| 59 |
{ |
| 60 |
\inheritsavedanchors[from=circle] |
| 61 |
\inheritanchorborder[from=circle] |
| 62 |
\inheritanchor[from=circle]{north} |
| 63 |
\inheritanchor[from=circle]{north west} |
| 64 |
\inheritanchor[from=circle]{north east} |
| 65 |
\inheritanchor[from=circle]{center} |
| 66 |
\inheritanchor[from=circle]{west} |
| 67 |
\inheritanchor[from=circle]{east} |
| 68 |
\inheritanchor[from=circle]{mid} |
| 69 |
\inheritanchor[from=circle]{mid west} |
| 70 |
\inheritanchor[from=circle]{mid east} |
| 71 |
\inheritanchor[from=circle]{base} |
| 72 |
\inheritanchor[from=circle]{base west} |
| 73 |
\inheritanchor[from=circle]{base east} |
| 74 |
\inheritanchor[from=circle]{south} |
| 75 |
\inheritanchor[from=circle]{south west} |
| 76 |
\inheritanchor[from=circle]{south east} |
| 77 |
|
| 78 |
\inheritbackgroundpath[from=circle] |
| 79 |
|
| 80 |
\foregroundpath{ |
| 81 |
% Compute south west |
| 82 |
\centerpoint |
| 83 |
\pgf@xc=\radius |
| 84 |
\advance\pgf@x by-0.707107\pgf@xc |
| 85 |
\advance\pgf@y by-0.707107\pgf@xc |
| 86 |
\pgf@xa=\pgf@x \pgf@ya=\pgf@y % Store coordinates |
| 87 |
% Compute north east point |
| 88 |
\centerpoint |
| 89 |
\pgf@xc=\radius |
| 90 |
\advance\pgf@x by0.707107\pgf@xc |
| 91 |
\advance\pgf@y by0.707107\pgf@xc |
| 92 |
\pgf@xb=\pgf@x \pgf@yb=\pgf@y % Store coordinates |
| 93 |
\pgfpathmoveto{\pgfqpoint{\pgf@xa}{\pgf@ya}} |
| 94 |
\pgfpathlineto{\pgfqpoint{\pgf@xb}{\pgf@yb}} |
| 95 |
\pgfpathmoveto{\pgfqpoint{\pgf@xa}{\pgf@yb}} |
| 96 |
\pgfpathlineto{\pgfqpoint{\pgf@xb}{\pgf@ya}} |
| 97 |
\pgfsetarrowsstart{} |
| 98 |
\pgfsetarrowsend{} |
| 99 |
} |
| 100 |
} |
| 101 |
|
| 102 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 103 |
%% Decorations |
| 104 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 105 |
|
| 106 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 107 |
%% Complete Sines |
| 108 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 109 |
%% Complete sines replaces the path with a whole number of sine waves. |
| 110 |
%% Thanks to http://tex.stackexchange.com/a/134516/26980 |
| 111 |
\pgfdeclaredecoration{complete sines}{initial} |
| 112 |
{ |
| 113 |
%% Begin by computing the overall path length and find how many sine waves we |
| 114 |
%% can fit in. Nothing happens beyond the computation. |
| 115 |
\state{initial}[ |
| 116 |
width=+0pt, |
| 117 |
next state=move, |
| 118 |
persistent precomputation={ |
| 119 |
\def\tikzfeynhand@cs@angle@step{30} |
| 120 |
\def\tikzfeynhand@cs@current@angle{0} |
| 121 |
\pgfmathsetlengthmacro{\tikzfeynhand@cs@points@per@step}{ |
| 122 |
\pgfdecoratedinputsegmentlength |
| 123 |
/ int(\pgfdecoratedinputsegmentlength |
| 124 |
/ \pgfdecorationsegmentlength) |
| 125 |
/ 360 |
| 126 |
* \tikzfeynhand@cs@angle@step} |
| 127 |
}, |
| 128 |
]{} |
| 129 |
%% Move to the origin to the path |
| 130 |
\state{move}[ |
| 131 |
width=+\tikzfeynhand@cs@points@per@step, |
| 132 |
next state=draw |
| 133 |
]{ |
| 134 |
\pgfpathmoveto{\pgfpointorigin} |
| 135 |
} |
| 136 |
%% Draw the sine wave itself. This computes the value every 20 degrees and draws straight edges. |
| 137 |
\state{draw}[ |
| 138 |
width=+\tikzfeynhand@cs@points@per@step, |
| 139 |
switch if less than=1.25*\tikzfeynhand@cs@points@per@step to final, % <- bit of a hack |
| 140 |
persistent postcomputation={ |
| 141 |
\pgfmathparse{mod(\tikzfeynhand@cs@current@angle+\tikzfeynhand@cs@angle@step, 360)} |
| 142 |
\let\tikzfeynhand@cs@current@angle=\pgfmathresult% |
| 143 |
}, |
| 144 |
]{ |
| 145 |
% \pgfmathparse{sin(\tikzfeynhand@cs@current@angle) * \pgfmetadecorationsegmentamplitude / 2} |
| 146 |
\pgfmathparse{sin(\tikzfeynhand@cs@current@angle) * 3 * \feynhandlinesize / 2} |
| 147 |
\tikz@decoratepathfalse |
| 148 |
\pgfpathlineto{\pgfqpoint{0pt}{\pgfmathresult pt}}% |
| 149 |
} |
| 150 |
|
| 151 |
\state{final}{ |
| 152 |
\ifdim\pgfdecoratedremainingdistance>0pt\relax |
| 153 |
\pgfpathlineto{\pgfpointdecoratedpathlast} |
| 154 |
\fi |
| 155 |
} |
| 156 |
} |
| 157 |
|
| 158 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 159 |
%% Keys |
| 160 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 161 |
|
| 162 |
\tikzfeynhandset{ |
| 163 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 164 |
%% Hooks |
| 165 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 166 |
execute at begin feynhand/.code={}, |
| 167 |
execute at end feynhand/.code={}, |
| 168 |
every feynhand/.style={/tikzfeynhand/every feynhand@@/.append style={#1}}, |
| 169 |
every feynhand@@/.style={ |
| 170 |
/tikzfeynhand/.cd, |
| 171 |
}, |
| 172 |
execute at begin feynhand@@/.code={} %% Internal version |
| 173 |
execute at end feynhand@@/.code={}, %% Internal version |
| 174 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 175 |
%% Vertices |
| 176 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 177 |
every vertex@@/.style={ |
| 178 |
/tikz/shape=coordinate, |
| 179 |
}, |
| 180 |
every vertex/.style={/tikzfeynhand/every vertex@@/.append style={#1}}, |
| 181 |
vertex/.style={ |
| 182 |
/tikzfeynhand/every vertex@@, |
| 183 |
}, |
| 184 |
%% DOTS + friends |
| 185 |
every dot@@/.style={ |
| 186 |
/tikz/shape=circle, |
| 187 |
/tikz/draw, |
| 188 |
/tikz/fill, |
| 189 |
/tikz/inner sep=0pt, |
| 190 |
/tikz/outer sep=0pt, |
| 191 |
/tikz/minimum size=\feynhanddotsize, |
| 192 |
/tikz/line width = \feynhandlinesize, |
| 193 |
}, |
| 194 |
every dot/.style={/tikzfeynhand/every dot@@/.append style={#1}}, |
| 195 |
dot/.style={ |
| 196 |
/tikzfeynhand/every dot@@, |
| 197 |
}, |
| 198 |
every squaredot@@/.style={ |
| 199 |
/tikz/shape=rectangle, |
| 200 |
}, |
| 201 |
every squaredot/.style={/tikzfeynhand/every squaredot@@/.append style={#1}}, |
| 202 |
squaredot/.style={ |
| 203 |
/tikzfeynhand/every dot@@, |
| 204 |
/tikzfeynhand/every squaredot@@, |
| 205 |
}, |
| 206 |
every ringdot@@/.style={ |
| 207 |
/tikz/fill=none, |
| 208 |
}, |
| 209 |
every ringdot/.style={/tikzfeynhand/every ringdot@@/.append style={#1}}, |
| 210 |
ringdot/.style={ |
| 211 |
/tikzfeynhand/every dot@@, |
| 212 |
/tikzfeynhand/every ringdot@@, |
| 213 |
}, |
| 214 |
every crossdot@@/.style={ |
| 215 |
/tikz/fill=none, |
| 216 |
/tikz/shape=crossed circle, |
| 217 |
/tikz/minimum size=2\feynhanddotsize, |
| 218 |
}, |
| 219 |
every crossdot/.style={/tikzfeynhand/every crossdot@@/.append style={#1}}, |
| 220 |
crossdot/.style={ |
| 221 |
/tikzfeynhand/every dot@@, |
| 222 |
/tikzfeynhand/every crossdot@@, |
| 223 |
}, |
| 224 |
%% BLOBS ------------------------------------------------- |
| 225 |
every blob@@/.style={ |
| 226 |
/tikz/shape=circle, |
| 227 |
/tikz/draw, |
| 228 |
/tikz/fill, |
| 229 |
/tikz/outer sep={0.5*\the\feynhandlinesize}, |
| 230 |
/tikz/inner sep=0pt, |
| 231 |
/tikz/minimum size=\feynhandblobsize, |
| 232 |
/tikz/line width = \feynhandlinesize, |
| 233 |
}, |
| 234 |
every blob/.style={/tikzfeynhand/every blob@@/.append style={#1}}, |
| 235 |
blob/.style={ |
| 236 |
/tikzfeynhand/every blob@@, |
| 237 |
/tikz/fill=black, |
| 238 |
}, |
| 239 |
every ringblob@@/.style={ |
| 240 |
}, |
| 241 |
every ringblob/.style={/tikzfeynhand/every ringblob@@/.append style={#1}}, |
| 242 |
ringblob/.style={ |
| 243 |
/tikzfeynhand/every blob@@, |
| 244 |
/tikzfeynhand/every ringblob@@, |
| 245 |
/tikz/fill=white, |
| 246 |
}, |
| 247 |
every NWblob@@/.style={ |
| 248 |
}, |
| 249 |
every NWblob/.style={/tikzfeynhand/every NWblob@@/.append style={#1}}, |
| 250 |
NWblob/.style={ |
| 251 |
/tikzfeynhand/every blob@@, |
| 252 |
/tikzfeynhand/every NWblob@@, |
| 253 |
/tikz/fill=none, |
| 254 |
/tikz/pattern=north west lines, |
| 255 |
}, |
| 256 |
every NEblob@@/.style={ |
| 257 |
}, |
| 258 |
every NEblob/.style={/tikzfeynhand/every NEblob@@/.append style={#1}}, |
| 259 |
NEblob/.style={ |
| 260 |
/tikzfeynhand/every blob@@, |
| 261 |
/tikzfeynhand/every NEblob@@, |
| 262 |
/tikz/fill=none, |
| 263 |
/tikz/pattern=north east lines, |
| 264 |
}, |
| 265 |
every grayblob@@/.style={ |
| 266 |
}, |
| 267 |
every grayblob/.style={/tikzfeynhand/every grayblob@@/.append style={#1}}, |
| 268 |
grayblob/.style={ |
| 269 |
/tikzfeynhand/every blob@@, |
| 270 |
/tikzfeynhand/every grayblob@@, |
| 271 |
/tikz/fill=gray!50!white, |
| 272 |
}, |
| 273 |
%% PARTICLES |
| 274 |
every particle@@/.style={ |
| 275 |
/tikz/shape=rectangle, |
| 276 |
/tikz/draw=none, |
| 277 |
/tikz/fill=none, |
| 278 |
/tikz/inner sep=0.3333em, |
| 279 |
/tikz/outer sep={0.5*\the\feynhandlinesize}, |
| 280 |
}, |
| 281 |
every particle/.style={/tikzfeynhand/every particle@@/.append style={#1}}, |
| 282 |
particle/.style args={#1}{ |
| 283 |
/tikzfeynhand/every particle@@, |
| 284 |
}, |
| 285 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 286 |
%% Edge styles |
| 287 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 288 |
%% Arrow Style |
| 289 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 290 |
arrow size/.store in=\tikzfeynhand@arrow@size, |
| 291 |
arrow size=\feynhandarrowsize, |
| 292 |
with arrow/.style={ |
| 293 |
/tikz/decoration={ |
| 294 |
markings, |
| 295 |
mark=at position #1 with { |
| 296 |
\node[ |
| 297 |
transform shape, |
| 298 |
%xshift=0.5mm, |
| 299 |
xshift=-0.166666\feynhandarrowsize, |
| 300 |
fill, |
| 301 |
inner sep=0mm, |
| 302 |
minimum width = \tikzfeynhand@arrow@size, |
| 303 |
draw=none, |
| 304 |
isosceles triangle |
| 305 |
] { }; |
| 306 |
}, |
| 307 |
}, |
| 308 |
/tikz/postaction={ |
| 309 |
/tikz/decorate=true, |
| 310 |
}, |
| 311 |
}, |
| 312 |
with reversed arrow/.style={ |
| 313 |
/tikz/decoration={ |
| 314 |
markings, |
| 315 |
mark=at position #1 with { |
| 316 |
\node[ |
| 317 |
transform shape, |
| 318 |
%xshift=0.5mm, |
| 319 |
xshift=0.166666\feynhandarrowsize, |
| 320 |
rotate=180, |
| 321 |
fill, |
| 322 |
inner sep=0mm, |
| 323 |
minimum width = \tikzfeynhand@arrow@size, |
| 324 |
draw=none, |
| 325 |
isosceles triangle |
| 326 |
] { }; |
| 327 |
}, |
| 328 |
}, |
| 329 |
/tikz/postaction={ |
| 330 |
/tikz/decorate=true, |
| 331 |
}, |
| 332 |
}, |
| 333 |
%% Base Edge Styles |
| 334 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 335 |
every edge@@/.style={}, |
| 336 |
every edge/.style={/tikzfeynhand/every edge@@/.append style={#1}}, |
| 337 |
%% Specific Styles |
| 338 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 339 |
every plain@@/.style={ |
| 340 |
/tikz/draw=none, |
| 341 |
/tikz/line width = \feynhandlinesize, |
| 342 |
/tikz/decoration={name=none}, |
| 343 |
/tikz/postaction={ |
| 344 |
/tikz/draw, |
| 345 |
}, |
| 346 |
}, |
| 347 |
every plain/.style={/tikzfeynhand/every plain@@/.append style={#1}}, |
| 348 |
plain/.style={ |
| 349 |
/tikzfeynhand/every plain@@, |
| 350 |
}, |
| 351 |
every top@@/.style={ |
| 352 |
/tikz/preaction={draw=\feynhandtopsepcolor,line width=\feynhandtopsep} |
| 353 |
}, |
| 354 |
every top/.style={/tikzfeynhand/every top@@/.append style={#1}}, |
| 355 |
top/.style={ |
| 356 |
/tikzfeynhand/every top@@, |
| 357 |
}, |
| 358 |
every boson@@/.style={ |
| 359 |
/tikz/draw=none, |
| 360 |
/tikz/decoration={name=none}, |
| 361 |
/tikz/postaction={ |
| 362 |
/tikz/draw, |
| 363 |
/tikz/line width = \feynhandlinesize, |
| 364 |
/tikz/decoration={ |
| 365 |
complete sines, |
| 366 |
amplitude=3\feynhandlinesize, |
| 367 |
segment length=7.5\feynhandlinesize, |
| 368 |
}, |
| 369 |
/tikz/decorate=true, |
| 370 |
}, |
| 371 |
}, |
| 372 |
every boson/.style={/tikzfeynhand/every boson@@/.append style={#1}}, |
| 373 |
boson/.style={ |
| 374 |
/tikzfeynhand/every boson@@, |
| 375 |
}, |
| 376 |
every charged boson@@/.style={ |
| 377 |
/tikzfeynhand/with arrow=0.5, |
| 378 |
}, |
| 379 |
every charged boson/.style={/tikzfeynhand/every charged boson@@/.append style={#1}}, |
| 380 |
charged boson/.style={ |
| 381 |
/tikzfeynhand/boson, |
| 382 |
/tikzfeynhand/every charged boson@@, |
| 383 |
}, |
| 384 |
every anti charged boson@@/.style={ |
| 385 |
/tikzfeynhand/with reversed arrow=0.5, |
| 386 |
}, |
| 387 |
every anti charged boson/.style={/tikzfeynhand/every anti charged boson@@/.append style={#1}}, |
| 388 |
anti charged boson/.style={ |
| 389 |
/tikzfeynhand/boson, |
| 390 |
/tikzfeynhand/every anti charged boson@@, |
| 391 |
}, |
| 392 |
every photon@@/.style={ |
| 393 |
/tikz/draw=none, |
| 394 |
/tikz/decoration={name=none}, |
| 395 |
/tikz/postaction={ |
| 396 |
/tikz/draw, |
| 397 |
/tikz/line width = \feynhandlinesize, |
| 398 |
/tikz/decoration={ |
| 399 |
complete sines, |
| 400 |
amplitude=3\feynhandlinesize, |
| 401 |
segment length=7.5\feynhandlinesize, |
| 402 |
}, |
| 403 |
/tikz/decorate=true, |
| 404 |
}, |
| 405 |
}, |
| 406 |
every photon/.style={/tikzfeynhand/every photon@@/.append style={#1}}, |
| 407 |
photon/.style={ |
| 408 |
/tikzfeynhand/every photon@@, |
| 409 |
}, |
| 410 |
every scalar@@/.style={ |
| 411 |
/tikz/draw=none, |
| 412 |
/tikz/decoration={name=none}, |
| 413 |
/tikz/postaction={ |
| 414 |
/tikz/draw, |
| 415 |
/tikz/dashed, |
| 416 |
/tikz/line width = \feynhandlinesize, |
| 417 |
}, |
| 418 |
}, |
| 419 |
every scalar/.style={/tikzfeynhand/every scalar@@/.append style={#1}}, |
| 420 |
scalar/.style={ |
| 421 |
/tikzfeynhand/every scalar@@, |
| 422 |
}, |
| 423 |
every charged scalar@@/.style={ |
| 424 |
/tikz/draw=none, |
| 425 |
/tikz/decoration={name=none}, |
| 426 |
/tikz/postaction={ |
| 427 |
/tikzfeynhand/with arrow=0.5, |
| 428 |
}, |
| 429 |
}, |
| 430 |
every charged scalar/.style={/tikzfeynhand/every charged scalar@@/.append style={#1}}, |
| 431 |
charged scalar/.style={ |
| 432 |
/tikzfeynhand/scalar, |
| 433 |
/tikzfeynhand/every charged scalar@@, |
| 434 |
}, |
| 435 |
every anti charged scalar@@/.style={ |
| 436 |
/tikz/draw=none, |
| 437 |
/tikz/decoration={name=none}, |
| 438 |
/tikz/postaction={ |
| 439 |
/tikzfeynhand/with reversed arrow=0.5, |
| 440 |
}, |
| 441 |
}, |
| 442 |
every anti charged scalar/.style={/tikzfeynhand/every anti charged scalar@@/.append style={#1}}, |
| 443 |
anti charged scalar/.style={ |
| 444 |
/tikzfeynhand/scalar, |
| 445 |
/tikzfeynhand/every anti charged scalar@@, |
| 446 |
}, |
| 447 |
every ghost@@/.style={ |
| 448 |
/tikz/draw=none, |
| 449 |
/tikz/decoration={name=none}, |
| 450 |
/tikz/postaction={ |
| 451 |
/tikz/draw, |
| 452 |
/tikz/dotted, |
| 453 |
/tikz/line width = 2\feynhandlinesize, |
| 454 |
}, |
| 455 |
}, |
| 456 |
every ghost/.style={/tikzfeynhand/every ghost@@/.append style={#1}}, |
| 457 |
ghost/.style={ |
| 458 |
/tikzfeynhand/every ghost@@, |
| 459 |
}, |
| 460 |
every charged ghost@@/.style={ |
| 461 |
/tikz/draw=none, |
| 462 |
/tikz/decoration={name=none}, |
| 463 |
/tikz/postaction={ |
| 464 |
/tikzfeynhand/with arrow=0.5, |
| 465 |
}, |
| 466 |
}, |
| 467 |
every charged ghost/.style={/tikzfeynhand/every charged ghost@@/.append style={#1}}, |
| 468 |
charged ghost/.style={ |
| 469 |
/tikzfeynhand/ghost, |
| 470 |
/tikzfeynhand/every charged ghost@@, |
| 471 |
}, |
| 472 |
every anti charged ghost@@/.style={ |
| 473 |
/tikz/draw=none, |
| 474 |
/tikz/decoration={name=none}, |
| 475 |
/tikz/postaction={ |
| 476 |
/tikzfeynhand/with reversed arrow=0.5, |
| 477 |
}, |
| 478 |
}, |
| 479 |
every anti charged ghost/.style={/tikzfeynhand/every anti charged ghost@@/.append style={#1}}, |
| 480 |
anti charged ghost/.style={ |
| 481 |
/tikzfeynhand/ghost, |
| 482 |
/tikzfeynhand/every anti charged scalar@@, |
| 483 |
}, |
| 484 |
every fermion@@/.style={ |
| 485 |
/tikz/draw=none, |
| 486 |
/tikz/decoration={name=none}, |
| 487 |
/tikz/postaction={ |
| 488 |
/tikz/draw, |
| 489 |
/tikz/line width = \feynhandlinesize, |
| 490 |
/tikzfeynhand/with arrow=0.5, |
| 491 |
}, |
| 492 |
}, |
| 493 |
every fermion/.style={/tikzfeynhand/every fermion@@/.append style={#1}}, |
| 494 |
fermion/.style={ |
| 495 |
/tikzfeynhand/every fermion@@, |
| 496 |
}, |
| 497 |
every anti fermion@@/.style={ |
| 498 |
/tikz/draw=none, |
| 499 |
/tikz/decoration={name=none}, |
| 500 |
/tikz/postaction={ |
| 501 |
/tikz/draw, |
| 502 |
/tikz/line width = \feynhandlinesize, |
| 503 |
/tikzfeynhand/with reversed arrow=0.5, |
| 504 |
}, |
| 505 |
}, |
| 506 |
every anti fermion/.style={/tikzfeynhand/every anti fermion@@/.append style={#1}}, |
| 507 |
anti fermion/.style={ |
| 508 |
/tikzfeynhand/every anti fermion@@, |
| 509 |
}, |
| 510 |
every majorana@@/.style={ |
| 511 |
/tikz/draw=none, |
| 512 |
/tikz/decoration={name=none}, |
| 513 |
/tikz/postaction={ |
| 514 |
/tikz/draw, |
| 515 |
/tikzfeynhand/with arrow=0.33, |
| 516 |
/tikzfeynhand/with reversed arrow=0.73, |
| 517 |
/tikz/line width = \feynhandlinesize, |
| 518 |
}, |
| 519 |
}, |
| 520 |
every majorana/.style={/tikzfeynhand/every majorana@@/.append style={#1}}, |
| 521 |
majorana/.style={ |
| 522 |
/tikzfeynhand/every majorana@@, |
| 523 |
}, |
| 524 |
every anti majorana@@/.style={ |
| 525 |
/tikz/draw=none, |
| 526 |
/tikz/decoration={name=none}, |
| 527 |
/tikz/postaction={ |
| 528 |
/tikz/draw, |
| 529 |
/tikzfeynhand/with reversed arrow=0.33, |
| 530 |
/tikzfeynhand/with arrow=0.73, |
| 531 |
/tikz/line width = \feynhandlinesize, |
| 532 |
}, |
| 533 |
}, |
| 534 |
every anti majorana/.style={/tikzfeynhand/every anti majorana@@/.append style={#1}}, |
| 535 |
anti majorana/.style={ |
| 536 |
/tikzfeynhand/every anti majorana@@, |
| 537 |
}, |
| 538 |
every gluon@@/.style={ |
| 539 |
/tikz/draw=none, |
| 540 |
/tikz/decoration={name=none}, |
| 541 |
/tikz/postaction={ |
| 542 |
/tikz/draw, |
| 543 |
/tikz/line width = \feynhandlinesize, |
| 544 |
/tikz/decoration={ |
| 545 |
coil, |
| 546 |
aspect=1.2, |
| 547 |
mirror, |
| 548 |
amplitude=3\feynhandlinesize, |
| 549 |
segment length=8\feynhandlinesize, |
| 550 |
}, |
| 551 |
/tikz/decorate=true, |
| 552 |
}, |
| 553 |
}, |
| 554 |
every gluon/.style={/tikzfeynhand/every gluon@@/.append style={#1}}, |
| 555 |
gluon/.style={ |
| 556 |
/tikzfeynhand/every gluon@@, |
| 557 |
}, |
| 558 |
% short versions of style names |
| 559 |
pho/.style={ |
| 560 |
/tikzfeynhand/photon, |
| 561 |
}, |
| 562 |
bos/.style={ |
| 563 |
/tikzfeynhand/boson, |
| 564 |
}, |
| 565 |
antbos/.style={ |
| 566 |
/tikzfeynhand/anti charged boson, |
| 567 |
}, |
| 568 |
chabos/.style={ |
| 569 |
/tikzfeynhand/charged boson, |
| 570 |
}, |
| 571 |
sca/.style={ |
| 572 |
/tikzfeynhand/scalar, |
| 573 |
}, |
| 574 |
chasca/.style={ |
| 575 |
/tikzfeynhand/charged scalar, |
| 576 |
}, |
| 577 |
antsca/.style={ |
| 578 |
/tikzfeynhand/anti charged scalar, |
| 579 |
}, |
| 580 |
fer/.style={ |
| 581 |
/tikzfeynhand/fermion, |
| 582 |
}, |
| 583 |
antfer/.style={ |
| 584 |
/tikzfeynhand/anti fermion, |
| 585 |
}, |
| 586 |
gho/.style={ |
| 587 |
/tikzfeynhand/ghost, |
| 588 |
}, |
| 589 |
chagho/.style={ |
| 590 |
/tikzfeynhand/charged ghost, |
| 591 |
}, |
| 592 |
antgho/.style={ |
| 593 |
/tikzfeynhand/anti charged ghost, |
| 594 |
}, |
| 595 |
glu/.style={ |
| 596 |
/tikzfeynhand/gluon, |
| 597 |
}, |
| 598 |
maj/.style={ |
| 599 |
/tikzfeynhand/majorana, |
| 600 |
}, |
| 601 |
antmaj/.style={ |
| 602 |
/tikzfeynhand/anti majorana, |
| 603 |
}, |
| 604 |
%% Insertions |
| 605 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 606 |
insertion/.search also={/tikzfeynhand,/tikz}, |
| 607 |
%% Parameters |
| 608 |
insertion/size/.store in=\tikzfeynhand@insertion@size, |
| 609 |
insertion/size=5\feynhandlinesize, |
| 610 |
insertion/style/.store in=\tikzfeynhand@insertion@style, |
| 611 |
insertion/style={}, |
| 612 |
%% Styles |
| 613 |
insertion@@/.style args={[#1]#2}{ |
| 614 |
/tikz/line width = \feynhandlinesize, |
| 615 |
/tikz/decoration={ |
| 616 |
markings, |
| 617 |
mark=at position #2 with { |
| 618 |
\tikzfeynhandset{insertion/.cd,#1} |
| 619 |
\draw [\tikzfeynhand@insertion@style] (-\tikzfeynhand@insertion@size, -\tikzfeynhand@insertion@size) -- (\tikzfeynhand@insertion@size, \tikzfeynhand@insertion@size); |
| 620 |
\draw [\tikzfeynhand@insertion@style] (-\tikzfeynhand@insertion@size, \tikzfeynhand@insertion@size) -- (\tikzfeynhand@insertion@size, -\tikzfeynhand@insertion@size); |
| 621 |
}, |
| 622 |
}, |
| 623 |
/tikz/postaction={ |
| 624 |
/tikz/decorate=true, |
| 625 |
}, |
| 626 |
}, |
| 627 |
insertion@@/.default={[]0.5}, |
| 628 |
%% |
| 629 |
%% Slashes |
| 630 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 631 |
slash/.search also={/tikzfeynhand,/tikz}, |
| 632 |
%% Parameters |
| 633 |
slash/size/.store in=\tikzfeynhand@slash@size, |
| 634 |
slash/size=5\feynhandlinesize, |
| 635 |
slash/style/.store in=\tikzfeynhand@slash@style, |
| 636 |
slash/style={}, |
| 637 |
%% Styles |
| 638 |
slash@@/.style args={[#1]#2}{ |
| 639 |
/tikz/line width = \feynhandlinesize, |
| 640 |
/tikz/decoration={ |
| 641 |
markings, |
| 642 |
mark=at position #2 with { |
| 643 |
\tikzfeynhandset{slash/.cd,#1} |
| 644 |
\draw [\tikzfeynhand@slash@style] (-\tikzfeynhand@slash@size, -2*\tikzfeynhand@slash@size) -- (\tikzfeynhand@slash@size, 2*\tikzfeynhand@slash@size); |
| 645 |
}, |
| 646 |
}, |
| 647 |
/tikz/postaction={ |
| 648 |
/tikz/decorate=true, |
| 649 |
}, |
| 650 |
}, |
| 651 |
slash@@/.default={[]0.5}, |
| 652 |
%% |
| 653 |
%% Backslashes |
| 654 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 655 |
backslash/.search also={/tikzfeynhand,/tikz}, |
| 656 |
%% Parameters |
| 657 |
backslash/size/.store in=\tikzfeynhand@backslash@size, |
| 658 |
backslash/size=5\feynhandlinesize, |
| 659 |
backslash/style/.store in=\tikzfeynhand@backslash@style, |
| 660 |
backslash/style={}, |
| 661 |
%% Styles |
| 662 |
backslash@@/.style args={[#1]#2}{ |
| 663 |
/tikz/line width = \feynhandlinesize, |
| 664 |
/tikz/decoration={ |
| 665 |
markings, |
| 666 |
mark=at position #2 with { |
| 667 |
\tikzfeynhandset{backslash/.cd,#1} |
| 668 |
\draw [\tikzfeynhand@backslash@style] (-\tikzfeynhand@backslash@size, 2*\tikzfeynhand@backslash@size) -- (\tikzfeynhand@backslash@size, -2*\tikzfeynhand@backslash@size); |
| 669 |
}, |
| 670 |
}, |
| 671 |
/tikz/postaction={ |
| 672 |
/tikz/decorate=true, |
| 673 |
}, |
| 674 |
}, |
| 675 |
backslash@@/.default={[]0.5}, |
| 676 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 677 |
%% Momentum arrows |
| 678 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 679 |
momentum/.search also={/tikzfeynhand,/tikz}, |
| 680 |
%% Parameters |
| 681 |
momentum/label distance/.store in=\tikzfeynhand@momentum@label@distance, |
| 682 |
momentum/label distance=0pt, |
| 683 |
momentum/arrow distance/.store in=\tikzfeynhand@momentum@arrow@distance, |
| 684 |
momentum/arrow distance={\the\feynhandarrowsize}, |
| 685 |
momentum/arrow shorten/.store in=\tikzfeynhand@momentum@arrow@shorten, |
| 686 |
momentum/arrow shorten=0.2, |
| 687 |
momentum/label style/.store in=\tikzfeynhand@momentum@label@style, |
| 688 |
momentum/label style={}, |
| 689 |
momentum/arrow style/.store in=\tikzfeynhand@momentum@arrow@style, |
| 690 |
momentum/arrow style={}, |
| 691 |
momentum/arrow thickness/.store in=\tikzfeynhand@momentum@arrow@thickness, |
| 692 |
momentum/arrow thickness={0.64*\the\feynhandlinesize}, |
| 693 |
momentum/arrow size/.store in=\tikzfeynhand@momentum@arrow@size, |
| 694 |
momentum/arrow size={0.8*\the\feynhandarrowsize}, |
| 695 |
%% Styles |
| 696 |
momentum@@/.style args={[#1]#2}{ |
| 697 |
/tikz/preaction={ |
| 698 |
/tikz/decoration={ |
| 699 |
show path construction, |
| 700 |
moveto code={}, |
| 701 |
lineto code={ |
| 702 |
\tikzfeynhandset{momentum/.cd,#1} |
| 703 |
\path (\tikzinputsegmentfirst) -- (\tikzinputsegmentlast) |
| 704 |
coordinate [pos=\tikzfeynhand@momentum@arrow@shorten] (tf@m@1) |
| 705 |
coordinate [pos=1 - \tikzfeynhand@momentum@arrow@shorten] (tf@m@2); |
| 706 |
\draw [-{Stealth[length=\tikzfeynhand@momentum@arrow@size]}, |
| 707 |
line width=\tikzfeynhand@momentum@arrow@thickness, |
| 708 |
\tikzfeynhand@momentum@arrow@style] |
| 709 |
($(tf@m@1)!\tikzfeynhand@momentum@arrow@distance!90:(tf@m@2)$) |
| 710 |
-- ($(tf@m@2)!\tikzfeynhand@momentum@arrow@distance!-90:(tf@m@1)$) |
| 711 |
node [pos=0.5, auto, |
| 712 |
outer sep=\tikzfeynhand@momentum@label@distance, |
| 713 |
\tikzfeynhand@momentum@label@style] {#2}; |
| 714 |
}, |
| 715 |
curveto code={ |
| 716 |
\tikzfeynhandset{momentum/.cd,#1} |
| 717 |
\path (\tikzinputsegmentfirst) |
| 718 |
.. controls (\tikzinputsegmentsupporta) and (\tikzinputsegmentsupportb) |
| 719 |
.. (\tikzinputsegmentlast) |
| 720 |
{ \foreach \i in {1, ..., 50} { |
| 721 |
coordinate [pos=\tikzfeynhand@momentum@arrow@shorten + (1-2 * \tikzfeynhand@momentum@arrow@shorten)*\i/50] (tf@m@\i) } }; |
| 722 |
\draw [-{Stealth[length=\tikzfeynhand@momentum@arrow@size]}, |
| 723 |
line width=\tikzfeynhand@momentum@arrow@thickness, |
| 724 |
\tikzfeynhand@momentum@arrow@style] |
| 725 |
($(tf@m@1)!\tikzfeynhand@momentum@arrow@distance!90:(tf@m@2)$) |
| 726 |
foreach \i [count=\j from 3] in {2, ..., 24} { |
| 727 |
-- ($(tf@m@\i)!\tikzfeynhand@momentum@arrow@distance!90:(tf@m@\j)$) |
| 728 |
} |
| 729 |
-- ($(tf@m@25)!\tikzfeynhand@momentum@arrow@distance!90:(tf@m@26)$) |
| 730 |
node [pos=0.5, auto, |
| 731 |
outer sep=\tikzfeynhand@momentum@label@distance, |
| 732 |
\tikzfeynhand@momentum@arrow@style] {#2} |
| 733 |
foreach \i [count=\j from 27] in {26, ..., 49} { |
| 734 |
-- ($(tf@m@\i)!\tikzfeynhand@momentum@arrow@distance!90:(tf@m@\j)$) |
| 735 |
} |
| 736 |
-- ($(tf@m@50)!\tikzfeynhand@momentum@arrow@distance!-90:(tf@m@49)$); |
| 737 |
}, |
| 738 |
closepath code={ |
| 739 |
\tikzfeynhandset{momentum/.cd,#1} |
| 740 |
\path (\tikzinputsegmentfirst) -- (\tikzinputsegmentlast) |
| 741 |
coordinate [pos=\tikzfeynhand@momentum@arrow@shorten] (tf@m@1) |
| 742 |
coordinate [pos=1 - \tikzfeynhand@momentum@arrow@shorten] (tf@m@2); |
| 743 |
\draw [-{Stealth[length=\tikzfeynhand@momentum@arrow@size]}, |
| 744 |
line width=\tikzfeynhand@momentum@arrow@thickness, |
| 745 |
\tikzfeynhand@momentum@arrow@style] |
| 746 |
($(tf@m@1)!\tikzfeynhand@momentum@arrow@distance!90:(tf@m@2)$) |
| 747 |
-- ($(tf@m@2)!\tikzfeynhand@momentum@arrow@distance!-90:(tf@m@1)$) |
| 748 |
node [pos=0.5, auto, |
| 749 |
outer sep=\tikzfeynhand@momentum@label@distance, |
| 750 |
\tikzfeynhand@momentum@label@style] {#2}; |
| 751 |
}, |
| 752 |
}, |
| 753 |
/tikz/decorate=true, |
| 754 |
}, |
| 755 |
}, |
| 756 |
momentum'@@/.style args={[#1]#2}{ |
| 757 |
/tikz/preaction={ |
| 758 |
/tikz/decoration={ |
| 759 |
show path construction, |
| 760 |
moveto code={}, |
| 761 |
lineto code={ |
| 762 |
\tikzfeynhandset{momentum/.cd,#1} |
| 763 |
\path (\tikzinputsegmentfirst) -- (\tikzinputsegmentlast) |
| 764 |
coordinate [pos=\tikzfeynhand@momentum@arrow@shorten] (tf@m@1) |
| 765 |
coordinate [pos=1 - \tikzfeynhand@momentum@arrow@shorten] (tf@m@2); |
| 766 |
\draw [-{Stealth[length=\tikzfeynhand@momentum@arrow@size]}, |
| 767 |
line width=\tikzfeynhand@momentum@arrow@thickness, |
| 768 |
\tikzfeynhand@momentum@arrow@style] |
| 769 |
($(tf@m@1)!\tikzfeynhand@momentum@arrow@distance!-90:(tf@m@2)$) |
| 770 |
-- ($(tf@m@2)!\tikzfeynhand@momentum@arrow@distance!90:(tf@m@1)$) |
| 771 |
node [pos=0.5, auto, swap, |
| 772 |
outer sep=\tikzfeynhand@momentum@label@distance, |
| 773 |
\tikzfeynhand@momentum@label@style] {#2}; |
| 774 |
}, |
| 775 |
curveto code={ |
| 776 |
\tikzfeynhandset{momentum/.cd,#1} |
| 777 |
\path (\tikzinputsegmentfirst) |
| 778 |
.. controls (\tikzinputsegmentsupporta) and (\tikzinputsegmentsupportb) |
| 779 |
.. (\tikzinputsegmentlast) |
| 780 |
{ \foreach \i in {1, ..., 50} { |
| 781 |
coordinate [pos=\tikzfeynhand@momentum@arrow@shorten + (1-2 * \tikzfeynhand@momentum@arrow@shorten)*\i/50] (tf@m@\i) } }; |
| 782 |
\draw [-{Stealth[length=\tikzfeynhand@momentum@arrow@size]}, |
| 783 |
line width=\tikzfeynhand@momentum@arrow@thickness, |
| 784 |
\tikzfeynhand@momentum@arrow@style] |
| 785 |
($(tf@m@1)!\tikzfeynhand@momentum@arrow@distance!-90:(tf@m@2)$) |
| 786 |
foreach \i [count=\j from 3] in {2, ..., 24} { |
| 787 |
-- ($(tf@m@\i)!\tikzfeynhand@momentum@arrow@distance!-90:(tf@m@\j)$) |
| 788 |
} |
| 789 |
-- ($(tf@m@25)!\tikzfeynhand@momentum@arrow@distance!-90:(tf@m@26)$) |
| 790 |
node [pos=0.5, auto, swap, |
| 791 |
outer sep=\tikzfeynhand@momentum@label@distance, |
| 792 |
\tikzfeynhand@momentum@arrow@style] {#2} |
| 793 |
foreach \i [count=\j from 27] in {26, ..., 49} { |
| 794 |
-- ($(tf@m@\i)!\tikzfeynhand@momentum@arrow@distance!-90:(tf@m@\j)$) |
| 795 |
} |
| 796 |
-- ($(tf@m@50)!\tikzfeynhand@momentum@arrow@distance!90:(tf@m@49)$); |
| 797 |
}, |
| 798 |
closepath code={ |
| 799 |
\tikzfeynhandset{momentum/.cd,#1} |
| 800 |
\path (\tikzinputsegmentfirst) -- (\tikzinputsegmentlast) |
| 801 |
coordinate [pos=\tikzfeynhand@momentum@arrow@shorten] (tf@m@1) |
| 802 |
coordinate [pos=1 - \tikzfeynhand@momentum@arrow@shorten] (tf@m@2); |
| 803 |
\draw [-{Stealth[length=\tikzfeynhand@momentum@arrow@size]}, |
| 804 |
line width=\tikzfeynhand@momentum@arrow@thickness, |
| 805 |
\tikzfeynhand@momentum@arrow@style] |
| 806 |
($(tf@m@1)!\tikzfeynhand@momentum@arrow@distance!-90:(tf@m@2)$) |
| 807 |
-- ($(tf@m@2)!\tikzfeynhand@momentum@arrow@distance!90:(tf@m@1)$) |
| 808 |
node [pos=0.5, auto, swap, |
| 809 |
outer sep=\tikzfeynhand@momentum@label@distance, |
| 810 |
\tikzfeynhand@momentum@label@style] {#2}; |
| 811 |
}, |
| 812 |
}, |
| 813 |
/tikz/decorate=true, |
| 814 |
}, |
| 815 |
}, |
| 816 |
reversed momentum@@/.style args={[#1]#2}{ |
| 817 |
/tikz/preaction={ |
| 818 |
/tikz/decoration={ |
| 819 |
show path construction, |
| 820 |
moveto code={}, |
| 821 |
lineto code={ |
| 822 |
\tikzfeynhandset{momentum/.cd,#1} |
| 823 |
\path (\tikzinputsegmentlast) -- (\tikzinputsegmentfirst) |
| 824 |
coordinate [pos=\tikzfeynhand@momentum@arrow@shorten] (tf@m@1) |
| 825 |
coordinate [pos=1 - \tikzfeynhand@momentum@arrow@shorten] (tf@m@2); |
| 826 |
\draw [-{Stealth[length=\tikzfeynhand@momentum@arrow@size]}, |
| 827 |
line width=\tikzfeynhand@momentum@arrow@thickness, |
| 828 |
\tikzfeynhand@momentum@arrow@style] |
| 829 |
($(tf@m@1)!\tikzfeynhand@momentum@arrow@distance!-90:(tf@m@2)$) |
| 830 |
-- ($(tf@m@2)!\tikzfeynhand@momentum@arrow@distance!90:(tf@m@1)$) |
| 831 |
node [pos=0.5, auto, swap, |
| 832 |
outer sep=\tikzfeynhand@momentum@label@distance, |
| 833 |
\tikzfeynhand@momentum@label@style] {#2}; |
| 834 |
}, |
| 835 |
curveto code={ |
| 836 |
\tikzfeynhandset{momentum/.cd,#1} |
| 837 |
\path (\tikzinputsegmentlast) |
| 838 |
.. controls (\tikzinputsegmentsupportb) and (\tikzinputsegmentsupporta) |
| 839 |
.. (\tikzinputsegmentfirst) |
| 840 |
{ \foreach \i in {1, ..., 50} { |
| 841 |
coordinate [pos=\tikzfeynhand@momentum@arrow@shorten + (1-2 * \tikzfeynhand@momentum@arrow@shorten)*\i/50] (tf@m@\i) } }; |
| 842 |
\draw [-{Stealth[length=\tikzfeynhand@momentum@arrow@size]}, |
| 843 |
line width=\tikzfeynhand@momentum@arrow@thickness, |
| 844 |
\tikzfeynhand@momentum@arrow@style] |
| 845 |
($(tf@m@1)!\tikzfeynhand@momentum@arrow@distance!-90:(tf@m@2)$) |
| 846 |
foreach \i [count=\j from 3] in {2, ..., 24} { |
| 847 |
-- ($(tf@m@\i)!\tikzfeynhand@momentum@arrow@distance!-90:(tf@m@\j)$) |
| 848 |
} |
| 849 |
-- ($(tf@m@25)!\tikzfeynhand@momentum@arrow@distance!-90:(tf@m@26)$) |
| 850 |
node [pos=0.5, auto, swap, |
| 851 |
outer sep=\tikzfeynhand@momentum@label@distance, |
| 852 |
\tikzfeynhand@momentum@arrow@style] {#2} |
| 853 |
foreach \i [count=\j from 27] in {26, ..., 49} { |
| 854 |
-- ($(tf@m@\i)!\tikzfeynhand@momentum@arrow@distance!-90:(tf@m@\j)$) |
| 855 |
} |
| 856 |
-- ($(tf@m@50)!\tikzfeynhand@momentum@arrow@distance!90:(tf@m@49)$); |
| 857 |
}, |
| 858 |
closepath code={ |
| 859 |
\tikzfeynhandset{momentum/.cd,#1} |
| 860 |
\path (\tikzinputsegmentlast) -- (\tikzinputsegmentfirst) |
| 861 |
coordinate [pos=\tikzfeynhand@momentum@arrow@shorten] (tf@m@1) |
| 862 |
coordinate [pos=1 - \tikzfeynhand@momentum@arrow@shorten] (tf@m@2); |
| 863 |
\draw [-{Stealth[length=\tikzfeynhand@momentum@arrow@size]}, |
| 864 |
line width=\tikzfeynhand@momentum@arrow@thickness, |
| 865 |
\tikzfeynhand@momentum@arrow@style] |
| 866 |
($(tf@m@1)!\tikzfeynhand@momentum@arrow@distance!-90:(tf@m@2)$) |
| 867 |
-- ($(tf@m@2)!\tikzfeynhand@momentum@arrow@distance!90:(tf@m@1)$) |
| 868 |
node [pos=0.5, auto, swap, |
| 869 |
outer sep=\tikzfeynhand@momentum@label@distance, |
| 870 |
\tikzfeynhand@momentum@label@style] {#2}; |
| 871 |
}, |
| 872 |
}, |
| 873 |
/tikz/decorate=true, |
| 874 |
}, |
| 875 |
}, |
| 876 |
reversed momentum'@@/.style args={[#1]#2}{ |
| 877 |
/tikz/preaction={ |
| 878 |
/tikz/decoration={ |
| 879 |
show path construction, |
| 880 |
moveto code={}, |
| 881 |
lineto code={ |
| 882 |
\tikzfeynhandset{momentum/.cd,#1} |
| 883 |
\path (\tikzinputsegmentlast) -- (\tikzinputsegmentfirst) |
| 884 |
coordinate [pos=\tikzfeynhand@momentum@arrow@shorten] (tf@m@1) |
| 885 |
coordinate [pos=1 - \tikzfeynhand@momentum@arrow@shorten] (tf@m@2); |
| 886 |
\draw [-{Stealth[length=\tikzfeynhand@momentum@arrow@size]}, |
| 887 |
line width=\tikzfeynhand@momentum@arrow@thickness, |
| 888 |
\tikzfeynhand@momentum@arrow@style] |
| 889 |
($(tf@m@1)!\tikzfeynhand@momentum@arrow@distance!90:(tf@m@2)$) |
| 890 |
-- ($(tf@m@2)!\tikzfeynhand@momentum@arrow@distance!-90:(tf@m@1)$) |
| 891 |
node [pos=0.5, |
| 892 |
auto, |
| 893 |
outer sep=\tikzfeynhand@momentum@label@distance, |
| 894 |
\tikzfeynhand@momentum@label@style] {#2}; |
| 895 |
}, |
| 896 |
curveto code={ |
| 897 |
\tikzfeynhandset{momentum/.cd,#1} |
| 898 |
\path (\tikzinputsegmentlast) |
| 899 |
.. controls (\tikzinputsegmentsupportb) and (\tikzinputsegmentsupporta) |
| 900 |
.. (\tikzinputsegmentfirst) |
| 901 |
{ \foreach \i in {1, ..., 50} { |
| 902 |
coordinate [pos=\tikzfeynhand@momentum@arrow@shorten + (1-2 * \tikzfeynhand@momentum@arrow@shorten)*\i/50] (tf@m@\i) } }; |
| 903 |
\draw [-{Stealth[length=\tikzfeynhand@momentum@arrow@size]}, |
| 904 |
line width=\tikzfeynhand@momentum@arrow@thickness, |
| 905 |
\tikzfeynhand@momentum@arrow@style] |
| 906 |
($(tf@m@1)!\tikzfeynhand@momentum@arrow@distance!90:(tf@m@2)$) |
| 907 |
foreach \i [count=\j from 3] in {2, ..., 24} { |
| 908 |
-- ($(tf@m@\i)!\tikzfeynhand@momentum@arrow@distance!90:(tf@m@\j)$) |
| 909 |
} |
| 910 |
-- ($(tf@m@25)!\tikzfeynhand@momentum@arrow@distance!90:(tf@m@26)$) |
| 911 |
node [pos=0.5, |
| 912 |
auto, |
| 913 |
outer sep=\tikzfeynhand@momentum@label@distance, |
| 914 |
\tikzfeynhand@momentum@arrow@style] {#2} |
| 915 |
foreach \i [count=\j from 27] in {26, ..., 49} { |
| 916 |
-- ($(tf@m@\i)!\tikzfeynhand@momentum@arrow@distance!90:(tf@m@\j)$) |
| 917 |
} |
| 918 |
-- ($(tf@m@50)!\tikzfeynhand@momentum@arrow@distance!-90:(tf@m@49)$); |
| 919 |
}, |
| 920 |
closepath code={ |
| 921 |
\tikzfeynhandset{momentum/.cd,#1} |
| 922 |
\path (\tikzinputsegmentlast) -- (\tikzinputsegmentfirst) |
| 923 |
coordinate [pos=\tikzfeynhand@momentum@arrow@shorten] (tf@m@1) |
| 924 |
coordinate [pos=1 - \tikzfeynhand@momentum@arrow@shorten] (tf@m@2); |
| 925 |
\draw [-{Stealth[length=\tikzfeynhand@momentum@arrow@size]}, |
| 926 |
line width=\tikzfeynhand@momentum@arrow@thickness, |
| 927 |
\tikzfeynhand@momentum@arrow@style] |
| 928 |
($(tf@m@1)!\tikzfeynhand@momentum@arrow@distance!90:(tf@m@2)$) |
| 929 |
-- ($(tf@m@2)!\tikzfeynhand@momentum@arrow@distance!-90:(tf@m@1)$) |
| 930 |
node [pos=0.5, auto, |
| 931 |
outer sep=\tikzfeynhand@momentum@label@distance, |
| 932 |
\tikzfeynhand@momentum@label@style] {#2}; |
| 933 |
}, |
| 934 |
}, |
| 935 |
/tikz/decorate=true, |
| 936 |
}, |
| 937 |
}, |
| 938 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 939 |
%% Modifiers |
| 940 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 941 |
half left/.style={ |
| 942 |
/tikz/bend left=90, |
| 943 |
}, |
| 944 |
half right/.style={ |
| 945 |
/tikz/bend right=90, |
| 946 |
}, |
| 947 |
quarter left/.style={ |
| 948 |
/tikz/bend left=45, |
| 949 |
}, |
| 950 |
quarter right/.style={ |
| 951 |
/tikz/bend right=45, |
| 952 |
}, |
| 953 |
} |
| 954 |
|
| 955 |
\endinput |