Document 607

Paragraph tags affect searches

Version: 4.x & 5.x - Scientific WorkPlace, Scientific Word, & Scientific Notebook

By default, the program remembers search patterns. When you perform a search, the Find dialog opens showing the previous search pattern, including any tags that were applied to it. Although this feature can save time, it can also affect your search results when you move from document to document.

When you try to search a document after previously searching another document that has a different set of tags, the program opens the Find dialog showing the previous search pattern and the tags that were applied to it, even if those tags are not defined for the current document. If you change the search pattern but leave the tags unchanged, the program will find all occurrences of the search pattern if the tag used previously happens to be the default paragraph tag defined in the .cst file for the current document. Otherwise, the program will not find any occurrences of the search pattern in the current document unless they have been specifically tagged the same way.

To find all occurrences of the search pattern in your document, the search text must be tagged with the default paragraph tag defined in the .cst file associated with the document. Usually but not always, the default paragraph tag is Body Text. To determine the default paragraph tag for your document, follow these steps:

  1. From the Tag menu, choose Appearance.

  2. Select Modify Style Defaults.

  3. In the Tag Properties box, select Global Properties and choose Modify.

    The program displays the default paragraph tag in the Tag for Starting Paragraph box.

  4. Choose Cancel to close the dialogs.

When you begin a search, make sure you apply the default paragraph text to the search pattern.

Last revised 01/20/06

This document was created with Scientific WorkPlace.