-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathatlasmath.sty
30 lines (30 loc) · 1.48 KB
/
atlasmath.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
%
% +--------------------------------------------------------------------+
% | |
% | "Box-squared" operator, as in Klein-Gordon. Command is "\boxsq". |
% | |
% +--------------------------------------------------------------------+
%
\newbox\boxsqbox
\newdimen\boxsize\boxsize=1.2ex%
\def\boxop{%
\setbox\boxsqbox=\vbox{\hrule depth0.8pt width0.8\boxsize height0pt%
\kern0.8\boxsize
\hrule height0.8pt width0.8\boxsize depth0pt}%
\hbox{%
\vrule height1.0\boxsize width0.8pt depth0pt%
\copy\boxsqbox
\vrule height1.0\boxsize width0.8pt depth0pt\kern1.5pt}}%
\newcommand*{\boxsq}{\ensuremath{\boxop^2}\xspace}
% +--------------------------------------------------------------------+
% | |
% | Theoretical notations |
% | |
% +--------------------------------------------------------------------+
%
\newcommand{\spinor}[1]{\ensuremath{\left(\begin{matrix}#1_1\cr#1_2\cr#1_3\cr#1_4\cr\end{matrix}\right)}}
\def\pmb#1{\setbox0=\hbox{$#1$}% This is "poor man's boldface".
\kern-.025em\copy0\kern-1.0\wd0%
\kern.05em\copy0\kern-1.0\wd0%
\kern-.025em\raise.0433em\box0}
\newcommand*{\grad}{\pmb{\nabla}\xspace}