\documentclass[12pt,varwidth]{standalone}
\usepackage{lewis}
\usepackage{bohr}
\title{Drawing Lewis Structures and Electron Ring Diagrams}
\author{LianTze Lim}
\begin{document}
% Examples are taken from the respective packages' documentations.
\lewis{X}{1}{2}{3}{4}{5}{6}{7}{8}
%
\lewis{F}{.}{.}{.}{.}{}{}{.}
{.}\hspace{-0.5em}--\hspace{-0.75em}\lewis{Xe}
{}{}{.}{.}{}{}{.}{.}\hspace{-0.5em}--\hspace{-0.75em}\lewis{F}
{}{}{.}{.}{.}{.}{.}{.}
\bohr{2}{He} \bohr{7}{N}
\end{document}