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 | |
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)
-rw-r--r-- | doc/doxygen_manual.tex | 1 | ||||
-rw-r--r-- | src/latexgen.cpp | 3 | ||||
-rw-r--r-- | templates/latex/doxygen.sty | 3 |
3 files changed, 4 insertions, 3 deletions
diff --git a/doc/doxygen_manual.tex b/doc/doxygen_manual.tex index aacb573..3354801 100644 --- a/doc/doxygen_manual.tex +++ b/doc/doxygen_manual.tex @@ -122,6 +122,7 @@ \usepackage{etoc} \etocsettocstyle{\doxytocparskip}{\doxynormalparskip} \begin{document} +\raggedbottom \pagenumbering{alph} \begin{titlepage} \includegraphics[width=\textwidth]{doxygen_logo} 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()) { diff --git a/templates/latex/doxygen.sty b/templates/latex/doxygen.sty index 78a5254..a1399b1 100644 --- a/templates/latex/doxygen.sty +++ b/templates/latex/doxygen.sty @@ -186,9 +186,8 @@ % (only if caption is specified) \newenvironment{DoxyImage}{% \begin{figure}[H]% - \begin{center}% + \centering% }{% - \end{center}% \end{figure}% } |