# chemfig package - Undefined control sequence \setchemfig

I was trying to produce a reaction scheme with chemfig, but when I use the \setchemfig command I get the error message:

Undefined control sequence \setchemfig

Here's my code:

\documentclass[12pt,letterpaper]{article}
\usepackage[utf8]{inputenc}
\usepackage{chemfig}

\begin{document}
\setchemfig{arrow angle=15}
\schemestart
\chemfig{HO-[0]-[:-30](-[:-150]-[4]HO)(-[:30]-[0]OH)-[:-30]-OH}\arrow
\schemestop
\end{document}


Any help/insight is appreciated.

• Do you actually have version 1.3 installed? Older version have different commands. Aug 3 '18 at 14:47
• On my side it is working without errors. With version 1.31 Aug 3 '18 at 14:49
• Welcome to TeX.SX! This is a version problem. The command \setchemfig does not yet exist in your version of chemfig. Either upgrade the package (how to do that depends on your TeX environment), or use the commands of your chemfig version; try something like \setarrowdefault{15}. See the docs of your old version of chemfig. Aug 3 '18 at 15:22
• @A. Finlay what is the name of your chemical structure HO-[0]-[:-30](-[:-150]-[4]HO)(-[:30]-[0]OH)-[:-30]-OH? Aug 3 '18 at 19:29
• I was indeed using an older version. I'm using TexLive and updated from 2017 to 2018, this solved the problem. Thank you! Aug 4 '18 at 19:47