On Wed, Sep 11, 2002 at 05:17:07PM +0300, Martin Vermeer wrote: > As I am expected to provide lecture notes and other material also in > english besides finnish, I have been motivated to come up with a solution > to obtain these from one source code. There is in LaTeX of course the > comment package for this.
An alternative (and in some ways cleaner) approach using sed. This requires you to paint the two alternative versions in magenta and blue, respectively. All other colours are output to both versions. You have to process the .lyx file by a command sed -f versiona.sed <myfile.lyx >myfile_a.lyx sed -f versionb.sed <myfile.lyx >myfile_b.lyx This could be made a lot more elegant by 1) Including dedicated 'colours' for this on the character dialogue, leaving the real colours alone 2) placing the above commands as one output item on the menu. ...if there is an interest in this, of course ;-) I haven't been thinking very deeply about this, but here might also be an approach to the multiple versions/comparison question that came up earlier. How realistic is that? Martin
/\\color magenta/ s/magenta/default/ /\\color blue/,/\(\\color default\|\\layout\)/d
/\\color blue/ s/blue/default/ /\\color magenta/,/\(\\color default\|\\layout\)/d
msg44804/pgp00000.pgp
Description: PGP signature