How do i create a list of specific tagged sentences within a docum

G

George Damm

I am generating a document that contains a list of requirement to build a
piece of equipment. These requirements are interspersed with text showing
the justification for each requirement to create a readable format. I would
like to create a separate table in the document that extracts all of the
specific sentences that are requirements. Does anyone have a solution?

MS Word 2007

Thanks,
George
 
P

Peter Jamieson

There may be other well-established ways of doing this but one approach
is as follows:

Wrap each requirement in a { SET } field as follows:

{ SET requirementID "the requirement text" }

(You have to avoid double-quotes within the text to do that)

Follow that by a { TC } field, e.g.

{ TC { REF requirementID } }
or even
{ TC { requirementID } }

Follow that with a { REF } field, e.g.

{ REF requirementID }

Create a { TOC } field as follows to insert the list of TC texts:

{ TOC \f }

A TOC will always insert the TCs in the same sequence in which they
occur in the document, so if you need a different sequence, you would
probably have to jump through some more hoops.

If you want to generate requirementIDs (which may not be a good idea if
you are ever going to publish version 2 with new requirements within the
original sequence) you can use e.g.

{ SET "requirement{ SEQ ID }" "the requirement text" }

{ TC { REF "requirement{ SEQ ID \c }" }

{ REF "requirement{ SEQ ID \c }" }

If you want to include the requirement ID in the TOC, include it in the
TC fields, e.g. something like

{ TC "requirement{ SEQ ID \c }: { REF "requirement{ SEQ ID \c }" }" }

A lot of these things can be set up as autotexts/document building
blocks for relatively easy insertion.

NB, all the {} need to be the special field code braces you can insert
with ctrl-F9, not the ordinary {} on the keyboard.

Another approach is to do the complete reverse, i.e. something like
- Create your list of requirements at the point you need it in the
document.
- Bookmark each requirement with a unique name.
- Insert the requirement text where you need it using a REF field.

Peter Jamieson

http://tips.pjmsn.me.uk
 
S

Suzanne S. Barnhill

You could generate a TOC containing these sentences if you either applied a
specific style to them or created TC fields based on them.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top