3

\scriptP \scriptP in Word,

\scriptp \scriptp in Word.

What are the representations in LaTeX?

  • 1
    tried \mathcal{P}, but seems not the same and it only has upper-case symbols. – user156326 Mar 07 '18 at 07: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 – David Carlisle Mar 07 '18 at 07:50
  • 1
    for lowercase see for example https://tex.stackexchange.com/questions/373513/a-calligraphic-font-with-small-lowercase-letters – David Carlisle Mar 07 '18 at 07:53

4 Answers4

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

Aditya
  • 62,301
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}
Mico
  • 506,678
  • the last "p" is used for weierstrass elliptic functions (see https://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.) – barbara beeton Mar 07 '18 at 20:04
  • @barbarabeeton - Many thanks for this thorough explanation! – Mico Mar 07 '18 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

tim6her
  • 75
1

enter image description here

\documentclass{article}
\usepackage{mathrsfs}

\begin{document}
$\mathscr{P}\quad \wp$
\end{document}
Tarass
  • 16,912