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