LaTeX forum ⇒ MiKTeX and proTeXtincluding .eps figure

Information and discussion about MikTeX distribution for Windows and the related proTeXt: Installing, updating, configuring
osamalatex
Posts: 2
Joined: Wed Jun 11, 2008 7:13 pm

including .eps figure

Postby osamalatex » Wed Jun 11, 2008 7:21 pm

Hi every body,

I'm in the middle of writing a paper, I'm using latex through protext. I have the following problem:

I included a graphics (.eps file) in the following way:
\usepackage{graphicx}
\begin{figure}
\centering
\includegraphics{eijkel2}
\caption{whatever}
\label{fig:example}
\end{figure}

The figure takes empty space in the generated pdf file. what is happening? Why can't I see the figure?

I tried the [dvips] option with the \usepackage{graphicx}, but still, the problem is there.

Any help?

Thanks a lot.

Osama.

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
Stefan Kottwitz
Site Admin
Posts: 7801
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Wed Jun 11, 2008 7:45 pm

Hi,

don't use pdflatex, use latex instead, that means compile to dvi and convert to ps and pdf then.
If you are already doing this, look at your logfile for warnings or post your logfile here as attachment.

Stefan
Site admin

Link:
BBcode:
HTML:
Hide post links
Show post links

osamalatex
Posts: 2
Joined: Wed Jun 11, 2008 7:13 pm

Postby osamalatex » Thu Jun 12, 2008 6:35 pm

8-) Yes it works now, the dvi file shows my .eps figure. Now, what is the way to convert .dvi file to .pdf file such that all fonts are embedded?

Thanks stefan_k

Osama.

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
Stefan Kottwitz
Site Admin
Posts: 7801
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Thu Jun 12, 2008 6:58 pm

Hi,

use dvipdfm, it's delivered with the proTeXt (MiKTeX) distribution. Or convert with dvips and then ps2pdf. What Editor do you use? WinEdt, TeXnicCenter or another? Some editors provide buttons for conversion from dvi to pdf or dvi to ps and then to pdf, they use dvipdfm/dvips/pd2pdf in the background.

Stefan
Site admin

Link:
BBcode:
HTML:
Hide post links
Show post links

fewzee
Posts: 2
Joined: Mon Jul 27, 2009 1:41 pm

Postby fewzee » Mon Jul 27, 2009 2:00 pm

Hi,

I've got the same problem (the .eps(es) don't show up in the output pdf) and also, I could not choose the dvi option as the output; it says something like:

PDF mode expected, but DVI mode detected...

I appreciate if you help me out,
Thanks,
Pouria

Link:
BBcode:
HTML:
Hide post links
Show post links

justinkearns
Posts: 7
Joined: Sat Sep 05, 2009 5:16 am

Postby justinkearns » Tue Sep 08, 2009 1:11 pm

Try using MiKTex 2.8 and including the extension .eps with your file name. MiKTeX 2.8 partially enables \write18, which may solve your problem.

Jim

Link:
BBcode:
HTML:
Hide post links
Show post links

sgp
Posts: 30
Joined: Thu Jul 22, 2010 11:45 am

Postby sgp » Thu Jul 22, 2010 12:07 pm

hi,
i think including this will help. It works for me at least. I use MIKTeX that comes with the proTeXt bundle.

\usepackage{epstopdf}

regards,
sgp.

Link:
BBcode:
HTML:
Hide post links
Show post links


Return to “MiKTeX and proTeXt”

Who is online

Users browsing this forum: No registered users and 2 guests