Graphics, Figures & TablesProblem pictures viewing [Texmaker]

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Ozzy86
Posts: 2
Joined: Tue Apr 22, 2014 8:54 am

Problem pictures viewing [Texmaker]

Post by Ozzy86 »

Hi everyone !

After digging the web for days now, I need your help...

I'm new in Latex environment, and I use Texmaker.

I want to insert a picture in my Latex document.

So I converted it in all the different format (jpeg, eps, png, pdf...). For instance with the .pdf extension : No problem during the compilation, there is a square in the document with "MyPicture.pdf" written in. I can modify the size and the position of this square, but the picture doesn't appear !

I don't understand what's going on !

Here are my headers :
\documentclass[12pt,a4paper,draft]{article}
\usepackage{multicol}
\usepackage[utf8]{inputenc}
\usepackage[francais]{babel}
\usepackage[T1]{fontenc}
\usepackage{times}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{fancybox}
\usepackage[pdftex]{xcolor, graphicx}

And my command :

\includegraphics[width=10cm,height=10cm]{MyPicture}

Can anyone help me ?

Thank you !

Ozzy.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Problem pictures viewing [Texmaker]

Post by Johannes_B »

Hi,

simply leave out the draft option.

Additional hint, always post some kind of minimal working example. That makes testing much easier. Putting it in a proper code-environment gives the possibiblity to open in writelatex. You can try it out:

Code: Select all

\documentclass[12pt,a4paper,
%draft%The draft option does not print the image, but 
%a square the size of the image
]{article}
%\usepackage{multicol}
\usepackage[utf8]{inputenc}
\usepackage[francais]{babel}
\usepackage[T1]{fontenc}
%\usepackage{times}
%\usepackage{amsmath}
%\usepackage{amsfonts}
%\usepackage{amssymb}
%\usepackage{fancybox}
\usepackage[%pdftex
]{xcolor, graphicx}%Leave out the option
%LaTeX is able to detect the right driver
\begin{document}
\includegraphics{example-image-a}
\end{document}
Please read some introductory material before going on. Please have a look at KOMA-script as well.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Ozzy86
Posts: 2
Joined: Tue Apr 22, 2014 8:54 am

Re: Problem pictures viewing [Texmaker]

Post by Ozzy86 »

Hi !
Thank you so much ! It works !

Excuse me for your remarks, I'll try to post better in the future !
Post Reply