量子场论中的收缩算符在latex中的表示
(2009-12-24 17:36:21)
标签:
收缩算符latex量子场论danschroeder教育 |
% Macros for "contractions", by Dan Schroeder
% These are a total kludge--use at your own risk!
\newif\ifContLineOne
\newif\ifContLineTwo
\newif\ifContLineThree
% Macro to draw horizontal lines, continuing all contractions in
progress.
% Parameter is the symbols to go underneath.
% are separated by 3.2pt of space.
\def\conC#1{\vbox{\ialign{##\crcr
% Internal macro to draw vertical legs.
% bottom of leg.
% of top of leg, and must be adjusted if these macros are used
under
% different vertical spacing conditions.
\def\DrawLeg#1#2{
% Macro to begin a new contraction.
% (1, 2, or 3); second parameter is the symbol(s) to go
underneath
\def\begC#1#2{\setbox0 =\hbox{$\textstyle{#2}$}
% Macro to end a contraction; same parameters as \begC.
\def\endC#1#2{\setbox0 =\hbox{$\textstyle{#2}$}
\def\backskip{\vskip -3.6pt}
% when an equation has only first- or second-level
contractions
\def\bbackskip{\vskip -7.2pt}
% Examples
Here's a simple contraction using only the first (lowest)
level:
\bbackskip
$$
\begC1{\phi_1}\conC{\phi_2\phi_3}\endC1{\phi_4}
$$
And here's a complicated example using all three levels:
$$
\langle0|\, \begC2{\phi(x)}\begC3{\phi(y)}\conC{\,{1\over3!}
$$
%\bye
鏀剁缉绠楃鐢ㄦ硶锛?\backslash begC*\{\} $鍜?$\backslash endC*\{\}$鏍囩ず鏀剁缉鐨勭畻绗︾殑涓ょ锛屼腑闂寸殑閮ㄥ垎濡傛灉涓嶅寘鎷湪浠绘剰涓€涓敹缂╃畻绗︾殑鎷彿涓紝闇€瑕佺敤\conC{}鎷捣鏉ワ紝鍚﹀垯鏀剁缉绠楃妯嚎鍑虹幇闂存柇銆傛瘮杈

加载中…