0

I am trying to write symbols in Calligra font inside the math mode. Turn out it is not working. The code is given below.

\documentclass{article} \usepackage{calligra} \usepackage[T1]{fontenc}

\usepackage{amsmath}

\title{Calligra} \author{} \date{\today}

\begin{document}

\maketitle

\calligra{Calligra font is not supported in the math mode}

\begin{equation}
    1 \leq \calligra{M}, \calligra{N} \geq 2 \end{equation}

\end{document}

Can any please why it is not working? Thanks!

2
  • 2
    \calligra is like \ttfamily and does not take an argument, the syntax in text is {\calligra Calligra font is not supported in the math mode} not \calligra{Calligra font is not supported in the math mode} The package does not declare math fonts, but you could use \text{\calligra M} in math Aug 5, 2023 at 21:46
  • @ David Carlisle, Thank you!
    – felix
    Aug 5, 2023 at 21:56

1 Answer 1

1

\calligra is like \ttfamily and does not take an argument, the syntax in text is

{\calligra Calligra font is not supported in the math mode}

not

\calligra{Calligra font is not supported in the math mode}

The package does not declare math fonts, but you could use

\text{\calligra M}

in math

You must log in to answer this question.

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