[texhax] How to include a bitmap file in LaTeX
Matthew Leingang
leingang at math.harvard.edu
Sun Feb 4 18:26:56 CET 2007
Dear Dingxi,
Does it have to stay a bmp file? The graphicx package can handle lots of
image formats besides EPS, for instance JPG or PNG. If it were me I would
convert the bmp to one of those and \includegraphics it the regular way.
You can even configure graphicx to do this conversion for you. See the
document "grfguide.pdf" on CTAN for more.
HTH,
Matt
On 2/2/07 6:57 PM, "dingxi qiu" <dingxi_qiu at hotmail.com> wrote:
> Dear all,
> EPS files are standard graphical files for LaTex. However, I have two image
> files in .bmp format and I would like to include them in Latex compilation
> process. Does anyone have any experience with this?
>
> I downloaded setbmp.tex from Professor Ablamowicz's website.
>
> ============================================
> \def\setbmp#1#2#3#4{\vskip#3\relax\noindent\hskip#1\relax
> \special{bmp:#4 x=#2, y=#3}}
> \def\centerbmp#1#2#3{\vskip#2\relax\centerline{\hbox to#1{\special
> {bmp:#3 x=#1, y=#2}\hfil}}}
> =============================================
>
> I included this file by
> \input setbmp
>
> But I could not see the graph by
> \begin{figure}[h]
> \special{bmp:fig1.bmp x=5in, y=5in}
> \end{figure}
>
> Does anyone have any experience with this?
>
> Thanks!
> Dingxi
>
> _________________________________________________________________
> Express yourself instantly with MSN Messenger! Download today it's FREE!
> http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
>
> _______________________________________________
> TeX FAQ: http://www.tex.ac.uk/faq
> Mailing list archives: http://tug.org/pipermail/texhax/
> More links: http://tug.org/begin.html
>
> Automated subscription management: http://tug.org/mailman/listinfo/texhax
> Human mailing list managers: postmaster at tug.org
--
Matthew Leingang
Preceptor in Mathematics
Harvard University
http://www.math.harvard.edu/~leingang/vCard.vcf
More information about the texhax
mailing list