Calligraphic O in LaTeX (\mathcal{O})
- LaTeX command
\mathcal{O}- Package
- No package needed: built into LaTeX
- Mode
- Math mode only
Where it is used
Calligraphic O, used for a family of open sets in topology and for several other structures.
A topological space is often written (X, \mathcal{O}), with \mathcal{O} the collection of open sets, although \tau is equally common. The same letter has many other jobs: big-O asymptotics \mathcal{O}(n \log n), the structure sheaf \mathcal{O}_X in algebraic geometry, and the ring of integers \mathcal{O}_K of a number field. \mathcal only supports capital letters in standard fonts. For asymptotic notation many style guides prefer a plain italic O, so decide on one and apply it everywhere.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Calligraphic O: $\mathcal{O}$
\[ U, V \in \mathcal{O} \implies U \cap V \in \mathcal{O} \]
\end{document}Related symbols
- Boolean NOT
\overline{A} - Congruent
\cong - Interior
A^{\circ} - Similar or Equal
\simeq - Exterior
\text{ext}(A) - Fraktur I (imaginary part symbol)
\Im
Frequently asked questions
- How do I write Calligraphic O in LaTeX?
- Type \mathcal{O} in math mode, for example $U, V \in \mathcal{O} \implies U \cap V \in \mathcal{O}$. It works in plain LaTeX without loading any package.
- Which package do I need for \mathcal{O}?
- None. \mathcal{O} is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
- Can I use \mathcal{O} in text mode, or only in math mode?
- Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\mathcal{O}$ in running text.
Pinakamahusay na AI LaTeX Editor, Alternatibo sa Overleaf
Tinutulungan ng Octree ang mga researcher mula sa 15+ na unibersidad na sumulat ng research papers nang mas mabilis gamit ang AI
- Gumawa ng magagandang TikZ diagrams gamit ang AI
- Mag-upload ng larawan at i-convert ito sa LaTeX nang walang problema
- Makakuha ng instant na tulong sa pagsulat at pag-format ng research papers