diff options
author | albert-github <albert.tests@gmail.com> | 2020-10-14 16:01:23 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2020-10-14 16:01:23 (GMT) |
commit | 89c4556edfc7ca5cac9c2e0171e3be9441990a91 (patch) | |
tree | 18e89cbabe6b728da396339a2ffaaa5862f248ba /src | |
parent | f64705ecdeff9eead62e63f27b2ba88bea87c259 (diff) | |
download | Doxygen-89c4556edfc7ca5cac9c2e0171e3be9441990a91.zip Doxygen-89c4556edfc7ca5cac9c2e0171e3be9441990a91.tar.gz Doxygen-89c4556edfc7ca5cac9c2e0171e3be9441990a91.tar.bz2 |
Space around images in LaTeX output is sometimes a bit large
When we look at images in documents we see for a number of images a big amount of white space around the image.
This is e.g. the case in the doxygen manual at page 99 of the 1.8.20 version.
- using `\raggedbottom` sees to it that the space inside the page is removed (there might be some white space when the next image doesn't fit anymore. (See https://tex.stackexchange.com/questions/566779/placing-figures-on-a-fixed-place-without-lot-of-space-around-it)
- use `\centering` instead of `\begin{center}` as the center environment adds some extra white space (see a comment with the question, on a different subject though: https://stackoverflow.com/questions/64328597/pdftex-warning-saying-about-duplicate-figures#comment113772445_64328597)
Diffstat (limited to 'src')
-rw-r--r-- | src/latexgen.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/latexgen.cpp b/src/latexgen.cpp index 1d55dd6..418afa7 100644 --- a/src/latexgen.cpp +++ b/src/latexgen.cpp @@ -774,7 +774,8 @@ static void writeDefaultHeaderPart1(FTextStream &t) // End of preamble, now comes the document contents t << "%===== C O N T E N T S =====\n" "\n" - "\\begin{document}\n"; + "\\begin{document}\n" + "\\raggedbottom\n"; QCString documentPre = theTranslator->latexDocumentPre(); if (!documentPre.isEmpty()) { |