Graphics, Figures & Tablesimage format

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
teletubijs1
Posts: 13
Joined: Fri Dec 24, 2010 3:55 am

image format

Post by teletubijs1 »

Code: Select all

\documentclass[12pt]{article}
\usepackage{graphicx}
\begin{document}

\includegraphics[scale=1]{filename.jpg}

\end{document}

latex ->includegraphicx -> browse i cannot find jpg format files, but when i write filename.jpg it works.

However, with eps format files which i can fidn via browser, they dont't work.

How can i get eps format images working?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

image format

Post by frabjous »

The first issue sounds like something specific with your editor, which you didn't mention.

What LaTeX distribution and version are you using? The newest versions (MikTeX 2.9/TeXlive 2010) support .eps figures with pdflatex without too much fuss (at least if you ghostscript installed).

For older versions, if you want to use .eps figures with pdflatex you need to load the epstopdf package, and then process with the -shell-escape or -enable-write18 options to pdflatex.

(Otherwise, you need to use plain latex, and then convert the result dvi to postscript and then the postscript to PDF with dvips and ps2pdf.)

Or search the forums. There are at least 30 threads on this topic already.
teletubijs1
Posts: 13
Joined: Fri Dec 24, 2010 3:55 am

Re: image format

Post by teletubijs1 »

Texmaker 2.1; miktex 2.9

I get error: !Unknown graphics extension: .eps.

But, thanks, dvi->ps->pdf does the job.
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

image format

Post by localghost »

Now that the problem is solved, please be so kind and mark the topic (not the last post) accordingly as clearly written in Section 3 of the Board Rules (to be read before posting). Please keep that in mind for the future so that further reminders will not be necessary.


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