José, I want to change the LyX file format too! In this case, changing from:
\begin_inset LatexCommand \bibtex[bibtotoc,<style>]{<database1>,<database2>,<database3>} \end_inset to \begin_inset Bibtex filename test filename xampl style abbrvnat bibtotoc true \end_inset Of course, I want only to output 'style' and 'bibtotoc' entries if they are not empty and true repectively. I also don't want to write the lyx2lyx converter myself because I'm a lazy bum. ;-) Could I get you to hack up a sample function to get me started? --