2

This question asks for the LaTeX symbol for the "P" typically used in the Weierstrass ℘-function. It concludes to use the command \wp.

What can I do to get a similar-looking "Q"? Detexify does not seem to help, and as far as I can see looking through the adjacent characters to P in Unicode (see here, it is referred to as "Script Capital P"), there is no such Unicode character for Q. (There is one for R, namely "Script Capital R").

So, what should I type? The naïve thing, \wq, didn't work.

2 Answers 2

5

Using Sandy G.' idea, but avoiding to change all \mathcal symbols, I'd borrow just the Q from dutchcal.

\documentclass{article}
\usepackage{amsmath}

\makeatletter
\newcommand{\dutchcal@scale}{0.85}
\DeclareRobustCommand{\wq}{\mathord{\mathpalette\wq@\relax}}
\newcommand{\wq@}[2]{%
  \begingroup
  \sbox\z@{$\m@th#1\wp$}%
  \raisebox{\dimeval{\depth-\dp\z@}}{%
    $\m@th#1\text{\usefont{U}{dutchcal}{m}{n}Q}$%
  }%
  \endgroup
}
\makeatother

\begin{document}

$\wp\wq$

$X_{\wp\wq}$

\end{document}

enter image description here

4

As @egreg mentions, this code will change all the \mathcal symbols, which may not be desired.

The dutchcal Q is similar, but needs to be lowered to mimic \wp.

enter image description here

\documentclass{article}

\usepackage{dutchcal}

\newcommand{\wq}{\raisebox{-.5ex}{$\mathcal{Q}$}}

\begin{document}

$\wp\wq$

\end{document}

You could also consider rsfso. Other font options are here.

enter image description here

\documentclass{article}

\usepackage[cal=rsfso,calscaled=.94]{mathalpha}

\newcommand{\wq}{\raisebox{-.5ex}{$\mathcal{Q}$}}

\begin{document}

$\wp\wq$

\end{document}
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .