vovkos / doxyrest

A compiler from Doxygen XML to reStructuredText -- hence, the name. It parses XML databases generated by Doxygen and produces reStructuredText for the Python documentation generator Sphinx.
MIT License
306 stars 23 forks source link

Sphinx LaTeX build: export plain source code? #42

Open markhh80 opened 3 years ago

markhh80 commented 3 years ago

Hi,

I'm exporting a sphinx documentation to LaTeX and the doxyrest code blocks are generated with {sphinxalltt} environments, example:

\begin{sphinxalltt} namespace ContextInfo { // enums enum {\hyperref[\detokenize{reference/enum_MyNamespace_ContextInfo_ChannelIndexMode:doxid-namespace-mynamespace-1-1-context-info-1adde2196f72f6de24085dd9f2b0666c7d}]{\sphinxcrossref{\DUrole{std,std-ref}{ChannelIndexMode}}}}; ... \end{sphinxalltt}

Is there a way to have them exported as "plain" source code without references so they can be used with code listing environments instead (example: package {listings} or {sphinxVerbatim})? Preferably, only for LaTeX builds.

Thanks!