N
N
nkorobkov2015-12-13 18:01:39
Programming
nkorobkov, 2015-12-13 18:01:39

How to insert an image into a LaTeX document?

I use the pdfLaTeX compiler. I add packages in the preamble (with a link to the pictures internal directory):
\usepackage{graphicx}
\graphicspath{{pictures/}}
Trying to insert an image with:
\includegraphics{car.jpg}
uh... nothing works. What to do? How to insert an image?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dum_spiro_spero, 2015-12-13
@Dum_spiro_spero

This command works with eps, not jpg.
In general, you are here:
habrahabr.ru/post/48122
and here:
dxdy.ru/topic3870.html
and it is important whether you compile with latex or Pdflatex.
Also, Pdflatex does not understand images in eps format.
How to make pdflatex see your eps images? Connect the cmap
\usepackage{cmap} package, after \usepackage{graphicx} insert \usepackage{epstopdf}
Epstopdf is part of MikTeX, if it is not installed for some reason, install the Oberdiek package via the Package Manager. (A bundle of packages submitted by Heiko Oberdiek). Your eps pictures will be converted to pdf - files with the same name will appear - but with the pdf extension.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question