I am documenting some code which uses meta-programming heavily, for example:
template
The meta-programming seems to implement maths. I would write the describing mathematical formulas with latex escapes in the doxygen documentation.