equal
deleted
inserted
replaced
|
1 |
|
2 %%%%% excerpts from KW's include file of standard macros |
|
3 |
|
4 \def\z{\mathbb{Z}} |
|
5 \def\r{\mathbb{R}} |
|
6 \def\c{\mathbb{C}} |
|
7 \def\t{\mathbb{T}} |
|
8 |
|
9 \def\du{\sqcup} |
|
10 \def\bd{\partial} |
|
11 \def\sub{\subset} |
|
12 \def\sup{\supset} |
|
13 %\def\setmin{\smallsetminus} |
|
14 \def\setmin{\setminus} |
|
15 \def\ep{\epsilon} |
|
16 \def\sgl{_\mathrm{gl}} |
|
17 \def\op{^\mathrm{op}} |
|
18 \def\deq{\stackrel{\mathrm{def}}{=}} |
|
19 \def\pd#1#2{\frac{\partial #1}{\partial #2}} |
|
20 \def\lf{\overline{\cC}} |
|
21 |
|
22 \def\nn#1{{{\it \small [#1]}}} |
|
23 \long\def\noop#1{} |
|
24 |
|
25 % equations |
|
26 \newcommand{\eq}[1]{\begin{displaymath}#1\end{displaymath}} |
|
27 \newcommand{\eqar}[1]{\begin{eqnarray*}#1\end{eqnarray*}} |
|
28 \newcommand{\eqspl}[1]{\begin{displaymath}\begin{split}#1\end{split}\end{displaymath}} |
|
29 |
|
30 % tricky way to iterate macros over a list |
|
31 \def\semicolon{;} |
|
32 \def\applytolist#1{ |
|
33 \expandafter\def\csname multi#1\endcsname##1{ |
|
34 \def\multiack{##1}\ifx\multiack\semicolon |
|
35 \def\next{\relax} |
|
36 \else |
|
37 \csname #1\endcsname{##1} |
|
38 \def\next{\csname multi#1\endcsname} |
|
39 \fi |
|
40 \next} |
|
41 \csname multi#1\endcsname} |
|
42 |
|
43 % \def\cA{{\cal A}} for A..Z |
|
44 \def\calc#1{\expandafter\def\csname c#1\endcsname{{\mathcal #1}}} |
|
45 \applytolist{calc}QWERTYUIOPLKJHGFDSAZXCVBNM; |
|
46 |
|
47 % \DeclareMathOperator{\pr}{pr} etc. |
|
48 \def\declaremathop#1{\expandafter\DeclareMathOperator\csname #1\endcsname{#1}} |
|
49 \applytolist{declaremathop}{pr}{im}{gl}{ev}{coinv}{tr}{rot}{Eq}{obj}{mor}{ob}{Rep}{Tet}{cat}{Maps}{Diff}{sign}{supp}; |
|
50 |
|
51 |
|
52 |
|
53 %%%%%% end excerpt |
|
54 |
|
55 |