\mathbb{C}\if\detokenize{#1}\detokenize{1}{}\else^{#1}\fi
}
+% The space of symmetric n-by-n matrices.
+\providecommand*{\Sn}[1][n]{
+ \mathcal{S}\if\detokenize{#1}\detokenize{1}{}\else^{#1}\fi
+}
%
% Basic set operations
\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}}_{+} }