Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I can't include bitmaps with pdflatex. Here is my mwe:

\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[turkish]{babel}
\addto\extrasturkish{\uccode`i=\string"9D \lccode`I=\string"19 }
\addto\noextrasturkish{\uccode`i=`I \lccode`I=`i }


\usepackage{graphicx}

\begin{document}

\shorthandoff{=}
 \includegraphics[width=5cm,height=5cm]{000.bmp}
\end{document}

Gives the error Unknown graphics extension: .bmp.

share|improve this question
3  
pdftex can include only PNG, JPEG, JBIG2 and PDF graphic files. Convert the BMP to PNG. –  egreg Dec 16 '12 at 23:11

2 Answers 2

up vote 5 down vote accepted

As egreg has pointed out, It is preferable to have .pdf, .png or even .eps (with under the shell conversion to pdf) figure formats for pdflatex . Convert is command line script from ImageMagick. You can install it on any platform. Type in the command line prompt convert 000.bmp 000.png .

A decent documentation of graphics in LaTeX is always handy.

share|improve this answer

According to Heiko Oberdiek’s answer to Graphics file extensions and their order of inclusion when not specified another solution without image conversion consists in either producing a DVI file, then (a) converting this with dvips to PS, what then with ps2pdf can further converted to PDF or (b) directly converting the DVI to PDF with dvipdfmx (note the x, it’s important here) – (a)/(b) are in most TeX editors reachable with one mouse click/key stroke –, or using Xe(La)TeX.

If you take a deeper look on Heiko’s answer: There are obviously even some other possibilities with more rarely used TeX drivers.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.