The LaTeX command for mathcal X (๐ณ) is \mathcal{X}.
\mathcal{X}Writing a paper? The table generator and the BibTeX cleaner are one click away, no account.
Write \mathcal{X} inside math mode, that is between $โฆ$ for inline math or in a \[ โฆ \] or equation block for display math. It is part of core LaTeX math, so no extra package is required.
\mathcal{X} is a math-mode symbol: in running text, wrap it in $...$. With unicode-math under XeLaTeX or LuaLaTeX, typing ๐ณ in a formula gives the same symbol.
Open this example in the live preview: it renders as you type, with no compiler and no signup.
\mathcal{G}\mathcal{M}\mathcal{N}\mathcal{P}\mathcal{R}\mathcal{S}\mathcal{T}\mathscr{A}\mathfrak{g}\mathfrak{h}\mathfrak{n}\dagger\ddagger^\circMore math symbols in LaTeX: the full table or search all 350+ LaTeX symbols.
Use \mathcal{X} in math mode; it needs no extra package. For example, $\mathcal{X}$.
None: \mathcal{X} is built into LaTeX, so no extra package is required.