I'm writing a latex document and got this problem of including .jpg image. Searched the net for a program to convert jpg to ps format for MSWindows. Found jpeg2ps-1.9-1, I used the setup program to install it.
I now tried to use "this trick", also found on the net:
trick for including jpeg images
%You will need the software jpeg2ps, avalaible at http://www.pdflib.com/products/more/jpeg2ps.html intalled. Add the following lines into the definitions in the latex file
%%%%%%%%%%%%
\DeclareGraphicsExtensions{.jpg, .eps}
\DeclareGraphicsRule{.jpg}{eps}{.jpg.bb}{`jpeg2ps -h -r 600 #1}
%To include a jpeg file, myimage.jpg for instance, type
%\includegraphics[....]{myimage}
Unfortunately this didn't work. I tried to use the cmd-promt and used another tip found on the net
1) Convert .jpg to the eps with jpeg2ps:
jpeg2ps -h image.jpg > image.jpg.eps
then I got this messege: jpeg2ps is not an internal command, external command, a program or a commandfile.
So my questions: Is ther another way to call jpeg2ps, am I maybe using unix commands? Do i need to install anything else, I did use the setup for Windows which I understood as beeing complete. I'm not a very routined user and would be thankful for any help.
Helena
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I only ever used the GnuWin32 port of jpeg2ps once; I had a collection of 15 or so JPEG images I needed to convert to EPS, so that they could be embedded in a groff document.
IIRC, I never managed to get this to work; yes, the command produced output which alleged to be EPS, but it was always invalid! Admittedly, I wasn't prepared to persist with it; I simply took the job to a GNU/Linux box, where it was completed with ease, and in no time at all.
Why is everything on Windoze always so d****d difficult? And why do people continue to believe the myth that it is otherwise?
Regards,
Keith.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank you for the help. I dont really know were to set my PATH variables, but I got it to work!, when I was in the same directory as the .exe file.
Thank you very much!!!
Helena
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It depends on your version of Windows. If you're using XP, go to Start -> Control Panel and double-click on "System". Go to the "Advanced" tab and click on "Environment Variables". You can either modify the PATH for yourself only (in the top section) or, if you have admin priveledges, for everyone (bottom section). In either section, find the PATH variable and click on "Edit". You can then append the directory containing the GnuWin32 executables to the end of the path string, separated from the preceding text with a semicolon (";").
Charles
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm writing a latex document and got this problem of including .jpg image. Searched the net for a program to convert jpg to ps format for MSWindows. Found jpeg2ps-1.9-1, I used the setup program to install it.
I now tried to use "this trick", also found on the net:
trick for including jpeg images
%You will need the software jpeg2ps, avalaible at http://www.pdflib.com/products/more/jpeg2ps.html intalled. Add the following lines into the definitions in the latex file
%%%%%%%%%%%%
\DeclareGraphicsExtensions{.jpg, .eps}
\DeclareGraphicsRule{.jpg}{eps}{.jpg.bb}{`jpeg2ps -h -r 600 #1}
%To include a jpeg file, myimage.jpg for instance, type
%\includegraphics[....]{myimage}
Unfortunately this didn't work. I tried to use the cmd-promt and used another tip found on the net
1) Convert .jpg to the eps with jpeg2ps:
jpeg2ps -h image.jpg > image.jpg.eps
then I got this messege: jpeg2ps is not an internal command, external command, a program or a commandfile.
So my questions: Is ther another way to call jpeg2ps, am I maybe using unix commands? Do i need to install anything else, I did use the setup for Windows which I understood as beeing complete. I'm not a very routined user and would be thankful for any help.
Helena
The directory where jpeg2ps.exe is, must be in your PATH environment variable, or in the current directory.
I only ever used the GnuWin32 port of jpeg2ps once; I had a collection of 15 or so JPEG images I needed to convert to EPS, so that they could be embedded in a groff document.
IIRC, I never managed to get this to work; yes, the command produced output which alleged to be EPS, but it was always invalid! Admittedly, I wasn't prepared to persist with it; I simply took the job to a GNU/Linux box, where it was completed with ease, and in no time at all.
Why is everything on Windoze always so d****d difficult? And why do people continue to believe the myth that it is otherwise?
Regards,
Keith.
Thank you for the help. I dont really know were to set my PATH variables, but I got it to work!, when I was in the same directory as the .exe file.
Thank you very much!!!
Helena
>I dont really know were to set my PATH variables
It depends on your version of Windows. If you're using XP, go to Start -> Control Panel and double-click on "System". Go to the "Advanced" tab and click on "Environment Variables". You can either modify the PATH for yourself only (in the top section) or, if you have admin priveledges, for everyone (bottom section). In either section, find the PATH variable and click on "Edit". You can then append the directory containing the GnuWin32 executables to the end of the path string, separated from the preceding text with a semicolon (";").
Charles
Again, thanks alot. Now I can set my PATH variables and everything is working great. It´s really nice learning new stuff. Thanks!!
Helena