Hello,

I import a latex file to Lyx. The original file contains the following \subfigure command:

\begin{figure} \centering

\mbox{\subfigure[Figure subtitle]
{\epsfig{figure=myfigure.eps,width=0.50\textwidth}}
\quad

\subfigure[Another figure subtitle]
{\epsfig{figure=myfigure.eps,width=0.50\textwidth}}}

\caption{General caption}
\label{fig::label}

\end{figure}

This code is executed correctly (after adding the necessary \usepackage commands to the preambule) when inserting the latex code as ERT.

However, using File->Import->Latex command produces erroneous output, the figure subtitles are displayed in a very strange manner. This is the result of excessive "{ }" generated by tex2lyx in each \subfigure command. Here is what it generates after using File->Export->Latex:

\begin{figure}

\centering \mbox{\subfigure[Figure subtitle]
{ }
{\epsfig{figure=myfigure.eps,width=0.50\textwidth}}
\quad \subfigure[another figure]
{ }
{\epsfig{figure=myfigure.eps,width=0.50\textwidth}}}

\caption{General caption}
\label{fig::label}

\end{figure}

Do you know how to tell it not to generate those additional "{ }"? Should one configurate the subfigure package options in Lyx?

Thank you!
Dmitry

--
-----------------------------------------------------------------
Dmitry Khvorostyanov
Laboratoire des Sciences du Climat et de l'Environnement
LSCE/IPSL - CEA-CNRS-UVSQ
CE Saclay, l'Orme des Merisiers, batiment 701
91191 Gif-sur-Yvette Cedex FRANCE
Tél: (+33) 1 69 08 11 42
Fax: (+33) 1 69 08 77 16
e-mail: [EMAIL PROTECTED]

Reply via email to