Calligraphic C (category) in LaTeX (\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: التحسين
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 C (category): $\mathcal{C}$
\[ F \colon \mathcal{C} \to \mathcal{D}, \; \operatorname{Hom}_{\mathcal{C}}(X, Y) \]
\end{document}Related symbols
- Calligraphic F (functor)
\mathcal{F} - Cohomology
H^n - Homology
H_n - Fundamental Group
\pi_1 - Quotient
A / B - Star
\star
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.
أفضل محرر LaTeX بالذكاء الاصطناعي، بديل Overleaf
يساعد Octree الباحثين من أكثر من 15 جامعة على كتابة أوراق البحث بشكل أسرع باستخدام الذكاء الاصطناعي
- أنشئ رسوم TikZ جميلة باستخدام الذكاء الاصطناعي
- ارفع صورة وحولها إلى LaTeX بسلاسة
- احصل على مساعدة فورية في كتابة وتنسيق أوراق البحث