🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.tex
Article #539

Re: Centering eps files

#539
From: Stephen Harker
Date: Wed, 17 Apr 1996 00:00
28 lines
1417 bytes
chihaba@lx1.cs.latrobe.edu.au (Brian Chiha) writes:

>Does anyone know how to center an eps file, ive tried this but it wont
>work..

>\begin{figure}
>\centering
>\epsfbox{file.eps}
>\caption{whatever}
>\label{whatever}
>\end{figure}

You appear to be using the epsf.sty that comes with dvips.  In the
file there is the following note that is of relevance.

%   To use with the center environment of LaTeX, preface the \epsffile
%   call with a \leavevmode.  (LaTeX should probably supply this itself
%   for the center environment.)

I can recall using this method when I used epsf.sty and that it worked
without problems.  Now I use the graphics package that comes as part
of the associated packages with LaTeX 2e.

-- 
Stephen Harker                                  sjh@phadfa.ph.adfa.oz.au
School of Physics               Baloney Baffles brains: Eric Frank Russell
University College
UNSW, ADFA
Technical Details
Message-ID: <sjh.829713016@phadfa>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <DpzG0A.J9M@latcs1.lat.oz.au>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10b0c4,6b2683c3277652e2
X-Google-Attributes: gid10b0c4,public
From: Stephen Harker <sjh@phadfa.ph.adfa.edu.au>
Subject: Re: Centering eps files
Date: 1996/04/17
Message-ID: <sjh.829713016@phadfa>
X-Deja-AN: 147912805
distribution: aus
references: <DpzG0A.J9M@latcs1.lat.oz.au>
organization: School of Physics ADFA
reply-to: sjh@phadfa.ph.adfa.edu.au
newsgroups: aus.computers.tex
originator: sjh@phadfa.ph.adfa.oz.au