Generalunknown file extention : .eps

General information and discussion about TeXnicCenter
Post Reply
me_here_me
Posts: 46
Joined: Mon Feb 05, 2007 5:19 pm

unknown file extention : .eps

Post by me_here_me »

Hi,
I have some images in .eps format and I have trouble including them into latex.

I have included the following packages:

Code: Select all

\usepackage{mathptmx}
\usepackage{graphicx}
\usepackage{times}

and the code to include graphics is as below:

Code: Select all

\begin{figure}[ht]
  \centering
  \includegraphics[width=1.5in]{imageFirst.eps}
  \caption{First Image.}
\end{figure}
When i build my document in TeXnicCenter is gives the following error:

Unknown graphics extention: .eps

Can someone guide me here. Do I need to include some package?

regards

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

unknown file extention : .eps

Post by localghost »

You can't include EPS graphics files when compiling with pdflatex. Convert these files with the command line tool epstopdf or with the epstopdf package on the fly. When using the package, pay special attention to sections 1.2 and 1.3 of the documentation. In both cases you must have Ghostscript installed.


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
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

unknown file extention : .eps

Post by gmedina »

Besides the advise by localghost, the times packages is obsolete. To use the Times/Helvetica/Courier combination , instead of

Code: Select all

\usepackage{times}
you should use

Code: Select all

\usepackage{mathptmx}
\usepackage[scaled=.90]{helvet}
\usepackage{courier}
The l2tabu document can help you to improve you LaTeX code.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
me_here_me
Posts: 46
Joined: Mon Feb 05, 2007 5:19 pm

Re: unknown file extention : .eps

Post by me_here_me »

Thanks both of you for your help

greetings :)
Post Reply