|
|
![]() |
| Return to PAV Home Page Email to PAV |
|
Computer Support FilesContents
1 What’s Here?
2 Endfloat Support for SWP 2.5 / 3.0 3 Endfloat Modification 4 Valign Fix for SWP 2.5 5 PFE-GAMS 6 The LTX2X translator for Win32 systems 7 The alltimes package 8 The Hevea LaTeX to HTML translator for Win32 9 The TeX4ht TeX/LaTeX-to-HTML Translator 10 Getting Started with custom-bib: An Introduction for SWP Users 11 Automating PDF Production with SWP 12 Typesetting Currency Symbols in SWP 13 Running Gauss code in Ox 14 OxEdit+GAMS: another GAMS IDE 15 Using different citation forms in SWP 16 Using Type1 fonts in SWP5 17 lgrind — program listings in SWP 18 OSU Dissertation support for SWP 19 Documentation for the Spaeth ALLCOURT database 20 A Scratch Work area for SWP 21 Using the booktabs Package in SWP
1 What’s Here?This web page contains support files connected with some computer programs I use, mainly Scientific WorkPlace, LaTeX, and GAMS. They may be freely downloaded. Some of the files are plain-text files. When you click on the link, your browser may display the file, in which case just save the results to a disk file. In Netscape, the simplest way to download a text file is to do shift+left-button-click. Unless stated otherwise, SWP means both Scientific Word and Scientific WorkPlace. Enjoy! Send comments/corrections to mailto:viton.1@osu.edu
Phil Viton
2 Endfloat Support for SWP 2.5 / 3.0Support for the endfloat package in SWP 2.5. IMPORTANT — this will not work in previous versions of SWP. Though SWP’s web site claims that the standard endfloat package will work in SWP3, I don’t think this is correct. The style file provided here does appear to work in SWP 3. Note that support for figures (as poosed to tables) at the end of your document relies on a hack — be sure to read the instructions in the .sty file. Download the package (eftci.zip); January 1997.
3 Endfloat ModificationThe endfloat package by default writes a reminder like “Figure 1 about here” in your document right where it found a figure (or table), before moving the float to the end of the document. This package writes the text into the margin instead. This is SW-independent. Download the package (efmar.zip); January 1997.
4 Valign Fix for SWP 2.5Fix for vertically aligning fixed-width cells in tables in SWP 2.5. This fixes the problem whereby specifying any vertical alignment other than the default (Top) alignment causes the contents of the cell to be written out verbatim into your document, with a comment to the effect that you’ve asked for an AMS-LaTeX construct when AMS-LaTeX isn’t present. As far as I can tell, this is not in fact an AMS-LaTeX problem. Also note that the effects of the Top and Bottom choices are reversed: selecting “Top” alignment gives Bottom alignment, and vice-versa. (The package does not fix this). Download the package (valignx.zip); February 1997.
5 PFE-GAMSThis describes a way to use Alan Phillips’ PFE editor as a control center for GAMS. You can use PFE to type your GAMS source programs, then submit them to GAMS and retrieve the results all without leaving the editor. This setup is geared to the 32-bit (Win95 or Win-NT) version of PFE: the 16-bit version should also work, with a few changes (since the 16-bit version doesn’t access the Registry; and initialization is a bit different). To use the system you will need the PDF file which describes how to set it up (and hence the Adobe Acrobat Reader) and the setup files themselves. Alternatively, the setup instructions are now (February 1999) available in HTML format for on-line browsing. Note that you need to obtain PFE for yourself — see below for a link.
Update, October 1998: the supplementary utility GAMSRD distributed with the PFE-GAMS system will not deal correctly with long file names (it was originally compiled with Microsoft C, version 7, which pre-dates Windows 95). I’ve now recompiled GAMSRD with the GNU mingw32 system, and the source and executable files are available here. This file is not included in the PFE-GAMS distribution: you need it only if your run PFE under Win95/98/NT.
6 The LTX2X translator for Win32 systemsLTX2X is a configurable translator for LaTeX documents: it can be used, for example to “detex” a document by removing and replacing LaTeX commands (I use this to produce versions of mostly non-math documents for inclusion in email), and for producing HTML for the Web. The program was written in C by Peter Wilson and has long been available for UNIX systems. I’ve compiled his source under the GNU gcc compiler from Cygnus, and I’m pleased to make it available here. Note that the program has been tested only under WinNT4, and I don’t know if it will run under Win95 (though I think it probably will): if anyone experiments and finds out, please let me know and I’ll add the information here.
6.1 RestrictionsThe version available here will not run under Win31. However, if you get the djgpp compiler (available free on the internet) you will probably be able to produce a Win31/MSDOS version. The run-time distribution available here includes Peter Wilson’s original configuration files for detex and html, and some extensions I’ve produced for my own use. It also includes his manual and a couple of batch files and a Perl script to automate coping with some special features of SW documents. (You will need a Perl interpreter to work with this). See the included file setup.txt for details and installation instructions. I’m also making available the source code: this contains a “make” file which works under the Cygnus gcc compiler See the included file describe.txt for details.
6.2 Update, September 1998:I now have a version which runs without the Cygnus DLL, saving about half a meg of disk space. The source distribution now also contains a file makev.bat which will compile LTX2X under the “minimalist” mingw32 version of the gcc compiler.
The translator can also produce HTML versions of your LaTeX; but, like most of these translators, doesn’t handle math well. A very promising alternative is Ian Hutchinson’s freeware TtH translator, which does amazingly well in converting math using the built-in fonts of your computer. I ran a series of econometrics notes through this, and was very pleased with the result. I’ve heard an occasional comment that the display from the TtH translator falls a bit short on systems other than MS-Windows. You’ll have to experiment. See also the Hevea and TeX4ht translators described below.
7 The alltimes packageThis tiny package does three things:
In my opinion the two font substitution options — particularly the use of the Computer Modern typewriter font — make for a much nicer look to documents produced with the Times option. (Note that you can easily do these replacements without the package by saying, in the preamble, eg, \renewcommand{\ttdefault}{cmtt} but, especially in SWP, I prefer to keep the amount of typing I need to do in the preamble dialog to a minimum.) Thus if you add, in your preamble \usepackage[cmtt,cmss]{alltimes} or \RequirePackage[cmtt,cmss]{alltimes} you get: Times Roman fonts for math and text, except that Computer Modern will be used for bold Greek math, typewriter and sans-serif text. Download the package (alltimes.zip): October 1998.
8 The Hevea LaTeX to HTML translator for Win32Hevea is a LaTeX to HTML translator, written in the Objective Caml programming language. Three important features of the translator are:
The port is provided by permission of the author, Luc Maranget, INRIA, France. It is available only for 32-bit Windows systems — Windows NT4/2000/XP and Windows 95/98 (NT 3.5.1 and Windows 98 are untested). It will not run under Windows 3.x or MS-DOS.
8.1 The DistributionStarting with Hevea version 1.01 we provide only the executables, and not the source code. Thus you no longer need the Objective Caml programming system. A nice feature of versions 1.04+ is that they support LaTeX-to-plain-text and LaTeX-to-Info translations.
8.2 Current VersionThe current version of the Win32 port is Hevea version 1.10, compiled September 12, 2007.
8.3 InstructionsYou can read the installation instructions now as a text or as an HTML file produced by Hevea. (A copy of the HTML version is included in the distribution).
9 The TeX4ht TeX/LaTeX-to-HTML TranslatorTeX4ht is Eitan Gurari’s TeX/LaTeX-to-HTML translator. Here are some links for this system:
10 Getting Started with custom-bib: An Introduction for SWP UsersThe typeset appearance of a BibTeX bibliography is governed by the “bibliography style” (.bst) file associated with your document, which you choose when you insert the Bibliography tag from within SWP. One of the most frequently asked questions about this is: how do I get the bibliography into the format that journal X requires? While it is occasionally possible to hack the .bst file, there is a much better solution: generate a customized bibliography style file yourself, set up just the way you want it. Patrick Daly’s custom-bib package makes this astonishingly easy to do, and to encourage SWP users to get to know this package, I’ve churned out a quick note explaining how to set up and use it. Here is a link to that note.
11 Automating PDF Production with SWPIt’s easy to use SWP and Ghostscript 6.0+ to produce excellent PDF: you typeset-compile your document, print it to an on-disk PostScript file, and then run the PostScript file though GhostScript’s ps2pdfxx.bat routine. The advantage of PDF is its typographic fidelity: it looks just like your typeset document. The disadvantage is that PDF files are considerably larger than HTML files, but in these days of fast Internet access that’s not the problem it once was, and PDF has become a second de facto standard in Internet documentation. I’ve put together a setup that automates the task of producing PDF from your SWP documents. Once it is installed, you will be able to turn your SWP TeX source into PDF by running a single command. And because you first print to disk into a PostScript file, you don’t have to worry about embedding TrueType fonts into your document: the PDF produced by this system will automatically be readable by anyone with the free Adobe Acrobat reader (version 3+). This is a command-line setup, but Steve Mayer has also updated his GUI TeXConverter to accomodate it, so if you’ve an aversion to working at the DOS prompt, there’s something here for you, too. You can read all about it here in HTML format, or you can read it in a PDF file (much larger, of course) produced by the system, or you can just retrieve the SWP distribution (which also contains the HTML file). SWP versions supported: Scientific Word and Scientific WorkPlace 3.0+; I believe that it will also work with SW or SWP version 2.5 as long as you’re running on a Win32 platform. But this is untested. Note: As of SWP5 we have built-in support for PDF production using pdfTeX. This has a few substantial advantages over the method outlines here: it allows you to use the hyperref package to customize your PDF; its faster; and you can produce PDF with rotated tables, using teh rotating package (though there’s still no way to get rotation in DVI output). If you’re using SWP5+, then the built-in support is preferable to this strategy.
12 Typesetting Currency Symbols in SWPCurrent versions of SWP allow you to enter currency symbols (eg the Euro) into your documents, but do not permit you to typeset those symbols (you get black squares instead). I’ve developed a way around this: with this support you should now be able to typeset all the currency symbols (plus other text symbols on the SWP Miscellaneous Symbols panel). SWP versions supported: Scientific Word and Scientific WorkPlace 3.0+.
13 Running Gauss code in OxJurgen Doornik’s Ox is an important econometric programming language closely based on C/C++. But it has another valuable feature: with it you can run Gauss programs with relatively little fixup, and obtain results identical to those under native Gauss. It is also free for academic research and teaching.
14 OxEdit+GAMS: another GAMS IDEFor some time now my preferred environment for editing and running GAMS programs under Windows has been Alan Phillips’ PFE editor (see PFEGAMS for more on this). But a couple of years ago Alan Phillips announced that he was no longer developing PFE; and ever since, I’ve been on the lookout for a substitute. I think I’ve found one, using Jurgen Doornik’s OxEdit; and this note describes how to obtain and set up this environment, which I call OxEdit+GAMS. OxEdit+GAMS has some nice features:
You can read more about this IDE here, in HMTL or PDF forms. Complete installation instructions and a screenshot are included.
15 Using different citation forms in SWPThis short document explains how you can get SWP to work with the various citation forms — for example, a noun-like format in which \cite{viton:2000} results in the citiation form: Viton (2000), rather than the standard form (Viton, 2000) — supported in packages like natbib or harvard. SWP versions supported: 3.0+ (though I don’t see why it wouldn’t work for 2.5 either). Read the instructions here
16 Using Type1 fonts in SWP5This note explains how you can use (free) Type1 fonts in SWP5+, but only when you’re producing PDF using the new built-in pdfTeX support. As an example, I explain how to install and use Young Ryu’s TX and PX font systems. The TX fonts are a Times-like setup, which, unlike mathtime (included with SWP since version 3.0), provides a genuine caps-and-small-caps font, as well as bold Greek fonts (econometricians, rejoice!). The PX fonts are similar to the TX fonts, except that the font style (text and math) is Palatino. In addition, I provide a sketch of a small package which will allow you to use these fonts only when you’re producing PDF, and set up the hyperref package to customize your PDF. SWP versions supported: 5.0+. Note that this is available only when you produce PDF using SWP’s built-in support. Read the instructions in HTML format here , or in PDF format (dc fonts) with live links to other font setups here
17 lgrind — program listings in SWPlgrind is a system for including pretty-printed listings of computer code within your LaTeX document. I’ve produced a version of the lgrind executable which runs under Win32.
18 OSU Dissertation support for SWPA while back I produced some SWP support for Mark Hanes’ class and style files for typesetting OSU dissertations. Note that his support is conditioned on the requirements as of 1996: since then the Grad School has somewhat relaxed the formal requirements — and you are now also required to submit a only a PDF version — but I think that Mark’s original files will still do. As far as I know, his support is not being updated; but if anyone finds a more recent source of LaTeX support, let me know, and I’ll be glad to reference it. Read the write-up here . This document also contains links to the files you will need to download.
19 Documentation for the Spaeth ALLCOURT databaseI’ve produced, originally for my own use, updated , expanded and hyperlinked versions of the documentation of the Spaeth database of US Supreme Court decisions from the Warren Court onwards. The documentation comes in three formats:
20 A Scratch Work area for SWPI explain how you can set up a non-printing area within your SWP documents, which you can use for preliminary computations, or notes to yourself for things that need to be done/altered/fixed. You can read the instructions here . There’s also a tiny zip file to help you get started, available here . (The zip archive also contains a copy of the instructions).
21 Using the booktabs Package in SWPThe booktabs package produces tables which to some eyes look more professional than those produced by standard LaTeX: you can open booktabsA.pdf to see a comparison of the two. It turns out to be relatively easy to produce the booktabs table layout within SWP, and I have writeen a short guide for this purpose. You can download the guide here . The main file is booktabsB.tex which you can read from within SWP. |