]> git.lyx.org Git - lyx.git/blob - lib/examples/FeynmanDiagrams.lyx
Avoid processing multiple times the same paragraph when converting latex arguments.
[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 use 
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 Feynman diagram is created by inserting the command 
138 \series bold
139
140 \backslash
141 Diagram
142 \series default
143  in a formula.
144  Then you are able to add new matrix columns and rows like a normal matrices.
145  
146 \end_layout
147
148 \begin_layout Standard
149 As matrix entry, one can enter commands that act as 
150 \begin_inset Quotes eld
151 \end_inset
152
153 particles
154 \begin_inset Quotes erd
155 \end_inset
156
157  or 
158 \begin_inset Quotes eld
159 \end_inset
160
161 propagators
162 \begin_inset Quotes erd
163 \end_inset
164
165 , for example:
166 \end_layout
167
168 \begin_layout Standard
169 \align center
170 \begin_inset Tabular
171 <lyxtabular version="3" rows="7" columns="4">
172 <features rotate="0" booktabs="true" tabularvalignment="middle">
173 <column alignment="center" valignment="middle" width="28col%">
174 <column alignment="center" valignment="middle" width="20col%">
175 <column alignment="center" valignment="middle" width="25col%">
176 <column alignment="center" valignment="middle" width="20col%">
177 <row>
178 <cell alignment="center" valignment="top" topline="true" usebox="none">
179 \begin_inset Text
180
181 \begin_layout Plain Layout
182 Commands
183 \end_layout
184
185 \end_inset
186 </cell>
187 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
188 \begin_inset Text
189
190 \begin_layout Plain Layout
191 Description
192 \end_layout
193
194 \end_inset
195 </cell>
196 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
197 \begin_inset Text
198
199 \begin_layout Plain Layout
200 Example
201 \end_layout
202
203 \end_inset
204 </cell>
205 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
206 \begin_inset Text
207
208 \begin_layout Plain Layout
209 Result
210 \end_layout
211
212 \end_inset
213 </cell>
214 </row>
215 <row>
216 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
217 \begin_inset Text
218
219 \begin_layout Plain Layout
220 f,g,h
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 \noindent
230 \align left
231 fermion, photon or ghost propagator.
232 \end_layout
233
234 \end_inset
235 </cell>
236 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
237 \begin_inset Text
238
239 \begin_layout Plain Layout
240 \begin_inset Tabular
241 <lyxtabular version="3" rows="1" columns="3">
242 <features rotate="0" tabularvalignment="middle">
243 <column alignment="center" valignment="top">
244 <column alignment="center" valignment="top">
245 <column alignment="center" valignment="top">
246 <row>
247 <cell alignment="center" valignment="top" rightline="true" usebox="none">
248 \begin_inset Text
249
250 \begin_layout Plain Layout
251 f
252 \end_layout
253
254 \end_inset
255 </cell>
256 <cell alignment="center" valignment="top" rightline="true" usebox="none">
257 \begin_inset Text
258
259 \begin_layout Plain Layout
260 g
261 \end_layout
262
263 \end_inset
264 </cell>
265 <cell alignment="center" valignment="top" usebox="none">
266 \begin_inset Text
267
268 \begin_layout Plain Layout
269 h
270 \end_layout
271
272 \end_inset
273 </cell>
274 </row>
275 </lyxtabular>
276
277 \end_inset
278
279
280 \end_layout
281
282 \end_inset
283 </cell>
284 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
285 \begin_inset Text
286
287 \begin_layout Plain Layout
288 \begin_inset Formula $\Diagram{f & g & h}
289 $
290 \end_inset
291
292
293 \end_layout
294
295 \end_inset
296 </cell>
297 </row>
298 <row>
299 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
300 \begin_inset Text
301
302 \begin_layout Plain Layout
303 fu,fd,fv (gu,gd,gv)
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 \noindent
313 \align left
314 fermion/photon, going up/down/vertical
315 \end_layout
316
317 \end_inset
318 </cell>
319 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
320 \begin_inset Text
321
322 \begin_layout Plain Layout
323 \begin_inset Tabular
324 <lyxtabular version="3" rows="2" columns="3">
325 <features rotate="0" tabularvalignment="middle">
326 <column alignment="center" valignment="top">
327 <column alignment="center" valignment="top">
328 <column alignment="center" valignment="middle">
329 <row>
330 <cell alignment="center" valignment="top" usebox="none">
331 \begin_inset Text
332
333 \begin_layout Plain Layout
334 fd
335 \end_layout
336
337 \end_inset
338 </cell>
339 <cell alignment="center" valignment="top" leftline="true" usebox="none">
340 \begin_inset Text
341
342 \begin_layout Plain Layout
343
344 \end_layout
345
346 \end_inset
347 </cell>
348 <cell alignment="center" valignment="top" leftline="true" usebox="none">
349 \begin_inset Text
350
351 \begin_layout Plain Layout
352 gu
353 \end_layout
354
355 \end_inset
356 </cell>
357 </row>
358 <row>
359 <cell alignment="center" valignment="top" topline="true" usebox="none">
360 \begin_inset Text
361
362 \begin_layout Plain Layout
363
364 \end_layout
365
366 \end_inset
367 </cell>
368 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
369 \begin_inset Text
370
371 \begin_layout Plain Layout
372 fv
373 \end_layout
374
375 \end_inset
376 </cell>
377 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
378 \begin_inset Text
379
380 \begin_layout Plain Layout
381
382 \end_layout
383
384 \end_inset
385 </cell>
386 </row>
387 </lyxtabular>
388
389 \end_inset
390
391
392 \end_layout
393
394 \end_inset
395 </cell>
396 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
397 \begin_inset Text
398
399 \begin_layout Plain Layout
400 \begin_inset Formula $\Diagram{fd &  & gu\\
401  & fv
402 }
403 $
404 \end_inset
405
406
407 \end_layout
408
409 \end_inset
410 </cell>
411 </row>
412 <row>
413 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
414 \begin_inset Text
415
416 \begin_layout Plain Layout
417 fA,fV
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 \noindent
427 \align left
428 A and V are modifiers to produce arrow going left/up or right/down
429 \end_layout
430
431 \end_inset
432 </cell>
433 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
434 \begin_inset Text
435
436 \begin_layout Plain Layout
437 \begin_inset Tabular
438 <lyxtabular version="3" rows="2" columns="3">
439 <features rotate="0" tabularvalignment="middle">
440 <column alignment="center" valignment="top">
441 <column alignment="center" valignment="top">
442 <column alignment="center" valignment="middle">
443 <row>
444 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
445 \begin_inset Text
446
447 \begin_layout Plain Layout
448 fdA
449 \end_layout
450
451 \end_inset
452 </cell>
453 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
454 \begin_inset Text
455
456 \begin_layout Plain Layout
457
458 \end_layout
459
460 \end_inset
461 </cell>
462 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
463 \begin_inset Text
464
465 \begin_layout Plain Layout
466 fuV
467 \end_layout
468
469 \end_inset
470 </cell>
471 </row>
472 <row>
473 <cell alignment="center" valignment="top" rightline="true" usebox="none">
474 \begin_inset Text
475
476 \begin_layout Plain Layout
477
478 \end_layout
479
480 \end_inset
481 </cell>
482 <cell alignment="center" valignment="top" rightline="true" usebox="none">
483 \begin_inset Text
484
485 \begin_layout Plain Layout
486 gvV
487 \end_layout
488
489 \end_inset
490 </cell>
491 <cell alignment="center" valignment="top" usebox="none">
492 \begin_inset Text
493
494 \begin_layout Plain Layout
495
496 \end_layout
497
498 \end_inset
499 </cell>
500 </row>
501 </lyxtabular>
502
503 \end_inset
504
505
506 \end_layout
507
508 \end_inset
509 </cell>
510 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
511 \begin_inset Text
512
513 \begin_layout Plain Layout
514 \begin_inset Formula $\Diagram{fdA &  & fuV\\
515  & gvV
516 }
517 $
518 \end_inset
519
520
521 \end_layout
522
523 \end_inset
524 </cell>
525 </row>
526 <row>
527 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
528 \begin_inset Text
529
530 \begin_layout Plain Layout
531 fl,glB,glS,fl1,gl2, etc.
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 \noindent
541 \align left
542 fermions/photons loop
543 \end_layout
544
545 \end_inset
546 </cell>
547 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
548 \begin_inset Text
549
550 \begin_layout Plain Layout
551 \begin_inset Tabular
552 <lyxtabular version="3" rows="2" columns="3">
553 <features rotate="0" tabularvalignment="middle">
554 <column alignment="center" valignment="top">
555 <column alignment="center" valignment="top">
556 <column alignment="center" valignment="middle">
557 <row>
558 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
559 \begin_inset Text
560
561 \begin_layout Plain Layout
562 f
563 \end_layout
564
565 \end_inset
566 </cell>
567 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
568 \begin_inset Text
569
570 \begin_layout Plain Layout
571 gl
572 \end_layout
573
574 \end_inset
575 </cell>
576 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
577 \begin_inset Text
578
579 \begin_layout Plain Layout
580
581 \end_layout
582
583 \end_inset
584 </cell>
585 </row>
586 <row>
587 <cell alignment="center" valignment="top" rightline="true" usebox="none">
588 \begin_inset Text
589
590 \begin_layout Plain Layout
591
592 \end_layout
593
594 \end_inset
595 </cell>
596 <cell alignment="center" valignment="top" rightline="true" usebox="none">
597 \begin_inset Text
598
599 \begin_layout Plain Layout
600 f
601 \end_layout
602
603 \end_inset
604 </cell>
605 <cell alignment="center" valignment="top" usebox="none">
606 \begin_inset Text
607
608 \begin_layout Plain Layout
609 f
610 \end_layout
611
612 \end_inset
613 </cell>
614 </row>
615 </lyxtabular>
616
617 \end_inset
618
619
620 \end_layout
621
622 \end_inset
623 </cell>
624 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
625 \begin_inset Text
626
627 \begin_layout Plain Layout
628 \begin_inset Formula $\Diagram{f & gl\\
629  & f & f
630 }
631 $
632 \end_inset
633
634
635 \end_layout
636
637 \end_inset
638 </cell>
639 </row>
640 <row>
641 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
642 \begin_inset Text
643
644 \begin_layout Plain Layout
645
646 \backslash
647 momentum{ch}{text}
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 \noindent
657 \align left
658 particle-momentum specification
659 \end_layout
660
661 \end_inset
662 </cell>
663 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
664 \begin_inset Text
665
666 \begin_layout Plain Layout
667 \begin_inset Formula $\backslash{\rm momentum}\{fA\}\{\vec{p\}}$
668 \end_inset
669
670
671 \end_layout
672
673 \end_inset
674 </cell>
675 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
676 \begin_inset Text
677
678 \begin_layout Plain Layout
679 \begin_inset Formula $\Diagram{\momentum{fA}{\vec{p}}}
680 $
681 \end_inset
682
683
684 \end_layout
685
686 \end_inset
687 </cell>
688 </row>
689 <row>
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
695 \backslash
696 vertexlabel{p}{text}
697 \end_layout
698
699 \end_inset
700 </cell>
701 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
702 \begin_inset Text
703
704 \begin_layout Plain Layout
705 \noindent
706 \align left
707 A vertex label 
708 \emph on
709 p
710 \emph default
711  is ^ or _ for labeling above or below vertex
712 \end_layout
713
714 \end_inset
715 </cell>
716 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
717 \begin_inset Text
718
719 \begin_layout Plain Layout
720 \begin_inset Tabular
721 <lyxtabular version="3" rows="2" columns="1">
722 <features rotate="0" tabularvalignment="middle">
723 <column alignment="center" valignment="top">
724 <row>
725 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
726 \begin_inset Text
727
728 \begin_layout Plain Layout
729 \begin_inset Formula $\backslash{\rm vertexlabel}^{e^{+}}fA$
730 \end_inset
731
732
733 \end_layout
734
735 \end_inset
736 </cell>
737 </row>
738 <row>
739 <cell alignment="center" valignment="top" usebox="none">
740 \begin_inset Text
741
742 \begin_layout Plain Layout
743 \begin_inset Formula $fglS\backslash{\rm vertexlabel}_{\gamma}$
744 \end_inset
745
746
747 \end_layout
748
749 \end_inset
750 </cell>
751 </row>
752 </lyxtabular>
753
754 \end_inset
755
756
757 \end_layout
758
759 \end_inset
760 </cell>
761 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
762 \begin_inset Text
763
764 \begin_layout Plain Layout
765 \begin_inset Formula $\Diagram{\vertexlabel^{{\rm e^{+}}}fA\\
766 fglS\vertexlabel_{\gamma}
767 }
768 $
769 \end_inset
770
771
772 \end_layout
773
774 \end_inset
775 </cell>
776 </row>
777 </lyxtabular>
778
779 \end_inset
780
781
782 \end_layout
783
784 \begin_layout Standard
785 These are just some of the options in the 
786 \series bold
787 feyn
788 \series default
789  package.
790  Its user manual can be found in 
791 \begin_inset CommandInset citation
792 LatexCommand cite
793 key "Feyn"
794
795 \end_inset
796
797 .
798 \end_layout
799
800 \begin_layout Standard
801 \begin_inset Note Greyedout
802 status open
803
804 \begin_layout Plain Layout
805
806 \series bold
807 Note:
808 \series default
809  If you have an index list in your document and use one of the AMS theorem
810  modules, you have to add the option 
811 \series bold
812 noglobalbang
813 \series default
814  to the document class options in the document settings.
815  This enables the usage of the '!' character in index entries (necessary
816  for subentries) but might cause troubles with the AMS align and align*
817  environments (which are described in section 
818 \begin_inset Quotes eld
819 \end_inset
820
821 Align Environments
822 \begin_inset Quotes erd
823 \end_inset
824
825  of LyX's Math manual).
826 \end_layout
827
828 \end_inset
829
830
831 \end_layout
832
833 \begin_layout Bibliography
834 \begin_inset CommandInset bibitem
835 LatexCommand bibitem
836 key "Feyn"
837
838 \end_inset
839
840
841 \begin_inset CommandInset href
842 LatexCommand href
843 name "Documentation"
844 target "http://mirror.ctan.org/fonts/feyn/feyn.pdf"
845
846 \end_inset
847
848  of the LaTeX-Package 
849 \series bold
850 feyn
851 \end_layout
852
853 \end_body
854 \end_document