Is it possible to use ltxdoc.cls with makeidx and bookmark?
MNWE:
\documentclass{ltxdoc}
\usepackage{makeidx}
\usepackage{bookmark}
\makeindex
\begin{document}
\DescribeMacro{\mymacro}\marg{argument}\par
\printindex
\end{document}
Following the advice in comments, I then tried
makeindex -s gind.ist prawf
Here's makeindex's transcript:
This is makeindex, version 2.17 [TeX Live 2023] (kpathsea + Thai
support).
Scanning style file /usr/local/texlive/2023/texmf-dist/makeindex/latex/gind.ist.............done (13 attributes redefined, 3 ignored).
Scanning input file prawf.idx...done (0 entries accepted, 1 rejected).
Nothing written in prawf.ind.
Transcript written in prawf.ilg.
The log:
This is makeindex, version 2.17 [TeX Live 2023] (kpathsea + Thai support).
Scanning style file /usr/local/texlive/2023/texmf-dist/makeindex/latex/gind.ist..........
** Input style error (file = /usr/local/texlive/2023/texmf-dist/makeindex/latex/gind.ist, line = 75):
-- Unknown specifier lethead_prefix.
** Input style error (file = /usr/local/texlive/2023/texmf-dist/makeindex/latex/gind.ist, line = 76):
-- Unknown specifier lethead_suffix.
** Input style error (file = /usr/local/texlive/2023/texmf-dist/makeindex/latex/gind.ist, line = 77):
-- Unknown specifier lethead_flag.
...done (13 attributes redefined, 3 ignored).
Scanning input file prawf.idx...
!! Input index error (file = prawf.idx, line = 1):
-- Extra `|' at position 46 of first argument.
done (0 entries accepted, 1 rejected).
Nothing written in prawf.ind.
Transcript written in prawf.ilg.
The raw index file is
\indexentry{mymacro=\verb!*+\mymacro+|hdclindex{2}{usage}|hyperpage}{1}

mkindexthat processes the.idxand.glofiles of a document using (makeindexand)gind.istresp.gglo.ist. – cabohah Aug 21 '23 at 07:20TEXMFHOME=/d makeindex -s gind.ist prawf? I have to set the file up to use something different, too, I guess. (I don't make indexes often.) Thanks re. thedoc. I discovered I'm not explicitly loading it in the actual document, but added it for the MNWE. I knowdocprovides indexing macros, but I don't know if I should be using those or not. (I don't have a dtx.) – cfr Aug 21 '23 at 15:05-s gind.ist? – cfr Sep 04 '23 at 18:49Scanning input file ee131.idx...done (0 entries accepted, 1 rejected). Nothing written in ee131.ind.hmm not good:-) i may have no time this evening but I'll try to look later – David Carlisle Sep 04 '23 at 19:46r! – cfr Sep 04 '23 at 23:27doc2because indexing worked OK in June forprooftreesand I've not updated TL. With justdoc2I still get the error, but if I add a bit ofprooftrees.texpreamble, it works. (I can't apply this to my new document as it is committed to version 3 ofdoc.) Specifically\renewcommand*\Describe@Macro[1]{\endgroup \marginpar{% \raggedleft\PrintDescribeMacro{#1}\par }% \expandafter\prooftrees@index{\macrolabelname}{\protect\verb \protect #1}\@esphack\ignorespaces} \newcommand*\macrolabelname{macro} \def\prooftrees@index#1#2{\index{#1s!#2}}– cfr Sep 05 '23 at 00:34