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

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 Topologi & Matematik Abstrak →

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 poweredTulis LaTeX menggunakan AI

Editor LaTeX AI Terbaik, Alternatif Overleaf

Octree membantu penyelidik dari 15+ universiti menulis kertas penyelidikan dengan lebih cepat menggunakan AI

  • Jana diagram TikZ yang cantik menggunakan AI
  • Muat naik imej dan tukar ke LaTeX dengan lancar
  • Dapatkan bantuan segera untuk menulis dan memformat kertas penyelidikan