Just Write Click

Technical writing with Continuous Integration and docs-as-code

  • JustWriteClick
  • Contact
  • Books by Anne Gentle
  • Introducing Docs Like Code
You are here: Home / techpubs / Publish a Word outline using Author-it

July 17, 2008 by annegentle

Publish a Word outline using Author-it

At ASI, we’re working on book skeletons while we do task analysis for new documentation or feature updates that may change the way users do their work with iMIS. So, to get early feedback, we wanted a way to publish an outline of that skeleton book with no page numbers, but headings and subheading levels indicated clearly.

My first attempt at a macro called within the AfterPublish macro gave me the inverse of what I wanted (content but no outline), but my coworker Mary Connor, being the VBA expert that she is, came up with a working macro. It basically says, if you’re a section break after the 2nd section break, throw that content away but keep the table of contents content.

Here is an overview of the steps to get an outline out of a book made in Author-it.

These are pre-requisites to the publishing step:

In Author-it, create a six-level TOC object that doesn’t contain page numbers. Six was the number of levels we thought was an extreme case, and you can’t go higher than six levels of heading in HTML anyway, so six seems like a good number for us. Your situation may vary.

In the .dot file that contains your AfterPublish macros, create a TrimToOutline macro that contains this code:

Sub TrimToOutline()
'
' Freezes table of contents field, then strips off everything after the contents:
' Macro recorded 6/26/2008 by Mary Connor
Dim dSection As Section
Selection.WholeStory
Selection.Fields.Unlink
For Each dSection In ActiveDocument.Sections
If dSection.Index > 2 Then
dSection.Range.Delete
End If
Next
End Sub

In the Sub AfterPublish() area of your Word template file, put a call to TrimToOutline.

In Author-it, create a new book template for outlines, and point it to the .dot file that contains that macro code above.

Next are the steps for publishing your sub-book content to a Word outline-only document. It’s not actually in the Word outline view, but rather, a table of contents without page numbers, but based on the skeleton sub-books placed within the book you’ll create below.

  1. In Author-it, create a book using the outline book template that you created previously.
  2. Drag any sub-books into this new book and save the new book.
  3. Publish to Word.
    The resulting Word document should contain only a title page and a table of contents.

I’d love to hear feedback or ideas for improving this specialized output for Author-it, so please feel free to comment.

Related

Filed Under: techpubs, tools, work Tagged With: author-it, AuthorIT, help authoring, Help Authoring Tool, outline, single sourcing, user assistance, Word

More reading

Bubble graph showing sources of developer support data

I’ve been thinking a lot about developer support at Cisco recently, especially for the way the world works today with multiple cloud providers. This post is a re-publish of my talk from over five years ago, but the techniques and tools for listening and helping others are still true today. At Rackspace, we watched several […]

Cisco DevNet is our developer program for outreach, education, and tools for developers at Cisco. From the beginning, the team has had a vision for how to run a developer program. Customers are first, and the team implements what Cisco customers need for automation, configuration, and deployment of our various offerings. Plus, the DevNet team […]

I had a great talk with Ellis Pratt of Cherryleaf Technical Writing consulting last week. Here are the show notes, full of links to all the topics we covered. Podcasts are great fun to listen to and participate in, if a bit nerve-wracking to think on your feet and make sure you answer questions succinctly […]

At the beginning of this year, I worked hard to summarize my thoughts on API documentation, continuous publishing, and technical accuracy for developer documentation. The result is an article on InfoQ.com, edited by Deepak Nadig, who also was forward-thinking in having me speak to a few teams at Intuit about API documentation coupled with code. Always […]

Recently on Just Write Click

  • A Flight of Static Site Generators: Sampling the Best for Documentation
  • Try a GPT about “Docs Like Code” to ask questions
  • Discipline and Diplomacy: Docs in the Open
  • Let’s Find Out: When Do Static Site Generators Do Rendering?
  • GitHub for Managing Tech Docs

Just Write Click in your Inbox

Enter your email address to subscribe to Just Write Click and receive notifications of new posts by email.

Read More

  • Privacy Policy
  • About Anne Gentle, developer experience expert
  • Books by Anne Gentle
    • Conversation and Community
    • Docs Like Code, a Book for Developers and Tech Writers
  • Woman in Tech Speaker Profile
  • Contact

Books

  • JustWriteClick
  • Contact
  • Books by Anne Gentle
  • Introducing Docs Like Code

Copyright © 2025 · WordPress · Log in