\newcommand\independent{\protect\mathpalette{\protect\independenT}{\perp}} \def\independenT#1#2{\mathrel{\setbox0\hbox{$#1#2$}% \copy0\kern-\wd0\mkern4mu\box0}}
\input colordvi \def\Red#1{\Color{0 0.70 0.70 0.2}{#1}} \def\Green#1{\Color{0.70 0 0.5 0.2}{#1}} \def\Blue#1{\Color{0.70 0 0 0.2}{#1}}Then, anywhere in your document, use e.g. Her eyes were \Green{hazel}.
And here is a full example:
\begin{figure}[ht] \begin{center} \resizebox{6.5in}{5in}{\includegraphics[origin=c,angle=-90]{myfile.ps}} \end{center} \caption{\label{fig:xxx} The caption} \end{figure} \centerline{\resizebox{6.5in}{5in}{\includegraphics[origin=c,angle=-90]{myfile.ps}}}You can change the width, height and angle as needed.
If you want to incorporate Latex math or greek into a postscript file, created in S or xfig, you can use "psfrag" to change codes, e.g. "xyz" or "frac0.5" into Latex expressions such as "\alpha+\beta=\gamma^2" or "\frac{1}{2}". (For R, use the plotmath() function.)
First add the line \usepackage{psfrag} below your \documentclass line in your .tex file. Then add lines such as
\psfrag{xyz}{\Large $\alpha+\beta=\gamma^2}$} \psfrag{frac0.5}{$frac{1}{2}$}to your latex file just above the \includegraphics line.
The "fragments" that are to be replaced (e.g. xyz or frac0.5) must be placed in the postscript file (e.g. myfile.ps) as separate items. For plots produced in S, this means a separate text("xyz") command. For figures produced with xfig, this means a separate use of the "text" command.
Now just run latex and dvips. The psfrag procedure doesn't work correctly on your .dvi file, but when you use dvips to create a .ps file, the substitutions will appear in the .ps file (when printed or when viewed with ghostview).
With the new LaTeX (and maybe only with LaTeX 2.09 documents) if xdvi doesn't have a font it builds it (creating many screens full of crap) and tries to save it in /usr/statlocal somewhere. But unless you're on Tedium, /usr/statlocal is a read-only disk, so each time you run xdvi you get the same annoying crap... the solution of course is just to slogin to tedium, fire up xdvi the one time and then continue on your own machine.
All links active 8/2/2005. Please report missing links to