Article View: aus.computers.tex
Article #516Re: Urgent help needed in positioning of figures
From: Lawson Hanson
Date: Mon, 25 Nov 1996 00:00
Date: Mon, 25 Nov 1996 00:00
88 lines
2677 bytes
2677 bytes
peter.aikins@acslink.aone.net.au (Peter J. Aikins) writes:
> I've got to hand in a Thesis by this Friday and I'm having
>problems getting the images in my thesis to centre. I'm using the
>psfig package and I've quoted both the preamble and the relevent part.
>Anyone who could help me please do.
>Thanks
>Peter
>-----------------------------
>\documentstyle[amssymb,a4wide,psfig,12pt,oneside]{amsbook}
>% Command section.....
>%\include[dvips]{graphics}
>\numberwithin{equation}{section}
>\renewcommand{\baselinestretch}{2}
>%\DeclareGraphicsExtensions{ps,eps}
>%\graphicspath{{./}}
>\raggedbottom
>\begin{document}
>\tableofcontents
>\chapter{Introduction}
><snip>
>\begin{figure}[hbt]
> \psfig{file=radar1.eps,height=5cm}
> \caption{Frontal view of the radar module} \label{fig:radar1}
> \centering
>\end{figure}
>--------------------------
Hi Peter,
Sometimes centering of PostScript figures can be a problem if the
"%%BoundingBox: llx lly urx ury" (I think that's right) sizes are wrong;
so you might check those first ... one way is to add the PostScript
code to draw a line around the bounding box, for example:
llx lly moveto % where "llx" and "lly" are the X, and Y coordinates of the
llx ury lineto % lower left corner, as specified in the %%BoundingBox, and
urx ury lineto % where "urx" and "ury" are the X, and Y coordinates of the
urx lly lineto % upper right corner, as specified in the %%BoundingBox.
llx lly lineto
show
Another package you might try instead of "psfig", is "epsf".
To include an Encapsulated PostScript File, I use the following:
\documentstyle[12pt,epsf]{article} %%% Have not tried this with "amsbook"
%
\begin{document}
% etc., etc., etc.
\begin{figure}[htbp]
\centering
\leavevmode %% leave "v" mode
\epsfbox{fig1.ps}
\caption{Whatever ...\label{figone}}
\end{figure}
% etc., etc., etc.
\begin{figure}[htbp]
\centering
\leavevmode %% leave "v" mode
\epsfbox{fig2.ps}
\caption{And so on ...\label{figtwo}}
\end{figure}
% etc., etc., etc.
\end{document}
I hope that is of some help.
Best regards,
Lawson Hanson
Technical Details
Message-ID:
<lawsonh.848954696@melb138>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3299ab37.3288613@news.hba.aone.net.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10b0c4,d492dfacf4a8a21b X-Google-Attributes: gid10b0c4,public From: lawsonh@melb.cpr.itg.telecom.com.au (Lawson Hanson) Subject: Re: Urgent help needed in positioning of figures Date: 1996/11/25 Message-ID: <lawsonh.848954696@melb138> X-Deja-AN: 200698691 references: <3299ab37.3288613@news.hba.aone.net.au> organization: Telecom Research Laboratories, Melbourne, Australia. newsgroups: aus.computers.tex