Expertsystemen

 

Your references

Now it’s time to add the two text fragments to a document. If you forgot how to do this, head over to the section about text fragments. After having added the text fragments to the document, it should look like the picture below. Take into account that the anchor created is part of a numbered list, otherwise it will not update the references dynamically.

adding the reference and anchor in a Word document
adding the reference and anchor in a Word document

Save the document and your model in the same folder and create a link to the document. If you run through your model now and open the document, you should be able to [Ctrl+click] on the reference created. The cursor will then jump to where you have put the anchor.

To show how the dynamic references work, add an item to the numbered list above the one that already exists. In our case this could be as follows:

  1. Introduction
  2. <text name="anchor"/>xxllnc Expertsystemen

If you run through the model again and open the document, you will see that the number used as reference will not have changed. This has to do with Microsoft Word functionality itself: the program does not automatically update text fields. To update the text of a reference, select the text block with the reference in it, right-click, and select Update Field or press [F9]. After this, the number should change to the correct number.

the result of cross-references
the result of cross-references

In order to update all cross references in your document in one sweeping go, select all text and press [F9].

Note that when converting the Word document to PDF all references will also be resolved, so no manual human intervention is needed.

This example explains the basics of using cross-references. You could also use references in text fragments with conditions to create a dynamic reference system based on the text fragments used.