Document 148

How to fix function key assignments for item tag environments by modifying the cst file

Version: 2.5 - Scientific WorkPlace & Scientific Word

In SW 2.5, when you assign a function key to an environment such as Exercise, Remark or Example (shown in the list of item tags associated with your document style), the assignment doesn't hold unless the environment is defined in its own section of the .cst file associated with your document. You can solve the problem if you modify the .cst file like this:

  1. Find the name of the .cst file associated with your document:

    1. Open your SW document.

    2. From the SW File menu, chooseStyle.

    3. Note the entry after the caption CST File.

  2. Using an ASCII editor, open the .cst file.

  3. Scroll through the file to find the section [newtheorem].

  4. Highlight the entire section and copy it to the clipboard.

  5. Create an extra line between the end of one section and the beginning of another.

  6. Paste the contents of the clipboard on the new line.

  7. Change the name of the section to reflect the name of the environment to which you want to assign a function key. For example, change [newtheorem] to [exercise] .

  8. Change the line TAG_TYPE=TLTEMPLATE to TAG_TYPE=THEOREMENV.

  9. Add a new line and enter Alias=Exercise where Exercise s the name of the section. This makes the name appear on the Item Tag popup list.

  10. Add a new line and enter TAG_LEADIN=Exercise where Exercise is the name of the section. This makes the name appear in the yellow lead-in tag.

  11. Save the file.

  12. Reopen your document.

The tag will now appear in the Item Tag popup list and in the yellow lead-in tag.

Revised 04/10/96

This document was created with Scientific WorkPlace.