Version 5.5 includes the TrueTeX implementation of LaTeX. This implementation cannot be updated to the current version of LaTeX. For most Version 5.5 documents this is not a problem. However, there are some updated typesetting specifications that require using more recent versions of LaTeX. The following steps will allow you to use the current TeX Live implementations that is included with Version 6 to compile for PDF when using Version 5.5. Only PDF is available when typesetting using TeX Live.
These instructions are for Windows since Version 5.5 is a Windows only program. The instructions also assume that you have installed Version 6 with TeX Live 2019 that is available when this article was written using Version 6.0.30.
Creating a new PDF Format Settings selection
In Version 5.5, select Typeset, Expert Settings. As shown below, select from the drop down the entry "TeX Live 2007 pdfTeX" (this may be named differently if you are using something other than Build 2960). After making the selection, choose Add/Modify.
The TeX to PDF Formatter dialog will appear as shown below. Three of the fields in the dialog will be modified, "Name for Tex to PDF formatter", "Executable filename", and "Display appearance".
- Change the "Name for Tex to PDF formatter" field to "TeX Live 2019 pdfTeX" to indicate the TeX implementation name that is being used.
- The existing "Executable filename" field is filled with an entry designed for a past version of TeX Live. Use the Browse button to the right of the field and navigate to the directory with the current version of the pdfLaTeX formatter. Since this directory doesn't exist, the dialog will open pointing to the current program directory for SW (C:\sw55 for Scientific Word or C:\swp55 for Scientific WorkPlace). Move up a directory to be at the root of the C: drive. Then navigate to the directory C:\texlive\2019\bin\win32 and select the file pdflatex.exe. Use the Open button to select pdflatex.exe and close the dialog, returning you to the TeX to PDF Formatter dialog.
- Change the "Display appearance" field from "TeX Live 2007 pdfLaTeX" to "TeX Live 2019 pdfLaTeX".
Choose the OK button in the TeX to PDF Formatter dialog and the following dialog will appear:
Choose Yes to add a new formatter to the list of available formatters. Next, choose OK to close the Typeset Options dialog with "TeX Live 2019 pdfTeX" as the selected formatter.
Test using the new formatter
In Version 5.5, start a new document using your favorite shell. Select Typeset, Preview PDF. You should see the compile dialog and a command prompt icon in the Windows task bar. These can happen rather fast, depending on the size of the document you are compiling and the speed of your computer. When the compile is finished, the PDF file will appear in your selected PDF viewer program, typically Adobe Acrobat Reader.
If there was a compile error, the compile dialog will continue to display the first pass and the command prompt can be opened to see the LaTeX error. Typically you can press Enter to skip the error or r and Enter to continue the compile without stopping for further errors.
Since many of the typesetting specification files used by Version 5.5 are already included with the TeX Live version installed with Version 6, most of the shells available in Version 5.5 will compile without errors. There will be some exceptions like the REVTeX shell that is now obsolete and REVTeX4-1 must be used.
Change needed to display graphics
The graphicx package and the associated driver files have been updated since the version of LaTeX included with TrueTeX installed with Version 5.5. In particular, the natheight and natwidth options to the \includegraphics macro are obsolete. Unfortunately, Version 5.5 uses these options with the result that graphics do not appear when typesetting with TeX Live. A work around is to use the pdftex.def file included with Version 5.5 when compiling when using TeX Live. This can be done by copying the file to a directory that is used by TeX Live and then updating the TeX Live filename database.
Locate the file pdftex.def in the directory C:\swp55\TCITeX\TeX\LaTeX\required\graphics (or C:\sw55\TCITeX\TeX\LaTeX\required\graphics if using Scientific Word) and copy it to the directory C:\texlive\texmf-local\tex\latex\TCItex\SWmisc.
Update the TeX Live filename database
- From the Windows Start Menu, select the TeX Live Manager from the TeX Live 2019 program group.
- Click the Yes button on the security question that appears to start the TeX Live Manager program.
- From the TeX Live Manager program, select from the Actions menu Regenerate filename database.
- A Logs dialog will open that shows the progress of the regeneration process. When the process is done, use the Close button.
- Use the Quit button to exit the TeX Live Manager program.
When TeX Live formats a .tex file, is looks for typesetting specification files in the directory C:\texlive\texmf-local before it looks in any other directories. Thus, the older version of pdftex.def will be found first. There is some chance that this older version will cause issues when compiling non-SW 5.5 documents. Also, if you send your Version 5.5 documents to others that use a newer LaTeX implementation, they may need to make adjustments to have graphics appear. They may choose to use an older version of pdftex.def as suggested by this article, or they may directly edit the .tex file and delete the optional parameters natheight and natwidth.
Test using the new formatter with graphics
The SWSamples directory contains two documents that include graphics. Open stewartcalculus.tex and/or samplearticle.tex and use Typeset, Preview PDF to open the typeset view of the document. Scroll through to find the graphics in the document (the graphics in samplearticle.tex are close to the end of the document in the section Graphics).