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