]> gitweb.michael.orlitzky.com - mjotex.git/blobdiff - mjo-common.tex
mjo-common: prevent \Sn[1] and \Hn[1] from dropping their superscripts.
[mjotex.git] / mjo-common.tex
index 27c4c7b3f3d8ee8e81f03bab8f5df3afa6102e3d..5971547ed7ddacd1cc7e7739f40d08a32ce632d3 100644 (file)
@@ -5,9 +5,7 @@
 \def\havemjocommon{1}
 
 
-\ifx\mathbb\undefined
-  \usepackage{amsfonts}
-\fi
+\input{mjo-font} % amsfonts and \mathpzc
 
 \ifx\bigtimes\undefined
   \usepackage{mathtools}
 \fi
 
 
-% The space of real symmetric n-by-n matrices.
-\newcommand*{\Sn}[1][n]{
-  \mathcal{S}\if\detokenize{#1}\detokenize{1}{}\else^{#1}\fi
-}
-
+% The space of real symmetric n-by-n matrices. Does not reduce to
+% merely "S" when n=1 since S^{n} does not mean an n-fold cartesian
+% product of S^{1}.
+\newcommand*{\Sn}[1][n]{ \mathcal{S}^{#1} }
 \ifdefined\newglossaryentry
   \newglossaryentry{Sn}{
     name={\ensuremath{\Sn}},
   }
 \fi
 
-% The space of complex Hermitian n-by-n matrices.
-\newcommand*{\Hn}[1][n]{
-  \mathcal{H}\if\detokenize{#1}\detokenize{1}{}\else^{#1}\fi
-}
-
+% The space of complex Hermitian n-by-n matrices. Does not reduce to
+% merely "H" when n=1 since H^{n} does not mean an n-fold cartesian
+% product of H^{1}.
+\newcommand*{\Hn}[1][n]{ \mathcal{H}^{#1} }
 \ifdefined\newglossaryentry
   \newglossaryentry{Hn}{
     name={\ensuremath{\Hn}},
   }
 \fi
 
+
 %
 % Basic set operations
 %
 \newcommand*{\directsummany}[3]{ \binopmany{\bigoplus}{#1}{#2}{#3} }
 \newcommand*{\unionmany}[3]{ \binopmany{\bigcup}{#1}{#2}{#3} }
 
+\newcommand*{\powerset}[1]{\mathpzc{P}\of{{#1}}}
+\ifdefined\newglossaryentry
+  \newglossaryentry{powerset}{
+    name={\ensuremath{\powerset{X}}},
+    description={the ``powerset,'' or set of all subsets of $X$},
+    sort=p
+  }
+\fi
 
 % The four standard (UNLESS YOU'RE FRENCH) types of intervals along
 % the real line.