LIP6 UPMC CNRS Move-team Macao FrameKit CPN-AMI
2006-10-26
LIP6 > Software > MoVe Sofware > Macao > FAQ > How can I include a Macao model in a LaTeX file ?

Macao does not produce a direct LaTeX figure. To include a Macao model into LaTeX, you have to produce an EPS file and include it in you LaTeX file.

For MacOS 9, Macao lets the Macintosh printer driver (LaserWriter 8) produce the PostScript file when it prints.

Be carefull that spaces at the top and on the left side of the model will be include in the EPS file. Macao does not include the Logo. The first step you'll have to do is to move way the logo and move the Macao objects near the window border. see below.

You can get the Macao file MutualExclusion (13 KB).

  1. Choose Print in the File menu.
  2. Select the File radio button in the Destination area.
  3. Clic the Save button, the Save dialog appears.
  4. Choose EPS Mac Enhanced Preview or EPS No Preview from the Format pop-up menu.
  5. Choose All But Standard 13 from the Font inclusion pop-up menu.
  6. Clic the Save button.


    Have a look at the MutualExclusion.eps file (11 KB).

    To include the EPS file in OzTeX 1.7, add the following line:

    \begin{figure}
    						\centering
    						\includegraphics[width=8cm]{MutualExclusion.eps}
    						\caption {Mutual exclusion algorithm}
    						\label{Mutual Exclusion}
    						\end{figure}

    Look at a real page postscript page with the inclusion: here (50 KB).

    Warning: OzTeX cannot include an EPS file with a space in its name -=(

    Note: if you have choosen EPS Mac Enhanced Preview, you will be able to preview the picture in OzTeX.

Bas