To simplify the creation of OpenOffice.org documents which include
odfWeave commands, macros can be defined (thanks to David Winsemius
for the suggestion). Macros can be bound to keyboard shortcuts to
insert the various markup.
To create a macro to insert \Sexpr
{ }
, for example, start
OpenOffice.org Writer and:
- From the menus: Tools/Macro/Record Macro...
A small window opens with a button to allow you to stop recording
the macro.
- Type the string you want: For example,
\Sexpr
{ }
.
- Click the Stop Recording button.
A Basic Macros dialogue will appear with the names of existing macros.
- Type in the name of the new macro: For example, sexpr.
Now we want to associate the macro with a keyboard shortcut, perhaps
Ctrl-6:
- From the menus: Tools/Cutomize/Keyboard.
- Choose Ctrl-6 (or any other unused key combination).
- Within Functions:Category, expand the OpenOffice.org Macros entry.
- Expand user, then Standard, then click Module1
The sexpr macro name will appear in the Function column.
- Click Modify along the upper right side of the dialogue box.
- Click OK to exit.
Now, pressing Ctrl-6 within an OpenOffice.org Writer document and the
template will be inserted.
Copyright © Togaware Pty Ltd
Support further development through the purchase of the PDF version of the book.
The PDF version is a formatted comprehensive draft book (with over 800 pages).
Brought to you by Togaware. This page generated: Sunday, 22 August 2010