Hi Helge

thanks a lot - I thought this would be the only option at the moment.

Therefore I have a question for a extension of the search / replace to
include options to including formating, i.e. emphasized, noun,
underlined. It would be of great help in e.g. biological articles where
species names have to be in italics / emphasized.

Rainer

Helge Hafting wrote:
> Rainer M Krug wrote:
>> Hi
>>
>> is there any possibility to do a Search - Replace in such a way that
>> e.g. I can replace SearchTerm with SearchTerm (emphasized)?
>>   
> Can't be done inside lyx, but it can be done with a trick.
> Some work, but it is worth it if you have _lots_ of terms:
> 
> 1. Save your file and exit lyx. Make a backup copy of the .lyx file.
> 
> 2. Note that the .lyx file really is a text file, so open it in a text
> editor
>    (vi/emacs on linux, notepad on windows)
> 
> 3. Notice how "emphasize" is represented in the textfile
> 
> 4. Do a search-replace with your text editor.  You will usually need
>    an editor capable of replacing linebreaks.
> 
> 5. Save and exit the text editor, re-open the file in lyx. Check that
>    it is ok, otherwise restore the above mentioned backup.
> 
> 
> Helge Hafting


-- 
Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation
Biology (UCT)

Department of Conservation Ecology and Entomology
University of Stellenbosch
Matieland 7602
South Africa

Tel:            +27 - (0)72 808 2975 (w)
Fax:            +27 - (0)21 808 3304
Cell:           +27 - (0)83 9479 042

email:  [EMAIL PROTECTED]
        [EMAIL PROTECTED]

Reply via email to