Re: import bitmap file
- From: rf10@xxxxxxxxxxxx (Robin Fairbairns)
- Date: 1 Dec 2008 16:02:27 GMT
"rio" <a@xxx> writes:
(aiming to be anonymous since [s]he doesn't trust any of us)
there is someone that know how import a bitmap (or .gif, or .ps)
file in a "TeX Plain" document?
for .ps files should be something like
\special{psfile=immage.ps}
correct.
but in the .dvi file nothing is seen...
rubbish. from dvitype of such a .dvi file:
135: pop
level 1:(h=0,v=655360,w=0,x=0,y=0,z=0,hh=0,vv=42)
136: xxx 'psfile=immage.ps'
154: down3 786432 v:=655360+786432=1441792, vv:=91
158: push
xdvi copes with this; it says
xdvi: Warning: Could not find graphics file "immage.ps"
because i don't have any such. give it a real file name, and xdvi
will display it ... off the page because i've done no work on
positioning the \special
there's plenty of code in the latex graphics package, to read the
header of an eps file and to position an image on the page.
similarly, there's code in psfig (not in any distribution because it's
non-free) and epsf (in "package" epsf in both miktex and texlive).
both of these (i believe) run on their own under plain tex. (the
latex package requires some glue macros to make it work under plain.)
neither psfig nor epsf is entirely satisfactory (imo), but they have
the requisite code. (i always assume a plain tex user will want to
write their own macros: if you're not one such, just use one of the
files as it stands.)
note that the only way to display graphics in (original) tex with
dvips output, is via encapsulated postscript. bitmap images can be
converted to eps, but that's the only way of dealing with them.
(things are different with pdftex, and later systems.)
why is this sort of thing not documented? ... well, be sure it's not
-- there are things like tex for the impatient, and so on, out there
in the public domain.
but the fact is, that latex and context are documented far better,
because they have far more users, and more users means more people
willing to write documentation for free.
(nothing's perfect, of course -- people regularly complain about
omissions in the free documentation. if every complainer were to put
something right, we would have marvelous documentation...)
--
Robin Fairbairns, Cambridge
.
- Follow-Ups:
- Re: import bitmap file
- From: rio
- Re: import bitmap file
- References:
- import bitmap file
- From: rio
- import bitmap file
- Prev by Date: Re: Is it possible to know if there are any figures / tables in a document?
- Next by Date: Re: TeX4ht: oolatex fails on mv
- Previous by thread: import bitmap file
- Next by thread: Re: import bitmap file
- Index(es):
Relevant Pages
|