Use mathcal command for calligraphic font in LaTeX

You have come to the right place. In this content, the calligraphic font style is represented by the \mathcal{} command.

For your convenience, various problems have been solved, which you face.

However, this command is only valid for math mode.

Use mathcal command for Calligraphic font

The usage of this symbol is much more in terms of usage. For example, the use of this symbol is noticed in different cases, from mathematically normal distribution to Big o notation and topology.

  \[ ABCDEF \quad \mathcal{ABCDEF} \]
  \[ \mathcal{O},\mathcal{T},\mathcal{P},\mathcal{N} \]
  \[ \mathcal{N}\quad\mathcal{A}f(x)\quad\mathcal{F} \]
  \[ X^2/\sigma^2 \sim \mathcal{X}^2(\mu^2/\sigma^2) \]
  \[ \ln \mathcal{L}(\mu ,\sigma^2) \]

Output :

Calligraphic font with mathcal command.

Lowercase Calligraphic fonts

\mathcal{} commands have some limitations. Because even if the capital alphabet is converted to this font. Cannot convert digits and small alphabets to calligraphy fonts.

  \[ \verb|\mathcal{abcd}|\dashrightarrow \mathcal{abcd} \]
  \[ \verb|\mathcal{1234}|\dashrightarrow\mathcal{1234} \]
  \[ \verb|\mathcal{ABCDefgh}|\dashrightarrow\mathcal{ABCDefgh} \]

Output :

Cannot convert digits and small alphabets to calligraphy font.

Calligraphic bold font style

You will see many commands that convert text or math expressions to bold font style like \textbf{}, \mathbm, bf etc.

However, in the case of calligraphy font style, \boldsymbol should be used which will convert the font style of the symbol to bold.

Because if you use another command instead of \boldsymbol, the output will show an arrow.

  \[ S\in \boldsymbol{\mathcal{P}}_d \]
  \[ \theta,x\in\boldsymbol{\mathcal{X}} \]
  \[ \boldsymbol{\mathcal{P}}(X)\in\boldsymbol{\mathcal{X}} \]

Output :

Calligraphic alphabet with bold font style.

Big O notation and topology T denoted by mathcal command

Below are some examples of Big O notation and Topology T by this command.

  \[ \mathcal{O},\;\mathcal{T} \]
  \[ \mathcal{O}(|K|.g)=\mathcal{O}(g)\quad Q_i\in \mathcal{T} \]
  \[ \mathcal{O}(\log n)\quad (\mathcal{T}_1 ,\mathcal{T}_2) \]
  \[ \mathcal{O}(n^c)\quad (X,\mathcal{T}_2)\rightarrow (X,\mathcal{T}_1) \]
  \[ f(n) = \mathcal{O}(n!) \]

Output :

Big O notation and topology T.

Share tutorial

Don't forget to share if I have added any value to your education life. See you again in another tutorial. thank you!

Facebook iconTwitter iconWhatsapp iconPinterest icon

Md Jidan Mondal

LaTeX expert with over 10 years of experience in document preparation and typesetting. Specializes in creating professional documents, reports, and presentations using LaTeX.

Leave a Comment

Your email address will not be published. Required fields are marked *