Julien Rioux wrote:

> Down the road, it would be nice to detect the citation engine by using
> whatever trick is used right now to detect that a specific \usepackage
> line should add a specific module, instead of hardcoding a list of
> modules. I don't know enough about this to do it just yet, but it's
> definitely a wishlist item.

It is not possible, at least not for jurabib and natbib. Look at the code 
that parses the citation commands in tex2lyx, and you'll understand why. It 
needs to parse stuff like \jurarbibsetup, options like natbiborder and 
jurabiborder, handle different jurabib.sty versions etc. The code is ugly, 
but it understands all jurabib and natbib citation commands that can be 
translated to something known by LyX (at least I am not aware of any missing 
one), and it is extensively tested.

Of course if there will be more simple citation engines available in the 
future, it should be possible to handle them without hard coding.


Georg

Reply via email to