logo

 

     
 
BW2 Home
BW2 Site Map
BW2 Popular Articles
BW2 Search
Using This Site...
 
 
Bitwise Home
 
 
 

rss

 
 

ruby in steel

hostgator

 


Section :: Rants and Raves

- Format For Printing...

Microsoft Word (Expletive Deleted) My Document!

The Document Map, A Table Of Contents and Scrambled Eggs...
Saturday 29 September 2007.
 

Microsoft Word is a wonderful word processor but, by heck, it’s far, far too complicated. The latest version (2007), misguidedly tries to hide the complexity by putting lots of nice friendly-looking buttons across the top of the screen, thereby making it almost impossible for those of us who’ve used previous versions to find the functions that were previously on menus and (worst of all), stuffing a huge amount of features into a ‘Word options’ menu/dialog box thingummy which is the software equivalent of a haystack for needles.

Those blasted button bars must seem easy to use to someone, I suppose - but certainly not to me!

But let me not go down that route. Suffice to say I am not a fan of the Word 2007 user interface.

I am, however, more appreciative of the Document Map. Well, up to a point...

The Document Map is the pane that can optionally be displayed at the left-hand edge of the editing area. It shows an tree-view of a document with headings and subheadings arranged on indented levels. It’s a bit like using Word in Outline mode but without all the body text. Or, to put it another way, it’s like a hyperlinked Table Of Contents. To move rapidly around a long document, you just click a chapter heading or a subheading in the Document Map.

I am writing a book at the moment (on programming in Ruby - the perfect Christmas present, be sure to order a copy!!!) and, having decided to publish this myself (see my recent article on ‘Print On Demand’ publishing), I have been obliged to go through the rather complex process of formatting a book of more than 400 pages in length, including adding an index and a table of contents. The indexing has been time consuming (you have to mark each index entry longhand) but straightforward; generating the table of contents, on the other hand, took only seconds to do but hours to fix...

Put bluntly, the TOC-generator screws up.

What happens is this. First I check the Document Map to see that all my heading and subheading levels are correct. Then I put my cursor into a blank page towards the front of my document. then select the Reference toolbar, Table Of Contents, Insert Table Of Contents. In a dialog, I pick a TOC style, set the number of heading ‘levels’ (4) that I want to be included and, just for good measure, click the Options button and select the option to generate the TOC from outline levels but not from styles. Then I click OK, and a few seconds later, a nicely-formatted table of contents appears in my document and I am left happy as the proverbial sand boy.

Until I reopen that document later on, that is...

Because, when I reopen it, the Document Map is screwed...

Here’s the Document Map (left) before I save the document and here it is (right) well and truly scrambled when I reopen the document...

There are headings and subheadings where headings and subheadings should not be. Often random bits of text are indented as heading levels. And, if I now regenerate the TOC, all these random bits of text are listed as chapters and topic headings. In short, the lovely well-ordered table of contents of my lovely, well-ordered 400+ page book has now been scrambled as thoroughly as two eggs with sausage, bacon and mushrooms on the side...

Grrrrr! (for the record, ‘Grrrrr!’ was not actually the word I used at the time but it will do as a substitute).

Fortunately, I take daily backups so I was able to restore the book to its pre-scrambled state in less than an hour. But that didn’t solve the problem of how to give it a table of contents without putting it through the blender.

Anyway, after wasting half an hour Googling for help (unsuccessfully), I decided to rely upon my own inventiveness. I tried using different TOC options - with and without styles, different numbers of heading levels and so on. To no effect. I tried saving to RTF and DOC format instead of to the new Word DOCX format - the same problem occurred.

Finally, in desperation and with next to no hope of success, I tried turning off the Document Map, generating the TOC, saving the file and reopening it. And to my frank astonishment, this actually did the trick!

I have had a few problems with the Document Map before but I still use it. It is just so darn’ useful when working with long documents. I still have no idea why TOC generation screws it up. All I know for sure is that it does.

As I was saying, Word is just too damn’ complicated!

AddThis Social Bookmark Button

Forum

  • Microsoft Word (Expletive Deleted) My Document!
    4 September 2008, by Michael Lum

    It seems to have always been Microsoft’s habit to add bells and whistles with little regard for eloquence and simplicity. Where the (expletive deleted) are the (expletive deleted) text alignment buttons? I could care less about tables, endnotes, footnotes, etc., if I can’t type a simple note and make it look nice. Steve Jobs was right about Microsoft; they simply have no taste. For once, I would like to see something from that company that was simple, less cluttered, and easier to use. Case in point, I love the new Google Chrome (beta) browser. Microsoft, why did you have to move all the command buttons to the right, when they used to be on the left? Will version 9 have them on the side or the bottom? Microsoft, if you’re listening, it’s not the cute little Widgets that makes Apple’s approach appealing; it’s the elegance and tasteful environment that Mac users have come to appreciate.

    As a dual platform user, I came to despise rude interruptions such as the paper clip—"looks like you’re trying to type a letter...." My reply, "that’s nice, now get the @#$! out of my way." Microsoft often has its own agenda, and its often not the user’s. I have Windows Vista on my Mac, as well as the new MS Office, but after playing around with Pages and hell, I don’t remember the name of their new Word, I decided to purchase iWorks, because quiet frankly, it’s better as an everyday lay person’s word processor.

  • screwed up document maps
    12 August 2008, by Derek
    thanks for posting these workarounds. It’s too late for my document map in my 130 page spec, but at least I know how to get around it in the future. It does seem to be related to TOC generation, though it doens’t happem for me all the time.
  • Microsoft Word (Expletive Deleted) My Document!
    15 June 2008, by Matt

    The same happened to me. I had unfortunately saved the document so the screw-up in Document Map was permanent.

    However I was able to fix it because I had saved a slightly earlier version under another name. I then compared the two documents in Word 2007 and had the changes shown in the later document. I found that at each false entry in Document Map the offending text in the document had been re-formated somehow to "Level 1". The document comparison identified the change at each location as "Formatted: Level 1". I have no idea what Level 1 was as it isn’t even a style.

    I accepted the changes I wanted to keep and then rejected all the other formatting changes and voila! document map looking good again.

    So you can either do the above if you have a copy under another name, or if you are tracking changes and the reformatting is identified you can simply reject the formatting changes.

  • Microsoft Word (Expletive Deleted) My Document!
    9 February 2008, by Stuart

    I’ve had the same problem in Word 2002 (XP). In my observations below, DM = document map and TOC = table of contents.

    Tips to prevent or deal with the problem

    •Exclude the TOC until you’re ready to either print the document or convert to PDF. The TOC and the DM seem to interact to create instability.

    •Always close the DM pane before closing your file or Word. The DM is more stable when a document is opened with the DM pane is closed.

    •Always open documents with DM pane closed. If you’re uncertain, start Word first, close the pane, then open your document.

    •You can tell that your DM is being scrambled if Word shows the “Word is formatting the document…” status bar while the file is opening.

    •Always check your DM when you first open the file.

    •The only time I’ve noticed a DM become scrambled is on open. This doesn’t mean there aren’t other times it’ll become scrambled. For example, I’d be cautious by closing the DM pane when generating a TOC, or printing or converting documents to PDF, especially if they contain a TOC.

    •I don’t know what makes a file susceptible to scrambling on open in the first place.

    •As soon as you notice your DM is scrambled, close your document without saving.

    •Saving the file with a scrambled DM will permanently scramble both the DM and the TOC. It’s actually the heading level tags that get scrambled.

    •Use Word’s auto-backup feature: Tools -> Options; Save tab; check “Always create backup copy.” Lets you roll back one save.

    •Create and keep frequent backups of your own, even several in a day if you’re being particularly productive: time is precious; disk space is cheap.

    •If you don’t need the really rapid navigation offered by the DM, try using Outline view instead. According to what I’ve read, it’s not prone to scrambling.

    •Additional observations: Merging an older, unscrambled copy with a scrambled copy passes the scrambling on to the good copy, no matter which direction you merge (good into bad, or bad into good), or which document’s formatting you opt to retain. I haven’t found any way to repair/recover a scrambled and saved file, but I haven’t tried any commercial recovery products.

    To remedy

    If your DM becomes scrambled and you haven’t saved your document:

    1. Close the document and Word without saving
    2. Open Word
    3. Close the DM pane
    4. Open your file

    You’ll then be able to open an unscrambled DM pane or generate an unscrambled TOC. You’ll even be able to open the file with the DM pane open and not re-scramble the DM, until …

    • Microsoft Word (Expletive Deleted) My Document!
      21 February 2008, by Bob Lyons

      Good morning, Helpful Someone,

      I am a beginner as far as Document Maps are concerned, but finding specific places in my 42,000 words for additions, deletions, and further editing were time consuming. I gave the various parts titles, and one day when I opened the document there was a Document Map. Wonderful and convenient for locating any part of the text!! Then, one day I opened the document and the map was totally scrambled. Worse, the text was scrambled to be consistent with the scrambled map. WORST of all, the contents of each titled part were also scrambled! A paragraph from one titled part appeared some otherplace. My entire text was incredibly scrambled.

      Is there any way I can get my text with their titles back? I can live without the document map, but I can’t imagine trying to reassemble the original text from this mess, nor do I have the character to write the whole thing over. HELP! boblyons@triconet.org or (520)207-5611 call collect or 1132 West Mtn. Stone Drive, Green Valley, AZ 85614

  • Microsoft Word (Expletive Deleted) My Document!
    6 February 2008, by Kiti
    Don’t blame 2007 for this entirely, I have had the same problem in 2003 a couple of times as well.
  • Microsoft Word (Expletive Deleted) My Document!
    1 January 2008, by Michael
    I just encountered the same problem and almost had a heart attack. The problem is sometimes solved if I close the document map then close the document. Then, the next time I open the document the document map is normal. If I don’t close the document map before closing the document I have a colosally destroyed document map. Please post or email if you have any additional information on this...bug.
  • Microsoft Word (Expletive Deleted) My Document!
    15 November 2007, by Alexander Dahl
    I must agree, especially with the expletive part - I wished I knew a way to uncover the hidden markup/code and figure out what causes this problem. I hope Microsoft will take notice and correct this bug! Cheers!
  • Microsoft Word (Expletive Deleted) My Document!
    27 October 2007, by Wilfried
    I have the same abysmal situation, both with DM and TOC: they show hundreds of items that are not supposed to be there. But whatever I try, it won’t restore a normal DM and TOC. Have tried everything, switching off all possible automatic features. Word 2007 is a disaster for advanced users.

Home