Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
4  
Could you provide a visual example of what you're trying to accomplish? "Kind of calligraphic" is a pretty vague description... –  Tomas Lycken Sep 17 '12 at 11:09
    
Just not a regular 2. And not just italic. –  Jana Sep 17 '12 at 11:28
add comment

1 Answer 1

up vote 24 down vote accepted

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

share|improve this answer
1  
Minor nit pick, but I think should be S = {0,1}. –  Peter Grill Feb 20 '13 at 1:54
1  
@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. –  Heiko Oberdiek Feb 20 '13 at 9:10
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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