0

Possible Duplicate:
Is it possible to use the figure environment with the standalone package?

After the suggested answer here. I've gone ahead to try and implement that for my own project. However, I get an error stating:

LaTeX Error: Something's wrong--perhaps a missing \item.

Here is a full MWE below:

\documentclass[border=0pt]{standalone}
\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage{bpchem}
\usepackage[journal=rsc,tracking=bpchem]{chemstyle}
\renewcommand*{\schemerefformat}{\small\fontfamily{cmr}}
\newcommand{\chemdrawgraphic}[1]{\includegraphics[scale=1]{#1}}
\setcounter{BPCno}{200}
\CNlabelsubnoref{alcohol}{Me}
\CNlabelsubnoref{alcohol}{isoamy}
\CNlabelnoref{MeCl}
\begin{document}
\begin{figure}
    \schemerefsub{alcohol}{Me}
    \schemerefsub{alcohol}{isoamy}
    \schemeref{MeCl}
    \chemdrawgraphic{reaction}
\end{figure}
\end{document}

However, I also get the error with the following MWE

\documentclass[border=0pt]{standalone}
\usepackage{graphicx}
\begin{document}
\begin{figure}
    \includegraphics{reaction}
\end{figure}
\end{document}
J M
  • 1,102
  • The documentation states that you can use floats now with the updated packaged. In any case, I found removing the \begin{figure} portion allowed for the compilation, as suggested in that answer. – J M Sep 02 '12 at 14:54
  • Also you have to add preview option to the class declaration. – percusse Sep 02 '12 at 14:55

0 Answers0