For user convenience, comment equivalents to the latexonly and toimage environment are also provided:
\begin{latexonly} would not work correctly in the preamble. In the preamble, you should use %BEGIN LATEX .
This is more than user convenience. I suggest updating that part of the documentation.
Section 5.3 "Comments", includes:
For user convenience, comment equivalents to the latexonly and toimage environment are also provided:
\begin{latexonly} would not work correctly in the preamble. In the preamble, you should use %BEGIN LATEX . This is more than user convenience. I suggest updating that part of the documentation.