Personal tools
You are here: Home / Library / Publishing / TeX

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-intro
This 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/bib
and 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 main
in 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 HelpAdvanced, 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.

Links

Writing style:

LaTeX typesetting:

TeX on Macintosh:

BibTeX bibliography management:

MathML:

PDF tools:

Creating PDF files using scalable (Type 1) fonts:

Creating PDF from old (bitmapped font) PS files:

Presentation techniques:

Internationalization:

CATS only:

« May 2013 »
May
MoTuWeThFrSaSu
12345
6789101112
13141516171819
20212223242526
2728293031
Upcoming Events
Marine 2013 May 29, 2013 - May 31, 2013 — Hamburg, Germany
MPF 2013 Jun 11, 2013 - Jun 14, 2013 — Sardinia, Italy
Coupled Problems 2013 Jun 17, 2013 - Jun 19, 2013 — Ibiza, Spain
USNCCM 12 Jul 22, 2013 - Jul 25, 2013 — Raleigh, North Carolina
GACM 2013 Sep 30, 2013 - Oct 02, 2013 — Hamburg, Germany
Upcoming events…