Calligraphic C (category) in LaTeX (\mathcal{C})

C\mathcal{C}
LaTeX command
\mathcal{C}
Package
No package needed: built into LaTeX
Mode
Math mode only

Where it is used

Calligraphic C, the default name for an arbitrary category; also used for constraint or feasible sets.

Category theory writes objects as X \in \mathcal{C} and morphism sets as \operatorname{Hom}_{\mathcal{C}}(X, Y), with a second category usually called \mathcal{D}. Concrete categories are often set in bold or sans serif, such as \mathbf{Set} or \mathsf{Grp}, to separate names from variables. Optimization uses \mathcal{C} for a convex feasible set, as in \min_{x \in \mathcal{C}} f(x). \mathcal provides only uppercase letters in the default fonts; \mathscr gives a curlier script style if you need a second family.

Also listed under: Optimization

Minimal compilable example

Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.

F ⁣:C→D,  Hom⁡C(X,Y)F \colon \mathcal{C} \to \mathcal{D}, \; \operatorname{Hom}_{\mathcal{C}}(X, Y)
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Calligraphic C (category): $\mathcal{C}$

\[ F \colon \mathcal{C} \to \mathcal{D}, \; \operatorname{Hom}_{\mathcal{C}}(X, Y) \]
\end{document}

Related symbols

All Topology at Abstract Math →

Frequently asked questions

How do I write Calligraphic C (category) in LaTeX?
Type \mathcal{C} in math mode, for example $F \colon \mathcal{C} \to \mathcal{D}, \; \operatorname{Hom}_{\mathcal{C}}(X, Y)$. It works in plain LaTeX without loading any package.
Which package do I need for \mathcal{C}?
None. \mathcal{C} is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
Can I use \mathcal{C} in text mode, or only in math mode?
Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\mathcal{C}$ in running text.
Math poweredSumulat ng LaTeX gamit ang AI

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