How to Put A Blank Line Between Two Images In Doxygen?

2 minutes read

To put a blank line between two images in Doxygen, you can use HTML code to add a line break. Simply add or between the image tags of the two images in your Doxygen documentation. This will create a blank line separating the two images and improve the readability of your documentation.


How to override the default spacing between images in doxygen?

To override the default spacing between images in Doxygen, you can use CSS to set custom styles for the images.


Here's how you can do it:

  1. Create a custom CSS file (e.g., custom.css) and add the following code to adjust the spacing between images:
1
2
3
img {
    margin: 10px; /* Set the desired margin value */
}


  1. In your Doxygen configuration file (Doxyfile), specify the custom CSS file to be included in the HTML output:
1
HTML_EXTRA_STYLESHEET = custom.css


  1. Regenerate the Doxygen documentation to apply the custom styles.


By adding the custom CSS file and setting the margin property for images, you can override the default spacing between images in Doxygen. Adjust the margin value according to your preferences to achieve the desired spacing between images.


What is the HTML tag to create a space between two images in doxygen?

In Doxygen, you can use the HTML <br> tag to create a space between two images. This tag creates a line break, which will move the content following it to the next line.


Here is an example of how you can use the <br> tag to create a space between two images in Doxygen:

1
2
3
<img src="image1.jpg" alt="Image 1">
<br>
<img src="image2.jpg" alt="Image 2">


In this example, the <br> tag is used to create a line break between the two <img> tags, which will result in a space between the two images when the HTML document is rendered.


How to use doxygen comments to include a space between images?

To include a space between images using Doxygen comments, you can use HTML tags within the comments. Here is an example of how to include a space between two image links in a Doxygen comment:

1
2
3
4
5
/**
 * \image html image1.png
 * <br> <!-- Line break to add space -->
 * \image html image2.png
 */


In the above example, the <br> tag is used to create a line break in the generated HTML output, which will create a space between the two image links. Make sure to replace image1.png and image2.png with the actual file names of your images.

Facebook Twitter LinkedIn Telegram Whatsapp

Related Posts:

To check if Doxygen is locked, you can look for a file named &#34;doxygenlock&#34; in the root directory of your project. This file is created by Doxygen when it is running, to ensure that only one instance of Doxygen is running at a time. If this file is pres...
To generate a changelog using Doxygen, you need to utilize Doxygen&#39;s support for changelog generation. This can be done by enabling the GENERATE_CHANGELOG option in the Doxygen configuration file. By setting this option to YES, Doxygen will include a chang...
To specify a markdown file as another tab in Doxygen, you can include the markdown file in the Doxygen configuration file by using the INPUT tag. This tag allows you to specify additional files or directories to be processed by Doxygen.Once you have added the ...
To include plain text files in Doxygen documentation, you can use the \verbatim command followed by the path to the text file you want to include. For example: \verbatim path/to/your/textfile.txt \endverbatim This will display the contents of the text file in ...
To add an extension to Doxygen, you first need to make sure that the extension is compatible with Doxygen. You can typically find extensions in the form of plugins or custom means of generating documentation.Once you have the extension that you want to add, yo...