FSMaxB
FSMaxB

Reputation: 2490

Doxygen: How to include source files in LaTeX output

I'm using doxygen for the documentation of a program and I'm trying to get the actual source files to be included into the PDF-Output of the LaTeX generator.

I've set the following settings in the doxygen configuration file:

SOURCE_BROWSER = YES
INLINE_SOURCES = NO
LATEX_SOURCE_CODE = YES
STRIP_CODE_COMMENTS = NO

Some tex files containing the sources are being generated, but the generated refman.pdf doesn't contain it. When Enabling INLINE_SOURCES, the respective code parts get included though.

So does anyone know how to make doxygen include the actual source code into refman.pdf just like it's being included into the html documentation?

EDIT: While the source code isn't included in the PDF, doxygen creates links to the respective page, where the source code should be. However every link links to the nonexistent page 'i'.

EDIT: Same problem still exists with doxygen 1.8.6! I searched through the doxygen archives and found a post from 2008 stating, that doxygen can't include source code in the PDF file, but this is probably outdated.

EDIT: I found the corresponding bugreport. I will now start to strip everything from the Doxyfile that is not needed to reproduce the problem.

Upvotes: 2

Views: 3635

Answers (1)

FSMaxB
FSMaxB

Reputation: 2490

Thanks to albert, the bug should be solved ( I wasn't able to compile it myself, though ) and the fix is already merged upstream.

Albert also provided the workaround to either set EXTRACT_ALL = YES or add \file for each source file that has to be included.

Upvotes: 1

Related Questions