Document 679 Modifying the program interface for added LaTeX packagesVersion: 5.x - Scientific WorkPlace & Scientific Word To simplify the use of a package that isn't provided with SWP or SW, you can modify the program interface so the package and its options are available from the Options and Packages dialog box. The modification is optional. If you don't modify the interface, you can go native to specify package options. Modifying the interface for an added package involves adding information to two files (classes.pkg and packgs.opt) in the Typeset directory of your program installation. The file classes.pkg contains a section for each available document class listing packages that are available to be added to documents of that class. A typical listing begins like this:
The packgs.opt file lists the options available for each file in the program installation, as shown in this example for the titletoc package:
[titletoc] The first-level numbers indicate the option category. The second-level numbers indicate the option as it appears in the Options for package dialog box, followed by a comma and the name of the option as defined in the package itself. Read the package documentation to determine the available options for new packages, then modify the interface to include the new package:
The next time you open the Options and Packages dialog box, the categories and their corresponding options will appear in the Options for package dialog box. Last revised 06/15/06 |