Chromatic Number in LaTeX (\chi(G))
- LaTeX command
\chi(G)- Package
- No package needed: built into LaTeX
- Mode
- Math mode only
Try Chromatic Number in a real LaTeX document
Open a ready-to-compile document that already uses \chi(G), with the right packages loaded. Edit it and see the PDF, no install needed.
Where it is used
Chromatic number of G: the fewest colors needed to color vertices so adjacent vertices differ.
Typed with the Greek \chi, the chromatic number satisfies \omega(G) \leq \chi(G) \leq \Delta(G) + 1, and Brooks' theorem lowers the upper bound to \Delta(G) except for complete graphs and odd cycles. The four color theorem says \chi(G) \leq 4 for planar graphs. The edge version is the chromatic index \chi'(G). Do not confuse \chi with the Latin x, which looks similar in some fonts, or with the Euler characteristic, which also uses \chi. Computing \chi(G) is NP-hard, so many papers give bounds instead of exact values.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\begin{document}
Chromatic Number: $\chi(G)$
\[ \omega(G) \leq \chi(G) \leq \Delta(G) + 1 \]
\end{document}Related symbols
All نظرية البيان →Frequently asked questions
- How do I write Chromatic Number in LaTeX?
- Type \chi(G) in math mode, for example $\omega(G) \leq \chi(G) \leq \Delta(G) + 1$. It works in plain LaTeX without loading any package.
- Which package do I need for \chi(G)?
- None. \chi(G) is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
- Can I use \chi(G) in text mode, or only in math mode?
- Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\chi(G)$ in running text.
أفضل محرر LaTeX بالذكاء الاصطناعي، بديل Overleaf
يساعد Octree الباحثين من أكثر من 15 جامعة على كتابة أوراق البحث بشكل أسرع باستخدام الذكاء الاصطناعي
- أنشئ رسوم TikZ جميلة باستخدام الذكاء الاصطناعي
- ارفع صورة وحولها إلى LaTeX بسلاسة
- احصل على مساعدة فورية في كتابة وتنسيق أوراق البحث