Re: import bitmap file



"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
.



Relevant Pages

  • Re: How to include files?
    ... I just started learning TeX yesterday, ... I have a collection of documentation for my software. ... : in docbook XML. ... TeX can typeset plain ASCII output pretty nicely as well. ...
    (comp.text.tex)
  • Re: The Problems of TeX
    ... MacOS X TeX mailing list? ... MacTeX'. ... software, not documentation. ... 'cause he participates on mailings lists where people discuss their ...
    (comp.text.tex)
  • Re: The Problems of TeX
    ... the user already knows about TeX and friends. ... Documentation is poor, ... I don't see that many people are in a position to install a TeX ... But you do fall into the category of `Unix expert', ...
    (comp.text.tex)
  • Re: [OT] Links to PDF manual
    ... wanted it in Tex format; I explained that I no longer programmed in punched cards, ... PDF, however, is largely user-hostile in terms of documentation. ... PDF files are designed to give the same physical appearance on every device, ...
    (microsoft.public.vc.mfc)
  • Re: Where does fmtutil get its inputs?
    ... documentation, informal documentation like comments in configuration ... Not much of this `modern Unix TeX' ... you the output from fmtutil-sys building the LaTeX format? ... MacTeX is to avoid that particular installer, so I think I'll not be ...
    (comp.text.tex)