Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!noose.ecn.purdue.edu!mentor.cc.purdue.edu!purdue!haven!mimsy!mojo!rig From: rig@eng.umd.edu (Ronald Greenberg) Newsgroups: comp.text.tex Subject: Re: Correct format for psfig? Message-ID: <1991Jan18.002526.24864@eng.umd.edu> Date: 18 Jan 91 00:25:26 GMT References: <00942252.AAB30A20@BINAH.CC.BRANDEIS.EDU> <00942389.81613420@BINAH.CC.BRANDEIS.EDU> Sender: news@eng.umd.edu (C-News) Organization: College of Engineering, Maryversity of Uniland, College Park Lines: 30 In article <00942389.81613420@BINAH.CC.BRANDEIS.EDU> sommer@BINAH.CC.BRANDEIS.EDU writes: >>What is the correct format to use for \psfig when trying to scale by >>figure height? > >First, I thank everyone for helping with my \psfig problem, of which, it >turns out, there were actually two. > >(1) spaces are not allowed in the argument of \psfig{...} >(2) use TeX \centerline{\psfig{ ... } } instead of LaTeX \begin{center} > >(Even though \begin{center} \psfig{p1.ps} \end{center} WORKS >\begin{center} must be taking offense in the height part of \psfig.) > >\psfig{p1.ps, height=2in} FAILS >\begin{center} \psfig{p1.ps,height=2in} \end{center} FAILS >\centerline{\psfig{p1.ps,height=2in}} WORKS I believe I once had this centering problem without using "height" (but there were "bbllx", "bblly", ...). The fix I used was \centering \mbox{\psfig{figure=foo,bbllx=...}} The use of \centering versus the environment shouldn't be of relevance to the issue under discussion, but the idea of putting the thing in an \mbox may be a more general way to make things work when you use LaTeX macros around it. -- Ron Greenberg rig@umiacs.umd.edu