]> git.lyx.org Git - lyx.git/blob - lib/examples/FeynmanDiagrams.lyx
Revert "The call to cmdOutput can throw an exception, so we need to be careful".
[lyx.git] / lib / examples / FeynmanDiagrams.lyx
1 #LyX 2.0 created this file. For more info see http://www.lyx.org/
2 \lyxformat 413
3 \begin_document
4 \begin_header
5 \textclass scrartcl
6 \begin_preamble
7 % DO NOT ALTER THIS PREAMBLE!!!
8 %
9 % This preamble is designed to ensure that the file prints
10 % out as advertised. If you mess with this preamble,
11 % parts of this document may not print out as expected.  If you
12 % have problems LaTeXing this file, please contact 
13 % the documentation team
14 % email: lyx-docs@lists.lyx.org
15
16 % if pdflatex is used
17 \usepackage{ifpdf}
18 \ifpdf
19
20 % set fonts for nicer pdf view
21 \IfFileExists{lmodern.sty}
22  {\usepackage{lmodern}}{}
23
24 \fi % end if pdflatex is used
25
26 % increase link area for cross-references and autoname them,
27 \AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
28 \newlength{\abc}
29 \settowidth{\abc}{\space}
30 \AtBeginDocument{%
31 \addto\extrasenglish{
32  \renewcommand{\equationautorefname}{\hspace{-\abc}}
33  \renewcommand{\sectionautorefname}{sec.\negthinspace}
34  \renewcommand{\subsectionautorefname}{sec.\negthinspace}
35  \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}}
36 }
37
38 % wird benutzt, um Tabellenzellen zu vergrößern
39 \@ifundefined{extrarowheight}
40  {\usepackage{array}}{}
41 \setlength{\extrarowheight}{5pt}
42 \end_preamble
43 \use_default_options true
44 \maintain_unincluded_children false
45 \language english
46 \language_package default
47 \inputencoding auto
48 \fontencoding global
49 \font_roman default
50 \font_sans default
51 \font_typewriter default
52 \font_default_family default
53 \use_non_tex_fonts false
54 \font_sc false
55 \font_osf false
56 \font_sf_scale 100
57 \font_tt_scale 100
58
59 \graphics default
60 \default_output_format default
61 \output_sync 0
62 \bibtex_command default
63 \index_command default
64 \paperfontsize 12
65 \spacing single
66 \use_hyperref true
67 \pdf_title "Feynman Diagrams"
68 \pdf_author "LyX Team, Uwe Stöhr, Ronen Abravanel"
69 \pdf_bookmarks false
70 \pdf_bookmarksnumbered false
71 \pdf_bookmarksopen false
72 \pdf_bookmarksopenlevel 1
73 \pdf_breaklinks false
74 \pdf_pdfborder true
75 \pdf_colorlinks false
76 \pdf_backref false
77 \pdf_pdfusetitle false
78 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
79 \papersize default
80 \use_geometry false
81 \use_amsmath 1
82 \use_esint 1
83 \use_mhchem 1
84 \use_mathdots 1
85 \cite_engine basic
86 \use_bibtopic false
87 \use_indices false
88 \paperorientation portrait
89 \suppress_date true
90 \use_refstyle 0
91 \index Index
92 \shortcut idx
93 \color #008000
94 \end_index
95 \secnumdepth 3
96 \tocdepth 3
97 \paragraph_separation skip
98 \defskip medskip
99 \quotes_language english
100 \papercolumns 1
101 \papersides 1
102 \paperpagestyle default
103 \tracking_changes false
104 \output_changes false
105 \html_math_output 0
106 \html_css_as_file 0
107 \html_be_strict false
108 \end_header
109
110 \begin_body
111
112 \begin_layout Title
113 Feynman Diagrams
114 \end_layout
115
116 \begin_layout Standard
117 To be able to use 
118 \noun on
119 Feynman
120 \noun default
121  diagrams, the LaTeX-package 
122 \series bold
123 feyn
124 \series default
125  must be installed.
126  A Feynman diagram is created by inserting the command 
127 \series bold
128
129 \backslash
130 Diagram
131 \series default
132  in a formula.
133  Then you are able to add new matrix columns and rows like a normal matrices.
134  
135 \end_layout
136
137 \begin_layout Standard
138 As matrix entry, one can enter commands that act as 
139 \begin_inset Quotes eld
140 \end_inset
141
142 particles
143 \begin_inset Quotes erd
144 \end_inset
145
146  or 
147 \begin_inset Quotes eld
148 \end_inset
149
150 propagators
151 \begin_inset Quotes erd
152 \end_inset
153
154 , for example:
155 \end_layout
156
157 \begin_layout Standard
158 \align center
159 \begin_inset Tabular
160 <lyxtabular version="3" rows="7" columns="4">
161 <features booktabs="true" tabularvalignment="middle">
162 <column alignment="center" valignment="middle" width="28col%">
163 <column alignment="center" valignment="middle" width="20col%">
164 <column alignment="center" valignment="middle" width="25col%">
165 <column alignment="center" valignment="middle" width="20col%">
166 <row>
167 <cell alignment="center" valignment="top" topline="true" usebox="none">
168 \begin_inset Text
169
170 \begin_layout Plain Layout
171 Commands
172 \end_layout
173
174 \end_inset
175 </cell>
176 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
177 \begin_inset Text
178
179 \begin_layout Plain Layout
180 Description
181 \end_layout
182
183 \end_inset
184 </cell>
185 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
186 \begin_inset Text
187
188 \begin_layout Plain Layout
189 Example
190 \end_layout
191
192 \end_inset
193 </cell>
194 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
195 \begin_inset Text
196
197 \begin_layout Plain Layout
198 Result
199 \end_layout
200
201 \end_inset
202 </cell>
203 </row>
204 <row>
205 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
206 \begin_inset Text
207
208 \begin_layout Plain Layout
209 f,g,h
210 \end_layout
211
212 \end_inset
213 </cell>
214 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
215 \begin_inset Text
216
217 \begin_layout Plain Layout
218 \noindent
219 \align left
220 fermion, photon or ghost propagator.
221 \end_layout
222
223 \end_inset
224 </cell>
225 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
226 \begin_inset Text
227
228 \begin_layout Plain Layout
229 \begin_inset Tabular
230 <lyxtabular version="3" rows="1" columns="3">
231 <features tabularvalignment="middle">
232 <column alignment="center" valignment="top" width="0">
233 <column alignment="center" valignment="top" width="0">
234 <column alignment="center" valignment="top" width="0">
235 <row>
236 <cell alignment="center" valignment="top" rightline="true" usebox="none">
237 \begin_inset Text
238
239 \begin_layout Plain Layout
240 f
241 \end_layout
242
243 \end_inset
244 </cell>
245 <cell alignment="center" valignment="top" rightline="true" usebox="none">
246 \begin_inset Text
247
248 \begin_layout Plain Layout
249 g
250 \end_layout
251
252 \end_inset
253 </cell>
254 <cell alignment="center" valignment="top" usebox="none">
255 \begin_inset Text
256
257 \begin_layout Plain Layout
258 h
259 \end_layout
260
261 \end_inset
262 </cell>
263 </row>
264 </lyxtabular>
265
266 \end_inset
267
268
269 \end_layout
270
271 \end_inset
272 </cell>
273 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
274 \begin_inset Text
275
276 \begin_layout Plain Layout
277 \begin_inset Formula $\Diagram{f & g & h}
278 $
279 \end_inset
280
281
282 \end_layout
283
284 \end_inset
285 </cell>
286 </row>
287 <row>
288 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
289 \begin_inset Text
290
291 \begin_layout Plain Layout
292 fu,fd,fv (gu,gd,gv)
293 \end_layout
294
295 \end_inset
296 </cell>
297 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
298 \begin_inset Text
299
300 \begin_layout Plain Layout
301 \noindent
302 \align left
303 fermion/photon, going up/down/vertical
304 \end_layout
305
306 \end_inset
307 </cell>
308 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
309 \begin_inset Text
310
311 \begin_layout Plain Layout
312 \begin_inset Tabular
313 <lyxtabular version="3" rows="2" columns="3">
314 <features tabularvalignment="middle">
315 <column alignment="center" valignment="top" width="0">
316 <column alignment="center" valignment="top" width="0">
317 <column alignment="center" valignment="middle" width="0">
318 <row>
319 <cell alignment="center" valignment="top" usebox="none">
320 \begin_inset Text
321
322 \begin_layout Plain Layout
323 fd
324 \end_layout
325
326 \end_inset
327 </cell>
328 <cell alignment="center" valignment="top" leftline="true" usebox="none">
329 \begin_inset Text
330
331 \begin_layout Plain Layout
332
333 \end_layout
334
335 \end_inset
336 </cell>
337 <cell alignment="center" valignment="top" leftline="true" usebox="none">
338 \begin_inset Text
339
340 \begin_layout Plain Layout
341 gu
342 \end_layout
343
344 \end_inset
345 </cell>
346 </row>
347 <row>
348 <cell alignment="center" valignment="top" topline="true" usebox="none">
349 \begin_inset Text
350
351 \begin_layout Plain Layout
352
353 \end_layout
354
355 \end_inset
356 </cell>
357 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
358 \begin_inset Text
359
360 \begin_layout Plain Layout
361 fv
362 \end_layout
363
364 \end_inset
365 </cell>
366 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
367 \begin_inset Text
368
369 \begin_layout Plain Layout
370
371 \end_layout
372
373 \end_inset
374 </cell>
375 </row>
376 </lyxtabular>
377
378 \end_inset
379
380
381 \end_layout
382
383 \end_inset
384 </cell>
385 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
386 \begin_inset Text
387
388 \begin_layout Plain Layout
389 \begin_inset Formula $\Diagram{fd &  & gu\\
390  & fv
391 }
392 $
393 \end_inset
394
395
396 \end_layout
397
398 \end_inset
399 </cell>
400 </row>
401 <row>
402 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
403 \begin_inset Text
404
405 \begin_layout Plain Layout
406 fA,fV
407 \end_layout
408
409 \end_inset
410 </cell>
411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
412 \begin_inset Text
413
414 \begin_layout Plain Layout
415 \noindent
416 \align left
417 A and V are modifiers to produce arrow going left/up or right/down
418 \end_layout
419
420 \end_inset
421 </cell>
422 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
423 \begin_inset Text
424
425 \begin_layout Plain Layout
426 \begin_inset Tabular
427 <lyxtabular version="3" rows="2" columns="3">
428 <features tabularvalignment="middle">
429 <column alignment="center" valignment="top" width="0">
430 <column alignment="center" valignment="top" width="0">
431 <column alignment="center" valignment="middle" width="0">
432 <row>
433 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
434 \begin_inset Text
435
436 \begin_layout Plain Layout
437 fdA
438 \end_layout
439
440 \end_inset
441 </cell>
442 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
443 \begin_inset Text
444
445 \begin_layout Plain Layout
446
447 \end_layout
448
449 \end_inset
450 </cell>
451 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
452 \begin_inset Text
453
454 \begin_layout Plain Layout
455 fuV
456 \end_layout
457
458 \end_inset
459 </cell>
460 </row>
461 <row>
462 <cell alignment="center" valignment="top" rightline="true" usebox="none">
463 \begin_inset Text
464
465 \begin_layout Plain Layout
466
467 \end_layout
468
469 \end_inset
470 </cell>
471 <cell alignment="center" valignment="top" rightline="true" usebox="none">
472 \begin_inset Text
473
474 \begin_layout Plain Layout
475 gvV
476 \end_layout
477
478 \end_inset
479 </cell>
480 <cell alignment="center" valignment="top" usebox="none">
481 \begin_inset Text
482
483 \begin_layout Plain Layout
484
485 \end_layout
486
487 \end_inset
488 </cell>
489 </row>
490 </lyxtabular>
491
492 \end_inset
493
494
495 \end_layout
496
497 \end_inset
498 </cell>
499 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
500 \begin_inset Text
501
502 \begin_layout Plain Layout
503 \begin_inset Formula $\Diagram{fdA &  & fuV\\
504  & gvV
505 }
506 $
507 \end_inset
508
509
510 \end_layout
511
512 \end_inset
513 </cell>
514 </row>
515 <row>
516 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
517 \begin_inset Text
518
519 \begin_layout Plain Layout
520 fl,glB,glS,fl1,gl2, etc.
521 \end_layout
522
523 \end_inset
524 </cell>
525 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
526 \begin_inset Text
527
528 \begin_layout Plain Layout
529 \noindent
530 \align left
531 fermions/photons loop
532 \end_layout
533
534 \end_inset
535 </cell>
536 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
537 \begin_inset Text
538
539 \begin_layout Plain Layout
540 \begin_inset Tabular
541 <lyxtabular version="3" rows="2" columns="3">
542 <features tabularvalignment="middle">
543 <column alignment="center" valignment="top" width="0">
544 <column alignment="center" valignment="top" width="0">
545 <column alignment="center" valignment="middle" width="0">
546 <row>
547 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
548 \begin_inset Text
549
550 \begin_layout Plain Layout
551 f
552 \end_layout
553
554 \end_inset
555 </cell>
556 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
557 \begin_inset Text
558
559 \begin_layout Plain Layout
560 gl
561 \end_layout
562
563 \end_inset
564 </cell>
565 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
566 \begin_inset Text
567
568 \begin_layout Plain Layout
569
570 \end_layout
571
572 \end_inset
573 </cell>
574 </row>
575 <row>
576 <cell alignment="center" valignment="top" rightline="true" usebox="none">
577 \begin_inset Text
578
579 \begin_layout Plain Layout
580
581 \end_layout
582
583 \end_inset
584 </cell>
585 <cell alignment="center" valignment="top" rightline="true" usebox="none">
586 \begin_inset Text
587
588 \begin_layout Plain Layout
589 f
590 \end_layout
591
592 \end_inset
593 </cell>
594 <cell alignment="center" valignment="top" usebox="none">
595 \begin_inset Text
596
597 \begin_layout Plain Layout
598 f
599 \end_layout
600
601 \end_inset
602 </cell>
603 </row>
604 </lyxtabular>
605
606 \end_inset
607
608
609 \end_layout
610
611 \end_inset
612 </cell>
613 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
614 \begin_inset Text
615
616 \begin_layout Plain Layout
617 \begin_inset Formula $\Diagram{f & gl\\
618  & f & f
619 }
620 $
621 \end_inset
622
623
624 \end_layout
625
626 \end_inset
627 </cell>
628 </row>
629 <row>
630 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
631 \begin_inset Text
632
633 \begin_layout Plain Layout
634
635 \backslash
636 momentum{ch}{text}
637 \end_layout
638
639 \end_inset
640 </cell>
641 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
642 \begin_inset Text
643
644 \begin_layout Plain Layout
645 \noindent
646 \align left
647 particle-momentum specification
648 \end_layout
649
650 \end_inset
651 </cell>
652 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
653 \begin_inset Text
654
655 \begin_layout Plain Layout
656 \begin_inset Formula $\backslash{\rm momentum}\{fA\}\{\vec{p\}}$
657 \end_inset
658
659
660 \end_layout
661
662 \end_inset
663 </cell>
664 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
665 \begin_inset Text
666
667 \begin_layout Plain Layout
668 \begin_inset Formula $\Diagram{\momentum{fA}{\vec{p}}}
669 $
670 \end_inset
671
672
673 \end_layout
674
675 \end_inset
676 </cell>
677 </row>
678 <row>
679 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
680 \begin_inset Text
681
682 \begin_layout Plain Layout
683
684 \backslash
685 vertexlabel{p}{text}
686 \end_layout
687
688 \end_inset
689 </cell>
690 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
691 \begin_inset Text
692
693 \begin_layout Plain Layout
694 \noindent
695 \align left
696 A vertex label 
697 \emph on
698 p
699 \emph default
700  is ^ or _ for labeling above or below vertex
701 \end_layout
702
703 \end_inset
704 </cell>
705 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
706 \begin_inset Text
707
708 \begin_layout Plain Layout
709 \begin_inset Tabular
710 <lyxtabular version="3" rows="2" columns="1">
711 <features tabularvalignment="middle">
712 <column alignment="center" valignment="top" width="0">
713 <row>
714 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
715 \begin_inset Text
716
717 \begin_layout Plain Layout
718 \begin_inset Formula $\backslash{\rm vertexlabel}^{e^{+}}fA$
719 \end_inset
720
721
722 \end_layout
723
724 \end_inset
725 </cell>
726 </row>
727 <row>
728 <cell alignment="center" valignment="top" usebox="none">
729 \begin_inset Text
730
731 \begin_layout Plain Layout
732 \begin_inset Formula $fglS\backslash{\rm vertexlabel}_{\gamma}$
733 \end_inset
734
735
736 \end_layout
737
738 \end_inset
739 </cell>
740 </row>
741 </lyxtabular>
742
743 \end_inset
744
745
746 \end_layout
747
748 \end_inset
749 </cell>
750 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
751 \begin_inset Text
752
753 \begin_layout Plain Layout
754 \begin_inset Formula $\Diagram{\vertexlabel^{{\rm e^{+}}}fA\\
755 fglS\vertexlabel_{\gamma}
756 }
757 $
758 \end_inset
759
760
761 \end_layout
762
763 \end_inset
764 </cell>
765 </row>
766 </lyxtabular>
767
768 \end_inset
769
770
771 \end_layout
772
773 \begin_layout Standard
774 These are just some of the options in the 
775 \series bold
776 feyn
777 \series default
778  package.
779  Its user manual can be found in 
780 \begin_inset CommandInset citation
781 LatexCommand cite
782 key "Feyn"
783
784 \end_inset
785
786 .
787 \end_layout
788
789 \begin_layout Bibliography
790 \labelwidthstring References
791 \begin_inset CommandInset bibitem
792 LatexCommand bibitem
793 key "Feyn"
794
795 \end_inset
796
797
798 \begin_inset CommandInset href
799 LatexCommand href
800 name "Documentation"
801 target "http://mirror.ctan.org/fonts/feyn/feyn.pdf"
802
803 \end_inset
804
805  of the LaTeX-Package 
806 \series bold
807 feyn
808 \end_layout
809
810 \end_body
811 \end_document