On Mon, Apr 26, 2004 at 02:30:21PM -0300, Beny Spira wrote: > > If pressing two keys is too expensive (and I agree there are situations > > like that), maybe you should just write your document without any such > > markup and rather add it add the end using a simple script. > > > > Andre' > > Thanks Andre > Yes, it is indeed the case. I have to spend a lot of time pressing again > and again c^E. I would appreciate if you could explain me or suggest a > literature where I could learn about making a script for this task.
An italized phrased looks like \emph on phrase \emph default in a .lyx file. So perl -pi -e 's: word :\n\\emph on\n word \n\\emph default\n:g' file.lyx would modify file.lyx such that all occurences of 'word' will be emphasized. Be careful however and try a copy of your file first or use perl -p -e 's: word :\n\\emph on\n word \n\\emph default\n:g' file.lyx > file2.lyx Andre'
