🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.tex
Article #541

Re: How to include a picture in a TeX document

#541
From: Stephen Harker
Date: Wed, 17 Apr 1996 00:00
63 lines
2975 bytes
sj09@wraith.its.uow.edu.au (Srikanth Jagannath) writes:


>I would like to know how can i include a picture in a tex document, somebody
[...]

>\begin{figure}[htb]
>\epsbox {intelldb.eps}
>\caption {blah blah blah}
>\end{figure}

>but when i try to run this input file i am getting an error message as bad
>control sequence at \epsbox {intelldb.eps} i am not able to include the picture
>in my latex document.

The main problem is that \epsbox is not a standard LaTeX command, it
should be defined in a stylefile.  I am not familiar with any style
file that defines a command called \epsbox, but it sounds very much
like the commands defined in epsf.sty, which comes (or used to) with
dvips.  To use this with a recent LaTeX (LaTeX 2e) you need to put the
command

\includepackage{epsf}

after the \documentclass[...]{...} command.  If you are using such a
LaTeX you would be better off using the graphics package.

For an obsolete LaTeX (such as version 2.09) the style file is
included by starting the file with a command such as

\documentstyle[...,epsf]{...}

These commands cause LaTeX to load the style file which defines such
commands as \epsfbox.  In the beginning of epsf.sty there are some
examples of usage such as:

%   \epsfbox{filename.ps} % where you want to insert a vbox for a figure
%
%   Alternatively, you can type
%
%   \epsfbox[0 0 30 50]{filename.ps} % to supply your own BB
%
%   which will not read in the file, and will instead use the bounding
%   box you specify.
%
%   The effect will be to typeset the figure as a TeX box, at the
%   point of your \epsfbox command. By default, the graphic will have its
%   `natural' width (namely the width of its bounding box, as described
%   in filename.ps). The TeX box will have depth zero.
%
%   You can enlarge or reduce the figure by saying
%     \epsfxsize=<dimen> \epsfbox{filename.ps}
%   (or
%     \epsfysize=<dimen> \epsfbox{filename.ps})
%   instead. Then the width of the TeX box will be \epsfxsize and its
%   height will be scaled proportionately (or the height will be
%   \epsfysize and its width will be scaled proportiontally).  The
%   width (and height) is restored to zero after each use.
-- 
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.829781091@phadfa>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <4l2m5i$le5@wraith.its.uow.edu.au>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10b0c4,8a9757b40bede455
X-Google-Attributes: gid10b0c4,public
From: Stephen Harker <sjh@phadfa.ph.adfa.edu.au>
Subject: Re: How to include a picture in a TeX document
Date: 1996/04/17
Message-ID: <sjh.829781091@phadfa>
X-Deja-AN: 148076017
references: <4l2m5i$le5@wraith.its.uow.edu.au>
organization: School of Physics ADFA
keywords: How to include a picture in a tex documnet
reply-to: sjh@phadfa.ph.adfa.edu.au
newsgroups: aus.computers.tex
originator: sjh@phadfa.ph.adfa.oz.au