I've been doing some consulting, putting together documents in a nice neat organized master document. However, some of the features weren't working--I was having trouble overriding the pagination of the headings at the beginning of each new subdocument, for instance.
Then I talked to my contact with the client and he said that the document had originally been created in the early 90s, in WordPerfect 5, on UNIX. It's nearly 20 years old and has been through at least three major document type conversions and three different operating systems. Not to mention all the different versions of WordPerfect.
This can take a toll on a document.
So I am taking the content, copying it, creating a new empty text document, and doing a special paste as unformatted text into the new document to nuke away all the vestigial formatting of the last two decades, and re-applying the formatting.
(Edit > Paste Special, and choose Unformatted Text.)
When you have an old document that's been through so much, it's not OpenOffice, it's the gunk that the document is dragging along with it. Once I did the paste special, all the formatting worked exactly as it's supposed to.
I’ll start this explanation with an example. Here’s a document. I set up the outline numbering as shown, with level 1 as SectionTitle and level 2 as the Numbered Heading. I set up level 3 as the Revised Date.
However, when I tried to insert the current Revised Date in the footer (by inserting the “level 3 chapter” using running headers) it didn’t work, It just showed the most recent content for the Numbered Heading style.
That’s because you have to set up the outline numbering in the same order the styles first appear in the document, for the running headers and footers to also work.
So this is how I ended up doing the outline numbering, even though that’s not really an accurate representation of the structure of the document.
Now, if you don’t want your table of contents to have to follow the order that your outline numbering does, that’s no problem. When you're setting up the TOC, in the main tab select Additional Styles and unmark Outline if you don't want the Outline headings in the TOC. Then click the ... button next to the Additional Styles checkbox and pick the styles you want. You can also select any individual paragraph (Format > Paragraph, Outline tab, and choose what level in terms of outline numbering you want it to be on; then if you have the Outline checkbox marked for the TOC, that paragraph will show in the TOC.)
When you do mail merges, especially those involving addresses, some people have apartments and some don't.
If you are using an Address2 field in the address block, you need to hide that line if it’s empty.
Here’s how to hide any line. Let's assume here that the database I'm using for the mail merge is called nameslist_newcustomers.odb, that the table I'm using is just called Sheet1, and the address 2 field is called, well, Address2.
Get the mail merge document ready, with all the fields brought in. Be sure that you have the Address2 field, or the field you want to hide, on a line of its own, since the whole line, i.e. everything in that paragraph, will be hidden.
Click to the left of the Address2 field. (You can click anywhere on the line, but it’s simpler to always do it one way.)
Choose Insert > Fields > Other.
Click the Functions tab, then select Hidden Paragraph.
Type the following; the fieldname that might be empty is the fieldname you want to specify. This means everything on that line will be hidden if that field is empty:
You won’t see anything appear; it will look like the picture below.
If you want to prove to yourself it’s there, click to the right of the Address2 field, press the left arrow once, and press space three times. You’ll see there are two fields, the hidden paragraph field and the regular Address2 field as shown on the right. Now press Backspace again three times so that you won’t have extra spaces in the document.
You’re all set. Now when you print the line that the hidden paragraph field is on will show only if there is a value for that record for Address2.