On Tue, 2008-04-08 at 00:40 -0400, H.S. wrote:
> 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.

Hello,

Same suggestion as H.S.: this is the typical case where you want to use
the AutoText function of OOo. 
1. Select the text (or a table, paragraph, ...), in your example Lbegin.
Make sure that the text is formatted as desired.
2. Edit>AutoText or CTRL + F3)
3. Give the text a mnemonic name and a shortcut (e.g. Lbegin for the
mnemonic, LB for the shortcut) and press AutoText > New. Don't select
New (text only) otherwise you will lose the formatting!
4. Close the AutoText dialog.

To insert the text in the document now all you have to do is to write LB
and then press F3. 

Autotext is particularly powerful to create pre-formatted tables,
equation numbers or dummy text (for the latter type DT and press F3). 

Now you are all set. Recording a macro that searches for LB and executes
the autotext is would be the next step, but it is not essential.

Cheers,

Michele



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

Reply via email to