Hi Vincent,

As I explained in my previous email, that this piece of code is inserted by Lyx itself. I tried adding \makeletter before this piece of code, the problem remains the smae.
Is there a way to restrict Lyx from inserting this piece of code?

Regards,
Tariq Abdullah

P.S: I copied the automatically inserted code and the Lyx errors at the bottom of this email.


Vincent van Ravesteijn - TNW wrote:
Can some help me in solving a Lyx problem described
in the forwarded email?

It seems you're missing a \makeatletter before this piece of code. Did
you add this yourself in the preamble ?

Regards,
Tariq Abdullah

Vincent



\...@ifundefined{showcaptionsetup}{}{%

\PassOptionsToPackage{caption=false}{subfig}}

\usepackage{subfig}

\makeatother

\usepackage{babel}



I get the following 4 errors due to above Lyx inserted code into my tex file:



Error-1:

you can't use \spacefactor in vertical mode

Error-1 Description:

\@



ifundefined{showcaptionsetup}{}{%



Sorry, but I'm not programmed to handle this case;



I'll just pretend that you didn't ask for it.



If you're in the wrong mode, you might be able to



return to the right one by typing `I}' or `I$' or `I\par'.





Error-2:

Missing $ inserted

Error-2 Description:

\@



ifundefined{showcaptionsetup}{}{%



I've inserted a begin-math/end-math symbol since I think



you left one out. Proceed, with fingers crossed.





Error-3:

Latex error: Missing \begin{document}.



Error-3 Description:

\@



ifundefined{showcaptionsetup}{}{%



You're in trouble here. Try typing <return> to proceed.



If that doesn't work, type X <return> to quit.





Error-4:

Missing $ inserted

Error-4 Description:



I've inserted a begin-math/end-math symbol since I think



you left one out. Proceed, with fingers crossed.





When I comment the tex code, as shown in the following lines, in WinEdt, my file is compiled and I obtain the correct PDF file



%...@ifundefined{showcaptionsetup}{}{%

% \PassOptionsToPackage{caption=false}{subfig}}

\usepackage{subfig}

%\makeatother

\usepackage{babel}



Regards,

Tariq Abdullah





Reply via email to