When I first encounter this problem I found many similar question: 1, 2, 3 and more, but it didn't solved my problem.
I have cpp project and I'm generating doxygen PDF and HTML with the following script:
#!/bin/bash
doxygen libProject.doxyfile
cd latex
make
cd ..
cp latex/refman.pdf libProject_traceability.pdf
When I added ALIASES to the doxyfile:
ALIASES += coversreqs="<dl class="params"><dt>Component Requirements:</dt><dd><table class="params">"
ALIASES += req{1}="<tr><td class="paramname">\ref \1</td></tr>"
ALIASES += endcoversreqs="</table></dd></dl>"
I get the following error:
! TeX capacity exceeded, sorry [input stack size=5000]. { l.468 \end{longtabu} ! ==> Fatal error occurred, no output PDF file produced! Transcript written on refman.log. Makefile:6: recipe for target 'refman.pdf' failed make: *** [refman.pdf] Error 1 cp: cannot stat 'latex/refman.pdf': No such file or directory
Before that the doxyfile ALIAS was empty:
# alias to insert a newline as if a physical newline was in the original file.
ALIASES =
and everything worked fine.
What is the problem with the ALIASES? Is it a syntax problem? Did anyone has similar thing?
Notice
The weird thing is, when I added this ALIASES to other project it worked just fine, the only difference between them that I can think of is that the fail one contain template classes with EXTENSION_MAPPING in the doxyfile:
EXTENSION_MAPPING = tpp=C++
and tpp FILE_PATTERNS in the doxyfile:
FILE_PATTERNS = *.c \
*.cc \
*.cxx \
*.cpp \
*.c++ \
*.tpp \
...
But I can't see any relation to this.
! TeX capacity exceeded, sorry [input stack size=5000]after I added the ALIASES. Please tell me what else do I need to add to the question. – lior.i Feb 11 '21 at 10:07ubuntumachine and I get the following message"doxygen is already the newest version (1.8.13-10).– lior.i Feb 11 '21 at 10:26ALIASESe.g.req{1}="<tr><td class="paramname">\ref \1</td></tr>"and it looks like they are not 100% correct, you are using double quotes (") inside a string, so the inner double quotes should be escaped. I would change it into:"req{1}=<tr><td class=\"paramname\">\ref \1</td></tr>"and see what happens (even with 1.8.13). This recommendation is valid even when the LaTeX problem is not guaranteed to come from this problem. – albert Feb 11 '21 at 10:31