2

Consider the following attempt:

% \iffalse
%<*driver>
\ProvidesFile{duck.tex}
%</driver>
%
%<*driver>
\documentclass{l3doc}

\begin{document} \DocInput{duck.dtx} \PrintIndex \end{document} %</driver> % \fi % \DoNotIndex{^^A % \def,^^A Works. % \csname\space\endcsname,^^A Doesn't work. % \ ,^^A Doesn't work. % } % \begin{documentation} % \begin{function}{\foobar} % Prints out `foo bar'. % \end{function} % \end{documentation} % \begin{implementation} % \begin{macro}{\foobar} % This is the code for \cs{foobar}. % \begin{macrocode} \def\foo{foo} \def\bar{bar} \def\foobar{\foo\ \bar} % \end{macrocode} % \end{macro} % \end{implementation} % \Finale

It produces:

1

I understand why it produces \␣ in the 'Symbols' section of the index, but I want to stop this behavior. What should I add to \DoNotIndex?

Niranjan
  • 3,435

1 Answers1

2

It is a bug in the doc package. For the moment you can get it suppressed with

\expandafter\DoNotIndex\expandafter{\bslash}

but obviously that isn't the final solution and will not work the moment a final solution is in place. More details are in the github issue that was opened.