2

I need to draw the chemical structure of NAD+ (Nicotinamide adenine dinucleotide), My script:

\documentclass[article]{revtex4}
\usepackage{chemfig}
\begin{document}
    \chemfig{*6((-H)-((\chemabove{N}{\scriptstyle\oplus}-R))=(-H)-(-(=[:90]O)-[::-60](NH_2))=(-H)-(-H)=)}
\end{document}

The result is quite ugly, the parts on the red circle: atoms are too close to the bonds lines This is the result Help, please!

0

2 Answers 2

3

You are using to many parentheses! Your code with just the unecessary parentheses removed (and one ( moved a bit…):

\documentclass{article}
\usepackage{chemfig}
\begin{document}

\chemfig{*6((-H)-\chemabove{N}{\scriptstyle\oplus}(-R)=(-H)-(-(=[:90]O)-[::-60]NH_2)=(-H)-(-H)=)}

\end{document}

enter image description here

2

Start with the R. To me, it looks nicer without all the Hs:

\documentclass{article}
\usepackage{chemfig}

\begin{document}

\chemfig{[:90]R-\chemabove{N}{\scriptstyle\oplus}*6(=(-H)-(-(=[:90]O)-[::-60]NH_2)=(-H)-(-H)=(-H)-)}

\chemfig{[:90]R-\chemabove{N}{\scriptstyle\oplus}*6(=-(-(=[:90]O)-[::-60]NH_2)=-=-)}

\end{document}

I have to admit that I am quite illiterate in the chemical field ...

This yields:

enter image description here

3
  • Thanks a lot!! You're right about the Hydrogens. But they have to be there. It's for my students... Feb 5, 2018 at 20:19
  • That’s what I thought :) Feb 5, 2018 at 20:22
  • 1
    @PatriciaTourónTouceda Just a comment. It is a common practice on the webpage that if you are happy with the answer, you accept the answer, so also other people with similar problem see which answer is correct or you liked.
    – pisoir
    Feb 11, 2018 at 12:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .