Inclusion of Colored BMP Figures

Ganz, Frank, SV USA Frank.Ganz at SPRINGER-SBM.COM
Fri Aug 13 09:12:20 CEST 2004


Hi Oguzhan,

You have written

 \usepackage[dvipsone]{graphicx}

suggesting that you are targeting dvipsone as you PostScript driver. Yet you are not using dvipsone, but dvi2ps instead.

Either use dvipsone to produce the PostScript or write

 \usepackage[dvi2ps]{graphicx}

Handling of graphics is always driver-dependent. I don't know, though, if dvi2ps is an option to the graphicx package.

On another note, if you are writing something to be given to a publisher, I just want to point out that BMP is an undesired graphics interchange format.

Thanks,
Frank

>-----Original Message-----
>From: Oguzhan Cifdaloz [mailto:Oguzhan.Cifdaloz at ASU.EDU]
>Sent: Friday, August 13, 2004 3:01 AM
>To: YANDYTEX at LISTS.UCC.IE
>Subject: Inclusion of Colored BMP Figures
>
>
>HI,
>I have a little problem with including color bmp files in my
>tex document.
>In the dvi, the picture looks in color. I convert it to ps via dvi2ps
>button and it appears in black and white in the ps file.(Hence, my pdf
>includes a black and white figure.)Please include any colored bmp file
>using my code below. I'd greatly appreciate any help on this.
>
>Thank you,
>
>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>
>\documentclass{book}
>\usepackage[dvipsone]{graphicx}
>
>% ****** Definition for BMP Inclusion *****************
>
>\newdimen\dwidth
>\newdimen\dheight
>
>\def\showbmp#1#2#3{%
>\dwidth=3D#2\dheight=3D#3
>\edef\width{\number\dwidth} \edef\height{\number\dheight}%
>\special{insertimage: #1 \width \space \height}}
>
>\def\centerbmp#1#2#3{\vskip#2\relax\centerline{\hbox%
>to#1{\showbmp{#3}{#1}{#2}\hfil}}}
>% *****************************************************
>
>\begin{document}
>
>Note that the figure appears in color in the dvi.
>\begin{figure}[h]
> \centerbmp{1.0in}{1.0in}{figure1.bmp}
> \caption{STEP Response}
>\end{figure}
>
>\noindent Convert the dvi to ps using the dvi2ps button, and
>distill it =
>using Adobe
>Distiller. The figure appears in black and white in the resulting pdf.
>
>\end{document}
>
>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>




More information about the yandytex mailing list