|
Document 114
How to add a style created in SW V. 2.01 to SW V. 2.5
Version: 2.x - Scientific WorkPlace & Scientific Word
If you created non-Style Editor styles in SW V. 2.01, you can add them to your
SW V.2.5 installation, then create new documents with them in SW V. 2.5.
Here's how to do it:
-
Transfer your style to the SWP25 directory:
-
Use the Windows File Manager to search for all of the style information files
(.cst, .shl, and .sty) in your SW V. 2.01 directory. For example, search for
mystyle.*
-
Copy the .cst and .shl files to the \swp25\styles directory.
-
In the \swp\tex\macros directory, create a subdirectory called
user where you can accumulate your style files.
-
From the File menu, choose
New.
-
Copy your .sty file to the new \swp\tex\macros\user directory.
-
From the File menu for SW V. 2.5, choose
New.
-
Select your style from the list in the Predefined
Styles dialog box. If your style doesn't appear, you must add an entry
to the .lat file for the document type corresponding to your style. You can
either
-
Cut and paste the entry from your SW V.2.01 installation, or
-
Create a new entry. If you decide to create a new entry, you should be very
familiar with LaTeX and with .lat files. You can find information about .lat
files in the document swp25\extras\tchref.tex. Here's how to create an entry:
-
Determine the document category to which your style belongs: book, article,
resume, etc.
-
Use the Windows File Manager to find the subdirectory corresponding to the
document category in the \swp25\styles directory.
-
Use an ASCII editor to open the .lat file associated with the directory. For
example, open thesis.lat in the \swp25\styles\thesisdirectory.
-
Create an entry for your style according to this model:
[MYSTYLE]
DESCRIPTION=My University Thesis
DOCSTYLE=[12pt,thmsa,mystyle] {book}
SHELLFILE=mystyle
CSTFILE=mystyle
DOCCLASS=[12pt,mystyle]{book}
PACKAGES={mystyle}
where
[MYSTYLE] is a label used by SW
DESCRIPTION is what appears in the Style field of
the Predefined Styles dialog box
DOCSTYLE is an argument for the \documentstyle
command in LaTeX 2.09 files
SHELLFILE is the shell loaded by SW if you create a
new document using this style
CSTFILE is a configuration required by SW
DOCCLASS is an argument in the \documentclass
command in LaTeX 2e files
PACKAGES is an argument in the \usepackage command
in LaTeX 2e files
-
Save and close the file.
-
Restart SW.
Your style should now be available from the Predefined Styles dialog box.
Added 06/26/96
This document was created with Scientific WorkPlace.
|