new environments klickable from SW's Item Tag menu

2nd2god's picture

How can I create new environments klickable from SW's Item Tag menu which do not vanish after re-opening a document?

 

tomprice's picture

Please give an example of the

Please give an example of the type of environment you wish to implement.

Regards,

--Tom Price

2nd2god's picture

For example, the comment

For example, the comment environment from the version package.

Cheers and thanx,

André

tomprice's picture

I assume you are familiar

I assume you are familiar with Document 657 in the MacKichan technical support. I use the following steps to generate item tags.

  1. Determine which cst file your document uses. You can do this by clicking Style under the File menu when the document is open in SWP.
  2. Close your document.
  3. Locate and open the style file in a tex editor. This should be in the C:\SWP55\Styles folder.
  4. Make a backup of this file.
  5. Enter the line \newenvironment{nameofenvironment}{}{} as indicated below. Filters are located at the top of the document. You can add as many as you need. Do not remove any of the existing lines.
    [FILTER]
    \newenvironment{error}{}{}
    \newenvironment{nameofenvironment}{}{}
    \TCIEnd
  6. Same this file; do not change the name.
  7. Open your document; any new environments you added should appear in the item tags menu.

Good luck.

Regards,

--Tom Price

 

2nd2god's picture

That works. Great manx

That works. Great manx thanks.

André