Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!ux1.cso.uiuc.edu!csrd.uiuc.edu!s41.csrd.uiuc.edu!eijkhout From: eijkhout@s41.csrd.uiuc.edu (Victor Eijkhout) Newsgroups: comp.text.tex Subject: Re: Correct format for psfig? Message-ID: <1991Jan18.165106.16098@csrd.uiuc.edu> Date: 18 Jan 91 16:51:06 GMT References: <00942252.AAB30A20@BINAH.CC.BRANDEIS.EDU> <00942389.81613420@BINAH.CC.BRANDEIS.EDU> <1991Jan18.002526.24864@eng.umd.edu> Sender: news@csrd.uiuc.edu (news) Organization: UIUC Center for Supercomputing Research and Development Lines: 21 rig@eng.umd.edu (Ronald Greenberg) writes: >In article <00942389.81613420@BINAH.CC.BRANDEIS.EDU> sommer@BINAH.CC.BRANDEIS.EDU writes: >>(2) use TeX \centerline{\psfig{ ... } } instead of LaTeX \begin{center} >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. The LaTeX \begin{center} environment is for centering paragraphs, \psfig generates a box, which is not sufficient to start a paragraph, therefore it is not centered. The author of psfig was aware of this problem, but his repair (last time I looked at the macros) was wrong. Basically you have to start a paragraph, which is done by \mbox, because it contains \leavevmode. You could also write \begin{center} \ \psfig{... or \begin{center} \leavevmode\psfig{... Victor.