>Lyx inserts the following tex code when using the subfig package. >The code prompts Lyx to generate an error and I can't create the >DVI-->PDF file from Lyx. > > >\...@ifundefined{showcaptionsetup}{}{% > >\PassOptionsToPackage{caption=false}{subfig}} > >\usepackage{subfig} > >\makeatother > >\usepackage{babel} > > >Does anybody know how to solve this error OR how to >restrict Lyx to not insert this piece of tex code? >
This line is added to guard against a user that has manually included the caption package in the preamble. What's the error then ? It shouldn't give an error. Vincent