# Re: Find All and Emphasize

On 08/12/2009 04:34 PM, Bruce Pourciau wrote:

Is there a simple way to go back through a document and italicize (emphasize) all occurrences of a certain word?


Not within LyX itself. The best way to do it is to run a script of some sort on the .lyx file. E.g.:

sed -e 's/ that / \n\n\\emph on\nthat\n\\emph default\n /g' < t.lyx >tt.lyx

is a dumb sed one-liner that almost does it.

rh