Superscript Charge in LaTeX (\text{Na}^{+})
- LaTeX command
\text{Na}^{+}- Package
- Add to your preamble:
\usepackage{amsmath} - Mode
- Math mode only
Where it is used
Ion notation with the charge as a superscript, here the sodium cation carrying a single positive charge.
Write multi-charge ions with the number before the sign, \text{Ca}^{2+} and \text{SO}_4^{2-}, following IUPAC order. Braces matter: ^{2+} keeps both characters in the superscript. A trailing minus in a superscript is treated as unary, so ^{-} renders cleanly. Use \mathrm{Na} instead of \text{Na} if the formula might appear inside an italic theorem or caption, since \text copies the surrounding font while \mathrm is always upright. When subscripts and charges coincide, the charge sits above the count, as in sulfate.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Superscript Charge: $\text{Na}^{+}$
\[ \text{NaCl} \to \text{Na}^{+} + \text{Cl}^{-} \]
\end{document}Related symbols
- Subscript Count
\text{H}_2\text{O} - Isotope
{}^{14}_{6}\text{C} - Delta (Upper)
\Delta - Down Arrow
\downarrow - Degree symbol
^{\circ} - Up Arrow
\uparrow
Frequently asked questions
- How do I write Superscript Charge in LaTeX?
- Type \text{Na}^{+} in math mode, for example $\text{NaCl} \to \text{Na}^{+} + \text{Cl}^{-}$. Load amsmath first with \usepackage{amsmath}.
- Which package do I need for \text{Na}^{+}?
- \text{Na}^{+} needs amsmath: add \usepackage{amsmath} to your preamble before the document starts.
- Can I use \text{Na}^{+} in text mode, or only in math mode?
- Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\text{Na}^{+}$ in running text.
أفضل محرر LaTeX بالذكاء الاصطناعي، بديل Overleaf
يساعد Octree الباحثين من أكثر من 15 جامعة على كتابة أوراق البحث بشكل أسرع باستخدام الذكاء الاصطناعي
- أنشئ رسوم TikZ جميلة باستخدام الذكاء الاصطناعي
- ارفع صورة وحولها إلى LaTeX بسلاسة
- احصل على مساعدة فورية في كتابة وتنسيق أوراق البحث