On Thu, Sep 26, 2002 at 09:39:26AM +0800, Rod Pinna wrote: > > > > Less drastic solution is to export to LaTeX, make changes there > > (which is quite simple in any reasonable text editor) and then > > reimport into LyX. > > Even easier is to simply edit the .lyx file, rather than exporting to > latex. The format is pretty easy to pick up, at least for that sort of > change.
For example, sed "s/\\layout Section/\\layout SubSection/;s/\\layout Chapter/\\layout Section/;s/\\textclass book/\\textclass amsart/" file.lyx >newfile.lyx