On Friday 30 May 2003 05:51, John Levon wrote: > > > > Give a small example of before and after and I will do it. This is > > trivial to do in lyx2lyx. :-) > > -\begin_inset LatexCommand \BibTeX{xampl} > +\begin_inset LatexCommand \bibtex{xampl}
Is the following enough? :-) > regards > john -- José Abílio
Index: lyxconvert_221.py =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/lib/lyx2lyx/lyxconvert_221.py,v retrieving revision 1.3 diff -u -p -r1.3 lyxconvert_221.py --- lyxconvert_221.py 22 May 2003 10:40:54 -0000 1.3 +++ lyxconvert_221.py 30 May 2003 18:06:44 -0000 @@ -24,9 +24,15 @@ def convert_spaces(lines): for i in range(len(lines)): lines[i] = string.replace(lines[i],"\\SpecialChar ~","\\InsetSpace ~") +def convert_bibtex(lines): + for i in range(len(lines)): + lines[i] = string.replace(lines[i],"\\begin_inset LatexCommand \\BibTeX", + "\\begin_inset LatexCommand \\bibtex") + def convert(header, body): add_end(header) convert_spaces(body) + convert_bibtex(body) if __name__ == "__main__": pass