[comp.text.tex] How to include figures in slitex

jmn@power.berkeley.edu (J. Mark Noworolski) (03/12/91)

3-11-91

Getting slitex to include the same figures that you used in you papers!
(tested using transfig2.1.1, xfig2.0pl9, psfig1.2, and epic).

Slitex does not have a \begin{figure} environment defined, so you can't 
use that. However, what you can still do is include epic or epsf files.

You will, however run into problems with font conversion if you have any
text in your figures. First of all slitex does not define the same fonts
as latex (eg: \font\tenrm  = cmr10 ) this will make including figures with
fonts impossible UNLESS you define the offending fonts at the beginning of
your document. What I did is:
egrep '^ \\font' /usr/local/lib/tex/inputs/lfonts.tex

This gave me a list of all the fonts that latex defined. Next write this out
to a file (I called it texfonts.tex) and include that file via
\input{texfonts} at the beginning of your slides. Being that I'm not a
slitex/tex/latex guru I removed all the \@magscale commands since they gave
me errors. This is ok for me, since most of the text that I have in figures
is in math mode.  Others may choose more intelligent ways of working out the
font conversions mappings, and I'd love to hear about them.

In my case the biggest problem was that I had 
text of the form $math_stuff_in_here$ and slitex insisted on using its
default (HUGE) math font for that stuff.

The way to fix this problem is to include figures within a \tiny command.
This will make the math font small enough so that it does not overwrite the 
figure itself which the default math size does. (Is there a way to make the
text EVEN smaller?)

Here's an example of one of my slides (with comments):
\begin{itemize}
\item One-Cycle Average
\item Up-Down Converter \\
\centerline{\tiny{\input{fig/updowngen}}} % centerline seems to be more robust
	% than \begin{center} (which barfs on psfig's) within an itemize
\end{itemize}

\centerline{\psfig{figure=fig/updown_ss1.epsf,height=3.3in,width=7in}}
	% transfig will also allow you to use the pstex language so that 
	% math in a figure is processed via tex. this can also be included
	% with a \input but runs into trouble when you have a separate
	% subdirectory for figures.... anybody got a fix?

--------------------
Thanks to everyone who replied to my multiple posts in this newsgroup.
Especially jay@sirius.ctr.columbia.edu, and am@heike.informatik.uni-dortmund.de
And, of course Micah Beck for maintaining transfig (gee...maybe transfig SHOULD
have a slitex output option?).
--
"There's a really fine line between clever and stupid"
				Nigel- Lead Guitar (Spinal Tap)
jmn@united.berkeley.edu, or jmn@power.berkeley.edu