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: Optimalisatie

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 Topologie & Abstracte Wiskunde →

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 poweredSchrijf LaTeX met AI

Beste AI LaTeX Editor, Overleaf Alternatief

Octree helpt onderzoekers van 15+ universiteiten sneller onderzoeksartikelen schrijven met AI

  • Genereer mooie TikZ-diagrammen met AI
  • Upload afbeelding en converteer naadloos naar LaTeX
  • Krijg directe hulp bij het schrijven en opmaken van onderzoeksartikelen