Tricks for working with fields
Keyboard shortcuts for fields
Here are some handy keyboard shortcuts to use when working with fields:
Ctrl+F2 Open the Fields dialog box.
Ctrl+F8 Turn field shadings on or off.
Ctrl+F9 Show or hide field names.
F9 Update fields.
Fixing the contents of fields
You can specify Fixed content for many items on the Document and DocInformation
pages so the field contents do not update. For example, you might use a field to insert
the creation date of a document, and you would not want that date to change. In
another place you might use a date field to show the current date, which you do want
to change; in that case, deselect Fixed content when you insert the field.
Converting fields into text
Writer does not provide any easy way to convert field contents into text. To do this,
you need to copy the field contents and paste them back as unformatted text. This is
not a very good solution if you have hundreds of fields that you want to change, but
you could use a macro to automate the process.
Developing conditional content
Conditional content is text and graphics that are included or excluded depending on a
condition you specify.
A simple example is a reminder letter for an overdue account. The first and second
reminders might have a subject line of “Reminder Notice”, but the third reminder
letter might have the subject “Final Notice” and a different final paragraph.
A more complex example is a software manual for a product that comes in two
versions, Pro and Lite. Both product versions have much in common, but the Pro
version includes some features that are not in the Lite version. If you use conditional
content, you can maintain one file containing information for both versions and print
(or create online help) customized for each version. You do not have to maintain two
sets of the information that is the same for both versions, so you will not forget to
update both versions when something changes.
Choose the types of conditional content to use
This section describes several Writer features that can help you design and maintain
conditional content. You can use one or any combination of these features in the same
document.
Conditional text
With conditional text, you can have two alternative texts (a word, phrase, or
sentence). One text will be displayed and printed if the condition you specify is met,
and the other will be displayed and printed if the condition is not met. You cannot
Chapter 14 Working with Fields 397
Comentarios a estos manuales