3

This question could be a continuation of the answer given by @egreg in this link Two different calligraphic font styles in math mode.

In my book I use both \mathcal{} and \pazocal{} commands for the calligraphic math symbols. This afternoon I have seen that package has also of the calligraphic font the P.

Is it possible to declare in math-mode a third calligraphic math symbol using the macro of named \DEP like this image (pag. 92 of the manual):

enter image description here

I just need only for the P and the other letters if they exist (but I doubt that they will exist), how must I to do without disturbing the commands \mathcal and \pazocal?

1 Answer 1

2

The font is musix24 and the character's slot is 34.

\documentclass{article}
\usepackage{amsmath}

% the font is musix24, but it has to be scaled
\DeclareFontFamily{U}{musix}{}
\DeclareFontShape{U}{musix}{m}{n}{<-> s*[1.7] musix24}{}
% the character has zero width, so we need an explicit space
\DeclareRobustCommand{\anotherP}{%
  \mspace{2mu}% a small sidebearing
  \text{\usefont{U}{musix}{m}{n}\symbol{34}\hspace{1em}}%
  \mspace{2mu}% a small sidebearing
}

\begin{document}

$\mathcal{P}\ne\anotherP$

% show the bounding box
\fboxsep=0pt\fbox{$\anotherP$}\fbox{$\mathcal{P}$}

\end{document}

enter image description here

1
  • Approved with a lot of happiness....:-) "Grazie infinite".
    – Sebastiano
    Jan 12, 2021 at 19:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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