Bond in LaTeX (\text{C}-\text{C})
- LaTeX command
\text{C}-\text{C}- Package
- Add to your preamble:
\usepackage{amsmath} - Mode
- Text and math mode
Where it is used
Single covalent bond between two carbon atoms, drawn as a short line between the element symbols.
In math mode the hyphen becomes a minus sign with binary-operator spacing, so the bond appears with gaps around it, which looks more like subtraction. Wrapping it as \text{C}{-}\text{C} removes the spacing and gives a tight bond. Bond lengths and energies are often quoted alongside, for example a C-C bond of about 154 pm. For condensed structural formulas like \mathrm{CH_3{-}CH_3}, the same braced trick applies. For anything beyond a few bonds, drawing tools or a structure package produce real skeletal formulas.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Bond: $\text{C}-\text{C}$
\[ \text{H}_3\text{C}{-}\text{CH}_3 \]
\end{document}Related symbols
- Double Bond
\text{C}=\text{C} - Degrees Celsius
^{\circ}\text{C} - Triple Bond
\text{C}\equiv\text{C} - Degree symbol
^{\circ} - Partial Charge
\delta^{+} - Delta (Upper)
\Delta
Frequently asked questions
- How do I write Bond in LaTeX?
- Type \text{C}-\text{C} in math mode, for example $\text{H}_3\text{C}{-}\text{CH}_3$. Load amsmath first with \usepackage{amsmath}.
- Which package do I need for \text{C}-\text{C}?
- \text{C}-\text{C} needs amsmath: add \usepackage{amsmath} to your preamble before the document starts.
- Can I use \text{C}-\text{C} in text mode, or only in math mode?
- Both. \text{C}-\text{C} compiles in running text as well as inside $...$; in a formula keep it in math mode so it gets math fonts and spacing.
أفضل محرر LaTeX بالذكاء الاصطناعي، بديل Overleaf
يساعد Octree الباحثين من أكثر من 15 جامعة على كتابة أوراق البحث بشكل أسرع باستخدام الذكاء الاصطناعي
- أنشئ رسوم TikZ جميلة باستخدام الذكاء الاصطناعي
- ارفع صورة وحولها إلى LaTeX بسلاسة
- احصل على مساعدة فورية في كتابة وتنسيق أوراق البحث