pnas/preamble.tex
changeset 611 fd6e53389f2c
parent 602 109ecc26c50d
child 614 ab6bfadab93e
equal deleted inserted replaced
608:455106e40a61 611:fd6e53389f2c
    37 \newcommand{\directSum}{\oplus}
    37 \newcommand{\directSum}{\oplus}
    38 \newcommand{\DirectSum}{\bigoplus}
    38 \newcommand{\DirectSum}{\bigoplus}
    39 \newcommand{\tensor}{\otimes}
    39 \newcommand{\tensor}{\otimes}
    40 \newcommand{\Tensor}{\bigotimes}
    40 \newcommand{\Tensor}{\bigotimes}
    41 
    41 
       
    42 \newcommand{\Bord}{\operatorname{Bord}}
       
    43 
    42 \newcommand{\selfarrow}{\ensuremath{\smash{\tikz[baseline]{\clip (0,0.36) rectangle (0.39,-0.16); \draw[->] (0,0.2) .. controls (0.5,0.6) and (0.5,-0.4) .. (0,0);}}}}
    44 \newcommand{\selfarrow}{\ensuremath{\smash{\tikz[baseline]{\clip (0,0.36) rectangle (0.39,-0.16); \draw[->] (0,0.2) .. controls (0.5,0.6) and (0.5,-0.4) .. (0,0);}}}}
    43 
    45 
       
    46 \newcommand{\bd}{\partial}
    44 \newcommand{\bdy}{\partial}
    47 \newcommand{\bdy}{\partial}
       
    48 \newcommand{\du}{\sqcup}
    45 \newcommand{\compose}{\circ}
    49 \newcommand{\compose}{\circ}
    46 \newcommand{\eset}{\emptyset}
    50 \newcommand{\eset}{\emptyset}
       
    51 \def\spl{_\pitchfork}
    47 
    52 
    48 \newcommand{\id}{\boldsymbol{1}}
    53 \newcommand{\id}{\boldsymbol{1}}
    49 
    54 
    50 \newtheorem{prop}{Proposition}
    55 \newtheorem{prop}{Proposition}
    51 \newtheorem{property}[prop]{Property}
    56 \newtheorem{property}[prop]{Property}
    69 \def\mathrlapinternal#1#2{%
    74 \def\mathrlapinternal#1#2{%
    70 \rlap{$\mathsurround=0pt#1{#2}$}}
    75 \rlap{$\mathsurround=0pt#1{#2}$}}
    71 \def\mathclapinternal#1#2{%
    76 \def\mathclapinternal#1#2{%
    72 \clap{$\mathsurround=0pt#1{#2}$}}
    77 \clap{$\mathsurround=0pt#1{#2}$}}
    73 
    78 
       
    79 % tricky way to iterate macros over a list
       
    80 \def\semicolon{;}
       
    81 \def\applytolist#1{
       
    82     \expandafter\def\csname multi#1\endcsname##1{
       
    83         \def\multiack{##1}\ifx\multiack\semicolon
       
    84             \def\next{\relax}
       
    85         \else
       
    86             \csname #1\endcsname{##1}
       
    87             \def\next{\csname multi#1\endcsname}
       
    88         \fi
       
    89         \next}
       
    90     \csname multi#1\endcsname}
       
    91 
       
    92 % \def\cA{{\cal A}} for A..Z
       
    93 \def\calc#1{\expandafter\def\csname c#1\endcsname{{\mathcal #1}}}
       
    94 \applytolist{calc}QWERTYUIOPLKJHGFDSAZXCVBNM;
       
    95 
       
    96 % \def\bbA{{\mathbb A}} for A..Z
       
    97 \def\bbc#1{\expandafter\def\csname bb#1\endcsname{{\mathbb #1}}}
       
    98 \applytolist{bbc}QWERTYUIOPLKJHGFDSAZXCVBNM;
       
    99 
       
   100 % \def\bA{{\mathbf A}} for A..Z
       
   101 \def\bc#1{\expandafter\def\csname b#1\endcsname{{\mathbf #1}}}
       
   102 \applytolist{bc}QWERTYUIOPLKJHGFDSAZXCVBNM;
       
   103 
       
   104 % \DeclareMathOperator{\pr}{pr} etc.
       
   105 \def\declaremathop#1{\expandafter\DeclareMathOperator\csname #1\endcsname{#1}}
       
   106 \applytolist{declaremathop}{im}{gl}{ev}{coinv}{tr}{rot}{Eq}{obj}{mor}{ob}{Rep}{Tet}{cat}{Maps}{Diff}{Homeo}{sign}{supp}{Nbd}{res}{rad}{Compat};
       
   107 
       
   108 % \todo, \nn and \noop
       
   109 \newcommand{\todo}[1]{\textbf{\color[rgb]{.8,.2,.5}\small TODO: #1}}
       
   110 \def\nn#1{{{\color[rgb]{.2,.5,.6} \small [[#1]]}}}
       
   111 \long\def\noop#1{}
       
   112 
       
   113 
       
   114 
    74 % references
   115 % references
    75 
   116 
    76 \newcommand{\arxiv}[1]{\href{http://arxiv.org/abs/#1}{\tt arXiv:\nolinkurl{#1}}}
   117 \newcommand{\arxiv}[1]{\href{http://arxiv.org/abs/#1}{\tt arXiv:\nolinkurl{#1}}}
    77 \newcommand{\doi}[1]{\href{http://dx.doi.org/#1}{{\tt DOI:#1}}}
   118 \newcommand{\doi}[1]{\href{http://dx.doi.org/#1}{{\tt DOI:#1}}}
    78 \newcommand{\euclid}[1]{\href{http://projecteuclid.org/euclid.cmp/#1}{{\tt at Project Euclid: #1}}}
   119 \newcommand{\euclid}[1]{\href{http://projecteuclid.org/euclid.cmp/#1}{{\tt at Project Euclid: #1}}}
    79 \newcommand{\mathscinet}[1]{\href{http://www.ams.org/mathscinet-getitem?mr=#1}{\tt #1}}
   120 \newcommand{\mathscinet}[1]{\href{http://www.ams.org/mathscinet-getitem?mr=#1}{\tt #1}}
    80 \newcommand{\googlebooks}[1]{(preview at \href{http://books.google.com/books?id=#1}{google books})}
   121 \newcommand{\googlebooks}[1]{(preview at \href{http://books.google.com/books?id=#1}{google books})}
    81 
   122 
    82 
       
    83 \newcommand{\todo}[1]{\textbf{\color[rgb]{.8,.2,.5}\small TODO: #1}}
       
    84 
   123 
    85 
   124 
    86 % figures
   125 % figures
    87 
   126 
    88 \newcommand{\mathfig}[2]{\ensuremath{\hspace{-3pt}\begin{array}{c}%
   127 \newcommand{\mathfig}[2]{\ensuremath{\hspace{-3pt}\begin{array}{c}%