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.

The problem is the following: I have included a graphic (png) and get no error message, but the picture does not appear on the pdf? The .png file is correct, I do not know what could be wrong?

Here is my code:

\documentclass{book}

\usepackage[ngerman]{babel}
\usepackage{mathptmx}
\usepackage{color}
\usepackage[final]{pdfpages} 
\usepackage{xcolor,bookmark}
\usepackage{scrextend}
\usepackage{titlepic}
\usepackage{shorttoc}
\usepackage{courier}
\usepackage{type1cm}         
\usepackage{zref-abspage}
\usepackage{makeidx}         

\usepackage{graphicx}        % standard LaTeX graphics tool
                             % when including figure files
\usepackage{multicol}        % used for the two-column index
\usepackage[bottom]{footmisc}% places footnotes at page bottom
\usepackage{shadethm}
\usepackage{amsthm}
\usepackage{amsmath}
\usepackage{xcolor}
\usepackage{marginnote}
\usepackage{mdframed}
\makeindex             % used for the subject index
                       % please use the style svind.ist with
                       % your makeindex program

\definecolor{shadethmcolor}{rgb}{.9,.9,.95}%
\definecolor{shadethmcolor2}{rgb}{1,.925,.545}%

\newtheoremstyle{mystyle}
  {\topsep}{\topsep}{}{}%
  {\bfseries}{:}{.5em}{}%

\theoremstyle{mystyle}

\newmdtheoremenv[hidealllines=true,backgroundcolor=shadethmcolor,skipabove=\topsep,
skipbelow=\topsep]{beispiel}{Beispiel}

\newmdtheoremenv[hidealllines=true,
backgroundcolor=shadethmcolor2,skipabove=\topsep,
skipbelow=\topsep]{formel}{Formel}


\begin{document}
\begin{figure}[H]
\includegraphics[scale=1]{Zinsrechnung.png}
\caption{geometrisches Mittel}\label{fig:zins}
\end{figure}
\end{document}
share|improve this question

closed as too localized by Stefan Kottwitz Sep 14 '12 at 20:42

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Please, revise your .log file. If you can't find anything wrong with it, paste it here too. –  JLDiaz Aug 18 '12 at 8:51
    
Ok, I checked the .log file and searched for the picture but there where no problems - no error messages or things like that? –  BalboaSP Aug 18 '12 at 8:56
    
I tried with smaller scale values but it also does not work. The caption is also not appearing - it is just not there?! thanks to you helping me –  BalboaSP Aug 18 '12 at 9:02
    
yeah, but this was the error message, when I compiled it wrong with TexStudio! When I do it correct I do not get an error message and the pdf is built without a problem but the picture does not appear! –  BalboaSP Aug 18 '12 at 9:09
    
Please, paste the log you get when you compile it "correct". Also, please, in order to keep clean the question, delete all these temporary comments. I will do the same with mine. –  JLDiaz Aug 18 '12 at 9:14
show 2 more comments

1 Answer 1

Graphic does not appear

What could be the cause for a graphic not to appear?

It may be usefull for all readers of this broad headline of the question to collect all frequent causes for invisible graphics. So please go ahead and add your experience.

  • Graphic could be off the page; possible check: make the graphic much smaller and have a second look (\includegraphics[scaled=0.1]{picture}), put the graphic into the middle of the paper (\vfill\includegraphics{picture}\vfill), and make the paper larger (e.g. paper a2).
  • graphicx package is in draft or demo modes. Or the main \documentclass uses draft option (this is passed to all \usepackages)
  • The graphic file cannot be found, but the error is not seen because the user is using some kind of script which uses batchmode. Possible check: look for errors in the .log file.
share|improve this answer
1  
You forgot the most important source: The problem can be due to something unrelated to the graphic. So the first step is to comment the \includegraphics and check if the document compiles. –  Ulrike Fischer Aug 18 '12 at 10:09
add comment

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