gpt-4.1-mini-2025-04-14· OpenAI
WildChat-4.8M (AI2)
how to use latex \ce to write double bond
- User
how to use latex \ce to write double bond
- Assistant
To write a double bond in a chemical formula using LaTeX with the
\cecommand from themhchempackage, you simply use the=sign between the atoms.Example:
latex\ce{C=C}This will render the double bond between two carbon atoms.
More examples:
- Ethene (ethylene):
latex\ce{CH2=CH2}- Carbonyl group (C=O):
latex\ce{C=O}- Benzene ring with alternating double bonds (simplified):
latex\ce{C6H6} % for plain benzeneFor cyclic structures with bonds,
mhchemusually focuses on the formulas rather than graphical structures. For detailed ring or structural drawings, packages likechemfigor external tools are better.
Summary
- Use
=inside\ce{}to signify a double bond. - Example:
\ce{C=C}, ,