Jos� Matos wrote:
> > On a related note: would it be possible that lyx2lyx recognizes ERT
> > natbib commands in older documents and converts it to real citation
> > insets? I have still some of them from the pre natbib-support era in my
> > thesis.
>
>   Sure. Just give some example, what it is and what should be and I will
> take a look.

Super, thanks. Here are some thoughts:

something like this (ERT inset):

        \begin_inset ERT
        status Open

        \layout Standard

        \backslash 
        citet[33]{Abraham88}
        \end_inset 

should be converted to this (cite inset):

        \begin_inset LatexCommand \citet[33]{Abraham88}

        \end_inset 

additionally, \use_natbib should probably be set to 1 if it is not and if it 
is not and the user loads natbib with the "numbers" option (manually),
\use_numerical_citations should be set to 1.

This is for the following natbib commands:
\citet{}
\citealt{}
\citep{}
\citealp{}
\citeauthor{}
\citeyear{}
\citeyearpar{}
\Citet{}
\Citealt{}
\Citep{}
\Citealp{}
\Citeauthor{}
\Citeyear{}
\Citeyearpar{}
\citet*{}
\citealt*{}
\citep*{}
\citealp*{}
\citeauthor*{}
\citeyear*{}
\citeyearpar*{}
\Citet*{}
\Citealt*{}
\Citep*{}
\Citealp*{}
\Citeauthor*{}
\Citeyear*{}
\Citeyearpar*{}

where each of these commands may have one optional argument, which is 
supported by LyX as shown in the above example. Note that Natbib itself 
provides two arguments. Commands with two arguments should be left in ERT for 
now.

As you see above, the LyX commands look very similar.

Natbib support has been added in 1.2.0, but as lyx2lyx does not convert until 
now, the conversion to insets should probably happen between 1.3 and 1.4.

Enough information?

Thanks,
J�rgen.

Reply via email to