Document 421 Using shells and typesetting specifications from outside sourcesVersion: 3.x, 4.x, 5.x - Scientific WorkPlace & Scientific Word Although we provide many shells and typesetting specifications with SWP and SW, you may need to add specifications that you obtain from a publisher or from some other source for TeX and LaTeX files, such as the Comprehensive TeX Archive Network (CTAN). The CTAN directory on your program CD contains the typesetting specifications and files as distributed on CTAN, but only those files needed for typesetting are installed with the program. NoteWe have tested the shells and specifications provided with our products, but we can't guarantee that other specifications will work with our products, nor can we guarantee that the documents you create with those specifications will behave as the specifications advertise. Further, we don't support documents created with specifications not provided with our products. Nonetheless, if you do add typesetting specifications, it's important to install them correctly. Please don't attempt to add specifications if you aren't familiar with TeX and LaTeX. NoteWe do not provide Technical Support services for shells and documents created with typesetting specifications obtained from other sources. Adding LaTeX typesetting specifications to your installation involves these steps: We illustrate these instructions by showing how to install the specifications contained in \CTAN\macros\latex\contrib\supported\uaclasses on your program CD. These files adhere to the typesetting requirements for theses and dissertations at the University of Arizona. These instructions assume you have installed SWP in the directory c:\swp55. If you're using SW, a different directory, or a different version, substitute the correct directory path in the instructions. Step One: Place the typesetting specification files in an appropriate directoryA set of LaTeX specifications can involve several files: cls, .clo, and .sty files as well as installation files (.ins), sample documents, and readme files, which often contain installation instructions. To ensure the new specifications are available to TrueTeX, place the files anywhere in the TCITeX\TeX directory of your SWP or SW program directory. We suggest that for each set of specifications you create a new subdirectory within TCITeX\TeX. If you obtained the files from CTAN, follow the directory structure used there.
Step Two: Complete any required installation steps
Processing the files often creates additional files required by the specifications. In the example, the readme file says to run LaTeX on two files: ua-classes.dtx and ua-classes.ins. Step Three: Test the specificationsSpecifications can have associated sample documents. Test the sample documents by running them through LaTeX before you try to open them in SWP or SW.
Step Four: Open the sample documents in SWP or SWOpening sample documents created with native LaTeX can have unpredictable results in SWP and SW. The program may not handle the documents correctly and might even crash while it tries to load the file. Make a copy of the .tex files for the sample documents before you attempt to open them.
Step Five: Create and modify a new .cst fileWhen you open a document, the program uses the associated .cst file to display the document on the screen and to reflect the available environments, objects, and tags. (The .cst file has no effect on the document's typeset appearance.) Create a .cst file for the new specifications. You can probably copy and modify an appropriate existing file successfully. If the new specifications are similar to an existing document class and include no new objects, you can probably use any .cst file for a similar document class. The .cst files are installed in the Styles directory of your program installation or in one of its subdirectories. However, if the new specifications implement a new base document class, you need a new .cst file so that the program can display documents created with the new specifications. The process of creating and modifying the .cst file differs for earlier versions of the program In the example, the uaclasses specifications represent a new base document class called ua-thesis, so a new .cst file is required. Save it in a new subdirectory in the Styles directory and then modify it so that the screen display reflects the new document elements, objects, and environments implemented by the typesetting specifications. Finally, modify the sample document to reflect the new .cst file so that it can be opened successfully in SWP. Creating and modifying the .cst file in Version 4 and later
Creating and modifying the .cst file in Version 3.5 and earlierLook in the .cls file for new environments, theorem objects, and front matter elements. These objects are often signalled with \def or \newcommand statements. If you can find another .cst file that reflects the object, you can copy the object to the new .cst file. In the example, the ua-thesis specifications add an abstract to the standard LaTeX report class, so the .cst file must reflect the new object. We searched other .cst files were searched to find an abstract object, copy it, and add it to ua-thesis.cst. The resulting .cst file is Styles\ua-thesis\ua-thesis.cst, on the program CD.
Changing the sample document so that it will use the new .cst file
Step Six: Create a new shell document for the typesetting specificationsUse the sample document as the shell document, modifying it as you wish.
Step Seven: Modify the program interface (optional)So you can work with the new specifications from the Options and Packages dialog box, you can modify the interface in two steps:
Step Eight: Create a new document
See also
Last revised 08/18/05 This document was created with Scientific WorkPlace. |