LaTeX & BibTeX Information

The general software material is migrating to Network Skills page.


Return to U WI Statistical Computing Information.

Address for Input/Include Files

If you use /input{} or /include{} for other files you must use either an absolute address
or an address relative to the directory where latex is invoked. That is,
if latex called from ~yandell/doc or
if latex called from ~yandell/doc/mydir.

Bold Font in Math Mode

Try to use the amstex style as described in Goossens' book:



The following information is dated and not recommended for LaTeX2e.

Owing to some changes in the new font selection scheme in the latest version (version 3.14) of TeX and LaTeX, the command \bf no longer produces boldface in math mode. You can use \boldmath, but this (unlike what the LaTeX manual says) makes subscripts bold as well. The new way to have bold letters with non-bold subscripts is with the new command \boldsymbol. This does what \boldmath previously did. But you need to include the amsbsy style option in \documentstyle (see example below). The biggest problem this change makes is for users who use more than one implementation of TeX and LaTeX. For example, if you regularly, download/upload LaTeX source files to your PC or Mac and if the version on the latter does not use the new font selection scheme (I am not aware of any microcomputer implementation that uses the new scheme), then your file won't LaTeX on it. Following is a sample LaTeX file to demonstrate the capabilities. LaTeX and preview it to see what I mean.


This is ordinary X and boldface \verb+\bf X+: {\bf X}.

This is ordinary math mode \verb+$X_{i}$+ and
\verb+$\theta_{j}$+: $X_{i}, \theta_{j}$. 

This is \verb+$\boldsymbol{X_{i}, \theta_{j}}$+:
$\boldsymbol{X_{i}, \theta_{j}}$.

This is \verb+$\boldsymbol{X}_{i}$+ and
\verb+$\boldsymbol{\theta}_{j}$+: $\boldsymbol{X}_{i},

This is \verb+{\boldmath $X_{i}, \theta_{j}$}+:
{\boldmath $X_{i}, \theta_{j}$}. 

This is \verb+{\bf $X_{i}, \theta_{j}$}+:
{\bf $X_{i}, \theta_{j}$}.

Here's another way to get bolface symbols in math mode without making subscripts and superscripts bold as well. The trick is to use the \boldmath command (which makes everything bold in TeX 3.14) but via a "newcommand" definition (called \bm in the example below; see pp. 55-56 of the LaTeX manual). The following test file shows what I mean. Now you won't need to worry about the amsbsy style and new fonts. Everything will work the same whatever version of LaTeX you use. (By the way, \bm{} is even shorter to type than \boldsymbol{}).


This is boldmath with the newcommand \verb+$\bm{X}_{i},
\bm{\theta}_{j}$+: $\bm{X}_{i}, \bm{\theta}_{j}$.


Landscape Orientation

The good news is that the -t landscape option mentioned below works. The bad news is that noone has located the file landscape.sty mentioned below. The Goossens book mentions some options for landscape orientation. It is also possible to simply create an outsized table on an ordinary LaTeX page and then use -t landscape with either dvipr or dvips for printing or display.
Date: Mon, 22 Oct 90 13:34:18 -0500
From: (Douglas Bates)
Subject: landscape orientation in LaTeX

The way that I produced the landscape table was to create the little
style file that is stored in /Users/bates/tex/landscape.sty and use  
along with the -t landscape option to dvips.  The landscape.sty just
redefines the page width and height so they are suitable for the
rotated page.  The file will look like


and you use

dvips -t landscape table.dvi

to print it (assuming table.tex is the name of the LaTeX file).

There should be a way of including rotate.tex and using \rotr or  
to rotate part or a page but I haven't been able to get that to work.

LaTeX for Windows (emTeX)

Installing emTeX:
  1. Get all the *.zip files from
    and put them into a temporary directory on your hard drive. Get also the font library files *.fli for your printer and previewer.
  2. Get all four files from the subdirectory /betatest on the emtex directory and put them into another temporary directory on you hard drive, say c:\scra.
  3. From start menu select run c:\scra\install.exe. The install program will ask a few questions about the configuration and will install the system on your computer to the end.

Last modified: Wed Jan 14 15:27:30 1998 by Brian Yandell Sun Oct 16 20:31:20 1994 by Stat Www (