1

I'd like to get a bond represented by >. As an example, see the table where the ketone group is represented by >C=O (nonring). Is there a better way to write that other than the following?

>\ce{C=O}
1

Package mhchem

> can be included inside \ce by using math, see section "Using Math, Variables" on page 8 of mhchem's documentation:

\documentclass{article}
\usepackage{mhchem}

\begin{document}
  \ce{$>$C=O}
\end{document}

Result mhchem

A more complicate version, which works with bold font:

\documentclass{article}
\usepackage{mhchem}

\begin{document}
  \ce{$\hbox{\textgreater}$C=O}
  \textbf{\ce{$\hbox{\textgreater}$C=O}}
\end{document}

Result mhchem with bold

Package chemfig

Package chemfig can draw it as (kind of) molecule. Example with different bond lengths:

\documentclass{article}

\usepackage{chemfig}

\begin{document}
  \chemfig{C(-[:150])(-[:210])=O}
  \qquad
  \setatomsep{1.25em}
  \chemfig*{C(-[:150])(-[:210])=O}
\end{document}

Result chemfig

7
  • Thanks, but I didn't see any difference between those. :) Will wait and see if people give other ideas.
    – Bruno
    Aug 21 '15 at 18:19
  • @Bruno Can you explain, what you want to see? Aug 21 '15 at 18:20
  • Your solution is fine. I just didn't see any difference between having the > in math mode or normal text. I think that the vertical alignment could be better in the sense that the tip of the > symbol would be at the same height of of the middle of the C. Maybe I'm being too perfectionist. :)
    – Bruno
    Aug 21 '15 at 18:37
  • Thanks for your addition with the chemfig package. I'm really interested in having the text >C=O inline in a paragraph sentence. So I think it shouldn't look big as in a figure, but part of a sentence.
    – Bruno
    Aug 21 '15 at 18:45
  • 1
    @mhchem Thanks for the information. I have added a version, which uses the text font version \textgreater of the greater sign, which honors a bold font. Aug 22 '15 at 6:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.