]> gitweb.michael.orlitzky.com - mjotex.git/blobdiff - mjo-cone.tex
mjo-common: prevent \Sn[1] and \Hn[1] from dropping their superscripts.
[mjotex.git] / mjo-cone.tex
index b770d753ec3ad8855a0ab91081550ee106737056..703ecf44d0d63f2a78ddc51e9a2fac9238adc3f6 100644 (file)
@@ -4,8 +4,13 @@
 % The operator families Z(K), LL(K), etc. can technically be defined on
 % sets other than cones, but nobody cares.
 %
+\ifx\havemjocone\undefined
+\def\havemjocone{1}
 
-\usepackage{amssymb} % \succcurlyeq and friends
+
+\ifx\succcurlyeq\undefined
+  \usepackage{amssymb} % \succcurlyeq, \preccurlyeq
+\fi
 
 \input{mjo-common}
 
 \newcommand*{\Lnplus}[1][n]{ \mathcal{L}^{{#1}}_{+} }
 
 % The PSD cone in a space of symmetric matrices.
-\newcommand*{\Snplus}[1][n]{ \mathcal{S}^{{#1}}_{+} }
+\newcommand*{\Snplus}[1][n]{ \Sn[#1]_{+} }
 
 % The PSD cone in a space of Hermitian matrices.
-\newcommand*{\Hnplus}[1][n]{ \mathcal{H}^{{#1}}_{+} }
+\newcommand*{\Hnplus}[1][n]{ \Hn[#1]_{+} }
 
 
 %
@@ -67,3 +72,6 @@
 \newcommand*{\gtcone}{\succ}
 \newcommand*{\lecone}{\preccurlyeq}
 \newcommand*{\ltcone}{\prec}
+
+
+\fi