2

I am trying to draw cyclobutane with chemfig

\documentclass{standalone}
\usepackage{chemfig}
\begin{document}
\chemfig{H_2C?[a]-CH_2-[:-90]CH_2-[:180]H_2C?[a]-}
\end{document}

How do I get rid of the "little piece of bound" overlapping the carbone at the bottom right corner ?

enter image description here

2 Answers 2

3

Delete the last hyphen:

\documentclass{standalone}
\usepackage{chemfig}
\begin{document}
\chemfig{H_2C?[a]-CH_2-[:-90]CH_2-[:180]H_2C?[a]}
\end{document}

enter image description here

3

Use *4() to make a square ring

\documentclass[border=2mm]{standalone}
\usepackage{chemfig}
\begin{document}
    \chemfig{*4(H_2C?-CH_2-CH_2-H_2C?)}
\end{document}

enter image description here

You must log in to answer this question.

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