GeneralConvert GIF to EPS and include with LaTeX

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
piglet12484
Posts: 2
Joined: Thu Aug 23, 2007 5:23 am

Convert GIF to EPS and include with LaTeX

Post by piglet12484 »

I don't know if anyone has met the same problem as me. I tried to insert a graph into my document. I've already converted it from GIF to EPS (using postcript printer) but when the preview is on, the graph just appear for 1 moment then disappear right after. If anyone has met this problem or know how to deal with it, please help me.
Thank u in advance

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
klumpp
Posts: 15
Joined: Mon Jan 15, 2007 11:01 am

Re: Urgent! Help me please!

Post by klumpp »

Which viewer do you use?
Can you convert the dvi file into ps or pdf and the problem remains?
Do you have the correct bounding box in the eps file?
piglet12484
Posts: 2
Joined: Thu Aug 23, 2007 5:23 am

Re: Urgent! Help me please!

Post by piglet12484 »

Iam using GSviwer.
It's a bit silly but could u please tell me how to convert .ps or dvi?
I have fixed the bounding box but it does not seem right.
Thankx
klumpp
Posts: 15
Joined: Mon Jan 15, 2007 11:01 am

Convert GIF to EPS and include with LaTeX

Post by klumpp »

There are two major ways to generate a output file using latex.

1.) compiling to dvi
using latex and pictures in the eps format
in this case, you can use dvips to convert the dvi file into a ps file
dvips can be found in the binary directory of your latex distribution, in general

2.) compiling to pdf
using pdflatex and pictures in the jpg or pdf format
this case is very famous today
so maybe you try to convert your pictures into jpg
to compile the latex file use pdflatex instead of latex; a usually used latex editor, like texniccenter, texmaker or kile should have a button for this

here also some example code for including pictures into a latex document

in the preamble: \usepackage{graphicx}

Code: Select all

\begin{figure}[htbp]
	\centering
		\includegraphics{yourpicture.jpg or .eps}
	\caption{}
	\label{}
\end{figure}
Post Reply