20

I want to write the power set of a set S as 2^S. But the 2 should be kind of calligraphic. I tried cal and mathcal but they do not work with numbers. Has anybody an idea?

2
  • 4
    Could you provide a visual example of what you're trying to accomplish? "Kind of calligraphic" is a pretty vague description... Sep 17, 2012 at 11:09
  • Just not a regular 2. And not just italic.
    – Jana
    Sep 17, 2012 at 11:28

1 Answer 1

28

Fonts "Zapf Chancery" or its successor "TeX Gyre Chorus" also contain some kind of "calligraphic" digits:

\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}

Result with TeX Gyre Chorus

2
  • 1
    Minor nit pick, but I think should be S = {0,1}. Feb 20, 2013 at 1:54
  • 2
    @PeterGrill S can be any set. Consider {0,1} as kind of selector that is applied on each element in S. Going through all combinations gets all subsets of S and as result the power set. Feb 20, 2013 at 9:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.