% Pentane
% Author: Stefan Kottwitz
% https://www.packtpub.com/hardware-and-creative/latex-cookbook
\documentclass[border=10pt]{standalone} 
%%%<
\usepackage{verbatim}
%%%>
\begin{comment}
:Title: Pentane
:Tags: Chemistry;Graphics;TikZ;chemfig;Chapter11
:Author: Stefan Kottwitz
:Slug: pentane

In http://latex-cookbook.net/cookbook/examples/benzene-ring/
we saw a ring molecule.

Now we use the chemfig package for drawing
a big molecule, while making work easier
using submoles.

The code is fully explained in the LaTeX Cookbook, Chapter 11,
Science and Technology, Drawing molecules.
\end{comment}
\usepackage{chemfig}
\begin{document}
\definesubmol{C}{-C(-[2]H)(-[6]H)}
\chemfig{H!C!C!C!C!C-H}
\end{document}

