text/kw_macros.tex
author Scott Morrison <scott@tqft.net>
Wed, 30 Nov 2011 16:29:23 -0800
changeset 928 54503d88c969
parent 917 9d0b9ffcd86b
permissions -rw-r--r--
some figure todos, todone

%!TEX root = ../blob1.tex

%%%%% excerpts from KW's include file of standard macros
%%% (with various new ones added)

\def\z{\mathbb{Z}}
\def\r{\mathbb{R}}
\def\c{\mathbb{C}}
\def\t{\mathbb{T}}
\def\ebb{\mathbb{E}}

\def\k{{\bf k}}

\def\du{\sqcup}
\def\bd{\partial}
\def\sub{\subset}
\def\subeq{\subseteq}
\def\sup{\supset}
%\def\setmin{\smallsetminus}
\def\setmin{\setminus}
\def\ep{\epsilon}
\def\sgl{_\mathrm{gl}}
\def\op{^\mathrm{op}}
\def\deq{\stackrel{\mathrm{def}}{=}}
\def\pd#1#2{\frac{\partial #1}{\partial #2}}
%\def\lf{\overline{\cC}}
\def\lf{\cC}
\def\ot{\otimes}
\def\vphi{\varphi}
\def\inv{^{-1}}
\def\ol{\overline}
\def\BD{BD}
\def\bbc{{\mathcal{BBC}}}
\def\mbc{{\mathcal{MBC}}}
\def\vcone{\text{V-Cone}}

\def\spl{_\pitchfork}
\def\trans#1{_{\pitchfork #1}}

%\def\nn#1{{{\it \small [#1]}}}
\def\nn#1{{{\color[rgb]{.2,.5,.6} \small [[#1]]}}}
\long\def\noop#1{}

% equations
\newcommand{\eq}[1]{\begin{displaymath}#1\end{displaymath}}
\newcommand{\eqar}[1]{\begin{eqnarray*}#1\end{eqnarray*}}
\newcommand{\eqspl}[1]{\begin{displaymath}\begin{split}#1\end{split}\end{displaymath}}

% tricky way to iterate macros over a list
\def\semicolon{;}
\def\applytolist#1{
    \expandafter\def\csname multi#1\endcsname##1{
        \def\multiack{##1}\ifx\multiack\semicolon
            \def\next{\relax}
        \else
            \csname #1\endcsname{##1}
            \def\next{\csname multi#1\endcsname}
        \fi
        \next}
    \csname multi#1\endcsname}

% \def\cA{{\cal A}} for A..Z
\def\calc#1{\expandafter\def\csname c#1\endcsname{{\mathcal #1}}}
\applytolist{calc}QWERTYUIOPLKJHGFDSAZXCVBNM;

% \DeclareMathOperator{\pr}{pr} etc.
\def\declaremathop#1{\expandafter\DeclareMathOperator\csname #1\endcsname{#1}}
\applytolist{declaremathop}{im}{gl}{ev}{coinv}{tr}{rot}{Eq}{obj}{mor}{ob}{Rep}{Tet}{cat}{Maps}{Diff}{Homeo}{sign}{supp}{Nbd}{res}{rad}{Compat}{Coll}{Cone}{pr}{paths};

\DeclareMathOperator*{\colim}{colim}
\DeclareMathOperator*{\hocolim}{hocolim}

\DeclareMathOperator{\most}{most}
\DeclareMathOperator{\rest}{rest}


\DeclareMathOperator{\kone}{cone}

%%%%%% end excerpt