I am writing the documentation to a package implemented in expl3
using ltxdoc
, and the relevant part would look like
% \begin{macro}{\conteq_args_once}
% Some explanation
%
% \begin{macrocode}
\cs_new:Npn \conteq_args_once:Nn #1#2 {
\exp_not:o {#1 {#2}}
}
\cs_generate_variant:Nn \conteq_args_once:Nn {NV}
% \end{macrocode}
% \end{macro}
Unfortunately, this give me
! Missing $ inserted.
<inserted text>
$
l.385 % \begin{macro}{\conteq_args_once}
but \conteq\_args\_once:Nnn
does not work either. How do I correctly annotate the documentation for such a function?