I was tinkering with chemfig package. I created the macros
\documentclass{article}
\newcommand{\lmethyl}{C(-[2]H)(-[4]H)(-[6]H)}
\newcommand{\rmethyl}{C(-[2]H)(-[6]H)-H}
\newcommand{\tmethyl}{C(-[2]H)(-[4]H)-H}
\newcommand{\bmethyl}{C(-[4]H)(-[6]H)-H}
\usepackage{chemfig}
\begin{document}
\chemfig{\lmethyl-\rmethyl}
\end{document}
I thought I would be able to create the code of methane using this. I know the macros are all run at the same time and hence creates the following.
