[tex-k] Dvips 5.86 problem with jpeg

Andrew Crook acrook@ctr-sgi1.stanford.edu
Mon, 28 Oct 2002 16:53:10 -0800


This is a multi-part message in MIME format.

------=_NextPart_000_001F_01C27EA2.7F62AC50
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi
I am new to the list, and I have a problem including jpeg and tiff files =
in the final postscript output. I am running a newly installed version =
of Redhat 8 and dvips(k) 5.86 and jpeg2ps 1.9. The latex file is as =
follows:

\documentclass[12pt]{report}
\usepackage{graphicx}
\begin{document}
\DeclareGraphicsRule{.jpg}{eps}{.jpg.bb}{`jpeg2ps -r0 #1}
\begin{figure}=20
\centering
\includegraphics[width=3D\textwidth]{pics/test.jpg}
\end{figure}
\end{document}

It compiles fine and I can issue the command jpeg2ps -r0 pics/test.jpg =
and it works fine. However dvips gives me the message:
dvips: failure to execute jpeg2ps -r0 pics/test.jpg; continuing. The =
result is also the same if I try tiff2ps. It is as if dvips does not =
know jpeg2ps is there. I put jpeg2ps in /usr/bin. Should it go in =
another directory so that dvips can find it? I have seen a similar =
problem in the archives but I could not find the solution if any that =
was posted.

Your help is greatly appreciated
Andrew


------=_NextPart_000_001F_01C27EA2.7F62AC50
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2719.2200" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I am new to the list, and I have a =
problem=20
including jpeg and tiff files in the final postscript output. I am =
running a=20
newly installed version of Redhat 8 and dvips(k) 5.86 and jpeg2ps 1.9. =
The latex=20
file is as follows:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV><FONT size=3D2>
<DIV><FONT face=3DArial>\documentclass[12pt]{report}</FONT></DIV>
<DIV><FONT face=3DArial>\usepackage{graphicx}</FONT></DIV>
<DIV><FONT face=3DArial>\begin{document}</FONT></DIV>
<DIV><FONT =
face=3DArial>\DeclareGraphicsRule{.jpg}{eps}{.jpg.bb}{`jpeg2ps -r0=20
#1}</FONT></DIV>
<DIV><FONT face=3DArial>\begin{figure}</FONT> </DIV>
<DIV><FONT face=3DArial>\centering</FONT></DIV>
<DIV><FONT=20
face=3DArial>\includegraphics[width=3D\textwidth]{pics/test.jpg}</FONT></=
DIV>
<DIV><FONT face=3DArial>\end{figure}</FONT></DIV>
<DIV><FONT face=3DArial>\end{document}</FONT></DIV>
<DIV><FONT face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial>It compiles fine and I can issue the command =
jpeg2ps -r0=20
pics/test.jpg and it works fine. However dvips gives me the=20
message:</FONT></DIV>
<DIV><FONT face=3DArial>dvips: failure to execute jpeg2ps -r0 =
pics/test.jpg;=20
continuing. The result is also the same if I try tiff2ps. It is as if =
dvips does=20
not know jpeg2ps is there. I put jpeg2ps in /usr/bin. Should it go in =
another=20
directory so that dvips can find it? I have seen a similar problem in =
the=20
archives but I could not find the solution if any that was =
posted.</FONT></DIV>
<DIV><FONT face=3DArial></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial>Your help is greatly appreciated</FONT></DIV>
<DIV><FONT face=3DArial>Andrew</FONT></DIV></FONT>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_001F_01C27EA2.7F62AC50--