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