Calligraphic O in LaTeX (\mathcal{O})

O\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.

U,V∈O  ⟹  U∩V∈OU, V \in \mathcal{O} \implies U \cap V \in \mathcal{O}
\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

All التوبولوجيا والرياضيات المجردة →

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.
Math poweredاكتب LaTeX باستخدام الذكاء الاصطناعي

أفضل محرر LaTeX بالذكاء الاصطناعي، بديل Overleaf

يساعد Octree الباحثين من أكثر من 15 جامعة على كتابة أوراق البحث بشكل أسرع باستخدام الذكاء الاصطناعي

  • أنشئ رسوم TikZ جميلة باستخدام الذكاء الاصطناعي
  • ارفع صورة وحولها إلى LaTeX بسلاسة
  • احصل على مساعدة فورية في كتابة وتنسيق أوراق البحث