The "Insert Graphic" wizard may generate code that does not compile due to missing \usepackages. This happens when:
\usepackage{graphicx}.\usepackage{float}.Ideally, a wizard would generate code that immediately compiles, or at least tells the user how to make it compile. Two suggestions are:
\usepackages. (Though this is probably more complicated because it requires deciding where to put the \usepackage and it gets even more complicated when using the wizard in a non-master document.)I up voted this issue but disagree with the suggestion "Automatically edit the preamble to add missing \usepackages.": it would be too much invasive (and order of packages sometimes matters).
Another option would be to warn the user just by a comment, just as e.g. Tables Generator does.
Most helpful comment
I up voted this issue but disagree with the suggestion "Automatically edit the preamble to add missing \usepackages.": it would be too much invasive (and order of packages sometimes matters).
Another option would be to warn the user just by a comment, just as e.g. Tables Generator does.