1

I typically typeset my documents in xelatex. With unicode-math and Cambria Math fonts a variety of math-styles are possible. This time the requirement is to use just pdflatex. How can I type (with STIX fonts preferably) in the \mathbfcal style? I am aware of this popular post, however, I cannot find any prescription there.

I am adding a minimal example

\documentclass[]{article}
\usepackage{stix}
\usepackage{amssymb,amsmath,mleftright,mathtools}
\begin{document}
    $\mathbfscr{G}$
\end{document}

It produces

enter image description here,

which is the bold script style, not the bold calligraphic, which I am used to

enter image description here For completeness, this is the solution using bm package

\documentclass[]{article}
\usepackage{stix}
\usepackage{amssymb,amsmath,mleftright,mathtools}
\usepackage{bm}
\begin{document}
$\bm{\mathcal{G}}$
$\mathcal{G}$
\end{document}

enter image description here

yarchik
  • 272

1 Answers1

2

You can declare the stix bold calligraphic

enter image description here

\documentclass[]{article}
\usepackage{stix}
\usepackage{amsmath,mleftright,mathtools}
\DeclareMathAlphabet\mathbfcal{LS2}{stixcal}{b}{n}
\begin{document}
    $\mathscr{G}$ $\mathcal{G}$ 
    $\mathbfscr{G}$ $\mathbfcal{G}$ 
\end{document}

You could use the cm one if you wish

enter image description here

\documentclass[]{article}
\usepackage{stix}
\usepackage{amsmath,mleftright,mathtools}
\DeclareMathAlphabet\mathbfcal{OMS}{cmsy}{b}{n}
\begin{document}
    $\mathscr{G}$ $\mathcal{G}$ 
    $\mathbfscr{G}$ $\mathbfcal{G}$ 
\end{document}

Although you might want to redefine the non bold one to use cm as well (or you may not)

enter image description here

\documentclass[]{article}
\usepackage{stix}
\usepackage{amsmath,mleftright,mathtools}
\DeclareMathAlphabet\mathcal{OMS}{cmsy}{m}{n}
\DeclareMathAlphabet\mathbfcal{OMS}{cmsy}{b}{n}
\begin{document}
    $\mathscr{G}$ $\mathcal{G}$ 
    $\mathbfscr{G}$ $\mathbfcal{G}$ 
\end{document}
David Carlisle
  • 757,742
  • Just for completeness, can you please comment why in cm the bold calligraphic fonts are accessible with \mathbfcal whereas this is not the case for stix. – yarchik Jan 28 '21 at 18:33
  • @yarchik after the last edit I show that command accessing stix (in the first case) or cm (in the second and third cases) – David Carlisle Jan 28 '21 at 18:42
  • Thank you, this is a comprehensive answer. – yarchik Jan 28 '21 at 18:45