summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/genmisc/anti.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/generic/genmisc/anti.tex')
-rw-r--r--Master/texmf-dist/tex/generic/genmisc/anti.tex19
1 files changed, 19 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/generic/genmisc/anti.tex b/Master/texmf-dist/tex/generic/genmisc/anti.tex
new file mode 100644
index 00000000000..52bf0035494
--- /dev/null
+++ b/Master/texmf-dist/tex/generic/genmisc/anti.tex
@@ -0,0 +1,19 @@
+
+%%%%%%%%%%%%%%%%%%%%%%%%% CUT HERE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% \anti -- Definition.
+% Produce a superscripted antiparticle: #1 with an overbar and a super-
+% script #2. Looks better than \overline{{#1}^{#2}} (bar does not extend over
+% superscript) or {\overline {#1}}^{#2} (superscript does not stick up above
+% bar; in fact, superscript is at same height as for the charge conjugate,
+% {#1}^{#2}). If you want subscripts too, you'll have to modify
+% this definition to take a third argument. Math mode is assumed.
+% Macro by Rich Holmes (rich@suhep.bitnet), 1/88
+%
+\def\anti#1#2{\vbox{\ialign{##\crcr
+ \hrulefill$\smash{\phantom{\scriptstyle#2}}$\crcr % the right length bar
+ \noalign{\kern-1pt\nointerlineskip\vskip 0.25ex} % the right spacing
+ $\hfil{#1}^{#2}\hfil$\crcr}}} % the right text
+%%%%%%%%%%%%%%%%%%%%%%%% CUT HERE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\def\Kzerobar{\anti{K}{0}}
+\def\Dstarbar{\anti{D}{*}} % et cetera
+%%%%%%%%%%%%%%%%%%%%%%%% CUT HERE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%