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 682373 - Math does not work in LaTeX with custom header and footer.
Math does not work in LaTeX with custom header and footer.
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
1.8.2
Other Windows
: Normal major
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2012-08-21 15:59 UTC by Bastiaan
Modified: 2015-12-30 10:19 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Testcase. (22.20 KB, application/x-zip-compressed)
2012-08-21 15:59 UTC, Bastiaan
Details
Example with output (117.27 KB, application/zip)
2012-10-29 10:06 UTC, Bastiaan
Details

Description Bastiaan 2012-08-21 15:59:41 UTC
Created attachment 222043 [details]
Testcase.

When LATEX_HEADER and LATEX_FOOTER are defined and a formula is written inbetween \f$, a refman.tex is produced without any header or footer. Naturally, LaTeX cannot handle this, complaining
  ! Undefined control sequence.
  l.1 \chapter

Best regards,
Bastiaan.
Comment 1 Dimitri van Heesch 2012-10-28 11:47:04 UTC
Hi Bastiaan,

I haven't been able to reproduce this with the example you produced.
Both the HTML and LaTeX output look ok, with or without the custom header and footer.

Can you double check if the example indeed shows the problem? If so, please also attach the output generated so I can compare it with what I see.

Regards,
  Dimitri
Comment 2 Bastiaan 2012-10-29 10:06:17 UTC
Created attachment 227509 [details]
Example with output

Hi Dimitri,

My previous example was lacking a few backslashes, and I found that this problem only occurs when gswin32c.exe is not in the path and HTML generation is on. During HTML generation you then see this:

'gswin32c.exe' is not recognized as an internal or external command,
operable program or batch file.
Problem running ghostscript gswin32c.exe -q -g76x56 -r384x384x -sDEVICE=ppmraw -sOutputFile=_form0.pnm -dNOPAUSE -dBATCH -- _form0.ps. Check your installation!
error: file `header.tex' not found
error: file `footer.tex' not found

Then LaTeX is generated without the header and footer.

The problem goes away if you switch off generation of HTML output, or install the correct version of Ghostscript (not 64 bit!) and put it in your path manually.

Eventually, anybody would want to fix the GS installation, but it would be nice if the LaTeX output would be generated correctly disregarding any problems in the HTML output.

Thanks,
Bastiaan.
Comment 3 albert 2015-07-24 13:56:48 UTC
I've just pushed a proposed solution to github (pull request 369)
Comment 4 Dimitri van Heesch 2015-07-26 10:03:04 UTC
Thanks, I've merged the pull request
Comment 5 Dimitri van Heesch 2015-12-30 10:19:49 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.11. 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).