Inclusion of Colored BMP Figures

Ganz, Frank, SV USA Frank.Ganz at SPRINGER-SBM.COM
Mon Aug 16 14:00:47 CEST 2004


Hi Oguzhan,

I'm assuming that you have Y&YTeX installed on your system. Even though you statement that you've never used it makes me doubt that. You can only use dvipsone if you have a Y&YTeX installation available.




>From the command prompt type:


dvipsone <filename>.dvi (where <filename> is a placeholder for the actual name of the file without < and >)

You may want to add command line flags as shown:

dvipsone -*i -v -j <filename>.dvi





>From DVIWINDO


Select dvipsone from the pull-down menu (under TeX). If this doesn't exist, you can add it to dviwindo.ini, which is located at c:\Windows or c:\WINNT.

Once dviwindo.ini is opened in a text editor, look under [Applications]; you can add the following anywhere underneath that heading:

DVIPSONE to PostScript File |F11=C:\YANDY\DVIPSONE\DVIPSONE.BAT -*i -v -j -l=letter *

Note that |F11 represents a function key. If you want to use those, make sure that F11 hasn't been asigned already.

-l=letter is optional. All other command flags I find helpful.




Hope this helps.

Thanks,
Frank

>-----Original Message-----
>From: Oguzhan Cifdaloz [mailto:Oguzhan.Cifdaloz at ASU.EDU]
>Sent: Friday, August 13, 2004 2:30 PM
>To: YANDYTEX at LISTS.UCC.IE
>Subject: Re: Inclusion of Colored BMP Figures
>
>
>Frank,
>
>I'm sorry I have not told you that I tried it with no luck.
>I guess I need to learn how to use dvipsone.
>
>Thank you,
>
>Oguzhan
>----- Original Message -----
>From: "Ganz, Frank, SV USA" <Frank.Ganz at SPRINGER-SBM.COM>
>To: <YANDYTEX at LISTS.UCC.IE>
>Sent: Friday, August 13, 2004 9:41 AM
>Subject: Re: Inclusion of Colored BMP Figures
>
>
>> Oguzhan,
>>
>> Did you try \usepackage[dvi2ps]{graphicx}?
>>
>> If this doesn't give you an error, you don't need to learn how to use
>dvipsone.
>>
>> Thanks,
>> Frank
>>
>> >-----Original Message-----
>> >From: Oguzhan Cifdaloz [mailto:Oguzhan.Cifdaloz at ASU.EDU]
>> >Sent: Friday, August 13, 2004 12:22 PM
>> >To: YANDYTEX at LISTS.UCC.IE
>> >Subject: Re: Inclusion of Colored BMP Figures
>> >
>> >
>> >Frank,
>> >I've never used dvipsone as my PostScript driver, how
>should I do it?
>> >Thank you very much for your help.
>> >Oguzhan
>> >
>> >
>> >----- Original Message -----
>> >From: "Ganz, Frank, SV USA" <Frank.Ganz at SPRINGER-SBM.COM>
>> >To: <YANDYTEX at LISTS.UCC.IE>
>> >Sent: Friday, August 13, 2004 6:12 AM
>> >Subject: Re: Inclusion of Colored BMP Figures
>> >
>> >
>> >> 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