TeX and PDF Publishing
Getting started
Decide on your TeX directory, say $HOME/tex, and check out these CVS modules:
cd $HOME/tex cvs checkout bib inputs latex-introThis will create directories, named like the modules themselves, containing BibTeX databases, non-standard TeX input files and macros, and a short local introduction to TeX typesetting, respectively. Add this to your
.cshrc:
setenv TEXINPUTS :$HOME/tex/inputs setenv BIBINPUTS :$HOME/tex/bib setenv BSTINPUTS :$HOME/tex/biband source it (similar for Bourne shell). You should be now able to typeset the introduction document by running:
latex main bibtex main latex main latex main xdvi mainin the
latex-intro directory. First line collects citations, second line looks them up in the database, third run inserts them into the document and numbers them, and fourth run replaces the references to these citations with an appropriate number. The last command should display the typeset document in its full glory. To see the expected result, view LaTeX introduction (PDF).
If you don't have CVS access to our repository, you can still download the tar file LaTeX introduction (TAR).
Finally do:
dvips -P pdf -o main.ps main
to produce a PostScript file with embedded scalable fonts, suitable for distilling to PDF. If using TeXShop on Mac OS X (see below for configuration info), this all is much simpler; just hit Cmd-T.
TeXShop Installation
Machines connected to the CATS network have teTeX available in /usr/local/tex and TeXShop under /Network/Applications/TeXShop. Version 2.14 (/Network/Applications/TeXShop-2.14) runs on Leopard machines.
Standalone machines should use i-Installer to install packages FreeType 2, libwmf, PNG Library, Ghostscript 8, ImageMagick, FontForge, Fondu Mac Font cli Tools and TeX, and finally TeXShop.
TeXShop Configuration
Configure the search paths according to the Help→Advanced, by creating or modifying ~/.MacOSX/environment.plist file as follows:
<? xml version="1.0" encoding="UTF-8"?\>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDsPropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BIBINPUTS</key>
<string>:$HOME/tex/bib:</string>
<key>BSTINPUTS</key>
<string>:$HOME/tex/bib:</string>
<key>TEXINPUTS</key>
<string>:$HOME/tex/inputs:</string>
</dict>
</plist>
See also the Technical Q&A; 1067 from Apple.
Whenever you modify environment.plist, you must log out and then log back in again to see the changes.
Another way is to link the teTeX search directory to yours:
mkdir -p $HOME/Library/texmf/tex $HOME/Library/texmf/bibtex ln -s $HOME/tex/inputs $HOME/Library/texmf/tex/inputs ln -s $HOME/tex/bib $HOME/Library/texmf/bibtex/bib
You should set the standardscript in TeXShop - Preferences - Typeset to TeX + Ghostscript
On Leopard systems the font cache needs to be cleared:
sudo rm -rf /private/var/folders/*/*/-Caches-/com.apple.ATS
PostScript figures
All the PostScript figures we ever used in LaTeX documents are collected in /usr/local/ps on hydra. If you do typesetting on a CATS desktop or server, you should set the graphics search path for the graphicx package this way:
\graphicspath{{...}{/usr/local/ps/}}
including any private figure directory in place of the dots.




