On Fri, Jan 31, 2025 at 10:07:20PM +0000, Werner LEMBERG wrote: > > >> I'm searching a way to make `texi2any` dump all cross-reference > >> targets (i.e., the arguments of `@node` and `@anchor`) to a file > >> for a given document, for example, by adding some code to a file > >> loaded via `--init-file`. How can I achieve that? > > > > The --internal-links=file.txt should do what you want to, I believe, > > it is only available for HTML. Or you can set the INTERNAL_LINKS > > customization variable. > > Thanks, but this isn't what I need, since (a) it adds the section > number to the argument of `@node`,
I think that this depends on USE_NODES. That being said it could be better to always have the section names with numbers for the toc links, and also have all the sections independently of output units. The output units should probably be there too, but not associated to 'toc' as type of link, but maybe 'unit'. > and (b) the dump doesn't contain > any targets from `@anchor`. While (a) could be taken care of, (b) is > a show stopper. Looks like a bug to me. I think that the nodes/anchor/float targets should be there. (Also probably the @*heading command targets, the footnotes, but it is less important). -- Pat