Emacs, LaTeX, and UNIX Tools for Windows Users | More Here

Note:

  • The major components below are automatically available in Linux with very little effort (e.g., RedHat, Mandrake, Debian)
  • Click here for an article describing why Linux/Unix is superior to Microsoft Windows in almost every way.
  • Read Allin Cottrell's Word Processors: Stupid and Inefficient article

It is almost impossible to keep current on all components of Emacs and LaTeX that might be of interest to statisticians. The documents available from this page are already out of date. To install zip files you get from here, it is recommended that you use unzip95 from here or a current version of WinZip (WinZip is required to install Emacs). It is extremely important that you unzip files into the indicated target directories.
  • Windows 95/98 Desktop Folder for navigating the WWW to learn more about, and obtain current software for, LaTeX, Emacs, Cygwin32, and other tools. Unzip desktop.zip into c:\Windows for Win 95/98 or into c:\Documents and Settings\youruserid for NT/Windows 2000. This will add a new folder called Doc Processing to your desktop. There are many shortcuts that will be created that point to software you probably don't have installed, such as Mayura Draw, Ghostview, etc. Should you decide to install these, these short cuts will become active should you install the software in the same directories referred to in these short cuts. Many other links are to the WWW (e.g., FAQs for Emacs, online help for LaTeX) so these will be instantly available to you.
  • Xemacs is probably the easiest version of Emacs to install and use on Windows.
  • Click here to download utilities.zip. Extract the part of it you need into c:. Add c:\utilities to the path in your c:\autoexec.bat file (along with other changes listed for autoexec.bat below) and restart your computer to make the new path take effect.

Once you have Xemacs installed you will have access to the latest versions of the AucTeX, RefTeX, and ESS Emacs packages. You can use the Xemacs Tools Packages menus to install or update these packages as needed.

The utilities directory also installed other useful programs. Three are ispell and versions of telnet and ftp that work well with Emacs.

Click here to get the GNU Emacs Reference Card. Note: The card doesn't look good on the screen but it prints well.

  • To get a really nice LaTeX to HTML converter by Luc Maranget, translated to Win32 by Philip Viton, click here to obtain Hevea. This will download winport.zip which you should put in a temporary area. Unlike latex2html, Hevea can translate many equations and other symbols to HTML code without the need to convert them to graphics. Once you download winport.zip, create a directory named hevea under c:\utilities and extract into c:\utilities\hevea. The above utilities installation installed c:\utilities\hevea.bat for running Hevea with this setup (and remember that c:\utilities is or should be in your path, making the hevea command available). Copy c:\utilities\hevea\hevea.sty to c:\tex\texmf\tex\latex\local after you install FPTeX (below), and run mktexlsr as described elsewhere. Also in utilities you will find a little bash shell program named htmlf that you can run .h! tml files created by Hevea through, to change the LaTeX --- into a single long dash, to change the LaTeX -- into a single dash in HTML, and to use an ordinary background color. You can run htmlf from a bash shell by typing htmlf name, which will recreate name.html making the above changes.

Hevea is handy for providing LaTeX documents to Microsoft Office users. Under Microsoft Word 97 or later you can open an .html document and convert it to Word format. Subscripts, superscripts, and other components of simple equations are preserved. Bibliography files, which Hevea automatically places in the .html file it creates, are converted nicely along with hyperlinks between the citations and the bibliographic entries. Some tables convert nicely, although unlike Internet Explorer, Word 97 does not implement all of the HTML table components you need.
  • MikTeX is an excellent free LaTeX system for Windows. It comes with a nice package manager for adding components and updating styles from the Internet.
  • FPTeX, another excellent free version of LaTeX for Windows. Once you are in CTAN, search for the term fptex. This points you to the latest version (probably fptex-0.6, may be installed using TeXSetup.exe on the above link. Once you install FPTeX, put local style files in c:\TeX\texmf\tex\latex\local and then:
cd \TeX\texmf \tex\bin\win32\mktexlsr 
The mktexlsr command needs to be run every time to add additional styles. If you want to download bibliography style files from CTAN such as the agsm.bst for use with the built-in harvard.sty, put these in /tex/texmf/bibtex/bst/local (you may have to create the local subdirectory) and run mktexlsr as above.

Next, do the following to finish installation of FPTeX. Edit \tex\texmf.local\dvips\config\config.ps by deleting the following line:
o |lpr
and by inserting the following line:
o \\foo\bar
to use for example bar is the printer on share foo. There are also 2 lines to uncomment to use Type 1 fonts, although I don't know if this is really needed. With FPTeX's automatic installation you may not need to worry about any of this anyway.

Using Microsoft Explorer, associate windvi with file type .dvi:
View ... Folder Options ... File Types Description: TeX DVI
File Assoc. Ext.: .dvi 
Content type: application/x-dvi New ... 
Action:open Browse: TeX/bin/win32/windvi
You may want to associate .txt and other file types with c:\utilities\gnuclientw.exe.

The main commands for running FPTeX components (after rebooting to set the PATH) are:
latex file compiles file.tex into file.dvi 
pdflatex file compiles file.tex into file.pdf
dvips -o file.ps file produce .ps file from .dvi file
dvips -Pwww -o file.ps file use Type 1 fonts for better screen viewing
dvips file send file.dvi to printer
bibtex file
makeindx file
windvi file .dvi viewer
Note that pdflatex, which uses nice Type 1 fonts for screen viewing of documents, requires that inserted graphics be in pdf format or other formats such as jpeg or png. You must convert postscript documents to pdf to include them in the final document. Adobe Acrobat Distiller (which is not free), Ghostscript, and the epstopdf command (see above) assist with this.
  • TeXmacs, a free WYSIWYG front-end to LaTeX for scientific writing (Linux users may prefer a KDE package kile for doing this)
  • word2tex, an easy to use shareware Word97 text conversion program for converting Word documents to TeX or LaTeX. When you install word2tex you can do File ... Save as ... tex under Word 97. Initial tests are quite promising although when the Word document contains graphics, the .eps files created have some problems. To convert the other way, consider Hevea.
  • pdfscreen, a wonderful LaTeX style class for creating online documents using LaTeX. Create a new directory c:\tex\texmf\tex\latex\local\pdfscreen and unzip into that directory. Run mktexlsr as above.
  • Ghostview/Ghostscript for viewing postscript files and much more. Download the latest Aladdin Ghostscript and Ghostview software to a temporary directory. Override the installation location to specify c:\gstools and make the group name Gstools. The utilities directory (see above) includes a Perl program for converting from ps to pdf format (especially useful with pdflatex), and a batch file for running Ghostscript to convert from postscript to Adobe Illustrator format. AI files can be edited by Mayura Draw for example and written back out as postscript or other formats.
  • Cygwin, a comprehensive set of UNIX tools for Win32/NT (may also be obtained from here). For installing some Emacs and LaTeX software you may need the make utility. For this you need the full.exe install (13MB). Click here for Cygwin's FAQ. Note: Since Cygnus was bought by RedHat, installation is more difficult but the software has been updated. Get in the latest directory and download setup.exe to a temporary directory. Get in a DOS window, change to this temporary directory, and type setup. Specify a root area of C:\ instead of C:\cygwin. Let setup create C:\bin, C:\usr, C:\var, C:\etc, c:\lib.

Invoke the Bash Unix-like command shell by executing c:\bin\bash.exe. Under Windows 2000, don't invoke it by running c:\bin\cygwin.bat as this will cause your system PATH to be truncated.
  • Active Perl, a powerful language used for many file processing and conversion applications.

-- ColeBeck - 09 Mar 2004
Topic attachments
I Attachment Action Size Date Who CommentSorted ascending
desktop.zipzip desktop.zip manage 92.8 K 09 Mar 2004 - 13:13 ColeBeck  
sinput.stysty sinput.sty manage 0.7 K 09 Mar 2004 - 13:26 ColeBeck  
utilities.zipzip utilities.zip manage 483.3 K 09 Mar 2004 - 13:16 ColeBeck  
s2latx.pl.txttxt s2latx.pl.txt manage 1.8 K 29 Jun 2009 - 14:32 FrankHarrell s2latx.pl perl script
Topic revision: r6 - 01 Mar 2010, FrankHarrell
 

This site is powered by FoswikiCopyright © 2013-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Vanderbilt Biostatistics Wiki? Send feedback