summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/feyn/feyn.sty281
1 files changed, 169 insertions, 112 deletions
diff --git a/Master/texmf-dist/tex/latex/feyn/feyn.sty b/Master/texmf-dist/tex/latex/feyn/feyn.sty
index a6ad5c45b3f..5014ff38f0f 100644
--- a/Master/texmf-dist/tex/latex/feyn/feyn.sty
+++ b/Master/texmf-dist/tex/latex/feyn/feyn.sty
@@ -6,31 +6,13 @@
%%
%% feyn.dtx (with options: `package')
%% Feyn: package to manage the font feyn10
-%% This software is copyright, 1991, 1994, 2001, 2002, 2005, 2008, 2009 Norman Gray.
-%%
-%% This program is free software; you can redistribute it and/or
-%% modify it under the terms of the GNU General Public License
-%% as published by the Free Software Foundation; either version 2
-%% of the License, or (at your option) any later version.
-%%
-%% This program is distributed in the hope that it will be useful,
-%% but WITHOUT ANY WARRANTY; without even the implied warranty of
-%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-%% GNU General Public License for more details.
-%%
-%% You should have received a copy of the GNU General Public License
-%% along with this program; if not, write to the Free Software
-%% Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-%%
-%% Author: Norman Gray, norman@astro.gla.ac.uk.
-%% Department of Physics and Astronomy, University of Glasgow, UK
-%%
-%% See the file LICENCE for a copy of the GPL.
-%% You can also find an online copy at http://www.gnu.org/copyleft/gpl.html .
-%% VCS Info: Mercurial revision 204fc9a2e560, 2009-10-08 12:56 +0100
+%% This software is copyright 1991, 1994, 2001-2, 2005, 2008-17, Norman Gray.
+%% It is distributed under the terms of the 2-clause BSD Licence;
+%% see the file LICENCE for details.
+%% VCS Info: Mercurial revision 558acb5f2e14, 2017-11-03 14:43 +0000, tag 0.4.1 + 0
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{feyn}[2009/10/08 \space0.3.3\space textpos]
-\typeout{Package: `feyn' 0.3.3\space<2009/10/08 >}
+\ProvidesPackage{feyn}[2017/11/03 0.4.1]
+\typeout{Package: `feyn' 0.4.1 <2017/11/03>}
%% \CharacterTable
%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
@@ -67,10 +49,20 @@
<15-21>feyntext18%
<21->feyntext24%
}{}
+\DeclareFontFamily{OMS}{feynx}{\skewchar\font'000}
+\DeclareFontShape{OMS}{feynx}{m}{n}{%
+<-10.5>feynx10%
+<10.5-11.5>feynx11%
+<11.5-15>feynx12%
+ <15-21>feynx18%
+ <21->feynx24%
+}{}
\DeclareSymbolFont{feynman}{OMS}{feyn}{m}{n}
\DeclareSymbolFontAlphabet{\feyn@alphabet}{feynman}
\DeclareSymbolFont{textfeynman}{OMS}{textfeyn}{m}{n}
\DeclareSymbolFontAlphabet{\Feyn@alphabet}{textfeynman}
+\DeclareSymbolFont{feynmanextended}{OMS}{feynx}{m}{n}
+\DeclareSymbolFontAlphabet{\FEYN@alphabet}{feynmanextended}
\ifFeyn@globalbang
\catcode`\!=\active
\def!{\char`\!} % ! produces this character everywhere
@@ -80,6 +72,9 @@
\def\Feyn{\begingroup
\let!\momentum % ...or \Feyn
\Feyn@}
+ \def\FEYN{\begingroup
+ \let!\momentum % ...or \FEYN
+ \FEYN@}
\else
{\catcode`\!=\active % only make ! active within \feyn
\gdef\feyn{%
@@ -91,29 +86,82 @@
\begingroup % ends in \Feyn@
\catcode`\!=\active
\let!=\momentum
- \Feyn@}}
+ \Feyn@}
+ \gdef\FEYN{%
+ \begingroup % ends in \FEYN@
+ \catcode`\!=\active
+ \let!=\momentum
+ \FEYN@}}
\fi
-\def\feyn@#1{\feyn@alphabet{#1}\endgroup}
-\def\Feyn@#1{\Feyn@alphabet{#1}\endgroup}
-\DeclareMathSymbol{\FeynSpaceChar}{\mathord}{feynman}{"7F}
+\def\feyn@#1{\let\feyn@mfmodule\feyn@mfbasemodule
+ \feyn@alphabet{#1}\endgroup}
+\def\Feyn@#1{\let\feyn@mfmodule\feyn@mfbasemodule
+ \Feyn@alphabet{#1}\endgroup}
+\def\FEYN@#1{\let\feyn@mfmodule\feyn@mfextendedmodule
+ \FEYN@alphabet{#1}\endgroup}
+\DeclareMathSymbol{\FeynSpaceChar}{\mathord}{feynman}{"20}
\setbox0=\hbox{$\FeynSpaceChar$}
-\newdimen\feyn@mfmodule \feyn@mfmodule=\wd0
+\newdimen\feyn@mfbasemodule \feyn@mfbasemodule=\wd0
\newdimen\feyn@module \feyn@module=2\wd0
\newdimen\feyn@maxis \feyn@maxis=\ht0
+\DeclareMathSymbol{\FeynxSpaceChar}{\mathord}{feynmanextended}{"20}
+\setbox0=\hbox{$\FeynxSpaceChar$}
+\newdimen\feyn@mfextendedmodule \feyn@mfextendedmodule=\wd0
{\catcode`\!=\active
\gdef\Diagram{%
\begingroup % ends in \Diagram@
\catcode`\!=\active
\let!\momentum
- \Diagram@}}
-\def\Diagram@#1{\setbox0=\hbox{\vbox{\offinterlineskip \let\\\cr
- \halign{&$\displaystyle\feyn{##}$\cr #1\crcr}}}%
+ % \Diagram@
+ \@ifnextchar[\Diagram@{\Diagram@[centre]}%]
+ }}
+\let\Diagram@pos@centre\vcenter
+\let\Diagram@pos@center\vcenter %for Webster fans
+\let\Diagram@pos@bottom\relax
+\def\Diagram@[#1]#2{\setbox0=\hbox{\vbox{\offinterlineskip \let\\\cr
+ \halign{&$\displaystyle\feyn{##}$\cr #2\crcr}}}%
\@tempdima=\ht0
\advance\@tempdima by 2\feyn@maxis \ht0=\@tempdima
- \vcenter{\box0}%
+ % no error checking -- unrecognised placement specifiers just expand to \relax
+ \csname Diagram@pos@#1\endcsname{\box0}%
+ \endgroup}% end group begun in \Diagram
+{\catcode`\!=\active
+ \gdef\DIAGRAM{%
+ \begingroup % ends in \Diagram@
+ \catcode`\!=\active
+ \let!\momentum
+ % \DIAGRAM@
+ \@ifnextchar[\DIAGRAM@{\DIAGRAM@[centre]}%]
+ }}
+\def\DIAGRAM@[#1]#2{\setbox0=\hbox{\vbox{\offinterlineskip \let\\\cr
+ \halign{&$\displaystyle\FEYN{##}$\cr #2\crcr}}}%
+ \@tempdima=\ht0
+ \advance\@tempdima by 2\feyn@maxis \ht0=\@tempdima
+ \csname Diagram@pos@#1\endcsname{\box0}%
\endgroup}% end group begun in \Diagram
\def\maxis#1{\raise\feyn@maxis \hbox{$#1$}}
-\newdimen\feyn@nudge \feyn@nudge=\feyn@mfmodule \divide\feyn@nudge by 3
+\def\belowl#1{%
+ \ifdim\feyn@mfmodule=\feyn@mfbasemodule
+ \let\@next\feyn
+ \else
+ \let\@next\FEYN
+ \fi
+ \setbox0\hbox{$\@next{#1}$}%
+ \hskip-\wd0 \lower\ht0\box0
+}
+\def\belowr#1{%
+ \ifdim\feyn@mfmodule=\feyn@mfbasemodule
+ \let\@next\feyn
+ \else
+ \let\@next\FEYN
+ \fi
+ \setbox0\hbox{$\@next{#1}$}%
+ \@tempdima=\wd0
+ \lower\ht0\box0
+ \hskip-\@tempdima
+}
+\newdimen\feyn@nudge
+ \feyn@nudge=\feyn@mfbasemodule \divide\feyn@nudge by 3
\def\feyn@pos@top#1#2#3{% top
\leavevmode
\@tempdima=#2\feyn@mfmodule \advance\@tempdima\feyn@nudge
@@ -166,84 +214,93 @@
\csname feyn@pos@\ifx\@tempa\@empty #4\else\@tempa\fi\endcsname
{#2}{#3}{##1}%
#1}}
-\feyn@annotation{f}{0.99974}{0.35}{top}% "f"
-\feyn@annotation{fA}{0.99974}{0.35}{top}% "F"
-\feyn@annotation{fV}{0.99974}{0.35}{top}% 6
-\feyn@annotation{fu}{0.70692}{0.95692}{ulft}% "e"
-\feyn@annotation{fuA}{0.70692}{0.95692}{ulft}% "E"
-\feyn@annotation{fuV}{0.70692}{0.95692}{ulft}% 5
-\feyn@annotation{fd}{0.70692}{0.95692}{urt}% "d"
-\feyn@annotation{fdA}{0.70692}{0.95692}{urt}% "D"
-\feyn@annotation{fdV}{0.70692}{0.95692}{urt}% 4
-\feyn@annotation{fv}{0}{1.24974}{urt}% "b"
-\feyn@annotation{fvA}{0}{1.24974}{urt}% "B"
-\feyn@annotation{fvV}{0}{1.24974}{urt}% 2
-\feyn@annotation{m}{0.99974}{0.32802}{top}% "m"
-\feyn@annotation{mA}{0.99974}{0.32802}{top}% "M"
-\feyn@annotation{mV}{0.99974}{0.32802}{top}% 13
-\feyn@annotation{ms}{0.49986}{0.32802}{top}% 11
-\feyn@annotation{fl}{0}{1.85}{top}% "l"
-\feyn@annotation{flA}{0}{1.85}{top}% "L"
-\feyn@annotation{flV}{0}{1.85}{top}% 12
-\feyn@annotation{flu}{0}{-1.35}{bot}% "n"
-\feyn@annotation{fluA}{0}{-1.35}{bot}% "N"
-\feyn@annotation{fluV}{0}{-1.35}{bot}% 14
-\feyn@annotation{flS}{0}{1.23335}{top}% "o"
-\feyn@annotation{flSA}{0}{1.23335}{top}% "O"
-\feyn@annotation{flSV}{0}{1.23335}{top}% 15
-\feyn@annotation{flSu}{0}{-0.90001}{bot}% "w"
-\feyn@annotation{flSuA}{0}{-0.90001}{bot}% "W"
-\feyn@annotation{flSuV}{0}{-0.90001}{bot}% 23
-\feyn@annotation{g}{0.99974}{0.45}{top}% "g"
-\feyn@annotation{gA}{0.99974}{0.45}{top}% "G"
-\feyn@annotation{gV}{0.99974}{0.45}{top}% 7
-\feyn@annotation{gu}{0.70692}{0.95692}{ulft}% "u"
-\feyn@annotation{guA}{0.70692}{0.95692}{ulft}% "U"
-\feyn@annotation{guV}{0.70692}{0.95692}{ulft}% 21
-\feyn@annotation{gd}{0.70692}{0.95692}{urt}% "v"
-\feyn@annotation{gdA}{0.70692}{0.95692}{urt}% "V"
-\feyn@annotation{gdV}{0.70692}{0.95692}{urt}% 22
-\feyn@annotation{gv}{0}{1.24974}{urt}% "}"
-\feyn@annotation{gvA}{0}{1.24974}{urt}% "]"
-\feyn@annotation{gvV}{0}{1.24974}{urt}% 29
-\feyn@annotation{g1}{-1.41422}{1.66422}{ulft}% "q"
-\feyn@annotation{g1A}{-1.41422}{1.66422}{ulft}% "Q"
-\feyn@annotation{g1V}{-1.41422}{1.66422}{ulft}% 17
-\feyn@annotation{g2}{1.41422}{1.66422}{urt}% "r"
-\feyn@annotation{g2A}{1.41422}{1.66422}{urt}% "R"
-\feyn@annotation{g2V}{1.41422}{1.66422}{urt}% 18
-\feyn@annotation{g3}{1.41422}{-1.16422}{lrt}% "s"
-\feyn@annotation{g3A}{1.41422}{-1.16422}{lrt}% "S"
-\feyn@annotation{g3V}{1.41422}{-1.16422}{lrt}% 19
-\feyn@annotation{g4}{-1.41422}{-1.16422}{llft}% "t"
-\feyn@annotation{g4A}{-1.41422}{-1.16422}{llft}% "T"
-\feyn@annotation{g4V}{-1.41422}{-1.16422}{llft}% 20
-\feyn@annotation{gl}{0}{2.25}{urt}% "y"
-\feyn@annotation{glA}{0}{2.25}{urt}% "Y"
-\feyn@annotation{glV}{0}{2.25}{urt}% 25
-\feyn@annotation{glu}{0}{-1.75}{llft}% "z"
-\feyn@annotation{gluA}{0}{-1.75}{llft}% "Z"
-\feyn@annotation{gluV}{0}{-1.75}{llft}% 26
-\feyn@annotation{glB}{0}{2.91667}{urt}% "{"
-\feyn@annotation{glBA}{0}{2.91667}{urt}% "["
-\feyn@annotation{glBV}{0}{2.91667}{urt}% 27
-\feyn@annotation{glS}{0}{1.5833}{llft}% "|"
-\feyn@annotation{glSA}{0}{1.5833}{llft}% "\"
-\feyn@annotation{glSV}{0}{1.5833}{llft}% 28
-\feyn@annotation{h}{0.99974}{0.25}{top}% "h"
-\feyn@annotation{hA}{0.99974}{0.25}{top}% "H"
-\feyn@annotation{hV}{0.99974}{0.25}{top}% 8
-\feyn@annotation{hu}{0.70464}{0.95464}{ulft}% "i"
-\feyn@annotation{huA}{0.70464}{0.95464}{ulft}% "I"
-\feyn@annotation{huV}{0.70464}{0.95464}{ulft}% 9
-\feyn@annotation{hd}{0.70464}{0.95464}{urt}% "j"
-\feyn@annotation{hdA}{0.70464}{0.95464}{urt}% "J"
-\feyn@annotation{hdV}{0.70464}{0.95464}{urt}% 10
-\feyn@annotation{hs}{0.49986}{0.25}{top}% "K"
-\feyn@annotation{c}{0.65044}{0.90044}{top}% "c"
-\feyn@annotation{p}{0.65}{0.9}{top}% "p"
-\feyn@annotation{P}{0.65044}{0.90044}{top}% "P"
-\feyn@annotation{x}{0}{0.55641}{top}% "x"
+\feyn@annotation{f}{0.99974}{0.35}{top}% 102 = "f"
+\feyn@annotation{fA}{0.99974}{0.35}{top}% 70 = "F"
+\feyn@annotation{fV}{0.99974}{0.35}{top}% 6 = 6
+\feyn@annotation{flo}{0}{2.25}{top}% 107 = "k"
+\feyn@annotation{floA}{0}{2.25}{top}% 75 = "K"
+\feyn@annotation{floV}{0}{2.25}{top}% 11 = 11
+\feyn@annotation{fu}{0.70692}{0.95692}{ulft}% 101 = "e"
+\feyn@annotation{fuA}{0.70692}{0.95692}{ulft}% 69 = "E"
+\feyn@annotation{fuV}{0.70692}{0.95692}{ulft}% 5 = 5
+\feyn@annotation{fd}{0.70692}{0.95692}{urt}% 100 = "d"
+\feyn@annotation{fdA}{0.70692}{0.95692}{urt}% 68 = "D"
+\feyn@annotation{fdV}{0.70692}{0.95692}{urt}% 4 = 4
+\feyn@annotation{fv}{0}{1.24974}{urt}% 98 = "b"
+\feyn@annotation{fvA}{0}{1.24974}{urt}% 66 = "B"
+\feyn@annotation{fvV}{0}{1.24974}{urt}% 2 = 2
+\feyn@annotation{m}{0.99974}{0.32802}{top}% 109 = "m"
+\feyn@annotation{mA}{0.99974}{0.32802}{top}% 77 = "M"
+\feyn@annotation{mV}{0.99974}{0.32802}{top}% 13 = 13
+\feyn@annotation{ms}{0.49986}{0.32802}{top}% 35 = "#"
+\feyn@annotation{fl}{0}{1.75}{top}% 108 = "l"
+\feyn@annotation{flA}{0}{1.75}{top}% 76 = "L"
+\feyn@annotation{flV}{0}{1.75}{top}% 12 = 12
+\feyn@annotation{flu}{0}{-1.25}{bot}% 110 = "n"
+\feyn@annotation{fluA}{0}{-1.25}{bot}% 78 = "N"
+\feyn@annotation{fluV}{0}{-1.25}{bot}% 14 = 14
+\feyn@annotation{flS}{0}{1.16667}{top}% 111 = "o"
+\feyn@annotation{flSA}{0}{1.16667}{top}% 79 = "O"
+\feyn@annotation{flSV}{0}{1.16667}{top}% 15 = 15
+\feyn@annotation{flSu}{0}{-0.83334}{bot}% 119 = "w"
+\feyn@annotation{flSuA}{0}{-0.83334}{bot}% 87 = "W"
+\feyn@annotation{flSuV}{0}{-0.83334}{bot}% 23 = 23
+\feyn@annotation{g}{0.99974}{0.45}{top}% 103 = "g"
+\feyn@annotation{gA}{0.99974}{0.45}{top}% 71 = "G"
+\feyn@annotation{gV}{0.99974}{0.45}{top}% 7 = 7
+\feyn@annotation{gu}{0.70692}{0.95692}{ulft}% 117 = "u"
+\feyn@annotation{guA}{0.70692}{0.95692}{ulft}% 85 = "U"
+\feyn@annotation{guV}{0.70692}{0.95692}{ulft}% 21 = 21
+\feyn@annotation{gd}{0.70692}{0.95692}{urt}% 118 = "v"
+\feyn@annotation{gdA}{0.70692}{0.95692}{urt}% 86 = "V"
+\feyn@annotation{gdV}{0.70692}{0.95692}{urt}% 22 = 22
+\feyn@annotation{gv}{0}{1.24974}{urt}% 125 = "}"
+\feyn@annotation{gvA}{0}{1.24974}{urt}% 93 = "]"
+\feyn@annotation{gvV}{0}{1.24974}{urt}% 29 = 29
+\feyn@annotation{g1}{-1}{1.98206}{ulft}% 113 = "q"
+\feyn@annotation{g1A}{-1}{1.98206}{ulft}% 81 = "Q"
+\feyn@annotation{g1V}{-1}{1.98206}{ulft}% 17 = 17
+\feyn@annotation{g2}{1.41422}{1.66422}{urt}% 114 = "r"
+\feyn@annotation{g2A}{1.41422}{1.66422}{urt}% 82 = "R"
+\feyn@annotation{g2V}{1.41422}{1.66422}{urt}% 18 = 18
+\feyn@annotation{g3}{1.41422}{-1.16422}{lrt}% 115 = "s"
+\feyn@annotation{g3A}{1.41422}{-1.16422}{lrt}% 83 = "S"
+\feyn@annotation{g3V}{1.41422}{-1.16422}{lrt}% 19 = 19
+\feyn@annotation{g4}{-1}{-1.48206}{llft}% 116 = "t"
+\feyn@annotation{g4A}{-1}{-1.48206}{llft}% 84 = "T"
+\feyn@annotation{g4V}{-1}{-1.48206}{llft}% 20 = 20
+\feyn@annotation{gl}{0}{1.75}{urt}% 121 = "y"
+\feyn@annotation{glA}{0}{1.75}{urt}% 89 = "Y"
+\feyn@annotation{glV}{0}{1.75}{urt}% 25 = 25
+\feyn@annotation{glu}{0}{-1.25}{llft}% 122 = "z"
+\feyn@annotation{gluA}{0}{-1.25}{llft}% 90 = "Z"
+\feyn@annotation{gluV}{0}{-1.25}{llft}% 26 = 26
+\feyn@annotation{glB}{1.02051}{2.71367}{urt}% 123 = "{"
+\feyn@annotation{glBA}{1.02051}{2.71367}{urt}% 91 = "["
+\feyn@annotation{glBV}{1.02051}{2.71367}{urt}% 27 = 27
+\feyn@annotation{glS}{0}{1.5833}{llft}% 124 = "|"
+\feyn@annotation{glSA}{0}{1.5833}{llft}% 92 = "\"
+\feyn@annotation{glSV}{0}{1.5833}{llft}% 28 = 28
+\feyn@annotation{h}{0.99974}{0.25}{top}% 104 = "h"
+\feyn@annotation{hA}{0.99974}{0.25}{top}% 72 = "H"
+\feyn@annotation{hV}{0.99974}{0.25}{top}% 8 = 8
+\feyn@annotation{hu}{0.70464}{0.95464}{ulft}% 105 = "i"
+\feyn@annotation{huA}{0.70464}{0.95464}{ulft}% 73 = "I"
+\feyn@annotation{huV}{0.70464}{0.95464}{ulft}% 9 = 9
+\feyn@annotation{hd}{0.70464}{0.95464}{urt}% 106 = "j"
+\feyn@annotation{hdA}{0.70464}{0.95464}{urt}% 74 = "J"
+\feyn@annotation{hdV}{0.70464}{0.95464}{urt}% 10 = 10
+\feyn@annotation{hl}{0}{1.75}{top}% 126 = "~"
+\feyn@annotation{hlA}{0}{1.75}{top}% 94 = "^"
+\feyn@annotation{hlV}{0}{1.75}{top}% 30 = 30
+\feyn@annotation{hlu}{0}{-1.25}{top}% 127 = 127
+\feyn@annotation{hluA}{0}{-1.25}{top}% 95 = "_"
+\feyn@annotation{hluV}{0}{-1.25}{top}% 31 = 31
+\feyn@annotation{hs}{0.49986}{0.25}{top}% 34 = """
+\feyn@annotation{c}{0.65044}{0.90044}{top}% 99 = "c"
+\feyn@annotation{p}{0.65}{0.9}{top}% 112 = "p"
+\feyn@annotation{P}{0.65044}{0.90044}{top}% 80 = "P"
+\feyn@annotation{x}{0}{0.55641}{top}% 120 = "x"
\def\momentum{\@ifnextchar[\momentum@{\momentum@[]}}
\def\momentum@[#1]#2#3{%
\def\@tempa{#1}