Cross references to new paragraphs

J

Jeannie

I have created a document with automatic headings and cross references. I
need to be able to copy some of these paragraphs the cross reference changes.
For example:
- in paragraph 1 I have a cross reference to 2.2
- I copy all the paragraphs from 1 to 3 at the end of the document
- paragraph 1 becomes 6 and paragraph 2.2 becomes 7.2
- I need the cross reference in paragraph 6 to be 7.2 and not 2.2
- F9 does not work for this
Can anyone help me?
Thanks
Jeannie
 
J

Jeannie

Thanks for the answer and the demo, however, I may be using the wrong tool to
do what I want to do.
In the same document I have two headings called Interpretation, one is 1 and
the other is 7. In this same document, I also have two subheadings called
Definitions, one is 2.2 and the other is 7.2. In paragraph 1, I reference
2.2, in paragraph 7 (which is just a copy of paragraph 1), I reference 7.2,
however, when I copy paragraph 1 and it becomes paragraph 7, the cross
reference still goes to 2.2 instead of 7.2
Any ideas how I can do this in an automatic manner?
Thanks
 
L

Lene Fredborg

Just now I cannot imagine how you can do what you want automatically (but
there may be a tricky way using StyleRef fields - see below). The
cross-reference you have in your heading no. 1 has a reference to the _Ref
bookmark that surrounds your heading no. 2.2. When you copy heading no. 1 and
paste it as heading no. 7, the bookmark reference in the pasted heading
remains the same and will thus continue to point to your heading no. 2.2.
Therefore, you will have to replace the cross-reference in your heading no. 7
by a new one that points to 7.2.

The only alternative I can think of is the following (not described in
detail):
Create a special paragraph style (not outline numbered) + a character style
for the headings (2.2 and 7.2) you want to cross-reference. Apply the
paragraph style to 2.2 and 7.2 (the numbers must be entered manually), apply
the character style to the number. Instead of inserting a cross-reference in
your heading no. 1, insert a StyleRef field to the special character style.
The StyleRef field should then (hopefully) show the number of the correct
heading when updated. However, there are several things you will have to take
care of: the numbering that is broken, the style definitions, etc. I don’t
think it is worth the effort and it may not work correctly anyway…

Maybe there is an easy solution, but I cannot find it just now.

--
Regards
Lene Fredborg
DocTools - Denmark
www.thedoctools.com
Document automation - add-ins, macros and templates for Microsoft Word
 

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