Georg Baum wrote:
> Am Samstag, 17. Juli 2004 15:48 schrieb Juergen Spitzmueller:
> > I don't care for that. BTW we also have
> > \begin_inset LatexCommand \bibtex[bibtotoc,diss]{diss}
> > or
> > \begin_inset LatexCommand \bibtex[diss][btPrintCited]{diss}
> > which does not even exist as a LaTeX command
> > or
> > \begin_inset LatexCommand \url[LyX home page]{http://www.lyx.org}
> > and
> > \begin_inset LatexCommand \htmlurl[LyX home page]{http://www.lyx.org}
>
> I did not know that.
>
> > So maybe the thing should rather be called LyXCommand.
>
> Indeed.

Perhaps there is a chance to make all this a little bit more intuitive 
eventually. I guess we have to if we are moving towards XML.

> BTW, the "Full author list" and "Force uppercase" checkboxes should be
> greyed out for \citeyear and \citeyearpar (both frontends).

Thanks, noted.

> > In general, I don't care, as long as it works. But note that you have to
> > change other things besides insetcite. E.g. the frontends read before and
> > after as getOptions and getSecOptions. Perhaps something like this (in
> > several places or in its own function) would do:
> >
> > if (params.getSecOptions().empty())
> >     after = params.getOptions()
> > else {
> >     before = params.getOptions()
> >     after = params.getSecOptions()
> > }
> >
> > provided that \citet[see][]{foo} returns getSecOptions().empty().
>
> I expected that I would only need to change one place. I see no easy
> solution without duplicating the code above (what I want to avoid).
> Therefore (and because LatexCommand is no LatexCommand at other places,
> too), I gave up and put the conversion logic in tex2lyx.

That was the reason for my hesitation :-(

> In order to handle \cite correctly, I need to know wether natbib is used in
> parse_text(). I simply made h_use_natbib in preamble.C public. I know that
> this is ugly, but I did not want to create some fancy machinery just for
> one package.
>
> OK to apply?

Could you also add jurabib? Basically, you just have to check for 
\usepackage{jurabib} instead of \usepackage{natbib}. The supported citation 
commands are exactly the same, except that jurabib also has 
\cite[before][after]{foo}
and that jurabib does not know "full author" and "force uppercase" yet (but we 
have fallback mechanisms for the latter in insetcite, so you probably don't 
have to bother).

Thanks,
Jürgen.

BTW: It would be extremely cool if lyx2lyx would recognize natbib and other 
newly supported things (spaces etc.), too. 

> Georg

Reply via email to