Generalno figure (.eps) shown in generated pdf file

General information and discussion about TeXnicCenter
Post Reply
misou
Posts: 1
Joined: Sun Mar 30, 2008 9:26 pm

no figure (.eps) shown in generated pdf file

Post by misou »

Hi all,

I am having trouble inserting .eps files. I have installed the following:
MikTex2.5 Ghostscript 8.54 GSview 4.9 Acrobat reader

I have also imported localghost's latex=>ps=>pdf .tco file and carefully
setup the executable paths.

The problem is, I cannot see any pictures in the generated pdf file but
only empty spaces.

BTW, I also noticed the following error messages at the end of the log:
Transcript written on "****.log"
This is dvips(k) 5.95b Copyright 2005 Radical Eye Software (http://www.radicaleye.com)
C:\Program Files\MiKTeX2.5\miktex\bin\dvips.exe: ! DVI file can't be opened.

LaTeX-Result: 0 Error(s), 1 Warning(s), ....


Thanks in advance!
Song

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
engraver
Posts: 1
Joined: Thu Apr 03, 2008 6:28 pm

no figure (.eps) shown in generated pdf file

Post by engraver »

LaTeX take image from *.eps file, and PDFTeX from *.pdf. Use program epstopdf.exe from MikTeX to convert your files. In some places I saw next construction

Code: Select all

\ifx\pdfoutput\undefined
\usepackage{graphicx}
\else
\usepackage[pdftex]{graphicx}
\fi
for compiling file by LaTeX or PDFTeX and don't write filename extensions for images. Good luck! :)
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

no figure (.eps) shown in generated pdf file

Post by localghost »

engraver wrote:LaTeX take image from *.eps file, and PDFTeX from *.pdf. Use program epstopdf.exe from MikTeX to convert your files. In some places I saw next construction

Code: Select all

\ifx\pdfoutput\undefined
\usepackage{graphicx}
\else
\usepackage[pdftex]{graphicx}
\fi
for compiling file by LaTeX or PDFTeX and don't write filename extensions for images. Good luck! :)
This is absolutely unnecessary. The graphicx package doesn't need any driver option and detects on its own which compiler is running and searches the file with the matching suffix. Furthermore, the request mentions that the profile "LaTeX => PS => PDF" is used, hence the compiler will accept EPS files.
misou wrote: [...] I have also imported localghost's latex=>ps=>pdf .tco file and carefully
setup the executable paths.

The problem is, I cannot see any pictures in the generated pdf file but
only empty spaces. [...]

Code: Select all

Transcript written on "****.log"
This is dvips(k) 5.95b Copyright 2005 Radical Eye Software (http://www.radicaleye.com)
C:\Program Files\MiKTeX2.5\miktex\bin\dvips.exe: ! DVI file can't be opened.

LaTeX-Result: 0 Error(s), 1 Warning(s), ...
Obviously there is no DVI file created. Take a careful look at the log file. Look out for any warning or error messages. If necessary, you can post that complete log file here as attachment, so we can take a look at it. Please provide a minimal working example (MWE) of your code. This MWE should reproduce the undesired behaviour and be processable by every other person.


Best regards
Thorsten¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Post Reply