From: gld@cunixb.cc.columbia.edu (Gary L Dare)
Subject: FrameMaker 2.0 PS graphics --> LaTeX ... Solution!!
Reply-To: gld@cunixb.cc.columbia.edu (Gary L Dare)
Organization: Deep Space Nine
Date: Sun, 22 Nov 1992 22:40:13 GMT

I posted a request last Tuesday and received numerous follow-ups and
e-mail replies; thanks to all who replied.  I tried a few suggestions
and came down to two possibilities for my site.  Some of the solutions
submitted may not have worked due to the mismatch in configurations;
my eventual solution is a combination of two suggestions.  

Thanks to Thomas Sheffler (sheffler@cs.cmu.edu) and "Merci bien" to
Michel Combacau <combacau@droopy.laas.fr> ...

Firstly, here are the specifications of my LaTeX setup:

	* FrameMaker 2.0 to generate PS graphics
	  (BoundingBox size 4 in high by 6 in wide)

	* TeX, C Version 3.0

	* LaTeX Version 2.09 <7 Dec 1989>

	* \psfig version 1.9 from the Claremont College
	anonymous FTP (my site uses 1.1, and I'll offer
	this to them for upgrade else I'll just keep it
	in my directories for my own use).


sheffler@CS.CMU.EDU (Thomas Sheffler) writes:
>
>================================================================
>
>Draw all of the figures using a custom document style with page size
>6inches wide by 8 inches tall. 
>
>Draw the figure at the BOTTOM of the page, and center it to your liking. 
>
>Since all figures are in the same place, the psfig command is always
>the same (BBLLX, BBLLY and BBURX never change) except for the BBURY
>clause, which is the HEIGHT of the interesting part of the figure.
>This is easily read from the rulers in FrameMaker.
>
>\begin{figure}
>  \begin{center}
>    \leavevmode
>    \psfig{figure=maker-fig.ps,bbllx=0in,bblly=0in,bburx=6in,bbury=2.25in}
>  \end{center}
>\end{figure}
>
>I usually strip the FrameMaker header from the PostScript files of all
>of my pictures, saving about 20K per figure.  The resulting document
>will print (preview) much faster if you only include the prolog once.
>
>================================================================

So basically, I moved my figure down to the lower left-hand corner
(i.e., (0, 0)) and printed it on a 6" x 8", adding "clip=" to the
\psfig parameters.  The result was a one page figure starting at
the centre of the page, hugging the bottom of the page and running
off the right side of the page.  The space for this figure is the
size of the page specification given to FrameMaker 2.0, and when
the page height was reduced to 4" from 8", the figure printed on
the text area despite the "clip=" --- I came to the conclusion
that the "bb..." and "clip" fields are useless in the version of
\psfig that I had pulled down, thus negating any attempts to use
Tom's method (his configuration is different).  Simultaneously, 
I was trying ...


From: Michel Combacau <combacau@droopy.laas.fr>
Subject: FrameMaker 2.0 and LaTeX 

\begin{excerpt}
================================================================

FrameMaker can set the BoundingBox the  proper values. 

Try the following :

 1 - You must use a "portrait" document

 2- Center your figure in the FrameMaker page

[That is, centre it in the exact middle of the 8.5x11 drawing
template.  Even white space on all sides (top/bottom, left/right)
of the figure's BoundingBox.]

 3- Note the dimensions of your figure (width and height)

 4- Print the page to a Postscript file setting the dimensions of the
    page  (in the "print dialog box") to the width and the height of
    your figure.

[So I put in my specs: 4.0" high, 6.0" wide]

[I had tried manually altering the BoundingBox field of a PS file
generated for an 8.5 x 11" page, but running Unix 'diff' on that file 
and the preceding one revealed major differences!  So, don't bother.]

[Step 5 was just some mechanics; *I* am not moving the BoundingBox
field to the top, for minimal hassle on my part. (-;]

 6- you can include your figure with the psfig macro

 \begin{figure}
 \centerline{\psfig{figure=kkkk.ps,clip=}}
 \end{figure}

================================================================
\end{excerpt}

When running LaTeX on the sample file, I was getting undecipherable
error messages the moment we reached the PS file. )-; Then, I added
\leavemode from Tom's solution on a lark (it's a standard TeX, not
LaTeX, command --- right?):

\begin{figure}
\begin{center}
\leavevmode
\psfig{file=fig2-1.laas.ps, clip=}
\end{center}
\caption{Two pass analysis of a simple combinational logic circuit.}
\label{fig2-1}
\end{figure}

... and it ran cleanly!  The sample file passed DVIPS without event
and the printing came out with the figure just where I wanted it!!!


Many thanks again to Tom and Michel, and everyone else who filled me
in with pointers to relevant reading materials, TeXrminology, etc.
I hope that this will help anybody who's in the same boat with yet
another configuration; keep trying with a bit of everyone's advice 
if you can't duplicate their method --- it's probably your site.

gld
--
~~~~~~~~~~~~~~~~~~~~~~~~ Je me souviens ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Gary L. Dare				Jesus Saves!
> gld@cunixd.cc.columbia.EDU 		Gretzky gets the rebound -
> gld@cunixc.BITNET			he shoots, he scores!