我想将集合 S 的幂集写为 2^S。但 2 应该是书法风格。我试过 cal 和 mathcal,但它们不适用于数字。有人有想法吗?
答案1
字体“Zapf Chancery”或其后继者“TeX Gyre Chorus”也包含某种“书法”数字:
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\newcommand*{\textcal}[1]{%
% family qzc: Font TeX Gyre Chorus (package tgchorus)
% family pzc: Font Zapf Chancery (package chancery)
\textit{\fontfamily{qzc}\selectfont#1}%
}
\begin{document}
$\mathcal{P}(S) = \textcal{2}^S \qquad
\text{with }\textcal{2} = \{0,1\}$
\end{document}