LaTeX Graphics
Home Up

Bruce,

The following (from http://members.tripod.com/~upem/miktex.html) may be relevant to your interests here.
 

Here is another useful site: http://www.dirac.org/p/tex/graphics.html
and http://members.tripod.com/~upem/miktex.html

If you need to download jpeg2ps go to Thomas Merz web page

 

If you REALLY need to include JPEG files on the fly, there is a way. First put jpeg2ps.exe
in your path (probably texmf/miktex/bin).  Here's an example that just now worked for me
(using MiKTeX):

\documentclass{article}
\usepackage{graphicx}
\DeclareGraphicsRule{.JPG}{eps}{*}{`jpeg2ps #1}
\begin{document}

\includegraphics [width=\textwidth , bb= 20 20 575 575]{slope.JPG}

\end{document}

The bb= stuff is the bounding box information TeX needs.  So where did these numbers
come from?  I ran jpeg2ps in a dos command line and created an eps file, then opened the
file to get the numbers.  Even though tex calls jpeg2ps on the
fly and must generate these numbers, apparantly there's no way to get tex to use these
numbers; they must be in the \includegraphics command.

Thus, this method is worthwhile only if you have a large number of jpeg image files all of
the same size.

If you scanned an image, convert/save the scanned image to eps format. For   instructions
go to ftp://ctan.tug.org/tex-archive/info/epslatex.ps. They will tell you everything else you
need to know.

I think it is often still best to convert things to eps and generate Postscript files with dvips.
To do this I like to convert bitmaps to
jpeg format and then use jpeg2ps to convert this to eps. This makes small eps files since it
keeps the jpeg compression (You need level 2 Postscript.). I got jpeg2ps from

http://www.pdflib.com/jpeg2ps/index.html

More references can be found at

http://www.loria.fr/services/tex/english/prod-graph.html

 

My Example is as follows.

Assuming the gunzip is in the path, and f2.eps.gz is a compressed image file f2.eps.bb is its bounding box, and f1.eps is a normal image file.

The files used may be found here: LaTex_Examples/f2.eps.bb LaTex_Examples/f2.eps.gz

and here is the code 


%%&Latex
\documentclass{article}
\usepackage{graphicx}
\begin{document}


%\DeclareGraphicsRule{.eps.gz}{eps}{.eps.bb}{'gunzip -c #1}

\begin{figure}
%\includegraphics[width=\textwidth, bb= 20 20 592 321]{f2.eps.gz}
%\includegraphics[width=3in, bb= 20 20 592 321]{f2.eps.gz}

\includegraphics[width=\textwidth]{f2.eps.gz}
\caption[Submanifold]{Picture from a compressed file.}
\label{f.comp}
\end{figure}

\begin{figure}
\includegraphics[width=\textwidth]{f1.eps}
\caption[Submanifold]{An embedded submanifold with caption below.}
\label{f.emb}
\end{figure}

\begin{figure}
\caption[Submanifold]{An embedded submanifold with caption above.}
\includegraphics[width=8cm]{f1.eps}
\label{f.emba}
\end{figure}


\end{document}

 

Some more resources:

http://www.geocities.com/SiliconValley/Network/1958/pstoedit/

ftp://ftp.x.org/contrib/applications/drawing_tools/xfig/

http://www.mayura.com/

http://www.cs.wisc.edu/~ghost/index.html

 

 

08/15/2016 02:53 PM