Charles, may I venture to disagree? for paragraphs, I'm not sure that paired XML-style tags would help. They'd take longer to put in to the original Word file, unless you have a helpful colleague who can write a macro to top and tail each paragraph with the name of its current style, and would probably be tricker to run search/replace on. Beautifully prepared text with significant character styles <cite>, <strong>, <emphasis> would be a different case.
John, an observation/apology: I should have added 'remove all autonumbering' as something to do before saving as .txt – the default behaviour here is one of the differences between Word and my usual documentation tool. My failure to do so probably accounts for the duplicate numbering: it looks as though the first (leftmost) number is being applied by the style, while the second is just text.
As for the persistence of the <:h1> tag, it's a question of how you beat search/replace into submission. Let's say your input file starts like this:
Code:
<:h1>On the Insert tab
<:p>The galleries include items that are designed to coordinate with the overall look of your document. You can use these galleries to insert tables, headers, footers, lists, cover pages, and other document building blocks. When you create pictures, charts, or diagrams, they also coordinate with your current document look. You can easily change the formatting of selected text in the document text by choosing a look for the selected text from the Quick Styles gallery on the Home tab.
<:h1>Both the Themes gallery
<:p>and the Quick Styles gallery provide reset commands so that you can always restore the look of your document to the original contained in your current template. On the Insert tab, the galleries include items that are designed to coordinate with the overall look of your document.
- Start the two-step search and replace with Find what? <:h1>, Replace with Style: Heading 1 – this uses the tag to apply the style
- Still with <:h1> in the Find what? field, click [No Formatting] at the bottom of the dialogue, then click [Replace All] – this deletes the tag, which has now served its purpose
HTH