LatexNotes

Calligraphic and script letters (๐’œ ๐’ฎ) in LaTeX

\mathcal{A} sets a capital letter in calligraphic style, ๐’œ; \mathscr from the mathrsfs package gives a curlier script, and \mathfrak gives Fraktur letters.

LaTeX command

\mathcal{A}

Not the symbol you meant? Draw it to find the command →

Typing up handwritten notes? Convert a whole page of handwriting to LaTeX →

\mathcal is built into LaTeX and KaTeX and is the usual choice for sets of sets, transforms and families: for a Laplace transform, for a power set, for big O. It has capital letters only; lowercase letters inside it come out as unrelated symbols.

For a more ornate script, load mathrsfs and write \mathscr{F}. It too has capitals only, and it is a common reason for 'Undefined control sequence' when the package line is missing. For a script lowercase l, use \ell.

\mathfrak, from amssymb, sets Fraktur letters in both cases, the convention for Lie algebras () and ideals. Blackboard bold, \mathbb{R}, completes the set of letter styles for number sets.

Script letters with mathrsfs

Load the package in the preamble; without it \mathscr stops with 'Undefined control sequence'.

\usepackage{mathrsfs}
$\mathscr{F}$

Other forms

\mathscr{A}script, mathrsfs
\mathfrak{g}Fraktur, amssymb
\mathbb{R}blackboard bold, amssymb
\ella script lowercase l

Examples

$\mathcal{A}, \mathcal{B}, \mathcal{C}$

calligraphic capitals

$\mathcal{L}\{f(t)\} = F(s)$

the Laplace transform

$\mathcal{P}(A)$

a power set

$\mathscr{F}$

a script F, mathrsfs

$\mathfrak{g}, \mathfrak{su}(2)$

Fraktur, for Lie algebras

Tips and common mistakes

Working from handwritten notes?

LatexNotes turns a photo or PDF of handwritten mathematics into LaTeX, graphs and all. It is built with real pdflatex before you see it, and the .tex file is yours to edit or take to Overleaf. Free to try, no sign-up.

See how handwriting to LaTeX works, step by step, or go from GoodNotes to LaTeX if you write on an iPad (Notability works the same way).

Convert your maths to LaTeX →

FAQ

How do I write calligraphic letters in LaTeX?

Use \mathcal{A} in maths mode. It is built in and has capital letters.

Why does \mathscr not work?

It needs the mathrsfs package. Add \usepackage{mathrsfs} to the preamble.

Can I use lowercase letters with \mathcal?

No, \mathcal and \mathscr have capitals only. For a script l use \ell; \mathfrak has lowercase letters.

What is the difference between \mathcal and \mathscr?

\mathcal is a rounder calligraphic style; \mathscr, from mathrsfs, is a more flowing script.

See also