New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doxygen produces ugly empty space in LaTeX and PDF output because of hypertargets #9159
Comments
With the current master I see the big gap as well.
into
the problem disappears. We have to see why in this case the Note:
|
OK, the same attachments once again |
I did some research and see that the problem is probably introduced with:
So simply removing the |
… output because of hypertargets The fix as done for issue doxygen#6093 ``` Commit: d571efb [d571efb] Date: Sunday, October 23, 2016 1:15:37 PM ``` introduced this side effect, this has been corrected.
I've just pushed a proposed patch, pull request #9163 |
I have found a workaround. Please don't take this too seriously. It's a kludge, and it hasn't been tested for any big mass of material. But perhaps it's, for someone, somewhere, better than nothing.
|
I think you would be better of trying my patch, so we would also get feedback whether or not there are drawbacks to the patch. |
@albert-github thanks for providing the fix! Is the commit pushed to the master branch? if so, which version of the doxygen is it in ? d054aed |
The proposed patch in #9163 is still open and not merged into master, so also not available in any release. |
Thanks for the prompt reply. I am currently facing the following error and wonder if this patch is the right solution for it. (Just to provide more background. I am currently maintaining a doxgen set up that is working for 1.8.2 but failed with 1.9.0. I have also updated the configuration file with doxygen -u. ) Any suggestion is welcome. Error Now:
error will go away with the following Change :
|
It is hard to tell whether or not this will go away with the patch. The patch might remove the Are you using any other user modifiable files like stylesheets e.g. Note you are going from 1.8.2 to 1.9.0, why 1.9.0 and not to the current version 1.9.4? |
@albert-github :
|
|
An alternative code update has been made in master on GitHub (please don't close the issue as this will be done at the moment of an official release). |
This issue was previously marked 'fixed but not released', |
Describe the bug
When doxygen produces LaTeX files, it includes hyperlinks and hypertargets in *.tex files. Occasionally a
\Hypertarget
command is inserted inside a TeX box, as follows:By the way, this behaviour apparently has something to do with file https://github.com/doxygen/doxygen/blob/master/src/latexgen.cpp
Occasionally this
\mbox
is inserted in the main vertical list of TeX typesetting between two heading macros. This is a bug. In the particular case at hand, a file named test_8h.tex (which doxygen produces as output) contains something like this:Note two headings,
\doxysubsubsection
and\doxyparagraph
, and a\mbox
between them. The result, in the main vertical list of TeX, contains, if penalties are excluded:In the final output, vskips (2) and (4) are visible after one another. Then the final printable output contains double the amount of normal vertical space between the headings "Function Documentation" and "example()".
This is clearly visible in file refman.pdf, on page 2, between headings 2.1.3 and 2.1.3.1.
Expected behavior
It is expected that hypertargets are adjacent to, or contained in, the relevant TeX vbox and never produce any superfluous empty space in the final LaTeX or PDF document.
Screenshots
None (but see the PDF file)
To Reproduce
This can be reproduced exactly as another issue. See #9028. The same files, Doxyfile and test.h, and the same PDF file, refman.pdf, show also the behaviour described in this issue
Version
Doxygen 1.8.17. Linux 652723cd6b4f 3.10.0-1062.9.1.el7.x86_64
Stack trace
Additional context
The text was updated successfully, but these errors were encountered: