3

\scriptP \scriptP in Word,

\scriptp \scriptp in Word.

What are the representations in LaTeX?

3
  • 1
    tried \mathcal{P}, but seems not the same and it only has upper-case symbols.
    – user156326
    Mar 7, 2018 at 7:42
  • 2
    \mathcal is the same but you are probably using a different font, word is most likely using cambria math which isn't easily available in pdflatex but can be used from xelatex or lualatex Mar 7, 2018 at 7:50
  • 1
    for lowercase see for example tex.stackexchange.com/questions/373513/… Mar 7, 2018 at 7:53

4 Answers 4

4

The default math font in Word in Cambria. If you use Cambria, then these symbols are available. I show how to use Cambria with ConTeXt and perhaps someone could add how to use it in LuaLaTeX and XeLaTeX.

\setupbodyfont[cambria]
\starttext
${\cal Pp}$
\stoptext

which gives

enter image description here

1
  • See this answer for an equivalent solution that's based on XeLaTeX or LuaLaTeX. :-)
    – Mico
    Mar 7, 2018 at 15:46
2

Here's the LuaLaTeX/XeLaTeX analogue to Aditya's conTeXt-based answer. Observe the use of the Cambria Math math font and the \mathscr ("script math") macro.

Incidentally, the third character shown below, sometimes (frequently??) called "Weierstrass-p", is available in basic LaTeX -- no need to employ the Cambria Math Opentype font...

enter image description here

%%% compile with either LuaLaTeX or XeLaTeX
\documentclass{article}
\usepackage{unicode-math}
\setmainfont{Cambria} % optional
\setmathfont{Cambria Math}

\begin{document}
$\mathscr{P}$ $\mathscr{p}$ $\wp$
\end{document}
2
  • the last "p" is used for weierstrass elliptic functions (see en.wikipedia.org/wiki/Weierstrass_p ), it shouldn't be used for anything else. (unicode originally had it assigned to the "power set", but that's uppercase, as well as having not at all the same meaning; unicode is fixed now.) Mar 7, 2018 at 20:04
  • @barbarabeeton - Many thanks for this thorough explanation!
    – Mico
    Mar 7, 2018 at 20:22
1

It strongly depends on what you want to achieve.

If it's lower case calligraphic letters you are after try.

\usepackage{dutchcal}

\begin{document}
  pP $pP \; \mathcal{pP}$
\end{document}

dutchcal

If you go down this road checkout this question.

If you want to typeset all math in 'Cambria Math' you need to use XeLaTeX or LuaLaTeX. (see here)

A simple implementation could be

\usepackage{fontspec}
\usepackage{unicode-math}
\setmathfont{STIX Two Math}

\begin{document}
  pP $pP \; \mathscr{pP}$
\end{document}

Note the use of \mathscr instead of \mathcal as the latter does only provide upper case calligraphic variants.

I do not have 'Cambria Math' installed on my system so I can only provide a screenshot with 'Stix 2'.

enter image description here

1

enter image description here

\documentclass{article}
\usepackage{mathrsfs}

\begin{document}
$\mathscr{P}\quad \wp$
\end{document}

You must log in to answer this question.

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