|
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:
-
Find the name of the .cst file associated with your document:
-
Open your SW document.
-
From the SW File menu,
chooseStyle.
-
Note the entry after the caption CST File.
-
Using an ASCII editor, open the .cst file.
-
Scroll through the file to find the section
[newtheorem].
-
Highlight the entire section and copy it to the clipboard.
-
Create an extra line between the end of one section and the beginning of
another.
-
Paste the contents of the clipboard on the new line.
-
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]
.
-
Change the line TAG_TYPE=TLTEMPLATE to
TAG_TYPE=THEOREMENV.
-
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.
-
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.
-
Save the file.
-
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.
|