title: Doxygen: How to embed images on main page for all output formats?
body: <p>I am using Doxygen 1.8.6 on Ubuntu 14.04 to generate API documentation from C/C++ header files.</p>
  
  <p>I have a main page in markdown format (file <code>mainpage.md</code>) and want to embed an image (file <code>logo.png</code>) into that page.</p>
  
  <p>Currently, I have that working for HTML output, with the following directory structure:</p>
  
  <pre>
      work
      ├── mainpage.md
      ├── resources
      │   └── logo.png
      └── html
          └── index.html
  </pre>
  
  <p>The way the markdown in <code>mainpage.md</code> embeds the image, is:</p>
  
  <pre><code>![The Logo](../resources/logo.png)
  </code></pre>
  
  <p>This works, but it depends on the fact that the HTML output directory is one level down from the work directory, and (fwiw) that is not in sync with the location of the <code>mainpage.md</code> file containing that reference.</p>
  
  <p>I have to admit that I did not try out what happens with other output formats
  (intended formats are: HTML, PDF via LaTex, man pages, Eclipse help), but 
  they may work differently w.r.t. their output directory and the reference to the image file.</p>
  
  <p>My questions are:</p>
  
  <ol>
  <li><p>Do the above mentioned other output formats work with this markdown reference?</p></li>
  <li><p>Is there a more output format agnostic way for referencing the image file from the main page markdown?</p></li>
  </ol>
  
  <p>Andy</p>