[Tex/LaTex] A hack for getting a *capital* Weierstrass P in order to represent the Power Set operation

math-operatorstypography

I've been reading around stack exchange trying to find out how to get the symbol I wanted for the power set operation in set theory.

In my opinion, the best and most standard symbol for this is the capital Weierstrass "P" (not to be confused with the lowercase one used for Weierstrass elliptical functions, which is produced by \wp in math mode). As far as I could find, there isn't a capital Weierstrass "P" out there. Other people have asked the same question, so I thought that I'd post my solution. I just took the lowercase Weierstrass "p", made it bigger, and raised it. The result is satisfactory:

\newcommand{\powerset}{\raisebox{.15\baselineskip}{\Large\ensuremath{\wp}}}

\begin{document}
Weierstrass p: lower, $\wp$, capital $\powerset$    
\end{document}

enter image description here

Best Answer

The usual markup for this is \mathcal{P} although a script P is also possible\mathscr in various versions:

enter image description here

\documentclass{article}
\usepackage[mathscr]{euscript}
\let\euscr\mathscr \let\mathscr\relax% just so we can load this and rsfs
\usepackage[scr]{rsfso}
\newcommand{\powerset}{\raisebox{.15\baselineskip}{\Large\ensuremath{\wp}}}
\begin{document}

$\mathcal{P}(X)$ 

$\euscr{P}(X)$

$\mathscr{P}(X)$

$\powerset(X)$


\bigskip\hrule\bigskip
\tiny

$\mathcal{P}(X)$ 

$\euscr{P}(X)$

$\mathscr{P}(X)$

$\powerset(X)$


\end{document}