Michael <[EMAIL PROTECTED]> writes: > The original format was readable and editable by a human-being, as below: > > -------------------------- > blah blah blah > \begin{align} > blah blah blah > \end{align} > blah blah blah > -------------------------- > > After I imported into LyX and I do some editing, and then export it out to > Plain Latex, then it reads > > ---------------------------- > blah blah blah\begin{align}blah blah blah\end{align}blah blah blah > ---------------------------- > > Something like that, you got my idea... the output format is no longer > readable by a human, or it will needs huge pain to edit it back into a > cleanly layout form. So my colleagues dislike LyX and also hate me using it.
Hi, Michael. You need to write a post-processor to superficially modify the LyX-generated LaTeX file so that it is digestible by your colleagues. Shove this into "prettify_latex.sed" and invoke as sed -f prettify_latex.sed yourfile.tex > yourfile_prettified.tex s/\\[/\\begin{align}/g s/\\]/\\end{align}/g s/\(\\begin{align}\)/\ \1/g s/\(\\end{align}\)/\1\ /g You'll probably need to play around a bit. The stuff above isn't tested ;-) Regards, Angus