Instruction for using putting MacDraw files in LaTeX documents

The following files are needed to use the TeX/LaTeX option of drawimp.

special.c - Handles the ommand for including files with Impress commands in the output stream. PicMacros.tex - TeX and LaTeX macros

You must be using the "imagen1" dvi-to-impress driver in order to make this stuff work. This was the driver that came with the TeX distribution tape we purchased. There may be others that could be made to work also. Imagen1 handles s with a routine that reads the data and ignores it. Special.c has a new routine for handling the ommand and needs to be linked in with the rest of imagen1.c First, go into your copy of imagen1.c and find the routine "DoSpecial". Delete or comment out the DoSpecial in imagen1.c so the one in special.c will be used instead. Compile imagen1.c and special.c, link them together with whatever else is needed, and move imagen1 to where it will be found by the shell scripts that drive the Imagen printer.

The following assumes something like MacTerminal and macget have been used to upload the MacDraw files to Unix. Normally this leaves three files on Unix for each Mac file, with extensions .data, .info, and .rsrc. The .info and .rsrc files can be deleted. Move all the .data files to one place and do

This will cause drawimp to process each MacDraw .data file into a separate file containing Impress commands with the same name except ending in .imp. If there are text objects in any of the pictures, it is important that all the MacDraw files be processed together in this way. If a new picture is added later, they should all be processed again or the fonts used in the pictures will get mixed up.

In the LaTeX file, pictures are include with lines like

500200filename

The first and second arguments are the width and height respectively of the box area to reserve for the picture. They are specified in the current units as set by or something similar. The picture can be larger or smaller than this, but LaTeX will reserve space according to these parameters. The top-left corner of the active area of the picture will be placed on the page at the top-left corner of the reserved area. The picture does not have to be pushed to the top-left of the MacDraw document page in order for drawimp to find it. The DrawPicture macro will center the reserved picture area horizontally on the page. The third parameter is the file name of the picture file as processed by "drawimp -t". See the macro definition for more info.

Send any comments or bug reports to "Weber Allan Weber USC Signal and Image Processing Inst. PHE 306, MC-0272 L.A., CA 90089-0272 (213) 743-5519