I'm busy trying to figure out chemfig. I came across an example that doesn't seem to work. I've checked, but it's not because I forgot to load a certain package or something. The example is:
Code: Select all
\documentclass{report}
\usepackage{amsmath}
\usepackage{mathtools}
\usepackage {chemfig}
\usetikzlibrary{decorations}
\chemfig{H-\chemabove{\lewis{5|7,O}}{\quad\scriptstyle +}(-[2]H)-H}
\chemabove{}{}
. So the problem seems to be using the\lewis{}
command inside the first argument. But this is what is done in the package documentation...Thanks for reading and hopefully someone can help me.
Regards,
Matthias