Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Aligning images in doxygen

I am writing a doc file in doxygen, and I included an image by doing

\image html screenshots/enabled.png "caption"

This shows my enabled.png image on the generated documentation. However, I would like the image to be aligned to the left (since the rest of the documentation is that way). Is there any way to do this in doxygen without doing it with inline html or css?

like image 243
Arnab Datta Avatar asked Mar 19 '13 14:03

Arnab Datta


1 Answers

Using the following HTML syntax works on Doxygen 1.8.6 (tested with Firefox 66):

/*! \mainpage Test
 *
 * <img src="my-image.jpg" align="left">
 * <div style="clear: both"></div>
 *
 * This is a test page.
 *
 */

Doxygen wraps the image in a <div class="image">, but the align property overrides centering. The extra clearance <div> is added to avoid having the following text written to the right of the image.

like image 194
Tastalian Avatar answered Oct 21 '22 14:10

Tastalian