On 04/07/2008 09:25 PM, Scott Meyers wrote:
> I'm working on a document where I have repeated phrases that are a
> pain to type and format.  One is "Lbegin" where the "L" is normal
> text and the "begin" is subscripted and italicized.  To save time, I
> just typed "Lbegin" everywhere, formatted the first one, copied it to
> the clipboard, then sat down to search for "Lbegin" and replace it
> with the contents of the clipboard.  Except that this does not seem
> to be a valid replacement option.  I also tried pasting the formatted
> "Lbegin" into the replacement box, but that lost all the formatting,
>  i.e., "begin" was neither subscripted nor italicized after
> replacement.
> 
> I tried the Find/Replace extension at 
> http://extensions.services.openoffice.org/project/AltSearch , because
> it claims to support replacing found text with the contents of the
> clipboard, but when I tried it, the "Lbegin" that was inserted was
> entirely subscripted and italicized, i.e., the inserted "L" was
> incorrectly formatted.
> 

Search for: .begin/>
Replace with: begin
More Options:
Regular expressions is ticked
With the cursor in the "Replace with" select the replacement work
(begin) and then "Format". Format to subscript and italic.

Now click "Find" and replace as necessary. Note: the above will not find
 the whole word "Begin" at the start of a sentence, but it will find "
begin" and " Begin" so you'll need to watch what you are replacing, i.e,
you can't just do a "Replace All".


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to