- Math.lyx: describe Feynman diagrams

- FeynmanDiagrams.lyx: new example file (specific manual)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35470 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2010-09-21 02:18:36 +00:00
parent 3fe895b7b6
commit f61f5b9192
8 changed files with 1091 additions and 20 deletions

View File

@ -2495,6 +2495,7 @@ lib_examples_files = Split('''
europeCV.lyx
example_lyxified.lyx
example_raw.lyx
FeynmanDiagrams.lyx
Foils.lyx
iecc05.fen
iecc07.fen

View File

@ -251,6 +251,7 @@ dist_examples_DATA = \
examples/europeCV.lyx \
examples/example_lyxified.lyx \
examples/example_raw.lyx \
examples/FeynmanDiagrams.lyx \
examples/iecc05.fen \
examples/iecc07.fen \
examples/iecc12.fen \

View File

@ -255,7 +255,7 @@ author: Uwe Stöhr
\family sans
Version 1.6.x
Version 2.0.x
\end_layout
\begin_layout Standard
@ -32451,12 +32451,78 @@ Specific
\begin_inset space ~
\end_inset
Manuals\SpecialChar \menuseparator
XY-pic
Manuals
\family default
.
\end_layout
\begin_layout Subsection
\noun on
Feynman
\noun default
Diagrams
\begin_inset Index
status collapsed
\begin_layout Plain Layout
Diagrams ! Feynman
\end_layout
\end_inset
\end_layout
\begin_layout Standard
To be able to use
\noun on
Feynman
\noun default
-diagrams, the LaTeX-package
\series bold
feyn
\series default
must be installed.
A
\noun on
Feynman
\noun default
-diagram is created by inserting the command
\series bold
\backslash
Diagram
\series default
in a formula.
Then you are able to add new matrix columns and rows like for normal matrices,
see
\begin_inset CommandInset ref
LatexCommand ref
reference "sec:Matrices"
\end_inset
.
\end_layout
\begin_layout Standard
Examples how to create
\noun on
Feynman-
\noun default
diagrams in LyX is given in the
\emph on
Feynman-diagram manual
\emph default
that you find in the menu
\family sans
Help\SpecialChar \menuseparator
Specific
\begin_inset space ~
\end_inset
Manual
Manuals
\family default
.
\end_layout

View File

@ -263,7 +263,7 @@ Verfasser: Uwe Stöhr
\family sans
Version 1.6.x
Version 2.0.x
\end_layout
\begin_layout Standard
@ -32535,19 +32535,82 @@ Spezielle
\begin_inset space ~
\end_inset
Handbücher\SpecialChar \menuseparator
XY-pic-Handbuch
Handbücher
\family default
zu finden ist.
\end_layout
\begin_layout Standard
\begin_inset Newpage newpage
\begin_layout Subsection
\noun on
Feynman
\noun default
Diagramme
\begin_inset Index
status collapsed
\begin_layout Plain Layout
Diagramme ! Feynman
\end_layout
\end_inset
\end_layout
\begin_layout Standard
Um
\noun on
Feynman-
\noun default
Diagrammen nutzen zu können, muss das LaTeX-Paket
\series bold
feyn
\series default
installiert sein.
Ein
\noun on
Feynman-
\noun default
Diagramm wird erstellt, indem der Befehl
\series bold
\backslash
Diagram
\series default
in eine Formel eingegeben wird.
Dann können Sie neue Matrixspalten und -zeilen wie bei normalen Matrizen
hinzufügen, siehe
\begin_inset CommandInset ref
LatexCommand ref
reference "sec:Matrizen"
\end_inset
.
\end_layout
\begin_layout Standard
Beispiele wie man in LyX
\noun on
Feynman-
\noun default
Diagramme erstellt sind im
\emph on
Feynman-Diagramm Handbuch
\emph default
gegeben, dass im Menü
\family sans
Hilfe\SpecialChar \menuseparator
Spezielle
\begin_inset space ~
\end_inset
Handbücher
\family default
zu finden ist.
\end_layout
\begin_layout Section
Benutzerdefinierte Befehle
\begin_inset CommandInset label

View File

@ -255,7 +255,7 @@ autor: Uwe Stöhr, traducción: Ignacio Garcia
\begin_inset Newline newline
\end_inset
Versión 1.6.x
Versión 2.0.x
\end_layout
\begin_layout Standard
@ -33128,13 +33128,84 @@ específicos
.
\end_layout
\begin_layout Standard
\begin_inset Newpage newpage
\begin_layout Subsection
Diagramas
\noun on
Feynman
\noun default
\begin_inset Index
status collapsed
\begin_layout Plain Layout
Diagramas ! Feynman
\end_layout
\end_inset
\end_layout
\begin_layout Standard
Para usar diagramas
\noun on
Feynman
\noun default
estar instalado el paquete LaTeX
\series bold
feyn
\series default
.
Un diagrama
\noun on
Feynman
\noun default
se crea insertando el comando
\series bold
\backslash
Diagram
\series default
en una ecuación.
Después podrás añadir nuevas columnas y filas como en matrices normales,
véase
\begin_inset space ~
\end_inset
\begin_inset CommandInset ref
LatexCommand ref
reference "sec:Matrices"
\end_inset
.
\end_layout
\begin_layout Standard
\lang english
Examples how to create
\noun on
Feynman-
\noun default
diagrams in LyX is given in the
\emph on
Feynman-diagram manual
\emph default
\lang spanish
que se encuentra en el menú
\family sans
Ayuda\SpecialChar \menuseparator
Manuales
\begin_inset space ~
\end_inset
específicos
\family default
.
\end_layout
\begin_layout Section
Comandos definidos por el usuario
\begin_inset Index

View File

@ -262,7 +262,7 @@ traducteur: Siegfried Meunier-Guttin-Cluzel
\family sans
Version 1.6.x
Version 2.0.x
\end_layout
\begin_layout Standard
@ -32434,16 +32434,81 @@ Manuels
\begin_inset space ~
\end_inset
spécifiques\SpecialChar \menuseparator
Manuel
spécifiques
\family default
.
\end_layout
\begin_layout Subsection
Les diagrammes
\noun on
Feynman
\noun default
\begin_inset Index
status collapsed
\begin_layout Plain Layout
Diagrammes ! Feynman
\end_layout
\end_inset
\end_layout
\begin_layout Standard
Pour pouvoir utiliser des diagrammes
\noun on
Feynman
\noun default
, on doit installer le paquetage LaTeX
\series bold
feyn
\series default
.
Un diagramme
\noun on
Feynman
\noun default
est créée en insérant la commande
\series bold
\backslash
Diagram
\series default
dans une formule.
Ensuite vous pouvez ajouter de nouvelles lignes et de nouvelles colonnes
comme pour une matrice normale, voir
\begin_inset CommandInset ref
LatexCommand ref
reference "sec:Matrices"
\end_inset
.
\end_layout
\begin_layout Standard
\lang english
Examples how to create
\noun on
Feynman-
\noun default
diagrams in LyX is given in the
\emph on
Feynman-diagram manual
\emph default
\lang french
que vous trouverez dans le menu
\family sans
Aide\SpecialChar \menuseparator
Manuels
\begin_inset space ~
\end_inset
pour
\begin_inset space ~
\end_inset
XY-pic
spécifiques
\family default
.
\end_layout

View File

@ -0,0 +1,803 @@
#LyX 2.0.0svn created this file. For more info see http://www.lyx.org/
\lyxformat 401
\begin_document
\begin_header
\textclass scrartcl
\begin_preamble
% DO NOT ALTER THIS PREAMBLE!!!
%
% This preamble is designed to ensure that the file prints
% out as advertised. If you mess with this preamble,
% parts of this document may not print out as expected. If you
% have problems LaTeXing this file, please contact
% the documentation team
% email: lyx-docs@lists.lyx.org
% if pdflatex is used
\usepackage{ifpdf}
\ifpdf
% set fonts for nicer pdf view
\IfFileExists{lmodern.sty}
{\usepackage{lmodern}}{}
\fi % end if pdflatex is used
% increase link area for cross-references and autoname them,
\AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
\newlength{\abc}
\settowidth{\abc}{\space}
\addto\extrasenglish{
\renewcommand{\equationautorefname}{\hspace{-\abc}}
\renewcommand{\sectionautorefname}{sec.\negthinspace}
\renewcommand{\subsectionautorefname}{sec.\negthinspace}
\renewcommand{\subsubsectionautorefname}{sec.\negthinspace}}
% wird benutzt, um Tabellenzellen zu vergrößern
\@ifundefined{extrarowheight}
{\usepackage{array}}{}
\setlength{\extrarowheight}{5pt}
\end_preamble
\use_default_options true
\maintain_unincluded_children false
\language english
\inputencoding auto
\fontencoding global
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family default
\use_xetex false
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100
\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize 12
\spacing single
\use_hyperref true
\pdf_title "Feynman Diagrams"
\pdf_author "LyX Team, Uwe Stöhr, Ronen"
\pdf_bookmarks true
\pdf_bookmarksnumbered false
\pdf_bookmarksopen false
\pdf_bookmarksopenlevel 1
\pdf_breaklinks false
\pdf_pdfborder true
\pdf_colorlinks false
\pdf_backref false
\pdf_pdfusetitle false
\pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
\papersize default
\use_geometry false
\use_amsmath 1
\use_esint 1
\use_mhchem 1
\use_mathdots 1
\cite_engine basic
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\index Index
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation skip
\defskip medskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\html_math_output 0
\html_be_strict false
\end_header
\begin_body
\begin_layout Title
Feynman Diagrams
\end_layout
\begin_layout Standard
To be able to use
\noun on
Feynman
\noun default
diagrams, the LaTeX-package
\series bold
feyn
\series default
must be installed.
A Feynman diagram is created by inserting the command
\series bold
\backslash
Diagram
\series default
in a formula.
Then you are able to add new matrix columns and rows like a normal matrices.
\end_layout
\begin_layout Standard
As matrix entry, one can enter commands that act as
\begin_inset Quotes eld
\end_inset
particles
\begin_inset Quotes erd
\end_inset
or
\begin_inset Quotes eld
\end_inset
propagators, for example:
\end_layout
\begin_layout Standard
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="7" columns="4">
<features booktabs="true" tabularvalignment="middle">
<column alignment="center" valignment="middle" width="28col%">
<column alignment="center" valignment="middle" width="20col%">
<column alignment="center" valignment="middle" width="25col%">
<column alignment="center" valignment="middle" width="20col%">
<row>
<cell alignment="center" valignment="top" topline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
Commands
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
Description
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
Example
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
Result
\end_layout
\end_inset
</cell>
</row>
<row>
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
f,g,h
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\noindent
\align left
fermion, photon or ghost propagator.
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\begin_inset Tabular
<lyxtabular version="3" rows="1" columns="3">
<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<row>
<cell alignment="center" valignment="top" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
f
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
g
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
h
\end_layout
\end_inset
</cell>
</row>
</lyxtabular>
\end_inset
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\begin_inset Formula $\Diagram{f & g & h}
$
\end_inset
\end_layout
\end_inset
</cell>
</row>
<row>
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
fu,fd,fv (gu,gd,gv)
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\noindent
\align left
fermion/photon, going up/down/vertical
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\begin_inset Tabular
<lyxtabular version="3" rows="2" columns="3">
<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="middle" width="0">
<row>
<cell alignment="center" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
fd
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
gu
\end_layout
\end_inset
</cell>
</row>
<row>
<cell alignment="center" valignment="top" topline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
fv
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_layout
\end_inset
</cell>
</row>
</lyxtabular>
\end_inset
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\begin_inset Formula $\Diagram{fd & & gu\\
& fv
}
$
\end_inset
\end_layout
\end_inset
</cell>
</row>
<row>
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
fA,fV
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\noindent
\align left
A and V are modifiers to produce arrow going left/up or right/down
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\begin_inset Tabular
<lyxtabular version="3" rows="2" columns="3">
<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="middle" width="0">
<row>
<cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
fdA
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" bottomline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
fuV
\end_layout
\end_inset
</cell>
</row>
<row>
<cell alignment="center" valignment="top" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
gvV
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_layout
\end_inset
</cell>
</row>
</lyxtabular>
\end_inset
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\begin_inset Formula $\Diagram{fdA & & fuV\\
& gvV
}
$
\end_inset
\end_layout
\end_inset
</cell>
</row>
<row>
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
fl,glB,glS,fl1,gl2, etc.
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\noindent
\align left
fermions/photons loop
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\begin_inset Tabular
<lyxtabular version="3" rows="2" columns="3">
<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="top" width="0">
<column alignment="center" valignment="middle" width="0">
<row>
<cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
f
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
gl
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" bottomline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_layout
\end_inset
</cell>
</row>
<row>
<cell alignment="center" valignment="top" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
f
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
f
\end_layout
\end_inset
</cell>
</row>
</lyxtabular>
\end_inset
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\begin_inset Formula $\Diagram{f & gl\\
& f & f
}
$
\end_inset
\end_layout
\end_inset
</cell>
</row>
<row>
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\backslash
momentum{ch}{text}
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\noindent
\align left
particle-momentum specification
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\begin_inset Formula $\backslash{\rm momentum}\{fA\}\{\vec{p\}}$
\end_inset
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\begin_inset Formula $\Diagram{\momentum{fA}{\vec{p}}}
$
\end_inset
\end_layout
\end_inset
</cell>
</row>
<row>
<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\backslash
vertexlabel{p}{text}
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\noindent
\align left
A vertex label.
\emph on
p
\emph default
is ^ or _ for labeling above or below vertex
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\begin_inset Tabular
<lyxtabular version="3" rows="2" columns="1">
<features tabularvalignment="middle">
<column alignment="center" valignment="top" width="0">
<row>
<cell alignment="center" valignment="top" bottomline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\begin_inset Formula $\backslash{\rm vertexlabel}^{e^{+}}fA$
\end_inset
\end_layout
\end_inset
</cell>
</row>
<row>
<cell alignment="center" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\begin_inset Formula $fglS\backslash{\rm vertexlabel}_{\gamma}$
\end_inset
\end_layout
\end_inset
</cell>
</row>
</lyxtabular>
\end_inset
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\begin_inset Formula $\Diagram{\vertexlabel^{{\rm e^{+}}}fA\\
fglS\vertexlabel_{\gamma}
}
$
\end_inset
\end_layout
\end_inset
</cell>
</row>
</lyxtabular>
\end_inset
\end_layout
\begin_layout Standard
These are just some of the options in the
\series bold
feyn
\series default
package.
Its user manual can be found in
\begin_inset CommandInset citation
LatexCommand cite
key "Feyn"
\end_inset
.
\end_layout
\begin_layout Bibliography
\labelwidthstring References
\begin_inset CommandInset bibitem
LatexCommand bibitem
key "Feyn"
\end_inset
\begin_inset CommandInset href
LatexCommand href
name "Documentation"
target "http://mirror.ctan.org/fonts/feyn/feyn.pdf"
\end_inset
of the LaTeX-Package
\series bold
feyn
\end_layout
\end_body
\end_document

View File

@ -570,6 +570,7 @@ Menuset
Item "Braille Manual|B" "help-open Braille"
Item "XY-pic Manual|X" "help-open xypic"
Item "Multicolumn Manual|M" "help-open multicol"
Item "Feynman-diagram Manual|X" "help-open FeynmanDiagrams"
End