After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 659590 - EXTRA_PACKAGES can't handle package options
EXTRA_PACKAGES can't handle package options
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
1.7.4
Other Linux
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2011-09-20 14:03 UTC by Stephan Friedrichs
Modified: 2015-06-27 19:01 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Stephan Friedrichs 2011-09-20 14:03:27 UTC
I can load additional LaTeX packages with the EXTRA_PACKAGES config entry, like

EXTRA_PACKAGES = xy

resulting in \usepackage{xy}

But what I need to be able to do is to provide additional parameters to these packages, like

EXTRA_PACKAGES = [all]xy

in my case (xy really lacks features without this option, but I need it to draw diagrams). As for now, this only seems to be possible with gruesome hacks:

EXTRA_PACKAGES = somethingelse}\n\\usepackage[all]{xy

(untested, maybe they get escaped!)

Because latexgen.cpp (line 260) looks like this:

t << "\\usepackage{" << s << "}\n";

There seems to be no official way to pass package parameters. So my request is, to include some way to pass package parameters :)

Thanks in advance
Stephan
Comment 1 bkmr 2015-03-03 03:17:40 UTC
What works for me:

doxygen} \usepackage[export]{adjustbox

Alternatice might be an area in the doxyfile where we could add arbitrary text to be inserted before the \begin{document}
Comment 2 albert 2015-03-04 18:03:12 UTC
I've just pushed a proposed solution to github (pull request 304).
Comment 3 Dimitri van Heesch 2015-03-05 20:58:08 UTC
Thanks, I've merged the pull request
Comment 4 Dimitri van Heesch 2015-06-27 19:01:55 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.10. Please verify if this is indeed the case. Reopen the
bug if you think it is not fixed and please include any additional information 
that you think can be relevant (preferably in the form of a self-contained example).