GNOME Bugzilla – Bug 682373
Math does not work in LaTeX with custom header and footer.
Last modified: 2015-12-30 10:19:49 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.
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
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.
I've just pushed a proposed solution to github (pull request 369)
Thanks, I've merged the pull request
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).